JEOS RP ISSN02 | Page 134

J. Eur. Opt. Society-Rapid Publ. 21, 43( 2025) 129
Table 2. AUC under different dual-window.
( HEADS = 1, DEPTH = 5)
Dataset
( win in, win out)
( 1, 3)
( 1, 5)
( 1, 7)
( 3, 5)
( 3, 7)
( 5, 7)
Max – Min
Holly
0.9998
0.9997
0.9995
0.9997
0.9996
0.9997
0.0003
Cement Street
0.9392
0.9490
0.9464
0.9454
0.9429
0.9394
0.0098
Jungle-I
0.9807
0.9786
0.9788
0.9793
0.9789
0.9791
0.0021
Jungle-II
0.9452
0.9389
0.9407
0.9455
0.9383
0.9469
0.0086
Average
0.9661
0.9666
0.9664
0.9675
0.9649
0.9663
0.0026
Fig. 6. AUC under different dual-windows when heads = 1. Fig. 8. AUC under different depths when heads = 6.
Fig
. 7. AUC under different numbers of heads when depth = 5.
at depth = 5. The experiment shows that the model performs best when heads = 6. Figure 8 shows the detection results of each dataset at different depths when heads = 6, with the best performance achieved at depth = 5.
In the end, we chose heads = 6, depth = 5, and( win in, win out) =( 9, 11) as the optimal hyperparameter group for the framework.
4.4 Ablation experiment
This section will discuss the role and effectiveness of the proposed constrained self attention transformer module in the
framework. The experiment will test the anomaly detection performance of traditional self attention and constrained self attention on various datasets. Table 3 shows the results of the experiment. Although CSATM performs slightly worse than MSA on the Cement Street dataset, their detection results have AUC values close to 1, and the difference can be ignored. More attention should be paid to the performance on the other three datasets. The performance of CSATM on Holly, Jungle-I, and Jungle-II datasets has significantly improved compared to MSA, indicating that CSATM has stronger feature extraction ability and detection performance. The main reason for the excellent performance of CSATM is that it obtains additional information based on MSA, including local anomaly information at the downsampling scale and global anomaly information provided by SAE. These additional information enable CSATM to adaptively adjust its self-attention weights and improve the performance of the model.
4.5 Comparative experiment
In order to effectively analyze and evaluate our proposed detection framework, the comparison methods we use include:
1. RX [ 4 ]: Assumes background adherence to Gaussian distribution. Estimates the probability density function via background covariance and mean vectors, defining anomaly level as test pixel deviation from background statistical distribution.