{'fraction_non_alphanumeric': 0.02695167286245353, 'fraction_numerical': 0.008364312267657992, 'mean_word_length': 5.261627906976744, 'pattern_counts': {'":': 0, '<': 0, '<?xml version=': 0, '>': 0, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
Capsule Embedded ResNet for Image Classification

Various neural network models have been proposed in the past decade. Among them, the residual neural network (ResNet) is one of the most successful models of convolutional neural networks (CNNs), while the capsule neural network (CapsNet) is more robust to the rotation, translation and other transformations of objects in the images. In this paper, a capsule embedded ResNet (CE-ResNet) is proposed to combine the strengths of both. The proposed CE-ResNet utilizes the ResNet blocks based convolutional layers to extract low to medium level features from the images, while two capsule layers are embedded to process the high-level information in order to provide a better performance for image classification. The transformation between convolutional layers and capsules is carefully designed to embed the capsules properly. In the experiments, the proposed model achieves 90.8% and 99.64% accuracies on CIFAR-10 and MNIST datasets respectively, which are higher than the accuracies reported by the vanilla ResNet or CapsNet.