<iframe src="https://www.googletagmanager.com/ns.html?id=GTM-K99X533V" height="0" width="0" style="display:none;visibility:hidden"></iframe>
ARTICLE
25 November 2026

Study on Classification of Developmental Stages of Necrophilous Fly Larvae in Hainan Region Based on Transfer Learning and Class‑Imbalance Handling

Xinru Yi1 ,  Lin Niu1*
Show Less
1 Hainan Medical University, Haikou 570000, Hainan, China
ssr 2026 , 8(10), 177–181; https://doi.org/10.26689/ssr.v8i10.16343
© 2026 by the Author. Licensee: Bio-Byword Scientific Publishing Pty Ltd, Australia. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution 4.0 International License ( https://creativecommons.org/licenses/by/4.0/ )
Abstract

Aiming at the recognition difficulty caused by high morphological similarity between the Early and Middle developmental stages of necrophilous fly larvae and the low proportion of Early‑stage samples, this paper constructs a 3‑class image dataset containing 2288 images from the Hainan region, and proposes a recognition method based on ResNet50 with transfer learning and class‑imbalance handling. The Accuracy and Macro‑F1 of the model on the test set reach 95.64% and 93.64%, respectively. Major misclassifications occur mainly between the Early and Middle stages. This work can provide references for the auxiliary analysis of minimum post‑mortem interval (PMImin) in forensic entomology in Hainan.

Keywords
Necrophilous fly
Developmental stage
ResNet50
Transfer learning
Focal loss
Funding
Hainan Medical University‑level Innovation Project (Project No. X202511810082)
References

[1] Amendt J, Richards CS, Campobasso CP, et al., 2011, Forensic Entomology: Applications and Limitations. Forensic Science, Medicine and Pathology, 7(4): 379–392. https://doi.org/10.1007/s12024‑010‑9209‑2

[2] Amendt J, Campobasso CP, Gaudry E, et al., 2007, Best Practice in Forensic Entomology—Standards and Guidelines. International Journal of Legal Medicine, 121(2): 90–104. https://doi.org/10.1007/s00414‑006‑0086‑x

[3] Gemmellaro MD, Hamilton GC, Ware JL, 2019, Review of Molecular Identification Techniques for Forensically Important Diptera. Journal of Medical Entomology, 56(4): 887–902. https://doi.org/10.1093/jme/tjz040

[4] Charabidze D, Hedouin V, 2019, Temperature: The Weak Point of Forensic Entomology. International Journal of Legal Medicine, 133(2): 633–639. https://doi.org/10.1007/s00414‑018‑1898‑1

[5] Apasrawirote D, Boonchai P, Muneesawang P, et al., 2022, Assessment of Deep Convolutional Neural Network Models for Species Identification of Forensically‑Important Fly Maggots Based on Images of Posterior Spiracles. Scientific Reports, 2022(12): 4753. https://doi.org/10.1038/s41598‑022‑08823‑8

[6] Liu W, Wu G, Ren F, et al., 2020, DFF‑ResNet: An Insect Pest Recognition Model Based on Residual Networks. Big Data Mining and Analytics, 3(4): 300–310. https://doi.org/10.26599/BDMA.2020.9020021

[7] Wang P, Luo F, Wang L, et al., 2022, S‑ResNet: An Improved ResNet Neural Model Capable of the Identification of Small Insects. Frontiers in Plant Science, 2022(13): 1066115. https://doi.org/10.3389/fpls.2022.1066115

[8] He K, Zhang X, Ren S, et al., 2016, Deep Residual Learning for Image Recognition. Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition. Las Vegas: IEEE, 2016: 770–778. https://doi.org/10.1109/CVPR.2016.90

[9] Pan SJ, Yang Q, 2010, A Survey on Transfer Learning. IEEE Transactions on Knowledge and Data Engineering, 22(10): 1345–1359. https://doi.org/10.1109/TKDE.2009.191

[10] Buda M, Maki A, Mazurowski MA, 2018, A Systematic Study of the Class Imbalance Problem in Convolutional Neural Networks. Neural Networks, 2018(106): 249–259. https://doi.org/10.1016/j.neunet.2018.07.011

[11] Shorten C, Khoshgoftaar TM, 2019, A Survey on Image Data Augmentation for Deep Learning. Journal of Big Data, 2019(6): 60. https://doi.org/10.1186/s40537‑019‑0197‑0

[12] Yosinski J, Clune J, Bengio Y, et al., 2014, How Transferable are Features in Deep Neural Networks? Advances in Neural Information Processing Systems, 27. Montreal: Curran Associates, 2014: 3320–3328.

[13] Saito T, Rehmsmeier M, 2015, The Precision‑recall Plot is More Informative than the ROC plot when Evaluating Binary Classifiers on Imbalanced Datasets. PLoS ONE, 10(3): e0118432. https://doi.org/10.1371/journal.pone.0118432

[14] Selvaraju RR, Cogswell M, Das A, et al., 2017, Grad‑CAM: Visual Explanations from Deep Networks via Gradient‑based Localization. Proceedings of the IEEE International Conference on Computer Vision. Venice: IEEE, 2017: 618–626. https://doi.org/10.1109/ICCV.2017.74

[15] Lin TY, Goyal P, Girshick R, et al., 2017, Focal Loss for Dense Object Detection. Proceedings of the IEEE International Conference on Computer Vision. Venice: IEEE, 2017: 2980–2988. https://doi.org/10.1109/ICCV.2017.324

Share
Back to top