Po-Chun Chuang, Ye-In Chang, Tein-Shun Tsai, Chih-Hsiang Hung, Chia-En Li
{"title":"基于人工智能的蛇图像分类聊天机器人及其准确率提高。","authors":"Po-Chun Chuang, Ye-In Chang, Tein-Shun Tsai, Chih-Hsiang Hung, Chia-En Li","doi":"10.4269/ajtmh.25-0101","DOIUrl":null,"url":null,"abstract":"<p><p>Snakebites pose a significant global health challenge. The timely and accurate identification of snake species is essential for guiding antivenom administration. Our goal was to evaluate the effectiveness of a machine learning model for classifying snake species using images collected from the external environment and a preprocessing method to enhance accuracy. In this study, we developed a deep learning model for snake species identification in Taiwan based on the Swin Transformer v2 architecture, applying transfer learning to 12,000 images sampled from a dataset of 30,573 labeled images collected by the authors from sources such as Flickr, iNaturalist, and local databases before October 2023. An external test set of 2,400 images, collected through the XX (LINE) chatbot and Facebook groups between November 2023 and April 2024, was used to evaluate real-world performance. To address challenges in external test set images, we introduced a preprocessing method called test-time object detection and cropping (TT-ODC). Without preprocessing, the model achieved 95.6% accuracy on the validation set but dropped to 83.3% on the external test set. Applying TT-ODC improved external test accuracy to 89.8%, closely matching human annotation performance (90.3%). These findings revealed that integrating a Swin Transformer v2-based model into the LINE chatbot enhances snake species identification and improves real-world accuracy. The TT-ODC method effectively bridges the gap between experimental (validation set) and real-world (external test set) performance, providing a practical tool for clinical snakebite management.</p>","PeriodicalId":7752,"journal":{"name":"American Journal of Tropical Medicine and Hygiene","volume":" ","pages":""},"PeriodicalIF":1.6000,"publicationDate":"2025-08-21","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":"{\"title\":\"Developing an Artificial Intelligence Chatbot for Snake Image Classification and Accuracy Improvement.\",\"authors\":\"Po-Chun Chuang, Ye-In Chang, Tein-Shun Tsai, Chih-Hsiang Hung, Chia-En Li\",\"doi\":\"10.4269/ajtmh.25-0101\",\"DOIUrl\":null,\"url\":null,\"abstract\":\"<p><p>Snakebites pose a significant global health challenge. The timely and accurate identification of snake species is essential for guiding antivenom administration. Our goal was to evaluate the effectiveness of a machine learning model for classifying snake species using images collected from the external environment and a preprocessing method to enhance accuracy. In this study, we developed a deep learning model for snake species identification in Taiwan based on the Swin Transformer v2 architecture, applying transfer learning to 12,000 images sampled from a dataset of 30,573 labeled images collected by the authors from sources such as Flickr, iNaturalist, and local databases before October 2023. An external test set of 2,400 images, collected through the XX (LINE) chatbot and Facebook groups between November 2023 and April 2024, was used to evaluate real-world performance. To address challenges in external test set images, we introduced a preprocessing method called test-time object detection and cropping (TT-ODC). Without preprocessing, the model achieved 95.6% accuracy on the validation set but dropped to 83.3% on the external test set. Applying TT-ODC improved external test accuracy to 89.8%, closely matching human annotation performance (90.3%). These findings revealed that integrating a Swin Transformer v2-based model into the LINE chatbot enhances snake species identification and improves real-world accuracy. The TT-ODC method effectively bridges the gap between experimental (validation set) and real-world (external test set) performance, providing a practical tool for clinical snakebite management.</p>\",\"PeriodicalId\":7752,\"journal\":{\"name\":\"American Journal of Tropical Medicine and Hygiene\",\"volume\":\" \",\"pages\":\"\"},\"PeriodicalIF\":1.6000,\"publicationDate\":\"2025-08-21\",\"publicationTypes\":\"Journal Article\",\"fieldsOfStudy\":null,\"isOpenAccess\":false,\"openAccessPdf\":\"\",\"citationCount\":\"0\",\"resultStr\":null,\"platform\":\"Semanticscholar\",\"paperid\":null,\"PeriodicalName\":\"American Journal of Tropical Medicine and Hygiene\",\"FirstCategoryId\":\"3\",\"ListUrlMain\":\"https://doi.org/10.4269/ajtmh.25-0101\",\"RegionNum\":4,\"RegionCategory\":\"医学\",\"ArticlePicture\":[],\"TitleCN\":null,\"AbstractTextCN\":null,\"PMCID\":null,\"EPubDate\":\"\",\"PubModel\":\"\",\"JCR\":\"Q3\",\"JCRName\":\"PUBLIC, ENVIRONMENTAL & OCCUPATIONAL HEALTH\",\"Score\":null,\"Total\":0}","platform":"Semanticscholar","paperid":null,"PeriodicalName":"American Journal of Tropical Medicine and Hygiene","FirstCategoryId":"3","ListUrlMain":"https://doi.org/10.4269/ajtmh.25-0101","RegionNum":4,"RegionCategory":"医学","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"Q3","JCRName":"PUBLIC, ENVIRONMENTAL & OCCUPATIONAL HEALTH","Score":null,"Total":0}
Developing an Artificial Intelligence Chatbot for Snake Image Classification and Accuracy Improvement.
Snakebites pose a significant global health challenge. The timely and accurate identification of snake species is essential for guiding antivenom administration. Our goal was to evaluate the effectiveness of a machine learning model for classifying snake species using images collected from the external environment and a preprocessing method to enhance accuracy. In this study, we developed a deep learning model for snake species identification in Taiwan based on the Swin Transformer v2 architecture, applying transfer learning to 12,000 images sampled from a dataset of 30,573 labeled images collected by the authors from sources such as Flickr, iNaturalist, and local databases before October 2023. An external test set of 2,400 images, collected through the XX (LINE) chatbot and Facebook groups between November 2023 and April 2024, was used to evaluate real-world performance. To address challenges in external test set images, we introduced a preprocessing method called test-time object detection and cropping (TT-ODC). Without preprocessing, the model achieved 95.6% accuracy on the validation set but dropped to 83.3% on the external test set. Applying TT-ODC improved external test accuracy to 89.8%, closely matching human annotation performance (90.3%). These findings revealed that integrating a Swin Transformer v2-based model into the LINE chatbot enhances snake species identification and improves real-world accuracy. The TT-ODC method effectively bridges the gap between experimental (validation set) and real-world (external test set) performance, providing a practical tool for clinical snakebite management.
期刊介绍:
The American Journal of Tropical Medicine and Hygiene, established in 1921, is published monthly by the American Society of Tropical Medicine and Hygiene. It is among the top-ranked tropical medicine journals in the world publishing original scientific articles and the latest science covering new research with an emphasis on population, clinical and laboratory science and the application of technology in the fields of tropical medicine, parasitology, immunology, infectious diseases, epidemiology, basic and molecular biology, virology and international medicine.
The Journal publishes unsolicited peer-reviewed manuscripts, review articles, short reports, images in Clinical Tropical Medicine, case studies, reports on the efficacy of new drugs and methods of treatment, prevention and control methodologies,new testing methods and equipment, book reports and Letters to the Editor. Topics range from applied epidemiology in such relevant areas as AIDS to the molecular biology of vaccine development.
The Journal is of interest to epidemiologists, parasitologists, virologists, clinicians, entomologists and public health officials who are concerned with health issues of the tropics, developing nations and emerging infectious diseases. Major granting institutions including philanthropic and governmental institutions active in the public health field, and medical and scientific libraries throughout the world purchase the Journal.
Two or more supplements to the Journal on topics of special interest are published annually. These supplements represent comprehensive and multidisciplinary discussions of issues of concern to tropical disease specialists and health issues of developing countries