AI Reads Chest CTs to Separate Fungal Infection From TB

Claude
|

A hospital in southern China has published a deep-learning model that looks at a routine chest CT and tries to answer a question that has long troubled clinicians treating people with advanced HIV: is this lung infection tuberculosis, or is it a fungal infection that only looks like it? The work comes from The Fourth People's Hospital of Nanning in Guangxi and appeared in Frontiers in Cellular and Infection Microbiology in October 2026. It is a careful, modest, single-center study, and that is exactly why it is worth reading closely.

What Happened

The paper, titled "Differential diagnosis of pulmonary Talaromyces marneffei infection and pulmonary tuberculosis in HIV/AIDS patients using a CT-based multimodal 2.5D deep learning approach," reports on 380 patients with HIV/AIDS and lung infections who were admitted to the hospital between January 2018 and August 2025. Of those, 203 had confirmed pulmonary tuberculosis and 177 had a confirmed T. marneffei infection, so every label in the dataset rests on a proven diagnosis rather than a guess. The patients were split at the patient level into 266 for training and 114 for a locked test set, which is the right way to avoid leaking one person's scans across both groups. (Frontiers)

Axial CT slice of the chest in a lung window, showing both lungs
Axial chest CT, lung window (file photo, not from the study). Ptrump16 / Wikimedia Commons / CC BY-SA 4.0

The team did not rely on one technique. They built three separate models and then fused them. The clinical model used patient variables and a random forest, and reached a test AUC of 0.856. The radiomics model extracted hand-defined image features from the lesion and used XGBoost, reaching 0.866. The deep learning model ran a ResNet18 over seven axial slices around the largest cross-section of the lesion, a "2.5D" approach that gives the network some three-dimensional context without the cost of a full 3D model, and aggregated the slice predictions with multi-instance learning and a support vector machine, reaching 0.885. The combined model, which concatenated all three feature sets, reached an AUC of 0.931 with a specificity of 0.981 and a sensitivity of 0.717.

A 64-slice CT scanner in a hospital scanning room
A 64-slice CT scanner, the class of machine used for the study's scans (file photo, not the Nanning scanner). Robin Stott / Wikimedia Commons / CC BY-SA 2.0

Two details deserve emphasis. First, the combined model was significantly better than the clinical model (P = 0.020) and the radiomics model (P = 0.008), but its edge over the deep learning model alone was not statistically significant (P = 0.116). In other words, the image network did most of the heavy lifting. Second, all scans came from non-contrast chest CT on a single 64-slice scanner, with two radiologists manually outlining each lesion. That consistency helps the science and limits the claim, because a model tuned to one scanner and one team's habits may not travel. A summary of the paper was also covered by Bioengineer.org on October 24.

Why It Matters

Tuberculosis is the better-known half of this problem. The World Health Organization estimates that 10.7 million people fell ill with TB in 2024 and 1.23 million died, and it describes TB as the leading cause of death among people living with HIV, who are about 12 times more likely to develop the disease than people without HIV. In a clinic that sees many such patients, a patient with fever, cough and a shadow on the lung is reasonably assumed to have TB until proven otherwise. (WHO)

Chest radiograph showing miliary tuberculosis with fine nodules across both lungs
Chest radiograph of miliary tuberculosis (file photo, not from the study). Herreros et al. / Wikimedia Commons / CC BY 4.0

The trouble is that Talaromyces marneffei can wear the same mask. The fungus lives in soil and decaying organic matter, is endemic in Southeast Asia including southern China and eastern India, and mostly harms people with weakened immune systems. It can resemble tuberculosis and histoplasmosis, there is no accurate rapid blood test, diagnosis usually depends on microscopy or culture, and cultures are often negative or arrive late. Untreated, more than 75 percent of cases are fatal; with treatment, fewer than 25 percent of patients die. The treatments are also different: amphotericin B followed by itraconazole or voriconazole for the fungus, a standard antituberculosis regimen for TB. A wrong early guess therefore costs days that a patient with advanced HIV may not have. (Wikipedia)

Surface of a Penicillium marneffei fungal colony on a culture plate
The surface of a Penicillium marneffei (now Talaromyces marneffei) colony (file photo, not from the study). James Gathany, CDC / Wikimedia Commons / public domain

That is the gap this study aims at. A CT scan is usually already taken for these patients, so a tool that reads it and flags the likelier cause adds no new test, no new needle and no new waiting time, at least in principle. The high specificity of 0.981 is the headline number, because it means that when the model calls the case fungal, it is rarely wrong. The ordinary use case is to prompt a clinician to order the fungal work-up earlier rather than to replace the culture.

Reaction

As of this writing, we found no independent commentary from infectious disease specialists or radiology societies on this particular paper, which is normal for a study published only days ago. What we do have is the authors' own framing, and it is notably restrained. They describe the work as a single-center, retrospective study with internal validation only, and they say plainly that generalizability to other regions, populations and CT protocols is unproven.

A radiologist viewing computed tomography images on a monitor
A radiologist reviewing CT images (file photo, not from the study). Wikimedia Commons / public domain

The listed limitations are the kind a reviewer would raise. The test set is small at 114 patients, and only 25 of them were women, so the sex subgroup analysis is underpowered. Patients with coinfections or other opportunistic lung infections were excluded, which matters because advanced HIV frequently produces exactly those mixed pictures. Lesions were outlined by hand, which is slow and depends on the observer. And the study measures discrimination, not outcomes: nothing here shows that using the model shortens time to diagnosis or helps patients survive. The authors also note that the model's high specificity should be read alongside its sensitivity of 0.717. They treat tuberculosis as the positive class, so that figure describes how many tuberculosis cases the model recognized, and secondary coverage has described the trade-off in different ways, so readers should check the paper's tables. The text also contains small inconsistencies, such as differing descriptions of slice thickness, which a corrigendum or a peer follow-up could clear up.

What's Next

The obvious next step is external validation: running the frozen model on scans from other hospitals, other scanner vendors and other provinces, ideally in a prospective design where the model's output is recorded before the diagnosis is known. Beyond that, the authors' own list points to three engineering tasks. One is replacing manual lesion outlining with automatic segmentation so that a scan can go in and a probability can come out without a radiologist drawing contours. Another is widening the cohort to include mixed infections. The third is testing whether the tool changes behavior, for example by measuring how many days earlier antifungal therapy begins when clinicians see the model's output.

Skyline of Nanning, Guangxi, seen from Longxiang Tower
Nanning, the Guangxi capital where the study hospital is located (file photo). EditQ / Wikimedia Commons / CC BY-SA 4.0

Guangxi is a sensible place to start, since talaromycosis is endemic in the region and clinicians there see it often enough to build a labeled dataset of 177 confirmed cases. The harder question is whether a model that works where the disease is common will be useful where it is rare, since in a low-prevalence setting even a very specific tool produces mostly false alarms. Any rollout will also need to be paired with an antigen or culture test, not set against it.

Closing Thoughts

Much of the public conversation about medical AI is about dramatic firsts. This paper is more useful as a picture of the ordinary, unglamorous kind of progress: take an image that already exists, pick a diagnostic confusion that costs lives, build a model on carefully confirmed cases, report the weak spots in plain language, and leave the hard part, proof that it helps patients, for the next study.

Coronal CT reconstruction of the thorax showing both lungs and the airways
Coronal low-dose CT reconstruction of the thorax (file photo, not from the study). Ptrump16 / Wikimedia Commons / CC BY-SA 4.0

The sensitivity figure is a good reminder of how to read such work. A model can be very sure when it speaks and still stay silent too often, and which of those matters more depends on who is standing at the bedside and what test comes next. If the Nanning team or others can show the same behavior on outside scans, a CT that is already in the chart could become an early, cheap nudge toward the right test. Until then, it is a promising result from one hospital, honestly reported.

한글 요약

중국 광시성 난닝 제4인민병원 연구팀이 HIV/AIDS 환자의 폐 감염이 결핵인지 곰팡이(탈라로마이세스 마르네페이) 감염인지 흉부 CT만으로 구분하는 딥러닝 모델을 발표했습니다. 2018년 1월부터 2025년 8월까지 입원한 환자 380명(결핵 203명, 곰팡이 감염 177명)을 대상으로 했고, 임상·라디오믹스·2.5D 딥러닝 모델을 합친 통합 모델은 시험 집단에서 AUC 0.931, 특이도 0.981, 민감도 0.717을 기록했습니다.

두 질환은 영상과 증상이 비슷하지만 치료제가 달라서, 초기에 잘못 짚으면 진단이 늦어질 수 있습니다. 이미 촬영된 CT를 활용하므로 추가 검사 없이 곰팡이 검사를 더 일찍 권하는 신호로 쓸 수 있다는 점이 의미입니다. 다만 단일 병원 후향 연구이고 내부 검증만 거쳤으며, 시험 집단이 114명으로 작고 병변을 수작업으로 그려야 한다는 한계가 있습니다.

다음 과제는 다른 병원과 장비에서의 외부 검증, 자동 병변 분할, 혼합 감염 환자 포함, 그리고 실제로 진단 시간이 단축되는지 확인하는 전향 연구입니다. 현재로서는 배양이나 항원 검사를 대체하는 도구가 아니라 가능성을 보여 준 초기 결과로 읽는 것이 적절합니다. 참고: Frontiers in Cellular and Infection Microbiology 논문, WHO 결핵 팩트시트.