Capsule networks can encode the properties and spatial relationships of skin cancer image features, thereby overcoming the disadvantage of information loss in the pooling process of convolutional neural networks. Aiming at the problem that only shallow features can be extracted and the convergence performance of the squash function in capsule networks, a ResNeXt cascaded with capsule networks was proposed for Rs-Capsnet networks. Firstly, the complex features of the image were learned using the ResNeXt network. The Inception module and the residual connection were used to extract the deep features, and the weights of the feature map were adjusted and delivered to the capsule module through the CBAM attention module. Then, an improved squash function capsule network was used to complete the classification. Finally, the improved network was compared with mainstream models. The results show that Rs-Capsnet exhibits better performance in skin cancer image classification.
| 科 Family | 属数 Number of genus | 种数 Number of species | 占总种数比例 Percentage of total species (%) | 属 Genus | 种数 Number of species | 占总种数比例 Percentage of total species (%) |
|---|---|---|---|---|---|---|
| 鹅膏菌科Amanitaceae | 2 | 11 | 5.26 | 鹅膏菌属 Amanita | 10 | 4.78 |
| 小菇科 Mycenaceae | 2 | 12 | 5.74 | 丝盖伞属 Inocybe | 5 | 2.39 |
| 多孔菌科 Polyporaceae | 8 | 14 | 6.70 | 蜡蘑属 Laccaria | 5 | 2.39 |
| 红菇科 Russulaceae | 3 | 23 | 11.00 | 小皮伞属 Marasmius | 6 | 2.87 |
| 小菇属 Mycena | 11 | 5.26 | ||||
| 光柄菇属 Pluteus | 5 | 2.39 | ||||
| 红菇属 Russula | 17 | 8.13 | ||||
| 栓菌属 Trametes | 5 | 2.39 |