At UCLA's Ozcan Lab, researchers have cracked a vexing problem that has long held back rapid diagnostic testing: how to know when an AI model's answer is actually trustworthy. Their solution, tested on Lyme disease detection, autonomously flags unreliable test results with a sophisticated uncertainty framework, lifting diagnostic sensitivity from 88.2% to 95.7%—a gap that can mean the difference between catching a tick-borne infection and missing it entirely.

The challenge is profound. As computational point-of-care sensors move diagnostics out of centralized laboratories and into clinics, pharmacies, and field settings, they promise speed and accessibility. But machine learning models powering these tests can hallucinate and produce false results with no obvious warning sign to the clinician reading the report. That unreliability has made hospitals and healthcare systems hesitant to adopt these faster, decentralized approaches at scale.

The UCLA team's breakthrough hinges on a technique called Monte Carlo dropout (MCDO). When a patient sample arrives for a Lyme disease test, it's processed not just once by a neural network, but 1,001 times: once by the baseline model, and 1,000 times by variants in which random neurons are temporarily switched off. This cascade of predictions creates a distribution of results that reveals whether the network is confident or uncertain about its diagnosis. From this distribution, the researchers calculate what they call an uncertainty figure of merit—a single reliability score for each test.

The test platform itself is elegantly simple: a paper-based vertical flow assay with 25 multiplexed spots, each coated with proteins that bind to Lyme-specific antibodies. A patient provides just a droplet of serum, and a handheld smartphone-based optical reader captures an image in under 20 minutes. A deep learning algorithm interprets the rich signal pattern and returns a diagnosis. Now, crucially, it also signals whether that diagnosis should be trusted.

Tests with low uncertainty scores are autonomously flagged "Do not use" and removed from clinical decision-making. Tests with high confidence receive a "Trust" label and move forward to treatment. The beauty of this approach, as Prof. Aydogan Ozcan explained, is that it requires no knowledge of the patient's true diagnosis—the framework identifies problems entirely on its own. Because Monte Carlo dropout operates at minimal computational cost with no additional hardware or memory, it fits seamlessly into point-of-care settings where resources and time are precious.

The stakes of this improvement are not academic. Lyme disease, the most common tick-borne illness worldwide, can spiral into serious neurological and physiological complications if missed early. Every percentage point of improved sensitivity translates to infections caught instead of overlooked, to months or years of suffering prevented.

The UCLA team validated their framework using samples from two independent biobanks—the Lyme Disease Biobank and the U.S. Centers for Disease Control and Prevention—proving the approach works across different collection sites and time periods. Remarkably, while sensitivity jumped from 88.2% to 95.7%, the test maintained 100% specificity, meaning no false positives crept in.

What makes this work particularly exciting is its portability. The uncertainty quantification pipeline isn't locked to Lyme disease. Dr. Artem Goncharov, first author of the study, notes that the framework can integrate with any rapid diagnostic test relying on neural network inference—for cardiovascular conditions, other infectious diseases, or any clinical biomarker panel. As computational diagnostics continue their march toward point-of-care settings globally, this method offers a way to bring not just speed and accessibility, but reliability and trust alongside them.