用于签名伪造检测的量子机器学习
摘要
本文提出了用于离线手写签名伪造检测的量子机器学习流程,将基于 ZZ 特征映射的量子核与经典学习器相结合,并提出了一种基于 EfficientNetB0 的混合模型,该模型在留出的测试折上达到了 92.62% 的准确率,在五折交叉验证中达到了 91.26% 的平均准确率。
arXiv:2611.33163v1 Announce Type: new
Abstract: Offline handwritten signatures remain a primary behavioural biometric in legal and financial documents. Detecting skilled forgeries from a static raster image is hard because pen pressure, timing and stroke order are missing. This work studies a family of quantum machine learning pipelines for offline signature forgery detection on a public Kaggle corpus of images split into two classes. We pair a ZZ feature map quantum kernel with three classical learners: K-Nearest Neighbours, Support Vector Machine and Random Forest. We then propose a deeper hybrid that uses EfficientNetB0 as a frozen feature extractor, reduces the resulting 1280 dimensional representation to a qubit register sized subspace through a quantum compatible principal component projection and decides class membership with a nearest neighbour rule. On a single held out test fold the proposed hybrid reaches 92.62 percent accuracy. On stratified five fold cross validation the same pipeline yields a mean accuracy of 91.26 percent with a standard deviation of 1.13 percent. The pipeline keeps a quantum embedding step that is portable to NISQ hardware. We report a controlled ablation across six quantum variants, confusion matrices, a t SNE projection and per class precision, recall and F1 score.
查看缓存全文
缓存时间: 2026/11/26 09:30
# Quantum Machine Learning for Signature Forgery Detection
Source: [https://arxiv.org/html/2611.33163](https://arxiv.org/html/2611.33163)
NabilaMd Farhan ShahriyarAffiliation:Department of Computer Science Hajee Mohammad Danesh Science and Technology University Dinajpur, BangladeshNowshin Tabassum PuspaAffiliation:Department of Computer Science Southern University Bangladesh Chattogram, Bangladesh
###### Abstract
Offline handwritten signatures remain a primary behavioural biometric in legal and financial documents\. Detecting skilled forgeries from a static raster image is hard because pen pressure, timing and stroke order are missing\. This work studies a family of quantum machine learning pipelines for offline signature forgery detection on a public Kaggle corpus of images split into two classes\. We pair a ZZ feature map quantum kernel with three classical learners: K\-Nearest Neighbours, Support Vector Machine and Random Forest\. We then propose a deeper hybrid that uses EfficientNetB0 as a frozen feature extractor, reduces the resulting 1280 dimensional representation to a qubit register sized subspace through a quantum compatible principal component projection and decides class membership with a nearest neighbour rule\. On a single held out test fold the proposed hybrid reaches 92\.62 percent accuracy\. On stratified five fold cross validation the same pipeline yields a mean accuracy of 91\.26 percent with a standard deviation of 1\.13 percent\. The pipeline keeps a quantum embedding step that is portable to NISQ hardware\. We report a controlled ablation across six quantum variants, confusion matrices, a t SNE projection and per class precision, recall and F1 score\.
###### Index Terms:
Quantum machine learning, signature forgery detection, quantum kernel, ZZ feature map, EfficientNet, hybrid quantum classical model\.
## IIntroduction
A signature is the most common behavioural biometric used to authorise contracts, cheques and identity documents\. Forgery of a handwritten signature is therefore a long standing threat in banking, notary work and forensic document analysis\. Skilled forgery in particular is hard to detect because the imitator has seen the target signature and reproduces its shape with care\. In the offline setting the signature is captured as a static raster image so the dynamic cues that an online tablet would record are no longer available\[[1](https://arxiv.org/html/2611.33163#bib.bib1)\]\.
Classical deep learning has narrowed this gap\. Convolutional architectures trained in a writer independent fashion now reach false acceptance and false rejection rates close to a few percent on benchmark corpora\[[2](https://arxiv.org/html/2611.33163#bib.bib2)\]\. Siamese networks have become a strong default because they map pairs of signatures into an embedding where intra writer distance is small and skilled forgeries push the distance apart\[[3](https://arxiv.org/html/2611.33163#bib.bib3)\]\. These models nevertheless require a sizeable training set and many parameters which is not always realistic when only a few enrolled signatures per writer are available\.
Quantum machine learning offers a different angle on the representation problem\. Encoding a classical vector through a parameterised unitary maps the data into a Hilbert space whose dimension grows exponentially with the qubit count\. Inner products in that space act as quantum kernels and can capture non linear similarities that classical kernels miss\[[4](https://arxiv.org/html/2611.33163#bib.bib4)\]\[[5](https://arxiv.org/html/2611.33163#bib.bib5)\]\. Recent surveys argue that hybrid pipelines, where a classical network supplies features and a quantum kernel decides similarity, are the most realistic path on Noisy Intermediate Scale Quantum \(NISQ\) devices\[[6](https://arxiv.org/html/2611.33163#bib.bib6)\]\[[7](https://arxiv.org/html/2611.33163#bib.bib7)\]\[[8](https://arxiv.org/html/2611.33163#bib.bib8)\]\. The hybrid paradigm has already shown competitive or superior performance over purely classical baselines in cybersecurity and natural language processing tasks\[[9](https://arxiv.org/html/2611.33163#bib.bib9)\]\[[10](https://arxiv.org/html/2611.33163#bib.bib10)\], further motivating its exploration in biometric applications\.
This paper investigates that hybrid path for signature forgery detection\. Our contributions are the following\.
- •A six stage hybrid quantum classical architecture for offline signature forgery detection with full mathematical specification of every stage and pseudocode for training and inference\.
- •A controlled ablation that pairs a ZZ feature map quantum kernel with three classical learners \(KNN, SVM and Random Forest\) on raw pixel principal components and on deep CNN principal components\.
- •A best variant that combines a frozen EfficientNetB0 backbone with a quantum compatible principal component projection and a nearest neighbour rule\. The variant reaches 92\.62 percent on a single held out fold and 91\.26 percent on stratified five fold cross validation\.
- •A complexity analysis that links the qubit count, the kernel computation cost and the size of the training set\.
The remainder of the paper is organised as follows\. Section II reviews related work\. Section III describes the architecture and the underlying quantum operators\. Section IV reports the experimental protocol\. Section V presents results and Section VI discusses limitations\. Section VII concludes\.
## IIRelated Work
Hafemann and colleagues launched the deep learning era for offline signature verification with a writer independent convolutional feature learner that drove the GPDS error rate below two percent\. Subsequent work refined the backbone and the loss\. Two stream and Siamese architectures became the standard for pairwise verification\[[3](https://arxiv.org/html/2611.33163#bib.bib3)\]\. Genetic algorithms have been used to evolve the CNN topology and reached 97\.73 percent accuracy with a 2\.35 percent equal error rate across four datasets\[[2](https://arxiv.org/html/2611.33163#bib.bib2)\]\. Texture and graphology aware descriptors still complement deep models on small writer pools\[[1](https://arxiv.org/html/2611.33163#bib.bib1)\]\.
Havlíček and colleagues introduced the quantum enhanced feature space and demonstrated kernel based classification on a superconducting processor\[[4](https://arxiv.org/html/2611.33163#bib.bib4)\]\. Schuld showed that any supervised quantum model written as a parameterised circuit can be cast as a kernel method\[[5](https://arxiv.org/html/2611.33163#bib.bib5)\]\. Hubregtsen and colleagues studied how to train quantum embedding kernels on noisy hardware\[[11](https://arxiv.org/html/2611.33163#bib.bib11)\]\. Liu and colleagues proved a rigorous separation between quantum and classical kernels for a discrete logarithm structured task\[[12](https://arxiv.org/html/2611.33163#bib.bib12)\]\. Suzuki and colleagues ran a QSVM on a trapped ion device and reported the gap between simulator and physical hardware on MNIST and a financial fraud set\[[13](https://arxiv.org/html/2611.33163#bib.bib13)\]\.
Hybrid quantum classical pipelines that couple deep feature extractors with quantum classifiers or quantum kernel layers have become an active area\. In medical imaging, adaptive hybrid quantum convolutional networks have been used for diagnostic classification\[[14](https://arxiv.org/html/2611.33163#bib.bib14)\]and recent reviews catalogue the progress and open challenges that quantum enhanced methods face in clinical image analysis\[[15](https://arxiv.org/html/2611.33163#bib.bib15)\]\. A study paired a residual network backbone with a quantum support vector machine for general image classification and showed the hybrid outperformed both standalone branches\[[16](https://arxiv.org/html/2611.33163#bib.bib16)\]\. A related study used quanvolutional neural networks as a quantum assisted front end for pneumonia detection on chest radiographs\[[17](https://arxiv.org/html/2611.33163#bib.bib17)\]\. On the security side, quantum kernels have been applied to phishing URL detection through a variational quantum classifier with correlation based feature selection\[[18](https://arxiv.org/html/2611.33163#bib.bib18)\]and to quishing detection where quantum kernel nearest neighbours and quantum kernel SVMs were compared on the same corpus\[[19](https://arxiv.org/html/2611.33163#bib.bib19)\]\. A recent study provided an empirical comparison showing that classical quantum hybrid pipelines consistently outperform their purely classical counterparts across multiple benchmark tasks\[[9](https://arxiv.org/html/2611.33163#bib.bib9)\]\. Recent work also explored the intersection of quantum computing with transformer architectures by proposing a BERT based quantum machine learning framework for spam text classification\[[10](https://arxiv.org/html/2611.33163#bib.bib10)\]\. Broader surveys confirm that such hybrid designs represent the most practical route on current NISQ hardware\[[6](https://arxiv.org/html/2611.33163#bib.bib6)\]\[[7](https://arxiv.org/html/2611.33163#bib.bib7)\]\[[8](https://arxiv.org/html/2611.33163#bib.bib8)\]\.
To the best of our knowledge the present work is the first to systematically pair a ZZ feature map quantum kernel with EfficientNet features for offline signature forgery detection and to benchmark this hybrid against five alternative QML variants on the same corpus\.
## IIIMethodology
### III\-APipeline Overview
Figure[1](https://arxiv.org/html/2611.33163#S3.F1)sketches the six stage pipeline\. Stage one acquires the raw raster image and normalises it\. Stage two extracts a high dimensional descriptor through a frozen convolutional backbone\. Stage three projects the descriptor onto a qubit register sized subspace through a quantum compatible principal component analysis\. Stage four optionally encodes the projected vector into a quantum Hilbert space through a ZZ feature map\. Stage five constructs a fidelity kernel from pairs of embedded states\. Stage six classifies the test sample with a kernelised learner or with a nearest neighbour rule in the reduced subspace\. The proposed variant uses stages one to three and stage six directly\. The five baseline variants use the full chain with different decision heads\.
Stage 1: Input signature image224×224×3224\\times 224\\times 3↓\\downarrowStage 2: EfficientNetB0 \(ImageNet pretrained frozen\)↓\\downarrowGlobal pooled feature vector𝐳∈ℝ1280\\mathbf\{z\}\\in\\mathbb\{R\}^\{1280\}↓\\downarrowStage 3: PCA projection toℝn\\mathbb\{R\}^\{n\}withn=11n=11↓\\downarrowMinMax scaling to\[0,π\]n\[0,\\pi\]^\{n\}↓\\downarrowStage 4: ZZ feature mapUΦ\(𝐱\)U\_\{\\Phi\}\(\\mathbf\{x\}\)onnnqubits \(optional\)↓\\downarrowStage 5: Fidelity kernelK\(𝐱,𝐱′\)K\(\\mathbf\{x\},\\mathbf\{x\}^\{\\prime\}\)\(optional\)↓\\downarrowStage 6: KNN / SVM / RF decision head↓\\downarrowPredicted labely^∈\{forged,genuine\}\\hat\{y\}\\in\\\{\\text\{forged\},\\text\{genuine\}\\\}
Fig\. 1:Six stage architecture of the proposed pipeline\. Stages four and five apply to the quantum kernel variants QKNN, QSVM, QRF, QCNN and QKPCA\. The proposed best variant skips stages four and five and routes the scaled PCA features directly to a KNN head\.
### III\-BStage 1: Image Acquisition and Normalisation
Every image is decoded with OpenCV, converted from BGR to RGB and resized with bilinear interpolation to224×224224\\times 224to match the EfficientNet input shape\. For the variants that do not use a pretrained backbone we work with64×6464\\times 64grayscale crops flattened toℝ4096\\mathbb\{R\}^\{4096\}\. Pixel intensities are divided by 255\. The dataset is then split with stratified 80/20 sampling and the random state is fixed at 42 to ensure that every variant sees the same partition\.
### III\-CStage 2: Deep Feature Extraction
EfficientNetB0 is a compound scaled convolutional network that balances depth, width and input resolution under a single scaling coefficient\. The backbone contains seven inverted residual blocks with squeeze and excitation gating and produces a global average pooled tensor of dimension 1280\. We load the ImageNet pretrained weights and freeze every layer\. For an input image𝐈∈ℝ224×224×3\\mathbf\{I\}\\in\\mathbb\{R\}^\{224\\times 224\\times 3\}the backbone returns
𝐳=fEffNet\(𝐈\)∈ℝ1280\.\\mathbf\{z\}=f\_\{\\text\{EffNet\}\}\(\\mathbf\{I\}\)\\in\\mathbb\{R\}^\{1280\}\.\(1\)Freezing the trunk is a deliberate choice\. The dataset contains 744 images which is too small to fine tune 5\.3 million parameters without severe overfitting\[[6](https://arxiv.org/html/2611.33163#bib.bib6)\]\. For the variants without transfer learning we use either flattened pixel features or a four block CNN with 32, 64, 128 and 256 filters of size three by three, max pooling and dropout regularisation at rate 0\.5\.
### III\-DStage 3: Quantum Compatible Dimensionality Reduction
The 1280 dimensional descriptor is too wide for a NISQ register\. We project the data onto the topnneigenvectors of the empirical covariance matrix
𝚺=1N−1∑i=1N\(𝐳i−𝐳¯\)\(𝐳i−𝐳¯\)⊤,\\boldsymbol\{\\Sigma\}=\\frac\{1\}\{N\-1\}\\sum\_\{i=1\}^\{N\}\(\\mathbf\{z\}\_\{i\}\-\\bar\{\\mathbf\{z\}\}\)\(\\mathbf\{z\}\_\{i\}\-\\bar\{\\mathbf\{z\}\}\)^\{\\top\},\(2\)where𝐳¯\\bar\{\\mathbf\{z\}\}is the empirical mean\. The eigendecomposition𝚺=𝐕𝚲𝐕⊤\\boldsymbol\{\\Sigma\}=\\mathbf\{V\}\\boldsymbol\{\\Lambda\}\\mathbf\{V\}^\{\\top\}yields ordered eigenvaluesλ1≥λ2≥⋯≥λd\\lambda\_\{1\}\\geq\\lambda\_\{2\}\\geq\\cdots\\geq\\lambda\_\{d\}and the projector𝐏n=\[𝐯1,…,𝐯n\]\\mathbf\{P\}\_\{n\}=\[\\mathbf\{v\}\_\{1\},\\ldots,\\mathbf\{v\}\_\{n\}\]maps each descriptor to
𝐩=𝐏n⊤\(𝐳−𝐳¯\)∈ℝn\.\\mathbf\{p\}=\\mathbf\{P\}\_\{n\}^\{\\top\}\(\\mathbf\{z\}\-\\bar\{\\mathbf\{z\}\}\)\\in\\mathbb\{R\}^\{n\}\.\(3\)The reduced vector is then scaled to the angular interval\[0,π\]\[0,\\pi\]through
xi=π⋅pi−min\(pi\)max\(pi\)−min\(pi\),i=1,…,n\.x\_\{i\}=\\pi\\cdot\\frac\{p\_\{i\}\-\\min\(p\_\{i\}\)\}\{\\max\(p\_\{i\}\)\-\\min\(p\_\{i\}\)\},\\quad i=1,\\ldots,n\.\(4\)The angular rescaling is the natural choice for a rotation based quantum encoding because it keeps the data dependent angles inside the principal period of the trigonometric functions\. The valuennis treated as a hyperparameter linked to the number of qubits\. We usen=11n=11for the EfficientNet hybrid,n=6n=6for the raw pixel variants,n=10n=10for the QCNN variant andn=3n=3for the EfficientNet plus quantum kernel SVM variant\. Quantum analogues of PCA can in principle deliver an exponential speed up when the data is loaded as a density matrix\[[7](https://arxiv.org/html/2611.33163#bib.bib7)\]\. On a classical simulator the projection is computed by truncated singular value decomposition of the centred data matrix\.
### III\-EStage 4: Quantum Feature Map
For the variants that use a quantum kernel the scaled vector𝐱∈\[0,π\]n\\mathbf\{x\}\\in\[0,\\pi\]^\{n\}is encoded through the second order Pauli ZZ feature map of Havlíček and colleagues\[[4](https://arxiv.org/html/2611.33163#bib.bib4)\]\. The unitary takes the form
UΦ\(𝐱\)=∏r=1R\[Uϕ\(𝐱\)H⊗n\],U\_\{\\Phi\}\(\\mathbf\{x\}\)=\\prod\_\{r=1\}^\{R\}\\Bigl\[U\_\{\\phi\}\(\\mathbf\{x\}\)H^\{\\otimes n\}\\Bigr\],\(5\)whereHHis the Hadamard gate,R=2R=2is the number of repetitions and
Uϕ\(𝐱\)=exp\(i∑S⊆\[n\],\|S\|≤2ϕS\(𝐱\)∏i∈SZi\)\.U\_\{\\phi\}\(\\mathbf\{x\}\)=\\exp\\\!\\Bigl\(i\\sum\_\{S\\subseteq\[n\],\|S\|\\leq 2\}\\phi\_\{S\}\(\\mathbf\{x\}\)\\prod\_\{i\\in S\}Z\_\{i\}\\Bigr\)\.\(6\)The data dependent angles are
ϕ\{i\}\(𝐱\)=xi,ϕ\{i,j\}\(𝐱\)=\(π−xi\)\(π−xj\)\.\\phi\_\{\\\{i\\\}\}\(\\mathbf\{x\}\)=x\_\{i\},\\qquad\\phi\_\{\\\{i,j\\\}\}\(\\mathbf\{x\}\)=\(\\pi\-x\_\{i\}\)\(\\pi\-x\_\{j\}\)\.\(7\)The single qubit terms encode each component through Z rotations and the two qubit ZZ rotations introduce entanglement between every pair of qubits\. The resulting quantum state
\|ϕ\(𝐱\)⟩=UΦ\(𝐱\)\|0⟩⊗n\|\\phi\(\\mathbf\{x\}\)\\rangle=U\_\{\\Phi\}\(\\mathbf\{x\}\)\|0\\rangle^\{\\otimes n\}\(8\)lives in a2n2^\{n\}dimensional Hilbert space\. Forn=11n=11the embedding dimension is 2048 which is intractable for an exhaustive classical kernel but light for a simulator that operates on amplitude vectors\.
### III\-FStage 5: Quantum Kernel
Given two encoded states the fidelity kernel is the squared overlap
K\(𝐱,𝐱′\)=\|⟨ϕ\(𝐱′\)\|ϕ\(𝐱\)⟩\|2=\|⟨0\|UΦ†\(𝐱′\)UΦ\(𝐱\)\|0⟩\|2\.K\(\\mathbf\{x\},\\mathbf\{x\}^\{\\prime\}\)=\\bigl\|\\langle\\phi\(\\mathbf\{x\}^\{\\prime\}\)\|\\phi\(\\mathbf\{x\}\)\\rangle\\bigr\|^\{2\}=\\bigl\|\\langle 0\|U\_\{\\Phi\}^\{\\dagger\}\(\\mathbf\{x\}^\{\\prime\}\)U\_\{\\Phi\}\(\\mathbf\{x\}\)\|0\\rangle\\bigr\|^\{2\}\.\(9\)On a real device the overlap is estimated by preparing the circuitUΦ†\(𝐱′\)UΦ\(𝐱\)U\_\{\\Phi\}^\{\\dagger\}\(\\mathbf\{x\}^\{\\prime\}\)U\_\{\\Phi\}\(\\mathbf\{x\}\), measuring the all zero outcome and recording its frequency over many shots\. Schuld showed that this construction subsumes a wide family of variational quantum models\[[5](https://arxiv.org/html/2611.33163#bib.bib5)\]\. The kernel matrix is symmetric positive semidefinite and plugs directly into any kernelised classifier through the precomputed gram matrix interface\. For QKNN we use the induced distance
d\(𝐱,𝐱′\)=1−K\(𝐱,𝐱′\),d\(\\mathbf\{x\},\\mathbf\{x\}^\{\\prime\}\)=1\-K\(\\mathbf\{x\},\\mathbf\{x\}^\{\\prime\}\),\(10\)which is non negative and equal to zero when the two encoded states coincide\.
### III\-GStage 6: Decision Heads
QKNN\.The training kernel acts as a precomputed similarity matrix\. The decision rule is the standardkknearest neighbour vote
y^\(𝐱\)=mode\{yi1,…,yik\},\\hat\{y\}\(\\mathbf\{x\}\)=\\mathrm\{mode\}\\bigl\\\{y\_\{i\_\{1\}\},\\ldots,y\_\{i\_\{k\}\}\\bigr\\\},\(11\)wherei1,…,iki\_\{1\},\\ldots,i\_\{k\}are the indices of thekktraining points with smallest distance underdd\. We fixk=3k=3for the pixel level variants\.
QSVM\.The same kernel feeds a soft margin support vector machine\. The dual problem solves
max∑i𝜶αi−12∑i,jαiαjyiyjK\(𝐱i,𝐱j\),\\max\_\{\\boldsymbol\{\\alpha\}\}\\sum\_\{i\}\\alpha\_\{i\}\-\\tfrac\{1\}\{2\}\\sum\_\{i,j\}\\alpha\_\{i\}\\alpha\_\{j\}y\_\{i\}y\_\{j\}K\(\\mathbf\{x\}\_\{i\},\\mathbf\{x\}\_\{j\}\),\(12\)subject to∑iαiyi=0\\sum\_\{i\}\\alpha\_\{i\}y\_\{i\}=0and0≤αi≤C0\\leq\\alpha\_\{i\}\\leq CwithC=1C=1\. The decision isy^=sign\(∑iαiyiK\(𝐱i,𝐱\)\+b\)\\hat\{y\}=\\mathrm\{sign\}\\\!\\left\(\\sum\_\{i\}\\alpha\_\{i\}y\_\{i\}K\(\\mathbf\{x\}\_\{i\},\\mathbf\{x\}\)\+b\\right\)\.
QRF\.A Random Forest of 200 trees is trained on the kernel rows\. Each row acts as a fixed length feature vector that encodes similarity to every training point\. The forest aggregates the decisions of the trees by majority vote and reduces the variance of the kernel level estimator\.
Proposed hybrid \(EffNet \+ QPCA \+ KNN\)\.The best variant skips stages four and five at test time and uses the scaled PCA features directly\. The qubit aligned subspace already concentrates the discriminative signal which makes the quantum kernel step optional\. A KNN head withk=5k=5and Euclidean distance is then sufficient\. We retain the quantum embedding as a drop in upgrade once NISQ hardware is available because the same projection feeds the ZZ map without any retraining of the upstream stages\.
### III\-HAlgorithmic Summary
Algorithm[1](https://arxiv.org/html/2611.33163#alg1)summarises the training procedure of the proposed hybrid\. Algorithm[2](https://arxiv.org/html/2611.33163#alg2)summarises inference\.
Algorithm 1Training the proposed hybrid pipeline1:Training set
𝒟=\{\(𝐈i,yi\)\}i=1N\\mathcal\{D\}=\\\{\(\\mathbf\{I\}\_\{i\},y\_\{i\}\)\\\}\_\{i=1\}^\{N\}, qubit count
nn
2:Trained projector
𝐏n\\mathbf\{P\}\_\{n\}, scaler
𝒮\\mathcal\{S\}, classifier
𝒞\\mathcal\{C\}
3:Load frozen EfficientNetB0 backbone
fEffNetf\_\{\\text\{EffNet\}\}
4:for
i=1i=1to
NNdo
5:
𝐳i←fEffNet\(resize\(𝐈i\)\)\\mathbf\{z\}\_\{i\}\\leftarrow f\_\{\\text\{EffNet\}\}\(\\mathrm\{resize\}\(\\mathbf\{I\}\_\{i\}\)\)
6:endfor
7:Fit PCA on
\{𝐳i\}\\\{\\mathbf\{z\}\_\{i\}\\\}with
nncomponents, obtain
𝐏n\\mathbf\{P\}\_\{n\}and
𝐳¯\\bar\{\\mathbf\{z\}\}
8:
𝐩i←𝐏n⊤\(𝐳i−𝐳¯\)\\mathbf\{p\}\_\{i\}\\leftarrow\\mathbf\{P\}\_\{n\}^\{\\top\}\(\\mathbf\{z\}\_\{i\}\-\\bar\{\\mathbf\{z\}\}\)for all
ii
9:Fit MinMax scaler
𝒮\\mathcal\{S\}on
\{𝐩i\}\\\{\\mathbf\{p\}\_\{i\}\\\}with range
\[0,π\]\[0,\\pi\]
10:
𝐱i←𝒮\(𝐩i\)\\mathbf\{x\}\_\{i\}\\leftarrow\\mathcal\{S\}\(\\mathbf\{p\}\_\{i\}\)for all
ii
11:Fit KNN classifier
𝒞\\mathcal\{C\}with
k=5k=5on
\{\(𝐱i,yi\)\}\\\{\(\\mathbf\{x\}\_\{i\},y\_\{i\}\)\\\}
12:return
𝐏n\\mathbf\{P\}\_\{n\},
𝐳¯\\bar\{\\mathbf\{z\}\},
𝒮\\mathcal\{S\},
𝒞\\mathcal\{C\}
Algorithm 2Inference with the proposed hybrid pipeline1:Test image
𝐈\\mathbf\{I\}, trained
𝐏n\\mathbf\{P\}\_\{n\},
𝐳¯\\bar\{\\mathbf\{z\}\},
𝒮\\mathcal\{S\},
𝒞\\mathcal\{C\}
2:Predicted label
y^\\hat\{y\}
3:
𝐳←fEffNet\(resize\(𝐈\)\)\\mathbf\{z\}\\leftarrow f\_\{\\text\{EffNet\}\}\(\\mathrm\{resize\}\(\\mathbf\{I\}\)\)
4:
𝐩←𝐏n⊤\(𝐳−𝐳¯\)\\mathbf\{p\}\\leftarrow\\mathbf\{P\}\_\{n\}^\{\\top\}\(\\mathbf\{z\}\-\\bar\{\\mathbf\{z\}\}\)
5:
𝐱←𝒮\(𝐩\)\\mathbf\{x\}\\leftarrow\\mathcal\{S\}\(\\mathbf\{p\}\)
6:
y^←𝒞\(𝐱\)\\hat\{y\}\\leftarrow\\mathcal\{C\}\(\\mathbf\{x\}\)
7:return
y^\\hat\{y\}
### III\-IComputational Complexity
The forward pass of EfficientNetB0 costs about3\.9×1083\.9\\times 10^\{8\}FLOPs per image\. PCA training costsO\(Nd2\+d3\)O\(Nd^\{2\}\+d^\{3\}\)whered=1280d=1280andNNis the training set size, while the projection at test time costsO\(dn\)O\(dn\)\. The KNN head needsO\(Nn\)O\(Nn\)distance evaluations per query\. For the quantum kernel variants the gram matrix onNNtraining points costsO\(N2Tcirc\)O\(N^\{2\}\\,T\_\{\\text\{circ\}\}\)whereTcircT\_\{\\text\{circ\}\}is the runtime of one fidelity estimation\. The ZZ map withR=2R=2repetitions and full pairwise entanglement contains2nR2nRHadamard gates,2nR2nRsingle qubit Z rotations and2R\(n2\)2R\\binom\{n\}\{2\}two qubit ZZ rotations\. Forn=11n=11this gives 44 single qubit gates and 220 two qubit gates per circuit which is tractable on near term hardware\.
## IVExperimental Setup
### IV\-ADataset
We use the public Handwritten Signatures corpus from Kaggle\[[20](https://arxiv.org/html/2611.33163#bib.bib20)\]\. The collection contains 744 signature images organised into two folders labelled Forged and Genuine\. The class distribution is balanced\. The 80/20 split yields 595 training samples and 149 test samples\. The test fold contains 74 forged and 75 genuine signatures\. The same split is used by every variant in the ablation\. For the five fold cross validation experiment the entire set of 744 samples is partitioned through a stratified scheme with the same random state\.
### IV\-BImplementation
The classical layers are implemented in TensorFlow 2 with the Keras API\. The quantum layers use Qiskit 0\.45 with the Aer statevector simulator backend\. The ZZ feature map is the Qiskit reference implementation with full entanglement and two repetitions\. Kernel evaluation is delegated to the FidelityQuantumKernel routine which computes the gram matrix in a batched fashion\. KNN and SVM follow the scikit learn precomputed kernel interface\. Experiments run on a Google Colab T4 GPU instance with 16 GB of memory\. Random seeds are fixed at 42\.
### IV\-CHyperparameters
For the proposed hybrid the EfficientNet weights stay frozen\. PCA reduces the 1280 dimensional descriptor to 11 components\. The MinMax scaler maps to the interval\[0,π\]\[0,\\pi\]\. The KNN head usesk=5k=5with Euclidean distance\. For the raw pixel variants PCA reduces the flattened image to 6 components and the KNN head usesk=3k=3\. The QCNN variant trains a four block CNN with 32, 64, 128 and 256 filters then projects the 512 dimensional embedding to 10 components\. The QSVM head usesC=1C=1with the precomputed kernel\. The QRF head uses 200 trees with a maximum depth left unconstrained\.
### IV\-DEvaluation Protocol
We report overall accuracy, per class precision, recall and F1 score on the held out test fold\. We additionally report the mean accuracy over stratified five fold cross validation along with its standard deviation\. Cross validation uses the same preprocessing pipeline as the held out evaluation\. The held out fold and the cross validation experiment are reported separately to avoid mixing the two estimators\. For visualisation we project the scaled PCA features to two dimensions through t distributed stochastic neighbour embedding with perplexity 30 and 1000 iterations\.
## VResults
### V\-AMain Comparison
Table[I](https://arxiv.org/html/2611.33163#S5.T1)reports the accuracy of every quantum variant on the held out test fold\. The pure quantum kernel variants on raw pixel principal components cluster between 75 and 80 percent\. The QCNN variant that uses a custom CNN feature extractor stays in the same range because the small training set is not enough to learn discriminative filters from scratch\. Adding a deeper EfficientNet trunk and a quantum kernel SVM lifts accuracy to 84\.56 percent\. Replacing the quantum kernel SVM head with a PCA plus KNN head pushes the score to 92\.62 percent\.
TABLE I:Quantum variant comparison on the held out test fold \(80/20 split, random state 42\)\. All numbers are computed on the same 149 sample fold\.
### V\-BDetailed Performance of the Proposed Hybrid
Table[II](https://arxiv.org/html/2611.33163#S5.T2)reports the class wise metrics of the proposed hybrid under two evaluation regimes\. The single held out fold uses the same 80/20 split as Table[I](https://arxiv.org/html/2611.33163#S5.T1)\. The five fold cross validation regime reports the mean and standard deviation across folds together with the per class metrics of the held out fold computed inside the same cross validation cell\. The two regimes agree within roughly one percentage point which confirms that the headline result is not driven by a particular split\.
TABLE II:Class wise performance of the proposed hybrid \(EffNet \+ QPCA \+ KNN\)\. Single fold refers to the 80/20 held out evaluation\. 5\-fold CV refers to stratified five fold cross validation on the full corpus\. Per class metrics under the CV regime are the values returned by the held out evaluation that runs inside the same cross validation cell\.Regime / ClassPrec\.Rec\.F1Support*Single fold \(Accuracy = 92\.62 percent\)*Forged \(class 0\)0\.940\.910\.9274Genuine \(class 1\)0\.910\.950\.9375Macro average0\.930\.930\.93149*5\-fold CV \(Mean Accuracy = 91\.26±\\pm1\.13 percent\)*Fold scores: 0\.913, 0\.906, 0\.899, 0\.933, 0\.912Forged \(class 0\)0\.940\.890\.9274Genuine \(class 1\)0\.900\.950\.9275Macro average0\.920\.920\.92149
### V\-CConfusion Matrices
Figure[2](https://arxiv.org/html/2611.33163#S5.F2)shows the confusion matrices for the proposed hybrid and three quantum kernel baselines on the single held out fold\. The proposed hybrid commits only four false positives and seven false negatives on 149 test samples\. The pure quantum kernel variants on raw pixel features confuse the two classes more often because a linear projection of flat pixels cannot disentangle the local stroke geometry\. The EfficientNet trunk recovers the missing structure and the quantum compatible projection keeps the discriminative directions\.
Fig\. 2:Confusion matrices for the proposed hybrid and three quantum kernel baselines on the single held out fold\. Rows are true labels, columns are predictions\. Class 0 is Forged and class 1 is Genuine\.
### V\-DFeature Geometry
Figure[3](https://arxiv.org/html/2611.33163#S5.F3)shows a two dimensional t SNE projection of the scaled PCA features for the proposed hybrid\. The two classes form well separated clusters with a small overlap region that corresponds to skilled forgeries close to the genuine manifold\. The geometry confirms that the qubit aligned subspace already concentrates the discriminative signal which explains why a simple KNN head suffices\.
Fig\. 3:Two dimensional t SNE projection of the EfficientNet plus QPCA features\. The two classes form well separated clusters with a small overlap region of skilled forgeries close to the genuine manifold\.
## VIDiscussion
The ablation reveals three patterns\.First, the choice of input representation matters more than the choice of kernel\. Pure quantum kernel variants on flat pixel principal components plateau near 78 percent because the global linear projection loses the local stroke statistics\. Once a strong convolutional trunk supplies a translation invariant descriptor the same downstream pipeline jumps by more than ten points\. This echoes the recent benchmark of Suzuki and colleagues who observed that the quality of the feature embedding dominates the quantum kernel choice on small datasets\[[13](https://arxiv.org/html/2611.33163#bib.bib13)\]\.
Second, a small qubit register is sufficient when the upstream backbone is strong\. The proposed hybrid uses 11 components which fits within current NISQ hardware\. The quantum kernel SVM variant with only three qubits still reaches 84\.56 percent which is well above the pixel level baselines\. The result aligns with the projected quantum kernel literature where a low dimensional projection keeps the kernel values away from the exponential concentration regime\[[5](https://arxiv.org/html/2611.33163#bib.bib5)\]\[[11](https://arxiv.org/html/2611.33163#bib.bib11)\]\. Third, the gap between the single fold accuracy of 92\.62 percent and the five fold cross validation mean of 91\.26 percent is narrow\. The standard deviation of 1\.13 percent across folds suggests that the result is stable\. Single fold reporting tends to be slightly optimistic because the partition is fixed by one random state, so we recommend the cross validation mean as the primary indicator of generalisation\.
The main limitation is the size of the dataset\. With 744 samples the held out fold contains 149 signatures which is enough to estimate accuracy with a confidence interval of roughly±4\\pm 4percent at the 95 percent level\. A larger writer pool such as CEDAR or BHSig260 would tighten the estimate and reveal whether the quantum embedding generalises across scripts\. Another limitation is the use of a noiseless simulator\. On real NISQ hardware kernel values are biased by depolarising noise and shot noise so an error mitigation step would be required\[[7](https://arxiv.org/html/2611.33163#bib.bib7)\]\[[13](https://arxiv.org/html/2611.33163#bib.bib13)\]\. Finally, the proposed best variant decouples feature extraction from quantum kernel learning\. A future direction is to train the upstream backbone jointly with the quantum embedding through a variational quantum classifier\[[14](https://arxiv.org/html/2611.33163#bib.bib14)\]\.
## VIIConclusion
This paper presented a controlled study of quantum machine learning pipelines for offline signature forgery detection\. A direct application of ZZ feature map quantum kernels to flat pixel principal components peaks at 79 percent\. Pairing the same kernel family with EfficientNet features and a qubit register sized principal component projection lifts the accuracy to 92\.62 percent on the held out fold and 91\.26 percent on stratified five fold cross validation\. The proposed hybrid keeps a quantum embedding step that is portable to near term hardware\. Future work will explore three directions\. First, the use of projected quantum kernels to mitigate the exponential concentration of fidelity values on deeper circuits\. Second, variational quantum classifiers trained end to end on the same EfficientNet features\. Third, a deployment of the proposed pipeline on IBM Quantum and IonQ backends with full error mitigation\.
## References
- \[1\]H\. Zhao and H\. Li, “Handwriting identification and verification using artificial intelligence assisted textural features,”*Scientific Reports*, vol\. 13, art\. no\. 21662, 2023\.
- \[2\]A\. Musleh and A\. M\. O\. Al\-Azzani, “Offline signature verification using deep learning and genetic algorithm,”*Journal of King Abdulaziz University: Computing and Information Technology Sciences*, vol\. 13, no\. 1, 2024\.
- \[3\]N\. Sharma, S\. Gupta, H\. Mehta, X\. Cheng, A\. Juneja, H\. Lin and Y\. Yu, “Siamese convolutional neural network based twin structure model for independent offline signature verification,”*Sustainability*, vol\. 14, no\. 18, art\. no\. 11484, 2022\.
- \[4\]V\. Havlíček, A\. D\. Córcoles, K\. Temme, A\. W\. Harrow, A\. Kandala, J\. M\. Chow and J\. M\. Gambetta, “Supervised learning with quantum enhanced feature spaces,”*Nature*, vol\. 567, pp\. 209–212, Mar\. 2019\.
- \[5\]M\. Schuld, “Supervised quantum machine learning models are kernel methods,”*arXiv preprint arXiv:2101\.11020*, 2021\.
- \[6\]R\. Kharsa, A\. Bouridane and A\. Amira, “Advances in quantum machine learning and deep learning for image classification: a survey,”*Neurocomputing*, vol\. 560, art\. no\. 126843, 2023\.
- \[7\]Y\. Wang and J\. Liu, “A comprehensive review of quantum machine learning: from NISQ to fault tolerance,”*Reports on Progress in Physics*, vol\. 87, no\. 11, art\. no\. 116402, 2024\.
- \[8\]D\. Peral\-García, J\. Cruz\-Benito and F\. J\. García\-Peñalvo, “Systematic literature review: quantum machine learning and its applications,”*Computer Science Review*, vol\. 51, art\. no\. 100619, 2024\.
- \[9\]A\. M\. R\. Chy and M\. F\. Shahriyar, “Why Classical\-Quantum Machine Learning Works Better Than Classical Machine Learning,” in*Proc\. IEEE 2nd Int\. Conf\. Quantum Photonics, Artificial Intelligence & Networking \(QPAIN\)*, 2026, pp\. 1–6\.
- \[10\]M\. F\. Shahriyar, G\. Tanbhir and A\. M\. R\. Chy, “Toward Quantum NLP: A Transfer Learning Based BERT Transformer\-QML Framework for Spam Text Semantics Modeling,” in*Proc\. Int\. Conf\. Data Science, AI and Applications*, Springer, 2025, pp\. 107–117\.
- \[11\]T\. Hubregtsen, D\. Wierichs, E\. Gil\-Fuster, P\.\-J\. H\. S\. Derks, P\. K\. Faehrmann and J\. J\. Meyer, “Training quantum embedding kernels on near term quantum computers,”*Physical Review A*, vol\. 106, no\. 4, art\. no\. 042431, 2022\.
- \[12\]Y\. Liu, S\. Arunachalam and K\. Temme, “A rigorous and robust quantum speed up in supervised machine learning,”*Nature Physics*, vol\. 17, pp\. 1013–1017, 2021\.
- \[13\]T\. Suzuki, T\. Hasebe and T\. Miyazaki, “Quantum support vector machines for classification and regression on a trapped ion quantum computer,”*Quantum Machine Intelligence*, vol\. 6, no\. 1, art\. no\. 30, 2024\.
- \[14\]N\. Houssein, A\. A\. Abohany, A\. H\. ElSayed and M\. M\. Eldin, “Medical image diagnosis based on adaptive hybrid quantum convolutional neural network,”*BMC Medical Imaging*, vol\. 23, art\. no\. 126, 2023\.
- \[15\]M\. F\. Shahriyar and G\. Tanbhir, “Advancements and Challenges in Quantum Machine Learning for Medical Image Classification: A Comprehensive Review,” in*Proc\. 3rd Int\. Conf\. Intelligent Systems, Advanced Computing and Communication \(ISACC\)*, IEEE, 2025, pp\. 1126–1133\.
- \[16\]M\. F\. Shahriyar, G\. Tanbhir and A\. M\. R\. Chy, “Quantum Machine Learning for Image Classification: A Hybrid Model of Residual Network with Quantum Support Vector Machine,” in*Proc\. 2nd Int\. Conf\. Next\-Generation Computing, IoT and Machine Learning \(NCIM\)*, IEEE, 2025, pp\. 1–6\.
- \[17\]G\. Tanbhir, M\. F\. Shahriyar and A\. M\. R\. Chy, “Quanvolutional Neural Networks for Pneumonia Detection: An Efficient Quantum\-Assisted Feature Extraction Paradigm,” in*Proc\. 2nd Int\. Conf\. Next\-Generation Computing, IoT and Machine Learning \(NCIM\)*, IEEE, 2025, pp\. 1–6\.
- \[18\]M\. F\. Shahriyar, G\. Tanbhir, A\. M\. R\. Chy, M\. A\. A\. Tanzin and M\. J\. Mashrafi, “PhishVQC: Optimizing Phishing URL Detection with Correlation Based Feature Selection and Variational Quantum Classifier,” in*Proc\. 3rd Int\. Conf\. Intelligent Systems, Advanced Computing and Communication \(ISACC\)*, IEEE, 2025, pp\. 1226–1231\.
- \[19\]M\. F\. Shahriyar, “Quantum Kernel Based Classification for Quishing Detection: A Comparative Study of QKNN and QSVM,” in*Proc\. Int\. Conf\. Electrical, Computer and Communication Technologies \(ECCT\)*, 2026, pp\. 1–6\.
- \[20\]D\. Rai, “Handwritten Signatures Dataset,” Kaggle, 2018\. \[Online\]\. Available:https://www\.kaggle\.com/datasets/divyanshrai/handwritten\-signatures相似文章
量子核估计用于早期肺癌检测的发现
本文评估了使用cfDNA片段组学和甲基化数据的量子-经典混合机器学习用于肺癌检测,结果显示量子核模型与传统基线相比具有竞争力的性能。
量子启发式上下文学习在动态交易图中稀疏环欺诈检测中的应用
本文介绍了一个探索性基准测试,用于在动态交易图中检测稀疏环欺诈,采用量子启发式上下文机器学习(CML)与GRU基线进行比较,发现结合身份保持与拓扑摘要的混合图特征取得了最佳结果。
通过混合专家模型的量子启发策略进行图像分类
提出了一种基于混合专家模型的量子启发式经典-量子混合框架用于图像分类,在MNIST和Fashion-MNIST数据集上展示了性能提升和错误率降低。
面向隐私保护联邦生物信号学习的混合量子启发式 Kolmogorov-Arnold 网络
本文介绍了一种用于隐私保护联邦 ECG 数据学习的混合量子启发式 Kolmogorov-Arnold 网络,与传统 MLP 相比,在减少参数和通信成本的同时,提高了分类指标。
联邦量子与经典计算:隐私保护混合方法
本文评估了联邦学习在隐私保护混合量子-经典机器学习中的应用,表明其相比本地训练能提高准确性,同时减少通信开销并保持参数效率。