The development of artificial intelligence system to detect Mycobacterium tuberculosis (M. tuberculosis) from sputum with Acid-Fast Bacillus (AFB) method

Authors

  • Punnathorn Khunhon Princess Chulabhorn Science High School Chonburi, Chonburi Province
  • Peraga Puangtong Princess Chulabhorn Science High School Chonburi, Chonburi Province
  • Vichien Donram Princess Chulabhorn Science High School Chonburi, Chonburi Province
  • Thanthun Sangphoo Rayong Hospital in HRH Royal Highness Princess Maha Chakri Sirindhorn, Rayong Province

Keywords:

Artificial Intelligence, Convolutional Neural Network, Acid-Fast Bacillus, Mycobacterium Tuberculosis, Datasets

Abstract

Pulmonary tuberculosis is an infectious disease that still has outbreaks in Thailand (Department of Disease Control, 2021), caused by a bacterium called Mycobacterium tuberculosis, often known as MTB. In Thailand, the AFB sputum smear test is commonly used to diagnose tuberculosis. It is reliable and affordable, however the physician inspection process is time-consuming. So, we created an AI to automatically inspect the sputum smear to support the physician's inspection procedure in which we started by collecting sputum images from Kaggle and ZNSM-iDB, and processed them through data cleaning and augmentation process. Then, we developed the program for supporting all of the AI, coupled with the Yolov5 module to train, evaluate, and finally compare the performances of the different CNN models used in Yolov5's image processing process. As a result, the system is able to learn from the image dataset, which in preliminary examination, which classifies between positive and negative sputum sample, the most effective model, Yolov5s, was able to detect the MTBs with the sensitivity, specificity, F1-score, and mean detection time per image of 0.9802, 0.9647, 0.9727 and 11.1 milliseconds, respectively, and in the object detection task in which locates every TB in the sample, the most efficient model, Yolov5n6, was able to detect objects and classify the types of MTB with the precision, recall, mAP of 0.673, 0.761, 0.727 respectively. Once the model is exported, the CNN image processing model is trained and ready to be used in further experiments or further development into various innovations. To conclude, the model is able to inspect the MTBs automatically with a high accuracy and fast detection time. However, model image predictions in some images are still wrong, possibly because of the different staining characteristics in each picture, causing the system to misinterpret.

References

กรมควบคุมโรค. (2561). การคัดกรองเพื่อค้นหาวัณโรคและวัณโรคดื้อยา (Systematic screening for active TB and drug-resistant TB). พิมพ์ครั้งที่ 2. สำนักพิมพ์อักษรกราฟฟิคแอนด์ดีไซน์: กรุงเทพฯ.

Iglovikov V. (2023). Albumentations. Accessed 20 Aug 2022. https://albumentations.ai/

Jocher G. (2020). YOLOv5. Accessed 20 Aug 2022. https://github.com/ultralytics/yolov5

Panicker R.O., Kalmady K.S., Rajan J. and Sabu M.K. (2018). Automatic detection of tuberculosis bacilli from microscopic sputum smear images using deep learning methods. Biocybernetics and Biomedical Engineering. 38(3): 691–699.

Priya E. and Rajinikanth V. (2021). Signal and image processing techniques for the development of intelligent healthcare systems. 1st Edition. Springer: Singapore.

Python. (2022). Download the latest version for Windows. Accessed 20 Aug 2022. https://www.python.org/downloads/

Roboflow. (2022). Overview - Roboflow. Accessed 20 Aug 2022. https://docs.roboflow.com/

Uddin S. (n.d.). Tuberculosis Image Dataset. Accessed 8 Sep 2022. https://www.kaggle.com/datasets/saife245/tuberculosis-image-datasets

Serrão M.K.M., Costa M.G.F., Fujimoto B.L., Ogusku M.M. and Filho C.F.F.C. (2020). Automatic Bacillus detection in light field microscopy images using convolutional neural networks and mosaic imaging Approach. In the 42nd Annual International Conference of the IEEE Engineering in Medicine & Biology Society (EMBC). The Institute of Electrical and Electronics Engineers: Montreal, QC, Canada. 1903-1906.

Shah M.I., Mishra S., Yadav V.K., Chauhan A., Sarkar M., Sharma S.K. and Rout C. (n.d.). Tuberculosis Image. Accessed 28 Dec 2022. http://14.139.240.55/znsm/

World Health Organization. (2021). Global tuberculosis report 2021. Accessed 20 Aug 2022 https://www.who.int/publications/i/item/9789240037021

Published

2024-04-26

How to Cite

Khunhon, P., Puangtong, P., Donram, V., & Sangphoo, T. (2024). The development of artificial intelligence system to detect Mycobacterium tuberculosis (M. tuberculosis) from sputum with Acid-Fast Bacillus (AFB) method. Agriculture & Technology RMUTI Journal, 5(1), 68–79. retrieved from https://li01.tci-thaijo.org/index.php/atj/article/view/259388