VozConsultAI: A Provider-Agnostic Architecture and a Clinically Grounded Evaluation of Open-Weight Large Language Models for SOAP Note Extraction in Brazilian Portuguese Telehealth
This paper introduces VozConsultAI, a provider-agnostic microservice architecture for automated SOAP note generation in Brazilian Portuguese telehealth, and presents the first comparative benchmark of open-weight large language models using a novel, clinically grounded evaluation metric that prioritizes safety and penalizes hallucinations.
Original paper licensed under CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer
Imagine a busy doctor in Brazil trying to help a patient over a video call. While they are listening and talking, they are also frantically trying to type up a medical report. This report, called a SOAP note, is like a standardized recipe for medical records: it needs to list what the patient said (Subjective), what the doctor observed (Objective), what the doctor thinks is wrong (Assessment), and what the plan is (Plan).
In Brazil's massive public health system, this paperwork is a huge burden, leading to burnout. Most existing tools that automate this are like "black boxes" from the US: they only speak English, cost a fortune per visit, and send sensitive patient data to foreign clouds, which breaks Brazilian privacy laws.
VozConsultAI is a new project designed to fix this. Think of it as a smart, flexible, and local "digital scribe" built specifically for Brazil. Here is how it works, broken down into simple parts:
1. The "Universal Translator" Architecture
Imagine a busy restaurant kitchen. Usually, you have to order from a specific chef (a specific AI company). If that chef is busy or the menu changes, you're stuck.
VozConsultAI builds a smart ordering system (called a "Broker") that sits between the doctor and the kitchen.
- Provider-Agnostic: The doctor doesn't need to know which chef is cooking. The system can route the order to a cloud chef, a local kitchen chef, or a free open-source chef, depending on what's available and what the rules say.
- Reliability: If a chef drops a plate (crashes), the system notices, picks up the order, and gives it to another chef without the customer (the doctor) ever knowing there was a problem.
- Privacy First: Because Brazilian law (LGPD) says patient data must stay within the country's control, this system can run entirely on the hospital's own servers using "open-weight" models (AI brains whose code is free to download and run locally), ensuring no data leaves the building.
2. The "Strict Judge" (Evaluation)
The biggest danger with AI doctors is hallucination—where the AI makes up facts that sound plausible but never happened (e.g., inventing a symptom the patient never mentioned).
The authors didn't just ask, "Did the AI write a good sentence?" They created a three-part safety test:
- Correctness: Did it put the right facts in the right section? (e.g., Did it put the diagnosis in the "Assessment" section and not the "Plan"?)
- Coverage: Did it miss anything important? (e.g., Did it forget to mention the patient's allergy?)
- Grounding (The Safety Net): This is the most important part. For every fact the AI writes, it must point to the exact spot in the conversation where the doctor or patient said it. If the AI invents a fact, it gets a failing grade.
They combined these into a single score called the Clinical Documentation Quality Index (CDQI), which heavily penalizes making things up.
3. The "Taste Test" (The Results)
The team tested five different open-source AI models (the "chefs") using 30 fake but realistic Brazilian medical conversations. They wanted to see which model could write the best SOAP notes without hallucinating.
- The Winner: DeepSeek V3.2 came out on top. It achieved the highest overall safety score (0.87) and was the best at sticking to the facts (0.96 grounding score).
- The Runner-Up: Llama 3.3 was very close in quality but required less computing power.
- The Surprise: Bigger isn't always better. While the biggest model won, a slightly smaller model (Llama) performed almost as well, proving that how the model is trained matters more than just its size.
- The Weak Spot: All models struggled most with the Assessment and Plan sections. This makes sense because these parts require the AI to infer or guess the next steps, which is where it's most likely to make things up. The paper notes that these sections will always need a human doctor to double-check them.
The Bottom Line
VozConsultAI proves that Brazil doesn't need to rely on expensive, foreign, English-only AI tools to automate medical paperwork. They can build their own system that:
- Respects local privacy laws by running on local servers.
- Switches between different AI engines easily.
- Uses a strict "safety-first" scoring system to ensure the AI doesn't invent medical facts.
The paper concludes that while these open AI models are now good enough to be useful, the "Assessment" and "Plan" parts of the notes still need a human doctor to review them before they are finalized. The goal is to reduce the doctor's typing burden, not to replace their judgment.
Drowning in papers in your field?
Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.