International Journal of Innovative Information Systems

& Technology Research 14(3):401-412, July-Sept, 2026

 © SEAHI PUBLICATIONS, 2026    www.seahipublications.org   ISSN: 2467-8562

 

 

 

 

 

 

DOI:10.5281/zenodo.22934307

A Lightweight Task-Adaptive Prototypical Network with MMD Feature Alignment for Cross-Domain Few-Shot Image Classification

 

1E. B. Owabie *2O. E. Bennett *3D. J. S. Sako

 

1,2&3Department of Computer Science, Rivers State University, Port-Harcourt, Nigeria

Email: 1emmanuella.owabie@ust.edu.ng, 2bennett.okoni@ust.edu.ng

 

 

ABSTRACT

Few-shot image classification aims to recognise novel classes from very limited labelled examples, but standard prototypical networks rely on fixed Euclidean distance and often generalise poorly when source and target visual domains differ. This study developed a lightweight enhanced prototypical-network framework for cross-domain few-shot image classification by integrating a ResNet-12 embedding backbone, prototype-based classification, task-adaptive channel-weighted distance, and training-time Maximum Mean Discrepancy (MMD) feature alignment. The metric module generated episode-specific channel weights from prototype statistics, allowing the classifier to adjust feature importance without replacing the efficient nearest-prototype inference path. The MMD component aligned source and target feature distributions during training and was excluded from inference. Python implementation was carried out with PyTorch and evaluated under a five-way one-shot episodic protocol with 15 query images per class. miniImageNet was used as the source and within-domain evaluation dataset, while CUB-200-2011 and Stanford Cars were used as fine-grained target-domain datasets with class-disjoint adaptation and evaluation partitions. Four configurations were compared: Baseline ProtoNet, +Learned Metric, +Domain Adaptation, and Full Framework. Each configuration completed 1000 training episodes and 150 evaluation episodes per dataset. +Learned Metric achieved the highest miniImageNet_test mean accuracy of 0.2831, while Full Framework achieved the highest target-domain means of 0.2932 on CUB-200-2011 and 0.2667 on Stanford Cars. The confidence intervals overlapped across configurations, so the observed differences are interpreted as modest rather than decisive. Full Framework recorded 8.21% inference overhead relative to Baseline ProtoNet, remaining below the 25% efficiency target. The study contributes a reproducible CPU-based implementation and cautious empirical evaluation of task-adaptive metric weighting with training-time feature alignment for cross-domain few-shot image classification.

Keywords: Few-shot learning; prototypical networks; cross-domain image classification; metric learning; task-adaptive distance.