journal article·2026-07-09Open access

Few-Shot Hyperspectral Representation Learning for Multi-Task Forensic Document Analysis Using Episodic Prototypical Networks

Rida Nasir, Khurram Khurshid, Mansoor Hayat

Applied Sciences· Volume 16· Issue 14

Abstract

Hyperspectral imaging has emerged as a promising modality for forensic document analysis due to its ability to capture spectral and material information beyond conventional RGB representations. However, existing hyperspectral forensic studies typically focus on individual tasks and provide limited insight into the transferability of learned representations across different forensic applications. This study investigates episodic hyperspectral representation learning for forensic document analysis using a shared spectral–spatial embedding space learned through prototypical optimization. The proposed framework is evaluated on the complete UWA WIHSI and iVision HHID hyperspectral datasets across multiple forensic applications, namely writer identification, writer verification, ink mismatch detection, forgery detection, gender prediction, and age prediction.The proposed method achieved high performance on the controlled UWA WIHSI dataset across multiple forensic tasks. On the more challenging iVision HHID dataset, it attained a writer identification accuracy of 90.74%, together with writer verification and ink mismatch detection ROC–AUC scores of 0.9936 and 0.9915, respectively. Cross-dataset experiments further highlighted both the potential and the challenges of transferring learned hyperspectral representations across different acquisition conditions and writer populations, while extensive ablation studies confirmed the importance of spectral information, embedding design, and optimization strategy in learning effective hyperspectral representations. Overall, the results show that shared hyperspectral representations can support diverse forensic document analysis applications within a common embedding space while providing insight into the opportunities and challenges of developing transferable hyperspectral representations for forensic settings.
Source: crossref · Quality: baseline

Research context

OpenAlex topics: Cultural Heritage Materials Analysis · Handwritten Text Recognition Techniques · Digital Media Forensic Detection

SciVX discovery tags are terminology-based. OpenAlex topics are source-provided classifications.

Affiliations

Department of Electrical Engineering, Institute of Space Technology (IST), Islamabad 44000, Pakistan

iVision Laboratory, Institute of Space Technology (IST), Islamabad 44000, Pakistan

Department of Computing, Institute of Space Technology (IST), Islamabad 44000, Pakistan

Section of Neurosurgery, Department of Surgery, Rady Faculty of Health Sciences, University of Manitoba, Winnipeg, MB R3T 1R9, Canada

References (51)

Show source-provided references
1. Text-independent writer identification and verification using textural and allographic features10.1109/TPAMI.2007.1009 ↗
2. Christlein, V., Bernecker, D., Maier, A., and Angelopoulou, E. (2015). Offline writer identification using convolutional neural network activation features. Proceedings of the German Conference on Pattern Recognition, Springer.10.1007/978-3-319-24947-6_45 ↗
3. He, K., Zhang, X., Ren, S., and Sun, J. (July, January 26). Deep Residual Learning for Image Recognition. Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), Las Vegas, NV, USA.
4. Visual enhancement of old documents with hyperspectral imaging10.1016/j.patcog.2010.12.019 ↗
5. Hyperspectral Imaging Combined with Data Classification Techniques as an Aid for Artwork Authentication10.1016/j.culher.2017.01.013 ↗
6. Khan, Z., Shafait, F., and Mian, A. (2013). Hyperspectral Imaging for Ink Mismatch Detection. Proceedings of the 2013 12th International Conference on Document Analysis and Recognition (ICDAR), IEEE.10.1109/ICDAR.2013.179 ↗
7. Principal Component Analysis: A Review and Recent Developments10.1098/rsta.2015.0202 ↗
8. The Use of Multiple Measurements in Taxonomic Problems10.1111/j.1469-1809.1936.tb02137.x ↗
9. Writer Identification by Processing Hyperspectral Images Using Singular Value Decomposition and Linear Discriminant Analysis10.1109/ACCESS.2026.3667159 ↗
10. Snell, J., Swersky, K., and Zemel, R.S. (2017, January 4–9). Prototypical Networks for Few-Shot Learning. Proceedings of the Advances in Neural Information Processing Systems, Long Beach, CA, USA.
11. iVision HHID: Handwritten Hyperspectral Images Dataset for Benchmarking Hyperspectral Imaging-Based Document Forensic Analysis10.1016/j.dib.2022.107964 ↗
12. Individuality of Handwriting10.1520/JFS15447J ↗
13. Automatic Writer Identification Using Connected-Component Contours and Edge-Based Features of Uppercase Western Script10.1109/TPAMI.2004.18 ↗
14. Xing, L., and Qiao, Y. (2016). DeepWriter: A Multi-Stream Deep CNN for Text-Independent Writer Identification. Proceedings of the 2016 15th International Conference on Frontiers in Handwriting Recognition (ICFHR), IEEE.10.1109/ICFHR.2016.0112 ↗
15. End-to-End Online Writer Identification with Recurrent Neural Network10.1109/THMS.2016.2634921 ↗
16. Forensic Applications of Hyperspectral Imaging Technique: A Narrative Review10.1177/00258172221105381 ↗
17. Modern Trends in Hyperspectral Image Analysis: A Review10.1109/ACCESS.2018.2812999 ↗
18. Hyperspectral Imaging in Forensic Science: An Overview of Major Application Areas10.1016/j.scijus.2023.04.003 ↗
19. Deep Learning for Automated Forgery Detection in Hyperspectral Document Images10.1117/1.JEI.27.5.053001 ↗
20. Vinyals, O., Blundell, C., Lillicrap, T., Kavukcuoglu, K., and Wierstra, D. (2016, January 5–10). Matching Networks for One Shot Learning. Proceedings of the Advances in Neural Information Processing Systems, Barcelona, Spain.
21. Sung, F., Yang, Y., Zhang, L., Xiang, T., Torr, P.H.S., and Hospedales, T.M. (2018, January 18–22). Learning to Compare: Relation Network for Few-Shot Learning. Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), Salt Lake City, UT, USA.10.1109/CVPR.2018.00131 ↗
22. Hyperspectral Remote Sensing Object Detection via Cross Domain Learning from Visible Images
23. LESFuse: A lightweight dual-domain collaborative framework for high-fidelity visible-infrared image fusion10.1016/j.asoc.2026.114805 ↗
24. Enhanced deep image prior for unsupervised hyperspectral image super-resolution
25. Automatic Ink Mismatch Detection for Forensic Document Analysis10.1016/j.patcog.2015.04.008 ↗
26. Unsupervised Feature Learning for Writer Identification and Writer Retrieval10.1109/ICDAR.2017.165 ↗
27. Islam, A.U., Khan, M.J., Khurshid, K., and Shafait, F. (2019). Hyperspectral Image Analysis for Writer Identification Using Deep Learning. Proceedings of the 2019 Digital Image Computing: Techniques and Applications (DICTA), IEEE.10.1109/DICTA47822.2019.8945886 ↗
28. Automatic Visual Features for Writer Identification: A Deep Learning Approach10.1109/ACCESS.2018.2890810 ↗
29. A Hyperspectral Unmixing Approach for Ink Mismatch Detection in Unbalanced Clusters
30. Forged Document Detection and Writer Identification Through Unsupervised Deep Learning Approach10.1007/s11042-023-16146-7 ↗
31. Hyperspectral Document Image Processing: Applications, Challenges and Future Prospects10.1016/j.patcog.2019.01.026 ↗
32. Deep Learning-Based Classification of Hyperspectral Data10.1109/JSTARS.2014.2329330 ↗
33. 3-D Deep Learning Approach for Remote Sensing Image Classification10.1109/TGRS.2018.2818945 ↗
34. Adaptive Document Image Binarization10.1016/S0031-3203(99)00055-2 ↗
35. Band Selection for Hyperspectral Image Classification Using Mutual Information10.1109/LGRS.2006.878240 ↗
36. Adaptive Degraded Document Image Binarization10.1016/j.patcog.2005.09.010 ↗
37. Yosinski, J., Clune, J., Bengio, Y., and Lipson, H. (2014, January 8–13). How Transferable Are Features in Deep Neural Networks?. Proceedings of the Advances in Neural Information Processing Systems, Montreal, QC, Canada.
38. A Survey on Transfer Learning10.1109/TKDE.2009.191 ↗
39. Loshchilov, I., and Hutter, F. (2019, January 6–9). Decoupled Weight Decay Regularization. Proceedings of the International Conference on Learning Representations (ICLR), New Orleans, LA, USA.
40. Loshchilov, I., and Hutter, F. (2017, January 24–26). SGDR: Stochastic Gradient Descent with Warm Restarts. Proceedings of the International Conference on Learning Representations (ICLR), Toulon, France.
41. Karagiannis, G., and Alexiadis, D. (2025). Kubelka-Munk Model—Fundamentals in Radiative Transfer Theory and Models. Non-Destructive Methodologies and Adapted Signal Processing Techniques in the Field of Cultural Heritage, Springer.10.1007/978-3-031-85780-5_5 ↗
42. Writer identification using GMM supervectors and exemplar-SVMs10.1016/j.patcog.2016.10.005 ↗
43. Fiel, S., and Sablatnig, R. (2015, January 2–4). Writer identification and retrieval using a convolutional neural network. Proceedings of the International Conference on Computer Analysis of Images and Patterns (CAIP), Valletta, Malta.10.1007/978-3-319-23117-4_3 ↗
44. Learning features for offline handwritten signature verification using deep convolutional neural networks10.1016/j.patcog.2017.05.012 ↗
45. Dey, S., Dutta, A., Toledo, J.I., Ghosh, S.K., Lladós, J., and Pal, U. (2017). Convolutional siamese network for writer independent offline signature verification. arXiv.
46. Reducing forgeries in writer-independent off-line signature verification through ensemble of classifiers10.1016/j.patcog.2009.05.009 ↗
47. Automatic signature verification: The state of the art10.1109/TSMCC.2008.923866 ↗
48. Offline signature recognition and forgery detection using deep learning10.1016/j.procs.2020.03.133 ↗
49. Gender detection and identifying one’s handwriting with handwriting analysis10.1016/j.eswa.2017.03.001 ↗
50. Text independent writer recognition using redundant writing patterns with contour-based orientation and curvature features10.1016/j.patcog.2010.05.019 ↗
51. Automatic analysis of handwriting for gender classification10.1007/s10044-014-0371-0 ↗