TL;DR
Recognizing crumpled banknotes in the wild is a classic computer vision challenge with real-world stakes for financial tech and assistive tools for the visually impaired. This study pits a standard Convolutional Neural Network (CNN) against lightweight MobileNetV2 models to classify Nepali currency—delivering a textbook reminder of why chasing high validation scores through hyperparameter tuning can quietly backfire on independent test data.
What Problem Does This Paper Address?
In places where cash remains king, automated banknote recognition is essential—especially for assistive apps that read denominations aloud to visually impaired users. While deep learning has largely solved currency classification for major notes like the US Dollar or Indian Rupee, those models don't automatically generalize to Nepali banknotes, which feature their own distinct color palettes, textures, and visual motifs.
Furthermore, comparing existing currency recognition papers is a bit of an apples-to-oranges headache because everyone uses different currencies, dataset sizes, and lighting conditions. The authors tackle this gap by running a controlled, side-by-side comparison of three deep learning setups on a unified seven-class Nepali currency task (Rs. 5, 10, 20, 50, 100, 500, and 1,000), and wrapping the result into a practical, voice-assisted web prototype.
Methods
Instead of inventing a brand-new neural architecture, the authors focus on a clean empirical comparison across three standard configurations:
- Baseline CNN: A conventional convolutional network built and trained from scratch.
- MobileNetV2 (Transfer Learning): A lightweight, mobile-friendly architecture using depthwise separable convolutions (which slice up standard convolutions to save compute), initialized with pre-trained weights and fine-tuned on Nepali notes.
- Hyperparameter-Tuned MobileNetV2: Extending the second setup using Keras Tuner’s random search to optimize learning rates ($10^{-3}$ to $10^{-5}$), batch sizes, dropout rates, and dense-layer sizes based on validation accuracy.
All input images were resized to $128 \times 128$ pixels, normalized, and fed through standard data augmentations (rotations, flips, zoom, and brightness shifts) to mimic messy, real-world camera angles. Finally, to prove deployment feasibility, the authors converted the model to TensorFlow Lite and built a Flask web app supporting both image uploads and live webcam feeds, complete with text-to-speech audio announcements.
Datasets
Because standardized Nepali banknote benchmarks are scarce, the authors compiled a dataset of 16,249 images pulled from public repositories and supplemented with their own high-resolution camera photos across varied backgrounds and lighting.
The split was intentionally structured with a twist:
- Training set: 10,500 images (perfectly balanced at 1,500 per class).
- Validation set: 3,500 images (perfectly balanced at 500 per class).
- Test set: 2,249 independent images with an unequal class distribution—heavily skewed toward Rs. 100 (661 images), Rs. 10 (513), and Rs. 20 (485), while denominations like Rs. 5 had only 130 images.
Key Insights and Ideas
- The Hyperparameter Tuning Trap: Here is the paper's best "aha" moment for ML practitioners. Tuning MobileNetV2 pushed validation accuracy to an impressive 95%. Yet on the held-out test set, accuracy dropped to 84%—performing worse than both the untuned MobileNetV2 (89%) and the basic from-scratch CNN (85%). Selecting hyperparameters strictly on a clean, balanced validation set subtly overfit the model's configuration to validation quirks, hurting its generalization on the messy, imbalanced test set.
- Visual Twin Confusion: Error and precision-recall analyses revealed that the models struggled most with the Rs. 50 and Rs. 100 notes. Similar color schemes and design elements—compounded by folds, motion blur, or fingers partially covering the note—easily tricked the classifiers.
- Lightweight Wins: Standard transfer learning with MobileNetV2 hit the sweet spot right out of the box, proving you don't need heavy compute or aggressive tuning to deploy a responsive, voice-assisted web tool.
Key Results
- Basic CNN: 87% validation accuracy | 85% test accuracy (Precision: 0.83, Recall: 0.81, F1: 0.82). As seen in its learning curves below, validation behavior fluctuated noticeably across epochs compared to smooth training gains.
- MobileNetV2 (Transfer Learning): 91% validation accuracy | 89% test accuracy (Precision: 0.89, Recall: 0.87, F1: 0.88) — the best real-world performer.
- MobileNetV2 (Tuned): 95% validation accuracy | 84% test accuracy (Validation Precision: 0.93, Recall: 0.91, F1: 0.92). Class-wise ROC-AUC scores remained high (0.98 to 1.00 across all seven notes), though the precision-recall curve for the Rs. 50 note showed a sharp drop-off as recall increased.
Limitations and Future Work
The authors are refreshingly candid about what this system isn't:
- No Counterfeit Detection: The model only classifies denominations; a photocopied fake will still get read aloud as genuine cash. Building a genuine-vs.-fake detector requires a separate, specialized dataset.
- Dataset & Environmental Gaps: While the dataset includes visual variety, it isn't a rigorous benchmark for extreme real-world wear, tear, heavy occlusion, or terrible lighting, and the imbalanced test set complicates raw accuracy metrics.
- Prototype vs. Product: The Flask web app and voice output were built as a proof-of-concept; no formal latency benchmarks or accessibility user studies with visually impaired participants were conducted.
Future work points toward collecting grittier, in-the-wild banknote images, deploying directly onto mobile/edge devices, running formal usability studies, and applying explainability tools like Grad-CAM to see which parts of a banknote the network actually looks at.
Summary updated