Mosaicos sintéticos com contexto controlado alteram o ponto de operação sem melhorar a discriminação externa na classificação de baciloscopias paucibacilares

Autores

DOI:

https://doi.org/10.5281/zenodo.23968001

Palavras-chave:

Tuberculose, Baciloscopia, Ziehl-Neelsen, Aprendizado profundo, Dados sintéticos, Validação externa

Resumo

Redes neurais treinadas com imagens sintéticas são uma saída para a escassez de lâminas paucibacilares anotadas na baciloscopia automatizada da tuberculose, mas pouco se sabe sobre como a forma de construir essas imagens se reflete em lâminas reais. Este estudo comparou mosaicos montados em grade rígida com mosaicos de contexto controlado, nos quais imagens positivas e negativas compartilham o mesmo fundo para que a rede aprenda o bacilo, e não o cenário. Foram treinadas 75 redes (cinco condições, cinco arquiteturas e três sementes), com limiar de decisão fixado ainda nos dados sintéticos, e testadas em duas bases externas: Base externa 1 (Wellgen; 100 imagens positivas e 900 negativas, microscópio digital) e Makerere (1.217 positivas e 37 negativas, câmera de celular). Pela métrica usual, a área sob a curva ROC (AUROC), o contexto controlado não fez diferença (Δ +0,012 e −0,022; p de Holm = 1,0). No limiar definido durante o treino, porém, o comportamento das redes mudou marcadamente: na Base externa 1, a especificidade subiu de 0,419 para 0,778, enquanto a sensibilidade caiu de 0,997 para 0,747, padrão mantido após excluir as execuções que não convergiram. A sensibilidade também dependeu do tamanho aparente do bacilo, que varia com o equipamento de aquisição, e até um modelo treinado só com imagens reais perdeu o equilíbrio entre sensibilidade e especificidade ao mudar de base. Esses resultados mostram que a AUROC, isoladamente, pode esconder mudanças clinicamente relevantes, e que a validação de sistemas automatizados deve relatar o desempenho no limiar congelado e a escala de aquisição das imagens

Referências

AULIA, S. et al. A novel digitized microscopic images of ZN-stained sputum smear and its classification based on IUATLD grades. IEEE Access, v. 12, p. 51364-51380, 2024. DOI: https://doi.org/10.1109/ACCESS.2024.3386208.

BEDŐHÁZI, Z. et al. Streamlining tuberculosis detection with foundation model-based weakly supervised transformer. Computers in Biology and Medicine, v. 195, 110554, 2025. DOI: https://doi.org/10.1016/j.compbiomed.2025.110554.

BRASIL. Ministério da Saúde. Boletim Epidemiológico: Tuberculose 2026: número especial. Brasília: Ministério da Saúde, 2026. Available at: https://www.gov.br/saude/pt-br/centrais-de-conteudo/publicacoes/boletins/epidemiologicos/especiais/2026/boletim-epidemiologico-de-tuberculose-numero-especial-mar-2026.pdf. Accessed on: 13 Aug. 2026.

CARVALHO BRITO, V. de et al. Multi-task deep learning for bacilli detection and counting in sputum smear microscopy. Biomedical Signal Processing and Control, v. 112, 108531, 2026. DOI: https://doi.org/10.1016/j.bspc.2025.108531.

CHEN, H. et al. Research on improved YOLOv8s model for detecting mycobacterium tuberculosis. Heliyon, v. 10, n. 18, e38088, 2024. DOI: https://doi.org/10.1016/j.heliyon.2024.e38088.

CHICCO, D.; JURMAN, G. The advantages of the Matthews correlation coefficient (MCC) over F1 score and accuracy in binary classification evaluation. BMC Genomics, v. 21, 6, 2020. DOI: https://doi.org/10.1186/s12864-019-6413-7.

COLLINS, G. S. et al. TRIPOD+AI statement: updated guidance for reporting clinical prediction models that use regression or machine learning methods. BMJ, v. 385, e078378, 2024. DOI: https://doi.org/10.1136/bmj-2023-078378.

DIETTERICH, T. G.; LATHROP, R. H.; LOZANO-PÉREZ, T. Solving the multiple instance problem with axis-parallel rectangles. Artificial Intelligence, v. 89, n. 1-2, p. 31-71, 1997. DOI: https://doi.org/10.1016/S0004-3702(96)00034-3.

DOSOVITSKIY, A. et al. An image is worth 16x16 words: transformers for image recognition at scale. In: INTERNATIONAL CONFERENCE ON LEARNING REPRESENTATIONS, 9., 2021. Proceedings [...]. [S. l.]: ICLR, 2021.

DRAELOS, R. L.; CARIN, L. Use HiResCAM instead of Grad-CAM for faithful explanations of convolutional neural networks. [S. l.]: arXiv, 2020. Preprint arXiv:2011.08891.

DWIBEDI, D.; MISRA, I.; HEBERT, M. Cut, paste and learn: surprisingly easy synthesis for instance detection. In: IEEE INTERNATIONAL CONFERENCE ON COMPUTER VISION, 2017, Venice. Proceedings [...]. Piscataway: IEEE, 2017. p. 1310-1319. DOI: https://doi.org/10.1109/ICCV.2017.146.

GEIRHOS, R. et al. Shortcut learning in deep neural networks. Nature Machine Intelligence, v. 2, n. 11, p. 665-673, 2020. DOI: https://doi.org/10.1038/s42256-020-00257-z.

GREESHMA, K.; VISHNUKUMAR, S. Automated tuberculosis diagnosis: a hybrid approach using attention-residual U-Net segmentation with ensemble classification. Franklin Open, v. 14, 100479, 2026. DOI: https://doi.org/10.1016/j.fraope.2025.100479.

HE, K. et al. Deep residual learning for image recognition. In: IEEE CONFERENCE ON COMPUTER VISION AND PATTERN RECOGNITION, 2016, Las Vegas. Proceedings [...]. Piscataway: IEEE, 2016. p. 770-778.

HOLM, S. A simple sequentially rejective multiple test procedure. Scandinavian Journal of Statistics, v. 6, n. 2, p. 65-70, 1979.

KHUTLANG, R. et al. Classification of Mycobacterium tuberculosis in images of ZN-stained sputum smears. IEEE Transactions on Information Technology in Biomedicine, v. 14, n. 4, p. 949-957, 2010. DOI: https://doi.org/10.1109/TITB.2009.2028339.

LIN, E.; WELLGEN MEDICAL. Detecting Mycobacterium tuberculosis Bacilli from TB Smear Images. Version 1. [S. l.]: Mendeley Data, 2024. Dataset. DOI: https://doi.org/10.17632/yhybmfrmgs.1.

LIU, Z. et al. Swin Transformer: hierarchical vision transformer using shifted windows. In: IEEE/CVF INTERNATIONAL CONFERENCE ON COMPUTER VISION, 2021. Proceedings [...]. Piscataway: IEEE, 2021. p. 10012-10022.

LIU, Z. et al. A ConvNet for the 2020s. In: IEEE/CVF CONFERENCE ON COMPUTER VISION AND PATTERN RECOGNITION, 2022, New Orleans. Proceedings [...]. Piscataway: IEEE, 2022. p. 11976-11986.

LOSHCHILOV, I.; HUTTER, F. Decoupled weight decay regularization. In: INTERNATIONAL CONFERENCE ON LEARNING REPRESENTATIONS, 7., 2019, New Orleans. Proceedings [...]. [S. l.]: ICLR, 2019.

LUO, S. et al. A Tubercle Bacilli detection network combining frequency guidance and adaptive multi path fusion. Engineering Applications of Artificial Intelligence, v. 177, 114956, 2026. DOI: https://doi.org/10.1016/j.engappai.2026.114956.

MOTA CARVALHO, T. F. et al. A systematic review and repeatability study on the use of deep learning for classifying and detecting tuberculosis bacilli in microscopic images. Progress in Biophysics and Molecular Biology, v. 180-181, p. 1-18, 2023. DOI: https://doi.org/10.1016/j.pbiomolbio.2023.03.002.

NAGARAJU, Y. et al. BacilliFinder: revolutionizing tuberculosis detection with computer vision. Indian Journal of Tuberculosis, v. 72, suppl. 2, p. S7-S17, 2025. DOI: https://doi.org/10.1016/j.ijtb.2023.12.005.

NIJIATI, M. et al. Deep learning on longitudinal CT scans: automated prediction of treatment outcomes in hospitalized tuberculosis patients. iScience, v. 26, 108326, 2023. DOI: https://doi.org/10.1016/j.isci.2023.108326.

QUINN, J. A. et al. Deep convolutional neural networks for microscopy-based point of care diagnostics. In: MACHINE LEARNING FOR HEALTHCARE CONFERENCE, 1., 2016. Proceedings [...]. [S. l.]: PMLR, 2016. v. 56, p. 271-281.

SANTIAGO-MOZOS, R. et al. An automated screening system for tuberculosis. IEEE Journal of Biomedical and Health Informatics, v. 18, n. 3, p. 855-862, 2014. DOI: https://doi.org/10.1109/JBHI.2013.2282874.

SANTOS, P. R. S. dos et al. KochDet: BiFPN-based deep architecture for tuberculosis diagnosis. Biomedical Signal Processing and Control, v. 91, 106056, 2024. DOI: https://doi.org/10.1016/j.bspc.2024.106056.

SELVARAJU, R. R. et al. Grad-CAM: visual explanations from deep networks via gradient-based localization. In: IEEE INTERNATIONAL CONFERENCE ON COMPUTER VISION, 2017, Venice. Proceedings [...]. Piscataway: IEEE, 2017. p. 618-626. DOI: https://doi.org/10.1109/ICCV.2017.74.

SERRÃO, M. K. M. et al. Automatic bright-field smear microscopy for diagnosis of pulmonary tuberculosis. Computers in Biology and Medicine, v. 172, 108167, 2024. DOI: https://doi.org/10.1016/j.compbiomed.2024.108167.

SHAH, M. I. et al. Ziehl–Neelsen sputum smear microscopy image database: a resource to facilitate automated bacilli detection for tuberculosis diagnosis. Journal of Medical Imaging, v. 4, n. 2, 027503, 2017. DOI: https://doi.org/10.1117/1.JMI.4.2.027503.

SHEN, Y. et al. RandStainNA: learning stain-agnostic features from histology slides by bridging stain augmentation and normalization. In: MEDICAL IMAGE COMPUTING AND COMPUTER ASSISTED INTERVENTION, 25., 2022, Singapore. Proceedings [...]. Cham: Springer, 2022. p. 212-221. (Lecture Notes in Computer Science, v. 13432) DOI: https://doi.org/10.1007/978-3-031-16434-7_21.

TAMURA, G. et al. Machine-learning methods for detecting tuberculosis in Ziehl-Neelsen stained slides: a systematic literature review. Intelligent Systems with Applications, v. 22, 200365, 2024. DOI: https://doi.org/10.1016/j.iswa.2024.200365.

TAN, M.; LE, Q. V. EfficientNet: rethinking model scaling for convolutional neural networks. In: INTERNATIONAL CONFERENCE ON MACHINE LEARNING, 36., 2019, Long Beach. Proceedings [...]. [S. l.]: PMLR, 2019. v. 97, p. 6105-6114.

TAVAZIVA, G. et al. Diagnostic accuracy of a commercially available, deep learning-based chest X-ray interpretation software for detecting culture-confirmed pulmonary tuberculosis. International Journal of Infectious Diseases, v. 122, p. 15-20, 2022. DOI: https://doi.org/10.1016/j.ijid.2022.05.037.

TELLEZ, D. et al. Quantifying the effects of data augmentation and stain color normalization in convolutional neural networks for computational pathology. Medical Image Analysis, v. 58, 101544, 2019. DOI: https://doi.org/10.1016/j.media.2019.101544.

TOBIN, J. et al. Domain randomization for transferring deep neural networks from simulation to the real world. In: IEEE/RSJ INTERNATIONAL CONFERENCE ON INTELLIGENT ROBOTS AND SYSTEMS, 2017, Vancouver. Proceedings [...]. Piscataway: IEEE, 2017. p. 23-30. DOI: https://doi.org/10.1109/IROS.2017.8202133.

TREMBLAY, J. et al. Training deep networks with synthetic data: bridging the reality gap by domain randomization. In: IEEE CONFERENCE ON COMPUTER VISION AND PATTERN RECOGNITION WORKSHOPS, 2018, Salt Lake City. Proceedings [...]. Piscataway: IEEE, 2018. p. 969-977.

VAN CALSTER, B. et al. Calibration: the Achilles heel of predictive analytics. BMC Medicine, v. 17, 230, 2019. DOI: https://doi.org/10.1186/s12916-019-1466-7.

VISUÑA, L. et al. Automated monitoring of Mycobacterium population growth in time-lapse microscopy with deep learning pseudo-supervised algorithm. Engineering Applications of Artificial Intelligence, v. 162, 112503, 2025. DOI: https://doi.org/10.1016/j.engappai.2025.112503.

WANG, Y.; PAN, L.; SHU, X. YOLO-FMS: a lightweight and efficient model for medical microscopic smear detection. IEEE Access, v. 12, p. 125253-125265, 2024. DOI: https://doi.org/10.1109/ACCESS.2024.3455555.

WIGHTMAN, R. PyTorch Image Models. [S. l.]: GitHub, 2019. Software. Available at: https://github.com/huggingface/pytorch-image-models. DOI: https://doi.org/10.5281/zenodo.4414861.

WITARTO, A. B. et al. AI-based analysis of Ziehl-Neelsen-stained sputum smears for Mycobacterium tuberculosis as a screening method for active tuberculosis. Life, v. 14, n. 11, article 1418, 2024. DOI: https://doi.org/10.3390/life14111418.

WORLD HEALTH ORGANIZATION. Global tuberculosis report 2024. Geneva: World Health Organization, 2024. Available at: https://www.who.int/publications/i/item/9789240101531. Accessed on: 23 Jul. 2026.

WORLD HEALTH ORGANIZATION. Global tuberculosis report 2025. Geneva: World Health Organization, 2025. Available at: https://www.who.int/publications/i/item/9789240116924. Accessed on: 23 Jul. 2026.

WORLD HEALTH ORGANIZATION. Tuberculosis. Geneva: World Health Organization, 2026. Available at: https://www.who.int/news-room/fact-sheets/detail/tuberculosis. Accessed on: 23 Jul. 2026.

XU, Y. et al. Towards multi-view sputum smear quality classification. Biomedical Signal Processing and Control, v. 102, 107217, 2025. DOI: https://doi.org/10.1016/j.bspc.2024.107217.

YAN, T. et al. ResGloTBNet: an interpretable deep residual network with global long-range dependency for tuberculosis screening of sputum smear microscopy images. Medical Engineering & Physics, v. 137, 104300, 2025. DOI: https://doi.org/10.1016/j.medengphy.2025.104300.

ZECH, J. R. et al. Variable generalization performance of a deep learning model to detect pneumonia in chest radiographs: a cross-sectional study. PLOS Medicine, v. 15, n. 11, e1002683, 2018. DOI: https://doi.org/10.1371/journal.pmed.1002683.

ZHENG, R.; ZHANG, C.; LIU, Y. Enhanced feature fusion and detail-preserving network for small object detection in medical microscopic images. Digital Signal Processing, v. 174, 105938, 2026. DOI: https://doi.org/10.1016/j.dsp.2026.105938.

ZHONG, Y. et al. Efficient malaria parasite detection from diverse images of thick blood smears for cross-regional model accuracy. IEEE Open Journal of Engineering in Medicine and Biology, v. 4, p. 226-233, 2023. DOI: https://doi.org/10.1109/OJEMB.2023.3328435.

Downloads

Publicado

2026-11-04

Como Citar

Binatti, F. C., Lourenço, T. F. de C., Souza, R. do N., Ferreira, M. D. dos S., & Antunes, R. R. (2026). Mosaicos sintéticos com contexto controlado alteram o ponto de operação sem melhorar a discriminação externa na classificação de baciloscopias paucibacilares. Revista OWL (OWL Journal) - REVISTA INTERDISCIPLINAR DE ENSINO E EDUCAÇÃO, 4(11), 1–38. https://doi.org/10.5281/zenodo.23968001