Thesis & research · Guide

How to incorporate AI into a thesis.

A practical guide to adding a machine learning component to a research project without ending up with a model you cannot defend.

Kleio Software11 min read

Adding AI to a thesis has become close to expected in a lot of programs, and not always for good reasons. Sometimes there is a genuine research question that machine learning is the right tool for. Sometimes an adviser has said the project needs an AI component and the student is working backwards from that instruction.

Both situations are workable. What is not workable is bolting a model onto a project that has no question for it to answer, which is the single most common way these projects fall apart at the defense. This guide walks the decision in the order that actually protects you: question first, data second, method third.

One thing to be clear about at the start. This is about building a technical artifact that is genuinely yours, and being able to explain every decision in it. Nobody should be writing your thesis for you, and a model you cannot account for in front of a panel is worse than no model at all.

First, decide whether AI belongs in your thesis at all

The honest starting question is whether your research has a prediction, classification, or pattern-finding problem inside it. If it does, machine learning is a legitimate method. If it does not, adding a model is decoration, and a panel will find it.

A useful test: can you finish this sentence without hand-waving? “Given [these inputs that are realistically available], predict or categorize [this outcome], which currently requires [expert judgment / slow measurement / guesswork].” If you can, you have a real problem. If the sentence keeps drifting into vagueness, the problem is not yet a machine learning problem.

The alternative worth considering seriously is that AI belongs in your thesis as a tool rather than as the contribution. Using a model to process your data, code your interviews, or analyze your images is a methodological choice you disclose in your methods chapter. That is different from the model being the thing you are studying, and it is a much smaller undertaking.

AI as the contribution
You build, train and evaluate a model, and the model's performance is a result you report. This is the larger project and the one this guide is mostly about.
AI as an instrument
You use an existing model or tool to process data for a study whose real question is something else. Legitimate and common, but it has to be disclosed in your methodology, including which model and which version.
AI as the subject
Your research is about the technology, its accuracy, its bias, or its adoption, rather than using it. Often the best fit for non-technical courses.

Second, check that your data can actually support a model

This is the step that decides whether the project is possible, and the step most students reach too late. Every machine learning method needs examples where the answer is already known, because that is what the model learns from.

Concretely: you need records where both the inputs and the outcome were recorded. If you want to predict something that nobody ever wrote down, you do not have a dataset, and no amount of modeling skill fixes that. This is the single most common reason a project has to be rescoped.

On quantity, the honest answer is that it depends on how many input variables you have. A few hundred rows is a workable floor for a simple tabular problem with a handful of inputs. The requirement rises as you add variables, and image work needs substantially more labeled examples than most students expect. Text and image projects are usually where an overambitious scope shows up.

If your data is currently in scanned PDFs, inconsistent spreadsheets, or handwritten survey forms, that is normal. It is work, not a blocker. What genuinely blocks a project is having no outcome variable at all, or having one that was recorded so inconsistently that it cannot be trusted.

Do this before you finish collecting
A half-hour conversation about what to record, and in what format, before data collection ends will save weeks afterwards. Retrofitting structure onto data that has already been gathered is the expensive path.
Check for the outcome variable specifically
Not “do I have data” but “does my data contain the thing I want to predict, recorded consistently, for enough cases?”
Class balance matters more than volume
Two thousand rows where 98% are one category will produce a model that looks accurate and has learned nothing. A panel that knows this will ask.

Third, pick a method you can justify, not the most impressive one

Students consistently reach for the most sophisticated architecture available, on the assumption that a bigger model makes a better thesis. On the dataset sizes typical of academic research, the opposite is usually true: large models overfit small data, and a panel of researchers will recognize it.

The defensible move is to start with a simple baseline and only add complexity when it earns its place. That gives you the answer to the question you will definitely be asked, which is why did you choose this method. “Because I compared it against a simpler one and it performed measurably better on held-out data” is a complete answer. “Because neural networks are state of the art” is not.

Whatever you choose, you have to be able to explain what it does in plain language. Not the mathematics necessarily, but the idea: what the model is learning, what its inputs and outputs are, and where it is likely to be wrong.

Fourth, evaluate it in a way that survives scrutiny

This is where a lot of otherwise good projects lose marks. There are a small number of mistakes that recur, and every one of them is avoidable.

Reporting accuracy on the same data the model trained on is the most common. It is not a result; it measures memorization. You need a test set the model never saw during training, and the numbers you report come from that.

The second is reporting only overall accuracy. A confusion matrix, with precision and recall per class, tells you and your panel where the model actually fails, which is a far more interesting finding than a single percentage.

The third is scaling or encoding your data before splitting it. If you fit a scaler across the whole dataset and then split, information from your test set has leaked into training, and your reported numbers are inflated. Split first, then fit on the training portion only.

The fourth is time-series data split randomly. If your data has a time order, a random split lets the model learn from the future to predict the past. Split chronologically.

Fifth, prepare for the questions your panel will actually ask

Panels ask a fairly predictable set of questions, and preparing honest answers to them before the defense is most of the work of passing it.

Why this method and not a simpler one. What are the limitations of your model. What would happen if you gave it an input outside the range it was trained on. How much data would you need to do better. What does this model not tell you. Why should anyone trust these numbers.

The best preparation is a working demonstration. A model the panel can put inputs into and see respond is far more convincing than a notebook narrated from a laptop screen, and it changes the tone of the defense from justification to demonstration.

A note on academic integrity

There is a real line between getting technical work built and having your thesis written for you, and it is worth stating plainly.

Commissioning the engineering — data pipeline, model, evaluation, deployment — and then understanding it well enough to explain and defend every decision is ordinary research practice. Research groups hire technical staff and statisticians all the time, and the contribution is disclosed. What is not acceptable is submitting analysis or writing as your own when you cannot account for it, or presenting a model whose choices you cannot explain.

Your institution's rules on acknowledgment are the ones that govern. Ask your adviser what needs to be disclosed and disclose it. Any technical collaborator worth working with will expect you to.

Not sure whether your data can support a model?

That is the question worth answering first, and it usually takes one conversation. Kleio builds machine learning models for thesis and capstone projects across the Philippines, and will tell you honestly if the project as scoped will not work.

AI for thesis & capstone projects

Related questions

The follow-ups people ask after reading this.

Can I use AI in my thesis if I am not an IT student?

Yes, and it is increasingly common in business, psychology, education, agriculture and health research. What matters is that the research question is real and that you can explain what the model does and why you chose it. You do not need to be able to implement it from scratch, but you do need to understand it well enough to defend it in front of a panel.

How much data do I need for a machine learning thesis?

It scales with the number of input variables. For a simple tabular prediction with a handful of inputs, a few hundred rows is a workable floor. More variables need more rows, and image or text projects need substantially more labeled examples than most students expect. The more important question is usually whether your outcome variable was recorded consistently at all.

Is it cheating to have someone build the model for my thesis?

Building the technical artifact is engineering work, and commissioning it is ordinary research practice as long as you understand the result and disclose the contribution according to your institution's rules. Submitting work you cannot explain or account for is not acceptable. Ask your adviser what your program requires you to acknowledge, and acknowledge it.

What if my data turns out to be unusable?

This happens, and it is far better to find out early. Usually the project can be rescoped rather than abandoned: a different outcome variable, a simpler question, or a descriptive analysis instead of a predictive model. The projects that fail are the ones where this is discovered a month before the defense.

How long does an AI thesis component take to build?

A classification or prediction model on data that is already tabulated typically takes three to six weeks end to end, covering data preparation, training, evaluation, deployment and a walkthrough. Computer vision projects and anything needing substantial data cleaning run longer. Plan backwards from your defense date, not forwards from today.

Still have a question this didn't answer?

Bring it to a free discovery call. No pitch, straight to the developer, and an honest answer even when it is that we're not the right fit.

Book a free discovery call