HebX is an AI-powered hepatitis prediction system that helps users assess their risk for different types of hepatitis through an intuitive interface. Built with Next.js and Python, it features real-time symptom analysis, bilingual support (English/Somali), and a guided chatbot assessment. The platform serves as a preliminary screening tool, combini
# HepaPredict: Hepatitis Type Prediction System
## Project Overview
HepaPredict is an advanced web-based application designed to predict the likelihood of different types of hepatitis based on patient symptoms and risk factors. The system utilizes machine learning to provide preliminary assessments, helping healthcare providers and patients make informed decisions about further medical evaluation.
## Types of Hepatitis Predicted
The system focuses on predicting two main types of hepatitis:
1. **Hepatitis A**
- Acute viral infection
- Transmitted through contaminated food/water
- Usually self-limiting and resolves within 6 months
2. **Hepatitis C**
- Chronic viral infection
- Transmitted through blood contact
- Can lead to long-term liver complications
## Features and Symptoms Analyzed
### Basic Information
- Age Group Categories:
- Under 18
- 18-30
- 31-45
- 46-60
- Over 60
- Gender (Male/Female/Other)
### Primary Symptoms
1. **Jaundice (Yellowing of skin/eyes)**
- Key indicator for liver dysfunction
- Measured as: Present/Absent
2. **Dark Urine**
- Early sign of liver problems
- Measured as: Present/Absent
3. **Abdominal Pain**
- Severity scale: 0-10
- Location and intensity considered
4. **Fatigue Level**
- Severity scale: 0-10
- Impact on daily activities
5. **Additional Symptoms**
- Fever (Present/Absent)
- Nausea (Present/Absent)
- Joint Pain (Present/Absent)
- Loss of Appetite (Present/Absent)
### Risk Factors
- Recent Travel to High-Risk Areas
- History of Blood Transfusion
- History of Unsafe Injection Practices
- Contact with Infected Person
## Technical Architecture
### Frontend Technology Stack
- **Framework**: Next.js 15.3.1
- **UI Components**: Custom components using Tailwind CSS
- **State Management**: React Hooks
- **Animations**: Framer Motion
- **Form Handling**: Custom form implementation with validation
### Backend Technology Stack
- **Server**: Node.js with Express
- **Machine Learning**: Python with scikit-learn
- **API Integrati …