Integration of Microscopic Image Capturing System for Automatic Detection of Mycobacterium Tuberculosis Bacteria

  • Agus Darmawan Universitas Islam Indonesia
  • Izzati Muhimmah Universitas Islam Indonesia
  • Rahadian Kurniawan Universitas Islam Indonesia
Keywords: Tuberculosis, Sputum, Image Processing, Microscope


The Ministry of Health of the Republic of Indonesia is running a program to eliminate Tuberculosis (TB) by 2030. At the Primary Health Care level, AFB (acid-fast bacteria) examination confirms the TB diagnosis. In this process, the patient's sputum is prepared in the form of preparation and observed by the laboratory analyst through the lens of a microscope. The reporting process to establish this diagnosis requires calculating the number of TB bacteria in 100 fields of view per preparation. This manual microscopic observation process is tedious, and the reading results are subjective. This study offers an integrated design for automatic microscopic imaging with a computer-integrated TB bacteria detection system. The process of taking pictures is automatically obtained with the help of a driving motor added to the microscope. With the addition of this motor, the process of taking microscopic images for 100 fields of view takes ±450 seconds. The proposed system integration process can reduce laboratory analysts' work fatigue in conducting microscopic observations manually. The TB bacteria detection system utilizes the working principle of image processing techniques by combining color-deconvolution, segmentation, and contour-detection methods. The comparative value of the TB object detection system with experts resulted in a sensitivity value of 77% and a specificity value of 68%. However, the low detection rate is because the image obtained is still blurry. Thus, further investigation is needed to determine the driving motor's movement rate and the right timing for taking microscopic images so that the resulting image is not blurry. The final result that is the focus of this paper is the successful integration of the system carried out between the motor drive system on the preparation stand and the TB bacteria detection system to become a unified system.


Download data is not yet available.


“Basic TB Facts | TB | CDC.” (accessed Feb. 09, 2022).

World Health Organization, “World Health Organization Geneva Manual Of Basic Techniques For A Health Laboratory 2nd edition,” 2003. Accessed: Dec. 17, 2021. [Online]. Available:

R. S. R and R. T. Beegum, “Microscope image processing for TB diagnosis using shape features and ellipse fitting; Microscope image processing for TB diagnosis using shape features and ellipse fitting,” 2017 IEEE International Conference on Signal Processing, Informatics, Communication and Energy Systems (SPICES), 2017, doi: 10.1109/SPICES.2017.8091342.

D. Juliando and A. Setiarini, “Identifikasi Bakteri pada Citra Dahak Penderita Tubercolusis (TBC) Menggunakan Metode Watershed,” JEECAE (Journal of Electrical, Electronics, Control, and Automotive Engineering), vol. 2, pp. 83–88, Dec. 2017, doi: 10.32486/jeecae.v2i1.60.

R. Kurniawan, I. Muhimmah, A. Kurniawardhani, and S. Kusumadewi, “Segmentation of Tuberculosis Bacilli Using Watershed Transformation and Fuzzy C-Means,” 2019.

Rajkumar M, “Tuberculosis Disease Detection Using Image Processing,” International Journal of Scientific Research in Computer Science, Engineering and Information Technology © 2018 IJSRCSEIT, vol. 3, p. 31, 2018.

I. R. Pratama, “Sistem Pendeteksi Bakteri Mycobacterium.” Accessed: Feb. 06, 2020. [Online]. Available:

“Klasifikasi Citra X-Ray Diagnosis Tuberkulosis Berbasis Fitur Statistis”.

K. Aji and M. Ulum, “Implementation of a Digital Microscope as an Identification System for Parasitic Worms in Cattle Based on Image Processing,” JEEE-U (Journal of Electrical and Electronic Engineering-UMSIDA), vol. 6, pp. 58–69, Apr. 2022, doi: 10.21070/jeeeu.v6i1.1640.

W. Win, D. Arifianto, and R. Apsari, “Desain Sistem Autofocus Berbasis Normalized Variance Untuk Pencari Fokus Otomatis Mikroskop Digital,” 2016. [Online]. Available:

M. Kholil and R. Rulaningtyas, “Design of Autofocus Microscope with Histogram Method for Tuberculosis Bacteria Observation,” 2020. [Online]. Available:

I. Susanti et al., “Pengembangan Mikroskop dengan Mikrokontroler dan Cahaya Monokromatis untuk Mendeteksi Parasit Malaria,”, vol. 6, no. 2, pp. 75–82, 2017, [Online]. Available:

M. Ariska and S. Alawiyah, “Mikroskop Digital Berbasis Kamera Smartphone,” JIPFRI (Jurnal Inovasi Pendidikan Fisika dan Riset Ilmiah), vol. 3, no. 2, pp. 108–112, Nov. 2019, doi: 10.30599/jipfri.v3i2.455.

“CX31 | Olympus LS.”!cms[focus]=cmsContent694 (accessed Feb. 06, 2022).

K. Todar, “Tuberculosis.” (accessed Apr. 14, 2022).

“Policies and guidelines - Tuberculosis.” (accessed Apr. 14, 2022).

“Color Deconvolution Algorithm User’s Guide,” 2007. [Online]. Available:

G. Landini, G. Martinelli, and F. Piccinini, “Colour deconvolution: stain unmixing in histological imaging,” Bioinformatics, vol. 37, no. 10, pp. 1485–1487, May 2021, doi: 10.1093/bioinformatics/btaa847.

How to Cite
Agus Darmawan, Muhimmah, I., & Rahadian Kurniawan. (2023). Integration of Microscopic Image Capturing System for Automatic Detection of Mycobacterium Tuberculosis Bacteria. Jurnal RESTI (Rekayasa Sistem Dan Teknologi Informasi), 7(2), 367 - 375.
Information Technology Articles