It is tempting to start an AI project with the model: which architecture, which framework, which pre-trained network. Yet when AI projects disappoint, the cause is rarely the model itself. More often, the problem was never defined precisely enough, the data did not reflect real conditions, or nobody agreed on what success looked like.
Spending time on problem definition before any training is not a delay. It is what makes the rest of the project measurable and manageable.
Start from the decision, not the technology
Ask what decision or action the system should support, and who will rely on it. Detecting a defect so that a part is rejected, counting vehicles to adjust traffic signals, flagging an anomaly for an operator to review: each implies a different level of accuracy, a different tolerance for errors and a different response time. Sometimes this step reveals that simpler rules or classical processing would do the job without machine learning at all.
Translate the need into a learning task
Once the decision is clear, state precisely what the model takes as input and what it must output: a class, a position, a count, a measurement, a score. Define the categories and the edge cases explicitly. What exactly counts as a defect? What about partially visible objects? These definitions become your labelling rules, and inconsistent labels are one of the most common sources of poor performance.
Agree on success criteria and the data you need
Choose metrics that reflect the real cost of errors. In many applications, a missed detection and a false alarm do not have the same consequences, so a single overall accuracy figure can be misleading. Set target values and decide how they will be measured, on which test data, before training begins.
Then assess the data honestly. Do you have enough examples, collected in the conditions where the system will operate, covering rare but important cases? Who will label them, and how will label quality be checked? Are there data protection constraints on collecting or storing them? The answers often determine the project’s feasibility more than any choice of model.
With the problem, the success criteria and the data defined, choosing and training a model becomes a focused engineering task, and its results can be judged objectively.