WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

A Flask web app that classifies text as AI-generated or human-written, showing confidence scores and feature-based explanations.

License

Notifications You must be signed in to change notification settings

JaweriaAsif745/Human_VS_AI_Essay_Detection

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🧠 Human vs AI Essay Classifier

A Flask-based web app that detects whether an essay is AI-generated or human-written using machine learning and natural language processing (NLP).

🚀 Features

  • 🔍 Classifies essays as Human or AI-generated
  • 📝 Simple and clean web interface built with Flask
  • 📊 Machine Learning model trained on text features
  • ⚡ Fast predictions with scikit-learn & NLP tools

🛠️ Tech Stack

  • Backend: Flask
  • ML Libraries: Scikit-learn, Naive Bayes, NLTK, Textstat
  • Visualization: Matplotlib, Seaborn, WordCloud
  • Data Handling: Pandas, NumPy

🎨 Web Interface 📝 Input Page

Users can paste or type an essay into the text box.

🤖 AI Essay

input

✅ Human Essay

human_text

📊 Output Page

The system shows prediction, confidence scores, and reasoning.

✅ Human Essay Prediction

positive output

🤖 AI Essay Prediction

outpt

📂 Project Structure

Human-vs-AI-Classifier/
│── backend/
│   ├── models/
│   │   ├── naive_bayes.pkl
│   │   └── tfidf.pkl
│   ├── utils/
│   │   └── preprocessing.py
│   └── app.py
│
│── frontend/
│   ├── static/
│   │   ├── images/
│   │   │   └── back-Pic.jpg
│   │   ├── style.css
│   │   └── script.js
│   └── templates/
│       ├── index.html
│       └── result.html
│
│── notebook/
│   └── Human_Vs_AI_Prediction_Model.ipynb
│
│── requirements.txt
└── README.md

⚙️ Installation & Usage

  1. Clone the repository:

    git clone https://github.com/JaweriaAsif745/Human_VS_AI_Essay_Detection.git
    cd Human-vs-AI-Classifier
  2. Install dependencies:

    pip install -r requirements.txt
  3. Run the Flask app:

    python app.py
  4. Open in browser:

    http://127.0.0.1:5000/
    

🎯 Future Improvements

  • ✅ Improve model accuracy with deep learning (Transformers)
  • ✅ Add plagiarism detection
  • ✅ Deploy on cloud (Heroku / Render / AWS)

🤝 Contributing

Pull requests are welcome! If you’d like to improve the project, feel free to fork and submit changes.

📜 License

This project is licensed under the MIT License.


🔥 "Built to explore the thin line between human creativity and artificial intelligence."

About

A Flask web app that classifies text as AI-generated or human-written, showing confidence scores and feature-based explanations.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages