Skip to content

MedSummarize AI Medical research assistant that extracts and simplifies complex articles for doctors and patients. πŸ” Features: Dual-mode summaries (expert/patient) Medical term & relationship extraction PubMed-optimized processing Interactive Q&A For: Researchers, doctors.

License

Notifications You must be signed in to change notification settings

hari7261/MedSummarize-AI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

1 Commit
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

MedSummarize AI

MedSummarize AI is a powerful tool that extracts insights from medical research articles, making complex medical information accessible to both healthcare professionals and patients.

πŸ₯ Features

  • Dual-Mode Summaries: Generate summaries tailored for either medical professionals or patients
  • Medical Entity Extraction: Automatically identify conditions, treatments, and biomarkers
  • Interactive Q&A: Ask questions about the article content
  • PubMed Integration: Special handling for PubMed articles
  • Medical Terminology Processing: Identifies and explains complex medical terms

πŸ“‹ Requirements

  • Python 3.8+
  • Streamlit
  • Spacy (with en_core_web_md model)
  • Google Generative AI API
  • Other dependencies listed in requirements.txt

πŸš€ Installation

  1. Clone this repository:

    git clone https://github.com/yourusername/MedSummarize-AI.git
    cd MedSummarize-AI
    
  2. Install dependencies:

    pip install -r requirements.txt
    
  3. Download the required Spacy model:

    python -m spacy download en_core_web_md
    
  4. Create a .env file in the project root with your Google Gemini API key:

    GEMINI_API_KEY=your_api_key_here
    

πŸ’» Usage

  1. Run the Streamlit app:

    streamlit run app.py
    
  2. Open your browser and navigate to the provided URL (typically http://localhost:8501)

  3. Paste a PubMed or medical article URL in the input field

  4. Select your preferred view mode (Patient or Doctor)

  5. Explore the generated summary, medical entity analysis, and ask questions about the article

🧩 Project Structure

MedSummarize-AI/
β”œβ”€β”€ app.py                  # Main Streamlit application
β”œβ”€β”€ requirements.txt        # Project dependencies
β”œβ”€β”€ .env                    # Environment variables (API keys)
β”œβ”€β”€ LICENSE                 # MIT License
β”œβ”€β”€ README.md               # Project documentation
└── utils/                  # Utility modules
    β”œβ”€β”€ loader.py           # Article extraction functionality
    β”œβ”€β”€ medical_nlp.py      # Medical text analysis
    └── summarizer.py       # Summary generation with Gemini AI

πŸ”¬ How It Works

  1. Content Extraction: The app extracts text content from medical articles using Goose3 and BeautifulSoup
  2. Medical Analysis: Spacy and rule-based NLP techniques identify medical entities and relationships
  3. Summary Generation: Google's Gemini AI generates audience-appropriate summaries
  4. Interactive UI: Streamlit provides an intuitive interface for exploring the results

πŸ“ License

This project is licensed under the MIT License - see the LICENSE file for details.

🀝 Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

πŸ“§ Contact

For questions or feedback, please open an issue on this repository.


Disclaimer: This tool is for informational purposes only and should not replace professional medical advice.

About

MedSummarize AI Medical research assistant that extracts and simplifies complex articles for doctors and patients. πŸ” Features: Dual-mode summaries (expert/patient) Medical term & relationship extraction PubMed-optimized processing Interactive Q&A For: Researchers, doctors.

Topics

Resources

License

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages