← Latest papers
💬 NLP

Automating Clinical Information Retrieval from Finnish Electronic Health Records Using Large Language Models

This paper demonstrates that locally deployable, open-source large language models can accurately and efficiently retrieve patient-specific information from Finnish electronic health records using natural language queries, achieving high accuracy and consistency while highlighting the necessity for human oversight to mitigate clinically significant errors.

Original authors: Mikko Saukkoriipi, Nicole Hernandez, Jaakko Sahlsten, Kimmo Kaski, Otso Arponen

Published 2026-03-30
📖 5 min read🧠 Deep dive

Original authors: Mikko Saukkoriipi, Nicole Hernandez, Jaakko Sahlsten, Kimmo Kaski, Otso Arponen

Original paper licensed under CC BY 4.0 (http://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 doctor's office as a massive, chaotic library. Inside this library, every patient has a "life story" written in thousands of pages of notes, lab reports, and scan results. These notes are written in a mix of languages (mostly Finnish, with some medical Latin and English), and they span decades.

When a doctor needs to answer a simple question like, "When was this patient's breast cancer first found?", they usually have to act like a detective, manually flipping through hundreds of pages, searching for a needle in a haystack. It's slow, tiring, and easy to miss a crucial detail.

This paper is about building a super-smart, privacy-focused robot librarian to help with this task.

Here is the breakdown of their experiment in simple terms:

1. The Problem: The "Needle in a Haystack"

Doctors are drowning in data. Electronic Health Records (EHRs) are huge. Finding a specific fact (like a diagnosis date) is like trying to find a specific sentence in a book that is 500 pages long, written in a foreign language, and buried inside a stack of 20 other books. Doing this manually is slow and prone to human error.

2. The Solution: The "Local Brain"

The researchers built a system using Large Language Models (LLMs). Think of these models as super-intelligent brains that have read the entire internet and can understand human language.

  • The Twist: Usually, these AI brains live in the "cloud" (on big servers far away). But for medical records, you can't send private patient data to the cloud. It's a privacy nightmare.
  • The Fix: They tested running these AI brains locally on the hospital's own computers. This means the patient's data never leaves the building. It stays in the "house."

3. The Test: The "Exam"

They took the medical records of 183 breast cancer patients and created a test. They asked the AI 1,664 specific questions, such as:

  • "What year was the cancer first detected?"
  • "Was the tumor on the left or right side?"
  • "Did the patient get chemotherapy before surgery?"

They tested different "sizes" of AI brains, ranging from small (4 billion parameters) to massive (70 billion parameters).

4. The Results: The "Star Students"

The results were surprisingly good!

  • The Big Brains Win (Mostly): The largest AI models (like Llama-3.1-70B) got about 95% accuracy. They were like top-tier students who could read the whole book and instantly find the answer.
  • The Underdog: A medium-sized model (Qwen3-30B) performed just as well as the giants but was much lighter and faster. It's like a compact sports car that goes just as fast as a massive truck but uses less fuel.
  • The "Specialized" Trap: They tried models that were specifically trained on medical texts or the Finnish language. Surprisingly, these didn't do much better than the general-purpose models. It turns out, a general smart brain can learn the medical jargon just fine if you give it the whole book to read.

5. The Catch: "Hallucinations" and "Confidence"

Even the best students make mistakes.

  • The 5% Error: About 5% of the time, the AI got it wrong. In a medical setting, even a small error can be dangerous. The researchers found that about 3% of the errors were "clinically significant" (meaning they could actually hurt a patient's treatment plan).
  • The Confidence Trap: Sometimes, the AI would say an answer with 100% confidence, even if it was wrong. This is like a student who is absolutely sure they spelled a word right, but they actually spelled it wrong. The researchers found that the AI's "confidence meter" isn't always trustworthy.
  • The "Wording" Issue: If you asked the same question in two slightly different ways (e.g., "When was cancer found?" vs. "What year did the cancer appear?"), the AI sometimes gave two different answers. This is a bit like a human getting confused by how a question is phrased.

6. The "Quantization" Trick: Shrinking the Elephant

Big AI models are heavy; they require massive computer memory (like trying to fit an elephant in a sedan).

  • The researchers tried quantization, which is like compressing a high-resolution photo into a smaller file.
  • They found they could shrink the models down to 4-bit precision (making them much smaller and faster) without losing much accuracy. This is like taking a giant elephant and fitting it into a compact car without breaking the car. This makes it possible to run these powerful tools on standard hospital computers.

The Bottom Line

This paper proves that we can build a secure, local AI assistant that helps doctors find critical information in patient records quickly and accurately.

However, it's not ready to replace the doctor yet.
Think of this AI as a super-fast research assistant. It can scan the library in seconds and hand the doctor a draft answer. But the doctor must still read that draft, check the facts, and make the final decision. The AI is a powerful tool to reduce the doctor's workload, but it needs human oversight to ensure patient safety.

In short: We have a robot librarian that is incredibly fast and smart, but we still need a human librarian to double-check its work before we hand the book to the patient.

Drowning in papers in your field?

Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.

Try Digest →