Automatic Extraction of Structured Information from Brain MRI Reports Using an Open-Weight Large Language Model
This study demonstrates that the open-weight LLM LLaMA 3.1 effectively extracts structured information from Dutch brain MRI reports with high accuracy for categorical variables and lesion mentions, while few-shot prompting significantly improves its performance on numerical data extraction.
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
The Big Picture: Turning a Messy Notebook into a Spreadsheet
Imagine a hospital has a massive library of thousands of brain MRI reports. For years, these reports have been written like free-form diary entries by doctors. They are full of valuable information, but because they are written in unstructured sentences, it is incredibly hard to quickly search them or turn them into a neat spreadsheet for research.
The researchers wanted to see if a smart computer program (an "Open-Weight Large Language Model" called LLaMA 3.1) could act like a super-fast librarian. Their goal was to read these messy, handwritten-style Dutch reports and automatically pull out 30 specific facts—like "Is there a tumor?" or "How many spots are on the brain?"—and organize them into a clean, structured format.
The Challenge: Speaking a Different Language
The reports were written in Dutch, but the computer model was primarily trained on English. It's like asking a translator who knows English perfectly to read a complex legal document in a specific Dutch dialect.
The team tested two approaches:
- Direct Reading: Letting the computer read the Dutch reports as they are.
- Translation First: Translating the Dutch reports into English, letting the computer read them, and then translating the results back.
The Result: The computer did a much better job reading the original Dutch reports. When they tried to translate the reports first, the computer got confused by specific medical terms. For example, there is a Dutch word for a very specific type of tiny, streak-like brain injury ("splinterinfarcten"). When translated to English, it became a generic "small infarct," and the computer lost the specific detail it needed to count them correctly.
The "Cheat Sheet" Strategy (Few-Shot Prompting)
At first, the computer was asked to do this task "cold turkey" (Zero-Shot), meaning it had to figure out the rules on its own. It did okay, but it made mistakes, especially with counting things (like "how many spots are there?").
Then, the researchers tried a new trick called Few-Shot Prompting. Imagine you are teaching a student how to grade a test. Instead of just giving them the rules, you show them three examples of a test that has already been graded correctly, along with the answers. You say, "Look at how we did this one; now do the next one the same way."
The researchers tested different ways to pick these three examples:
- Random: Picking any three examples.
- Fixed: Picking the same three examples every time.
- Structural Similarity: Picking three examples that look and sound most like the current report being read.
The Winner: The Structural Similarity method was the best. By showing the computer examples that were very similar to the report it was currently reading, its accuracy jumped significantly. It was like showing the student a practice test that looked exactly like the real one they were about to take.
How Well Did It Do?
The researchers compared the computer's work against human experts (medical students and radiologists).
- The Good News: For clear, standard ratings (like "Is the brain shrinking?"), the computer was almost as good as the humans. It got about 90–96% of these right.
- The Hard Part: Counting specific numbers (like "exactly how many tiny bleeds are there?") was harder. The computer got about 66% right on its own, but with the "cheat sheet" (few-shot prompting), it improved to 81–92%.
- The "Missing" Confusion: The computer sometimes got confused between "The doctor said there are NO spots" and "The doctor didn't mention spots at all." It struggled to tell the difference between a negative finding and a missing note.
The Bottom Line
This study proves that an open, free-to-use AI model can successfully read complex Dutch medical reports and turn them into organized data without needing to send patient information to a foreign company's server.
- It works best when you let it read the original language (Dutch) rather than translating it.
- It gets smarter when you give it a few similar examples to look at before it starts working.
- It is not perfect yet, especially with tricky counts or very rare conditions, but it is a powerful tool that can help researchers turn thousands of messy reports into useful data much faster than humans could do alone.
The paper concludes that this technology is ready to help organize data for research, provided humans double-check the tricky parts.
Drowning in papers in your field?
Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.