Few-shot Classification of Smartphone Photos using Hidden Markov Model and Siamese Network

Images from the increasing use of smartphones are so large that they are nearly impossible to handle by hand. The problem arises when a person needs to classify these photos into groups or classes. Smartphones are low-performance devices in contrast to desktop or cloud-based computers. Many solutions of image classification using various types of Convolutional Neural Network (CNN) are performed on massive cloud-based supercomputers. These computers often equipped with very high-end additional specialized graphics processing units (GPUs) at remarkable prices. In fact, to implement classification in most smartphones currently on the market, we need an algorithm that has less computation. Based on this fact, we propose HMM that requires fewer parameters. The aim of this research is to examine HMM method for classification of photos taken with a smartphone. For a comparison we also outline the results from Siamese CNN. The same data are used for training and testing for both models. For HMM, we use Discrete Cosine Transform (DCT) to extract salient features of images. The number of training examples is very small compared to the test set. Here we carried out few-shot classification method. In the training phase, we used Maximum Likelihood (ML) criterion-based, Baum-welch algorithm. Two versions are used; isolated training is applied first and later followed by jointly-embedded Baum-welch estimation of parameters. For recognition of the HMM, Viterbi algorithm is applied. Performances of both procedures were measured. Based on the test results, HMM achieves 0,94 precision, 0.85 recall, F1 score 0.89 and accuracy 0.90 while Siamese claims 0.87, 0.98, 0.92 and 0.91. The result shows that HMM, which has advantage over Siamese in term of fewer parameters number, still competes Siamese CNN with only slight decrease in performance. We conclude that HMM are suitable over Siamese CNN to be implemented in low-performance devices such as cellphones.

Authors

Institutions

Publication Details

Journal
Indonesian Journal of Electronics Electromedical Engineering and Medical Informatics
Published
2025-08-28
DOI
https://doi.org/10.35882/ijeeemi.v7i3.116
Primary Topic
Remote-Sensing Image Classification
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Few-shot Classification of Smartphone Photos using Hidden Markov Model and Siamese Network

Zulkarnaen Hatala, Muhammad Hudzaly
Indonesian Journal of Electronics Electromedical Engineering and Medical Informatics
Remote-Sensing Image Classification
article

Few-shot Classification of Smartphone Photos using Hidden Markov Model and Siamese Network

Zulkarnaen Hatala, Muhammad Hudzaly
article en

Abstract

Images from the increasing use of smartphones are so large that they are nearly impossible to handle by hand. The problem arises when a person needs to classify these photos into groups or classes. Smartphones are low-performance devices in contrast to desktop or cloud-based computers. Many solutions of image classification using various types of Convolutional Neural Network (CNN) are performed on massive cloud-based supercomputers. These computers often equipped with very high-end additional specialized graphics processing units (GPUs) at remarkable prices. In fact, to implement classification in most smartphones currently on the market, we need an algorithm that has less computation. Based on this fact, we propose HMM that requires fewer parameters. The aim of this research is to examine HMM method for classification of photos taken with a smartphone. For a comparison we also outline the results from Siamese CNN. The same data are used for training and testing for both models. For HMM, we use Discrete Cosine Transform (DCT) to extract salient features of images. The number of training examples is very small compared to the test set. Here we carried out few-shot classification method. In the training phase, we used Maximum Likelihood (ML) criterion-based, Baum-welch algorithm. Two versions are used; isolated training is applied first and later followed by jointly-embedded Baum-welch estimation of parameters. For recognition of the HMM, Viterbi algorithm is applied. Performances of both procedures were measured. Based on the test results, HMM achieves 0,94 precision, 0.85 recall, F1 score 0.89 and accuracy 0.90 while Siamese claims 0.87, 0.98, 0.92 and 0.91. The result shows that HMM, which has advantage over Siamese in term of fewer parameters number, still competes Siamese CNN with only slight decrease in performance. We conclude that HMM are suitable over Siamese CNN to be implemented in low-performance devices such as cellphones.

Indonesian Journal of Electronics Electromedical Engineering and Medical InformaticsVol. 7(3)
Jakarta State Polytechnic (ID), Institut Teknologi Kalimantan (ID)
Openalex Percentile: Top 67%
Remote-Sensing Image Classification
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.