Automated Intracranial Aneurysm Detection and Size Extraction from Imaging Reports Using a Dual-Model Transformer Framework
This study demonstrates that a dual-model transformer framework, combining RadDistilBERT for high-accuracy aneurysm presence classification and Llama 3.1 for zero-shot size extraction, effectively processes unstructured neuroimaging reports, with structured preprocessing further enhancing size extraction performance.
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
Hospitals generate a vast ocean of written records every day. Among these, radiology reports stand out as critical maps of the human body, translating complex images from scanners into words that doctors use to make life-or-death decisions. For decades, these reports have been written in free-flowing text, much like a letter to a colleague. One doctor might describe a brain condition with precise measurements and specific medical terms, while another might use a different style or omit certain details. This variability creates a significant problem for researchers and computer systems trying to learn from these records. While a human can read a report and instantly understand the context, a computer often struggles to find specific facts hidden within paragraphs of unstructured text. This barrier has made it difficult to build large, reliable databases of patient data, which are essential for studying diseases and improving care on a broad scale.
In the specific case of intracranial aneurysms—weak, bulging spots on the blood vessels inside the skull—this challenge is particularly acute. These conditions are often silent until they become dangerous, and their management relies heavily on accurate measurements found in imaging reports. If a computer cannot reliably find the size of an aneurysm or even determine if one exists in a report, it cannot help doctors track trends or identify patients who need urgent attention. The goal of recent research has been to teach machines to read these reports as well as a human expert does, turning chaotic text into organized, usable data.
A team of researchers at Northwestern University and Sam Houston State University has taken a significant step toward solving this problem. They developed a new computer system designed to automatically read thousands of neuroimaging reports, determine if an aneurysm is present, and extract the exact size of the bulge if one exists. The team did not rely on a single method to achieve this. Instead, they built a dual-model framework, a system that uses two different types of artificial intelligence working together. The first part of the system acts as a classifier, scanning the text to decide whether a report mentions an aneurysm or not. The second part acts as an extractor, digging into the text to pull out specific numbers and measurements.
To train and test this system, the researchers gathered a massive dataset of 3,183 de-identified imaging reports from a hospital database. These reports covered a wide range of patients and included various types of scans, such as CT angiography and magnetic resonance angiography. A team of expert doctors, including neuroradiologists and neurosurgeons, manually reviewed and labeled every single report. They marked which reports contained aneurysms and recorded the size of the aneurysms in millimeters or centimeters. This human-verified data served as the ground truth, the standard against which the computer's performance was measured.
The researchers tested several different computer models to see which one was best at the classification task. They found that a specialized model called RadDistilBERT performed the best. This model achieved an accuracy of 96.4 percent in correctly identifying whether a report contained an aneurysm. It was also highly reliable, with very little variation in its performance across different test groups. Other models they tested, including some based on older or different architectures, performed significantly worse, with some achieving accuracy rates as low as 31 percent. This result highlighted that a model specifically fine-tuned on radiology text was far superior to generic language models for this specific medical task.
Once the system could reliably identify the presence of an aneurysm, the researchers turned their attention to the more difficult task of extracting the size. For this, they used a large language model, a type of advanced artificial intelligence capable of understanding and generating human-like text. They tested two different ways of asking the computer to find the size. In the first approach, they asked the model to read the entire raw report and simply state the size. In the second approach, they first asked the model to break the report down into a structured summary, organizing the findings into clear categories like "abnormal findings" and "clinical history," and then asked it to find the size within that organized summary.
The results showed that the structured approach made a measurable difference. When the model was given the full, raw report, it correctly identified the aneurysm size about 62 percent of the time. However, when the model first organized the information into a structured format, its accuracy improved to nearly 67 percent. The improvement was even more pronounced when the model only had access to the "impression" section of the report, which is the short summary at the end written by the radiologist. In this scenario, accuracy jumped from roughly 81 percent to 85 percent when the structured breakdown was used. This suggests that helping the computer organize the information before asking it to find specific details makes the process more accurate, even when the input text is limited.
The researchers also tested their system on a small set of 20 reports that the computer had never seen before. In this out-of-the-box test, the system correctly identified the presence of an aneurysm in every single report, achieving 100 percent accuracy. This demonstrated that the system could generalize its knowledge to new data, not just memorize the training examples. However, the study also identified areas where the system still struggles. The main sources of error were not technical failures but rather ambiguities in how the reports were written. Sometimes doctors used overlapping terms that made it hard to distinguish between an aneurysm and other vascular findings, or they mixed up units of measurement. The structured approach helped mitigate some of these issues by isolating the most standardized parts of the report, but it did not eliminate them entirely.
The authors are careful to note that their findings are based on data from a single institution. While the dataset was large and diverse, the way doctors write reports can vary significantly from one hospital to another. This means the system might need further testing and adjustment before it can be used reliably in different healthcare settings. Additionally, the current system is limited to finding whether an aneurysm exists and how big it is. It does not yet determine the exact location of the aneurysm within the brain's complex network of vessels, a task that requires understanding a wide variety of anatomical names and descriptions that are not yet standardized in the reports.
Despite these limitations, the study offers a clear path forward for automating a labor-intensive part of medical research. By combining a specialized classifier with a flexible information extractor, the researchers have shown that it is possible to turn unstructured text into structured data with high accuracy. This dual approach allows the system to leverage the precision of a model trained specifically for radiology while using the adaptability of a large language model to handle the nuances of natural language. The work suggests that in the near future, such systems could help hospitals build comprehensive databases of aneurysm cases, enabling faster research and better patient care without requiring doctors to spend hours manually reviewing every report. The system acts as a powerful tool to support human experts, flagging potential cases and extracting key details so that medical professionals can focus on the complex decisions that require human 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.