Skip to content

Latest commit

Β 

History

History
117 lines (80 loc) Β· 3.15 KB

File metadata and controls

117 lines (80 loc) Β· 3.15 KB

LungRadar πŸ“±πŸ«

AI-powered Lung Cancer Detection from Chest X-ray & CT Scan Images

LungRadar is an Android mobile application designed to assist users in analyzing lung medical images (X-rays and CT scans) using a deep learning model to predict the presence of lung cancer. It offers a simple interface for uploading images, running predictions, and receiving actionable feedback and educational resources.


πŸš€ Features

  • πŸ“· Camera & Gallery Support
    Capture lung images directly or select from your gallery for analysis.

  • 🧠 AI-Powered Classification
    Uses a trained convolutional neural network (CNN) to identify:

    • Normal (No cancer)
    • Adenocarcinoma
    • Large-cell carcinoma
    • Squamous cell carcinoma
  • πŸ“Š Confidence Score
    Displays the model’s confidence level (%) in its prediction.

  • πŸ’‘ Actionable Insights
    Based on results, the app shows:

    • Personalized advice
    • Risk level
    • Recommended actions (e.g., consult a doctor, maintain a healthy lifestyle)
  • πŸ“š Resources Section
    Direct links to external articles on healthy living and lung cancer screening.


πŸ–ΌοΈ Screenshots

Splash Screen Upload Screen Normal Result Cancer Detected
πŸ“± Splash πŸ“ Select Image βœ… No Cancer ⚠️ Cancer Detected

πŸ“¦ How it Works

  1. User uploads an image via camera or gallery.
  2. The app loads the image into a classifier powered by TensorFlow Lite.
  3. The classifier predicts:
    • Whether the image is cancerous or not
    • The type of cancer (if present)
  4. Based on prediction:
    • Redirects to ReviewNormalActivity or ReviewCancerActivity
    • Displays analysis, confidence score, and resources

πŸ“ File Structure (Highlights)

app/ β”œβ”€β”€ ui/ β”‚ β”œβ”€β”€ AnalyseFragment.kt # Core image input + classification β”‚ β”œβ”€β”€ ReviewNormalActivity.kt # Normal result screen β”‚ β”œβ”€β”€ ReviewCancerActivity.kt # Cancer result screen β”œβ”€β”€ classifier/ β”‚ └── LungCancerClassifier.kt # TensorFlow Lite classifier β”œβ”€β”€ res/ β”‚ β”œβ”€β”€ layout/ β”‚ β”œβ”€β”€ drawable/ β”‚ β”œβ”€β”€ values/colors.xml # App-wide color palette β”‚ └── values/strings.xml


βš™οΈ Requirements

  • Android Studio Hedgehog or newer
  • Android Gradle Plugin 8.5+
  • Android 8.0 (API 26) and above

🧠 Model Info

  • Model type: CNN / TensorFlow Lite
  • Input: Chest X-ray or CT scan (PNG, JPEG)
  • Output: Label (normal, adenocarcinoma, large-cell, squamous) + confidence score

πŸ› οΈ Setup & Installation

  1. Clone the repo:

    git clone https://github.com/yourusername/lungradar.git
    cd lungradar
  2. Open in Android Studio

  3. Connect an Android device or emulator

  4. Click Run β–Ά

🌐 External Resources Used

  • TensorFlow Lite

  • Lung Cancer Screening Guidelines

  • American Lung Association

🀝 Contributors Sharon Akinyi – Developer & ML Integrator

OpenAI GPT Support – Design and coding assistance

πŸ“œ License This project is open source and available under the MIT License.

Lung-CancerMachine-Learning-System