DEEP LEARNING
Deep Learning and CNN Image Classification: A Nepal-Focused Project Guide
Explore Krishna Mishra’s Nepali food and waste-classification projects, with practical guidance on labels, preprocessing, CNNs and testing beyond a demo.
Image classification answers one specific question
An image classifier assigns a category to an input image. It does not automatically locate each object or understand every scene. Before training one, decide which categories the application needs and what an input should contain. A photograph with several foods, for example, can be ambiguous if the task expects a single food label.
My public Nepali food-classification repository uses a MobileNetV2-based approach for nine food categories. Another repository explores recycled-versus-organic waste classification. I am Krishna Mishra, founder and AI Automation Architect at AI Automation Nepal; these are public learning and project references, not claims that every image in a real environment can be classified correctly.
Labels and image collection define the problem
Write a consistent labelling rule before collecting more examples. Decide how to handle mixed scenes, unclear items and images outside the intended categories. If the dataset contains conflicting labels, a larger network will not resolve the underlying disagreement about the task.
Check whether the training set reflects the conditions in which the classifier will be used. Backgrounds, lighting, camera distance and presentation can differ substantially. Keep related or duplicate images together when splitting data so evaluation does not reward recognition of nearly identical pictures seen during development.
A CNN pipeline includes more than model weights
A convolutional neural network processes image patterns through learned filters and later layers. In an application, the image-loading and preprocessing steps must match the intended model. Resizing, colour channels and numeric scaling can all affect the prediction, even when the correct weight file is loaded.
Transfer learning can provide a starting representation that is adapted for the project’s categories. It does not remove the need to inspect labels, separate evaluation data or assess errors. When studying my public repository, read the actual preprocessing and category mapping rather than assuming that another model’s settings apply.
Inspect confusion, uncertainty and unsupported inputs
Review which classes are confused with each other. A balanced average can hide a category that works poorly, especially if the dataset is uneven. Compare predictions with reviewed labels and inspect the examples behind the errors. This can reveal a labelling issue, a missing visual condition or a mismatch between the task and the available data.
An image outside the supported categories can still receive a confident-looking output. The application needs a policy for uncertain or unsupported inputs, such as requesting another image or routing the result for review. A score from the model should not be treated as a calibrated probability unless that interpretation has been evaluated.
Check the full path from upload to displayed label
A deployment should validate file type, image dimensions and resource limits before inference. Confirm that the displayed label corresponds to the model’s output index and that errors do not expose private paths or configuration. Handle a failed prediction as an error, rather than silently returning the first category.
A public demonstration is a way to explore behaviour, not proof of production reliability. Availability of a hosted demo can change independently of the model repository. A new use case needs its own evaluation, operating constraints and maintenance plan before the result is used automatically.
Reason about the network and the training objective
My deep-learning notes span dense neural networks, CNNs, activations, initialisation, optimisers, regularisation and training callbacks. A CNN learns spatial features from image input, while the final classification head maps its representation to the chosen categories. Input shape, output order and loss function need to agree with the labels and intended task.
For a mutually exclusive multiclass problem, the output commonly represents one score per class. Binary classification can use a single sigmoid output; multilabel classification requires a different interpretation from mutually exclusive classes. Do not choose the output or loss merely because it worked in a different notebook. Check the actual target format and the framework’s expected inputs.
Learning rate, batch size and model capacity interact. Increasing the number of layers can increase fitting capacity without improving unseen examples. Use validation curves and relevant error cases to decide what to change. A fixed percentage gap between training and validation accuracy is not a universal diagnosis of acceptable or unacceptable overfitting.
Run transfer-learning experiments that can be compared
A practical comparison can begin with a frozen pretrained backbone and a new task head, followed by carefully scoped fine-tuning. Keep the split, label mapping and preprocessing fixed so a changed result can be interpreted. There is no universal instruction to unfreeze a layer named conv5: architectures use different structures and require their own configuration.
Data augmentation should preserve the intended label. A transformation suitable for a food photograph may be unsuitable for a handwritten character whose orientation matters. Apply training augmentation within the training pipeline, and evaluate on examples representative of the intended input. Related images or transformed copies should not cross into the held-out set.
Save the checkpoint together with the input specification and category mapping. If training is to resume, preserve the relevant optimiser and scheduler state as well. My public food, waste and Devanagari projects give readers concrete artifacts to investigate; this explanation does not invent a new accuracy figure or claim that a demonstration is already reliable under every camera condition.
Connect learning with an appropriate business requirement
These public projects show how I have explored image classification. Through AI Automation Nepal, a business discussion starts by asking what the image result would change in the workflow and what happens when it is wrong. That assessment may lead to a reviewed prototype rather than an immediate automated decision.
Explore the repositories and the wider AI hub below. For training options or a scoped service enquiry, contact the company team. Do not interpret a general automation starting price as a fixed quotation for every custom vision model or data-collection requirement.