A comprehensive full-stack web application for generating synthetic medical data, managing patient information, and conducting medical literature reviews. This platform combines advanced AI models with intuitive user interfaces to support medical research and AI development.
- 25+ Medical Data Types: Generate synthetic data for patient demographics, medications, lab results, vital signs, care plans, and more
- Quality Validation: Built-in data quality assessment using Synthetic Data Vault (SDV)
- Customizable Parameters: Adjust data generation parameters to meet specific research needs
- Batch Processing: Generate large datasets efficiently
- X-Ray Images: AI-generated chest X-ray images using GAN models
- MRI Scans: AI-generated brain MRI images
- Batch Download: Generate and download multiple images as ZIP files
- High Quality: Realistic medical images suitable for research and training
- PubMed Integration: Search and access medical literature
- AI Summarization: Automatic paper summarization using BART models
- Research Management: Organize and review medical papers
- Citation Support: Easy access to research citations
- Firebase Authentication: Secure user registration and login
- Protected Routes: Role-based access control
- Session Management: Persistent user sessions
- Data Privacy: Secure handling of sensitive medical data
frontend/
βββ src/
β βββ Auth/ # User authentication components
β βββ DataGeneration/ # Synthetic data generation modules
β β βββ PatientInfo/ # Patient demographics
β β βββ DiaAndCond/ # Diagnosis and conditions
β β βββ MediAndTreat/ # Medications and treatments
β β βββ CareAndNurse/ # Care plans and nursing data
β β βββ VitalAndObv/ # Vital signs and observations
β β βββ InAndOut/ # Intake/output data
β β βββ DataValidation/ # Data quality validation
β βββ XRayData/ # X-ray image generation
β βββ MRIData/ # MRI image generation
β βββ LiteratureReview/ # Academic paper search
β βββ components/ # Shared UI components
βββ public/ # Static assets
backend/
βββ app.py # Main Flask application
βββ search.py # Search functionality
βββ brain_mri_generator.h5 # Pre-trained MRI generator
βββ chest_xray_generator.h5 # Pre-trained X-ray generator
βββ trained_synthesizers/ # 25+ data synthesizers
βββ eicu-demo/ # Sample medical dataset (32 data types)
- Node.js (v16 or higher)
- Python (v3.8 or higher)
- Git
- Clone the repository
git clone https://github.com/uselessbruh/geng.git
cd geng- Download Large Files (Models and Datasets)
Option A: Automatic Setup (Recommended)
Run the setup script to automatically download all required files:
Linux/Mac:
chmod +x setup-models.sh
./setup-models.shWindows:
setup-models.batOption B: Manual Download
-
Go to the Releases page
-
Download the latest release files:
brain_mri_generator.h5(264MB)chest_xray_generator.h5(264MB)trained_synthesizers.zip(7MB)eicu-demo.zip(49MB)
-
Place the
.h5files in thebackend/directory -
Extract
trained_synthesizers.ziptobackend/trained_synthesizers/ -
Extract
eicu-demo.ziptobackend/eicu-demo/ -
Backend Setup
cd backend
pip install -r requirements.txt- Frontend Setup
cd frontend
npm install- Start the Backend Server
cd backend
python app.pyThe backend will run on http://localhost:6002
- Start the Frontend Development Server
cd frontend
npm startThe frontend will run on http://localhost:3000
If you see errors about missing .h5 files or synthesizers:
-
Verify files are downloaded: Check that these directories exist:
backend/brain_mri_generator.h5backend/chest_xray_generator.h5backend/trained_synthesizers/(with 33 .pkl files)backend/eicu-demo/(with CSV data files)
-
Re-run setup script: If files are missing, run the setup script again:
./setup-models.sh # Linux/Mac setup-models.bat # Windows
-
Manual download: If the script fails, download manually from Releases
If downloads fail due to network issues:
- Check your internet connection
- Try running the setup script again (it will resume downloads)
- Use a VPN if you're behind a restrictive firewall
- Download manually from the GitHub web interface
On Linux/Mac, if you get permission errors:
chmod +x setup-models.sh
sudo ./setup-models.sh # Only if neededPOST /generate- Generate synthetic medical dataGET /tables- List available data typesPOST /evaluate- Evaluate data quality
GET /xray_generate?count=N- Generate N X-ray imagesGET /mri_generate?count=N- Generate N MRI images
POST /search- Search PubMed literaturePOST /summarize- Summarize research papers
- React 19 - Modern UI framework
- React Router DOM - Client-side routing
- Firebase - Authentication and hosting
- Chart.js & Recharts - Data visualization
- Axios - HTTP client
- Flask - Python web framework
- TensorFlow/Keras - Deep learning models
- SDV (Synthetic Data Vault) - Data generation and validation
- Transformers - NLP models for summarization
- Pandas & NumPy - Data manipulation
- Flask-CORS - Cross-origin resource sharing
- GAN Models - For medical image generation
- BART - For text summarization
- Custom Synthesizers - For medical data generation
The platform supports generation of 25+ medical data types including:
- Patient Information: Demographics, admission data
- Clinical Data: Diagnoses, conditions, allergies
- Medications: Drug administration, infusion data
- Laboratory: Lab results, microbiology data
- Vital Signs: Periodic and aperiodic measurements
- Care Plans: General care, infectious disease protocols
- Nursing Data: Assessments, care notes, charting
- Procedures: Physical exams, respiratory care
- Treatment: Medical treatments and interventions
- Generate synthetic datasets for research studies
- Protect patient privacy while maintaining data utility
- Create control datasets for comparative studies
- Train machine learning models with synthetic data
- Augment existing datasets
- Test model robustness with diverse synthetic samples
- Develop and test healthcare analytics tools
- Prototype new medical applications
- Conduct data quality assessments
- Create realistic datasets for medical education
- Train healthcare professionals with synthetic cases
- Develop medical simulation scenarios
The platform includes comprehensive data quality assessment tools:
- Statistical Similarity: Compare distributions between real and synthetic data
- Privacy Metrics: Ensure synthetic data doesn't leak sensitive information
- Utility Metrics: Validate that synthetic data maintains analytical utility
- Diagnostic Reports: Automated quality assessment reports
- Data Anonymization: All generated data is synthetic and non-identifiable
- Secure Authentication: Firebase-based user management
- Privacy-First Design: No real patient data is stored or transmitted
- Compliance Ready: Designed with HIPAA considerations in mind
- Fork the repository
- Create a feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'Add amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
This project is licensed under the MIT License - see the LICENSE file for details.
For support, questions, or feature requests, please create an issue in the repository or contact the development team.
- eICU Collaborative Research Database - For providing the demo dataset
- Synthetic Data Vault - For data generation and validation tools
- Hugging Face Transformers - For NLP model integration
- Firebase - For authentication and hosting services
Note: This platform generates synthetic medical data for research and development purposes. It should not be used for actual patient care or clinical decision-making.