AI Content Detector — Django + Machine Learning Final Year Project with Source Code

AI Content Detector — Django + Machine Learning Final Year Project with Source Code

Paste any essay and find out if a human or an AI wrote it. Django + scikit-learn, sentence-level highlighting, PDF reports, REST API. Full source code included.

Technology Used

Django | Python | scikit-learn | Django REST Framework | SQLite3 | Tailwind CSS | Chart.js

codeAj
codeAjVerified
🏆5K+ Projects Sold
Google Review
5991999

Get complete project source code + Installation guide + chat support

Project Files

Get Project Files

What This Project Actually Does

You paste some text into a box, or upload a .txt, .docx, or .pdf file, and the app tells you how likely it is that an AI wrote it. Not a vague "maybe" — you get a percentage, a verdict, and then the app goes sentence by sentence and highlights which specific lines look machine-written.

Behind that is a trained scikit-learn model. TF-IDF features plus stylometric signals (sentence length variance, punctuation patterns, vocabulary richness) fed into a calibrated Linear SVM. The model is already trained and bundled as three files, so you don't have to sit through hours of training on your laptop before the demo.

And the whole thing is one Django project. No separate Flask service, no Streamlit sidecar, no "run these two servers at once" nonsense that breaks in the lab five minutes before your viva.

Key Features

  • Paste text or upload a document, get an AI-probability verdict in a couple of seconds
  • Sentence-level highlighting — the suspicious lines get colour-coded so your examiner can see exactly what the model flagged
  • Batch mode: drop in ten essays at once, download all results as a CSV
  • Downloadable PDF report per scan, themed to match the app, ready to paste into your documentation
  • Compare page that puts two texts side by side and shows stylometry differences
  • Dashboard with Chart.js — scan volume over time, verdict mix, confidence trends
  • REST API under /api/v1/ with X-API-Key authentication and per-key daily rate limits (hit the limit, you get a clean 429)
  • A dark "Forensic Scan" UI built with Tailwind via CDN, so no npm build step to explain
  • python manage.py seed_demo_data drops in 40 sample scans and a working demo API key — your dashboard looks alive from minute one

Real-World Applications

Colleges checking whether an assignment was written by ChatGPT. Content agencies verifying what freelance writers actually delivered. Editorial teams screening guest posts before publishing. Recruiters looking at cover letters that all sound suspiciously identical.

If you've already looked at a plagiarism checker project, this is the natural companion — plagiarism detection catches copied text, this catches generated text. Different problem, same academic-integrity shelf.

Who Should Buy This

If you're a BCA or MCA student in your final semester, your synopsis is already submitted with "machine learning" written on it, and you need something that actually runs — this is for you. It also works well for BTech CSE majors because there's enough depth here to survive a proper viva: feature engineering, model calibration, threshold tuning, API design, rate limiting, deployment.

Honestly, one thing is genuinely tricky. The model artifacts (tfidf_vectorizer.pkl, classifier.pkl, metadata.json) have to sit in exactly the right folder — detector/ml/artifacts/ — or the app throws an error on the first scan and you panic. That's it. That's the hard part. Run python manage.py check_model and it tells you straight away if the files loaded.

What's easier than it looks: the ML side. You're not training anything. The predictor loads the model once, caches it in memory, and everything after that is a normal Django view. If you can build a Django form, you can run this.

Why CodeAj

You get the complete source code — every view, every migration, every template, the test suite, the Gunicorn config, the systemd unit, the nginx file. A college-format project report comes with it, and if setup goes sideways we'll get on a call and fix it on your machine instead of sending you a link to Stack Overflow. Plenty of students end up browsing our Django projects with source code collection and our AI and ML final year projects hub before landing here, so if this one isn't quite the fit, there's more.

One more thing worth knowing before your viva. The bundled model reports around 99.98% accuracy on its held-out test split, and that number is real — but it's in-domain. Feed it a genre it never saw, or heavily human-edited AI text, and accuracy drops. Say that out loud in your presentation. Examiners love a student who knows the limits of their own model.

Frequently Asked Questions

You will get the complete source code along with an installation guide and chat support to help you set up and understand the project.
All our projects are thoroughly tested multiple times, so the code is completely error-free. But in case you still face any issue, you can reach out to us on WhatsApp (+91 8603862290) and we will fix it and provide you the updated code.
You can book a 1-on-1 Setup & Explanation Session where we connect via AnyDesk and Google Meet, set up the project on your laptop, and explain the complete code working and flow.
No, you cannot re-sell the project. This is completely illegal and a violation of our terms. If we find any such activity, we will take legal action.
No. The model is already trained and comes as three files you drop into detector/ml/artifacts/. Your laptop never has to run a training loop. If your guide asks how it was built, metadata.json records the model version, decision threshold and reported test metrics, and the report walks through the TF-IDF plus stylometry feature pipeline.
Yes, easily. There's no deep learning model here, no GPU needed, no multi-gigabyte download. It's a Linear SVM that loads once into memory and stays cached, so scans come back in a second or two even on a five-year-old laptop.
Yeah, you get all of it. Every Python file, every template, every migration, the test suite, gunicorn.conf.py, the systemd unit, the nginx config. Nothing is stripped out or obfuscated.
It is. Abstract, literature survey, system design, ER and DFD diagrams, module descriptions, testing, results, the whole thing in standard college format. If your university has its own template, send it over and we'll match it.
Run python manage.py seed_demo_data before you present. It generates 40 sample scans and a working demo API key, so your charts and history page actually have data instead of showing empty states while your examiner watches.
The bundled model reports about 99.98 percent accuracy on its held-out test split. That's real, but it's in-domain, meaning it was measured on data similar to what the model trained on. Give it a different genre, non-English text, or AI output someone has rewritten by hand, and accuracy falls. Say this in your viva. Examiners respect a student who knows where their model breaks.
Nine times out of ten, the model files aren't where Django expects them. Copy tfidf_vectorizer.pkl, classifier.pkl and metadata.json into detector/ml/artifacts/, then run python manage.py check_model. It tells you straight away whether the artifacts loaded and gives you a sample prediction to confirm.
Sure. It's a plain Django project, so adding a model, a view or a URL works exactly like every tutorial you've already done. Tailwind is loaded via CDN, which means you edit classes right in the template with no npm install and no build step to break.
Installation Guide

Extra Add-Ons Available – Elevate Your Project

Add any of these professional upgrades to save time and impress your evaluators.

Project Setup

We'll install and configure the project on your PC via remote session (Google Meet, Zoom, or AnyDesk).

Source Code Explanation

1-hour live session to explain logic, flow, database design, and key features.

Want to know exactly how the setup works? Review our detailed step-by-step process before scheduling your session.

999

Custom Documents (College-Tailored)

  • Custom Project Report: ₹1,500
  • Custom Research Paper: ₹1,000
  • Custom PPT: ₹800

Fully customized to match your college format, guidelines, and submission standards.

Project Modification

Need feature changes, UI updates, or new features added?

Charges vary based on complexity.

We'll review your request and provide a clear quote before starting work.

Project Files

GoogleReviews

What Our Students Say

4.9(38+ reviews)
Google review 1
Google review 2
Google review 3
Google review 4
Google review 5
Google review 6
Google review 7
Google review 8
Google review 9
Google review 10
Google review 11
Google review 12
Google review 13
Google review 14
Google review 15
Google review 16
Google review 17
Google review 18
Google review 19
Google review 20
Google review 21
Google review 22
Google review 23
Google review 24
Google review 25
Google review 26
Google review 27
Google review 28
Google review 29
Google review 30
Google review 31
Google review 32
Google review 33
Google review 34
Google review 35
Google review 36
Google review 37
Google review 38
⭐ 98% SUCCESS RATE
  • Full Development
  • Documentation
  • Presentation Prep
  • 24/7 Support
Chat with us