Skip to content

SSII-Services/cancer-AI

Repository files navigation


Project Screenshot
javascript gemini ai

AI Cancer Care (BeatCancer: AI Assistant to Craft Personalized Cancer Care)

Welcome to the AI Cancer Care project, a revolutionary AI assistant designed to provide personalized cancer care by analyzing patient data, guidelines, and medical records. Our goal is to identify screening gaps and create tailored treatment plans to improve patient outcomes.

📋 Table of Contents

  1. 🤖 Introduction
  2. 🔋 Features
  3. 💖 Inspiration
  4. ⚙️ Setup and Deployment
  5. 🚀 Usage
  6. 🌠 Gemini AI Integration
  7. 🤝 Contributing
  8. 📜 License

🤖 Introduction

AI Cancer Care provides an easy and efficient way to craft personalized cancer care using AI. It interacts with the Gemini AI to analyze and generate detailed treatment plans based on patient data and medical records.

🔋 Features

  • Personalized Treatment Plans: Analyzes patient data, medical records, and guidelines to identify gaps in cancer screening and follow-up care, crafting tailored treatment plans for individual patients.
  • Secure Data Sharing: Shares sensitive data securely using encryption and cryptographic features, protecting patient information while facilitating necessary data access for healthcare providers.

💖 Inspiration

This project was inspired by the urgent need to improve cancer care management. Patients facing cancer often have to navigate a complex system of appointments, treatments, and follow-ups. The goal of this application is to provide a comprehensive and user-friendly platform where cancer patients can easily schedule and manage their treatment plans. By focusing on accessibility and support, this app strives to alleviate some of the burdens that patients and healthcare providers face, ensuring better care coordination and ultimately improving patient outcomes.

⚙️ Setup and Deployment

Prerequisites

  • Node.js and npm installed

Steps

  1. Clone the Repository

    git clone https://github.com/SSII-Services/cancer-AI.git
    cd cancer-AI
  2. Install Dependencies

    npm install
  3. Setup Environment Variables

    Create a .env file in the root directory with the following content:

    VITE_GEMINI_API_KEY='Gemini api key here'
    
  4. Build the Project

    npm run build

🚀 Usage

  1. Upload Reports: Patients or healthcare providers can upload medical reports directly into the system.
  2. View Treatment Plan: The AI assistant generates a detailed treatment plan based on the uploaded data and identified gaps.
  3. Track Progress: Patients can monitor their progress, completed screenings, and upcoming appointments through a user-friendly dashboard.

🌠 Gemini AI Integration

Incorporating Gemini AI into our system provides additional layers of analysis and generative capabilities:

  • Detailed Image Analysis: Gemini AI can process medical images uploaded by patients or healthcare providers, offering advanced diagnostic insights.
  • Advanced Natural Language Processing: Enhances the accuracy of treatment plans and patient data analysis.
  • Scalable AI Infrastructure: Leveraging Gemini AI's robust infrastructure allows for real-time data processing and analysis.

Example of Using Gemini AI:

import { GoogleGenerativeAI } from "@google/generative-ai";

const genAI = new GoogleGenerativeAI(process.env.VITE_GEMINI_API_KEY);

const readFileAsBase64 = (file) => {
  return new Promise((resolve, reject) => {
    const reader = new FileReader();
    reader.onload = () => resolve(reader.result.split(",")[1]);
    reader.onerror = reject;
    reader.readAsDataURL(file);
  });
};

const handleFileUpload = async (file, filetype) => {
  const base64Data = await readFileAsBase64(file);
  const imageParts = [
    {
      inlineData: {
        data: base64Data,
        mimeType: filetype,
      },
    },
  ];

  const model = genAI.getGenerativeModel({ model: "gemini-1.5-pro" });
  const prompt = "Analyze this medical image and provide insights.";

  const result = await model.generateContent([prompt, ...imageParts]);
  const response = await result.response;
  console.log(response.text());
};

🤝 Contributing

Contributions are welcome! Please fork the repository and submit a pull request for any improvements or bug fixes.

📜 License

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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages