Skip to content

This project leverages AI chatbots to classify radiology reports using the Arbeitsgemeinschaft Osteosynthesefragen (AO) Fracture and Dislocation Classification Compendium. We compare the performance of generic chatbots, context-aware chatbots, and human readers.

License

Notifications You must be signed in to change notification settings

maxrusse/fracchat

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

AI Chatbots for Identifying AO Codes from Radiology Reports

This project leverages AI chatbots to classify radiology reports using the Arbeitsgemeinschaft Osteosynthesefragen (AO) Fracture and Dislocation Classification Compendium. We compare the performance of generic chatbots, context-aware chatbots, and human readers.

Abstract

Radiologists adeptly describe fracture morphology. However, translating these into the AO classification is challenging. This project evaluates generic chatbots and context-aware chatbots informed by AO's vector-index. Chatbots identify AO codes faster than humans but have varied accuracy. Context-specific knowledge improves chatbot performance, suggesting that refined context is crucial for maximizing ChatGPT's potential.

Using the Jupyter Notebook

  1. Download the notebook file Demo of AO Chatbots.ipynb.
  2. Upload the notebook to Google Colab, JupyterLab, or your preferred Jupyter notebook environment.
  3. Set your OpenAI API key and the folder path containing the AO guidelines in the corresponding cells.
  4. Execute the cells in the notebook to initialize the index, launch the interface, and interact with the AI chatbots.

How It Works

The script utilizes various AI models to generate AO codes from radiology reports:

  • FracChat (using GPT4): Uses GPT-4 to query the AO guidelines index.
  • FracChat (using GPT 3.5-Turbo): Uses GPT-3.5-Turbo to query the AO guidelines index.
  • GPT-3.5-Turbo: Provides a response using the standalone GPT-3.5-Turbo model.
  • GPT-4: Provides a response using the standalone GPT-4 model.

All model responses are aggregated and showcased in the interface.

Setup using the Python Script

  1. Acquire an OpenAI API key from OpenAI and set the OPENAI_API_KEY environment variable in the script:
os.environ["OPENAI_API_KEY"] = 'sk-ENTER_YOUR_API_CODE'
  1. Specify the directory containing the AO guidelines in PDF format:
FOLDER_PATH = "AO"
  1. Execute the script to initiate the index and unveil the interface.

Link to full publication: Performance of ChatGPT, human radiologists, and context-aware ChatGPT in identifying AO codes from radiology reports

About

This project leverages AI chatbots to classify radiology reports using the Arbeitsgemeinschaft Osteosynthesefragen (AO) Fracture and Dislocation Classification Compendium. We compare the performance of generic chatbots, context-aware chatbots, and human readers.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published