A Flask-based web app that detects whether an essay is AI-generated or human-written using machine learning and natural language processing (NLP).
- 🔍 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
- 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
✅ Human Essay
📊 Output Page
The system shows prediction, confidence scores, and reasoning.
✅ Human Essay Prediction
🤖 AI Essay Prediction
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-
Clone the repository:
git clone https://github.com/JaweriaAsif745/Human_VS_AI_Essay_Detection.git cd Human-vs-AI-Classifier -
Install dependencies:
pip install -r requirements.txt
-
Run the Flask app:
python app.py
-
Open in browser:
http://127.0.0.1:5000/
- ✅ Improve model accuracy with deep learning (Transformers)
- ✅ Add plagiarism detection
- ✅ Deploy on cloud (Heroku / Render / AWS)
Pull requests are welcome! If you’d like to improve the project, feel free to fork and submit changes.
This project is licensed under the MIT License.
🔥 "Built to explore the thin line between human creativity and artificial intelligence."