Target position and behavior joint identification method based on WiFi

Through WiFi CSI data processing and multi-attention layer structure residual network, it solves the joint recognition problem of location and behavior that requires a large number of samples in the existing technology, and achieves high accuracy and robustness recognition effects in small samples.

CN118692145AActive Publication Date: 2024-09-24LIAONING NORMAL UNIVERSITY
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410781851.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-18
Publication Date
2024-09-24
Estimated Expiration
2044-06-18

AI Technical Summary

Technical Problem

The existing technology requires a large number of training samples to achieve high recognition accuracy in the joint recognition of human target positions and behaviors, and lacks the application of small sample learning methods.

Method used

The WiFi-based CSI data processing method is used to eliminate outliers and noise through Hampel filtering and Gaussian filtering. The peak-finding algorithm is used to decompose the CSI data into position and behavior recognition parts, and convert them into image form to construct a multi-attention layer structure residual. The difference network is trained to achieve joint recognition of location and behavior.

Benefits of technology

In the case of small samples, high joint recognition accuracy and robustness of location and behavior are achieved, providing a practical human-computer interaction solution for related applications.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 00000000_0000
    Figure 00000000_0000
Patent Text Reader

Abstract

The invention discloses a WiFi-based target position and behavior combined identification method, which is characterized in that a small number of training samples are expanded through a multi-link data difference calculation and horizontal flipping mode, CSI data are decomposed into a position identification part and a behavior identification part by using a proposed peak searching algorithm, the position identification part and the behavior identification part are converted into an image form, and the position identification part and the behavior identification part are identified. And inputting the two types of image samples and the corresponding labels into the constructed target identification network for training, thereby performing position and behavior joint identification on the CSI data to be detected. Experimental results show that the method achieves high position and behavior joint recognition accuracy and robustness under the condition of small samples, and a feasible man-machine interaction scheme is provided for related applications.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to the field of wireless sensing technology, and in particular to a WiFi-based target location and behavior joint recognition method. Background Art

[0002] At present, many application systems require simultaneous recognition of multi-dimensional information such as the location and behavior of human targets. For example, in the remote nursing monitoring system for the elderly, it is crucial to accurately track the location and behavior of the monitored person. Once a potential risk behavior such as a fall is detected, the alarm mechanism will be triggered immediately to quickly start the remote medical assistance service; in the smart home system, in order to control electrical equipment, it is necessary to accurately identify the human position and gesture (behavior) information. In order to achieve accurate recognition of multi-dimensional information of human targets, domestic and foreign scholars have conducted in-depth research on key technologies such as computer vision, wearable sensors, and wireless sensing. The accuracy of multi-dimensional information recognition technology based on computer vision is often significantly affected when dealing with complex external environments such as light changes, smoke interference, and obstructions, and it takes a long time; wearable sensors require users to wear specific sensors or deploy specific sensor devices in application scenarios, which has problems such as increased costs and inconvenience in use; recognition technology based on wireless sensing has many significant advantages. This technology is not affected by line-of-sight restrictions and lighting conditions, does not require users to carry any specific equipment, and does not require additional deployment of dedicated sensors in application scenarios. In particular, this technology can effectively protect user privacy, so it has gradually occupied a core position in the field of intelligent sensing.

[0003] Wireless sensing technology mainly includes two types of methods: received signal strength (RSS) and channel state information (CSI). RSS-based sensing technology is limited by the indoor multipath effect and has poor stability. Its application scope is mainly limited to sensing some coarse-grained tasks. In contrast, CSI-based sensing technology can not only obtain the amplitude information of multiple subcarriers, but also the corresponding phase information. In the same propagation environment, the CSI data of the receiving device has higher stability, so it is more suitable for performing fine-grained sensing tasks and meeting the application requirements of higher accuracy and robustness.

[0004] Existing CSI-based joint recognition algorithms for target location and behavior are mainly divided into two categories: machine learning-based and deep learning-based algorithms, both of which require a large number of labeled training samples during training to achieve ideal recognition accuracy. In order to reduce the high cost of data collection and labeling, some scholars have applied small sample learning methods to human target behavior or location recognition algorithms. However, to date, there have been no reports on the application of small sample learning methods to joint recognition algorithms for human target location and behavior. Summary of the invention

[0005] The present invention aims to solve the problem in the prior art that a large number of training samples are needed to achieve high recognition accuracy, and provides a method for joint recognition of target location and behavior based on WiFi.

[0006] The technical solution of the present invention is: a method for joint identification of target location and behavior based on WiFi, which is characterized by being performed in the following manner:

[0007] Step 1: Collect CSI data at time t and express it as follows:

[0008]

[0009] Where: n = 1, 2, ..., N, n represents the ordinal number of the communication link, N represents the total number of communication links, m = 1, 2, ..., M, m represents the ordinal number of the subcarrier of each communication link, M represents the total number of subcarriers of each communication link, i = 1, 2, ..., I, i represents the ordinal number of the data packet of each sample, I represents the total number of data packets of each sample, |h m,i (n)| and φ m,i (n) respectively represent the amplitude and phase of the i-th CSI data of the m-th subcarrier of the n-th communication link;

[0010] The Hampel filter algorithm is used to select and remove outliers: a window of length 2k+1 is set to slide on the CSI amplitude data and process the data, where k is the sliding window length coefficient, and the median med of the window is calculated. s and median absolute deviation MAD s as follows:

[0011]

[0012] Where: median() is the function of taking the median value, s is the sequence number of the CSI amplitude, s=k+1,k+2,…,Ik-1,Ik; if ||h m,s (n)|-med s |>qMAD s , then |h m,s(n)| was identified as an outlier and med s Replace, where q is the weight;

[0013] The Gaussian filtering algorithm is further used to eliminate high-frequency noise in the CSI amplitude;

[0014] Step 2: From a sample amplitude vector of the mth subcarrier of the nth communication link |h m (n)|Find all elements that are greater than the values ​​of the adjacent elements to form a vector |h m The peak value set of (n)| is as follows:

[0015]

[0016] Let high(r) be Peak(|h m The rth element in (n)|) in |h m (n)|, and then find the valley values ​​closest to high(r) at both ends, denoted as low left (r) and low right (r);

[0017] Use the following formula to find the peak and valley values ​​that meet the requirements:

[0018] Max(Min(high(r)-low left (r),high(r)-low right (r))),

[0019] In |h m In (n)|, the data between the two valley values ​​that satisfy the above formula is the behavior recognition part of the CSI sample, and the other data is the location recognition part;

[0020] Step 3: Calculate the difference between the CSI behavior recognition part and the position recognition part of different communication links respectively, and convert the obtained matrix into image form to form the position recognition image and behavior recognition image of the CSI sample;

[0021] Step 4: Build a target recognition network and train it. After the training is completed, store the obtained position and behavior network parameters into the parameter library respectively;

[0022] When constructing the target recognition network for training, J training samples are obtained according to steps 1-3 to obtain a position recognition image and a behavior recognition image, the intersection of the vertical center line and the horizontal center line of the position recognition image and the behavior recognition image is respectively set as the origin, a rectangular coordinate system is established, all pixel points A(x1, y1) of the image are horizontally flipped to A'(-x1, y1), and a new image is generated to obtain J×2 position recognition images and behavior recognition images; the position category label a corresponding to each image is set, a=1,2,...,A, and the behavior category label b, b=1,2,...,B, A is the total number of position categories, and B is the total number of behavior categories, and the position recognition image and label, as well as the action recognition image and label corresponding to each position are respectively input into the target recognition network for training;

[0023] Step 5. Input the position recognition image and behavior recognition image of the CSI sample to be tested into the trained target recognition network in sequence to recognize the position and behavior of the target respectively;

[0024] Specifically, the average value of pixels corresponding to multiple position recognition images is calculated to obtain an average position recognition image, the average position recognition image is input into the target recognition network, and the position network parameters in the parameter library are used to identify the position of the target. Then, the average value of pixels corresponding to multiple behavior recognition images is calculated to obtain an average behavior recognition image, the average behavior recognition image is input into the target recognition network, and the behavior network parameters corresponding to the above-mentioned identified positions are used to identify the behavior of the target.

[0025] The preferred technical solution is that the constructed target recognition network is a multi-attention layer structure residual network, which is composed of a feature extraction module and a prediction classification module;

[0026] The feature extraction module is sequentially provided with a convolution layer Conv1, a maximum pooling layer Maxpool, a combination structure of a channel attention layer CA1 and a spatial attention layer SA1, a combination structure of a convolution block layer Conv block1 and a spatial attention layer SA2, a combination structure of a convolution block layer Conv block2 and a spatial attention layer SA3, a combination structure of a convolution block layer Conv block3 and a spatial attention layer SA4, a convolution block layer Conv block4, a combination structure of a channel attention layer CA2 and a spatial attention layer SA5, and an average pooling layer Avgpool; the convolution block layers Conv block1-4 are composed of two non-convolution residual blocks and one convolution residual block connected in series;

[0027] The specific operation is to perform a convolution operation on the input image P through the convolution layer Conv1, then perform an operation through the maximum pooling layer Maxpool, and then use the channel attention layer CA1 to assign different weights to different channels. The function is as follows:

[0028] Map1(P)=σ(MLP(AvgPool(P))+MLP(MaxPool(P))),

[0029] Where: AvgPool() and MaxPool() are average pooling and maximum pooling functions respectively, MLP() is a multi-layer perceptron function, σ() represents the Sigmoid function, and Map1() is element-wise multiplied with the image P to obtain the reconstructed feature map F;

[0030] The spatial attention layer SA1 is used to assign different weights to different pixels. The function is as follows:

[0031] F′=σ(f 7×7 ([AvgPool(F);MaxPool(F)])),

[0032] Where: f 7×7 () indicates a convolution operation with a convolution kernel size of 7×7;

[0033] The feature image F′ after the spatial attention weights are sequentially processed by the combination structure of the convolution block layer Conv block1 and the spatial attention layer SA2, the combination structure of the convolution block layer Conv block2 and the spatial attention layer SA3, and the combination structure of the convolution block layer Conv block3 and the spatial attention layer SA4, and then processed by the combination structure of the convolution block layer Conv block4, the channel attention layer CA2 and the spatial attention layer SA5, and then processed by the average pooling layer Avgpool, and finally the feature matrix of the input image is obtained;

[0034] The prediction classification module is two fully connected layers FC1 and FC2.

[0035] The present invention expands a small number of training samples by performing multi-link data difference calculation and horizontal flipping, decomposes CSI data into position recognition part and behavior recognition part by using the proposed peak-finding algorithm, and converts them into image form. Then, the two types of image samples and corresponding labels are input into the constructed target recognition network for training, thereby performing position and behavior joint recognition on the CSI data to be tested. Experimental results show that the present invention achieves higher accuracy and robustness of joint recognition of position and behavior in the case of small samples, and provides a practical human-computer interaction solution for related applications. BRIEF DESCRIPTION OF THE DRAWINGS

[0036] Figure 1 It is a schematic diagram of a flow chart of an embodiment of the present invention.

[0037] Figure 2 Schematic diagram of the structure of the target recognition network of the embodiment of the present invention.

[0038] Figure 3 It is a schematic diagram comparing the test results of the embodiment of the present invention and various methods. DETAILED DESCRIPTION

[0039] The embodiments of the present invention are experimented in two laboratories with different indoor layouts. In the experiment, two desktop computers equipped with Intel 5300 wireless network interface cards and Ubuntu 12.04 operating system are used as transmitters and receivers. The transmitter is connected to one antenna, and the receiver is connected to three antennas. The transmitting and receiving antennas are both 0.5 meters above the ground. The distances between the transmitter and the receiver in experimental scenarios 1 and 2 are 4.2 meters and 6.6 meters respectively. The receiver uses a sampling frequency of 1000 Hz for data acquisition, and obtains CSI measurement values ​​of 30 subcarriers from the three receiving antennas respectively.

[0040] In the experiment of each scene of the embodiment of the present invention, one male volunteer and one female volunteer are respectively asked to perform six different actions at nine specific positions, and the CSI data of the male and female volunteers are collected, that is, 54 types of volunteer states. Each action continuously collects 4 seconds of data as one sample, and 50 samples are collected for each state. The training and test samples of the embodiment of the present invention are data collected from male volunteers, data collected from female volunteers, and data collected from mixed male and female volunteers. The data collected from mixed male and female volunteers includes 25 samples randomly selected from 50 samples of each state of male and female volunteers, for a total of 50 samples.

[0041] The process of the invented method for joint identification of target location and behavior based on WiFi is as follows: Figure 1 As shown, firstly, the training samples are processed by steps 1-3 to obtain the position recognition image (position sample) and behavior recognition image (action sample) of the CSI sample, as follows:

[0042] Step 1: Since the acquired CSI data represents the discrete sampling of the time-frequency response of the wireless channel, the CSI data collected at time t can be expressed as follows:

[0043]

[0044] Wherein: n=1,2,…,N, n represents the ordinal number of the communication link, N represents the total number of the communication links, and N in the embodiment of the present invention is 3, m=1,2,…,M, m represents the ordinal number of the subcarrier of each communication link, M represents the total number of the subcarrier of each communication link, and M in the embodiment of the present invention is 30, i=1,2,…,I, i represents the ordinal number of the data packet of each sample, and I represents the total number of the data packets of each sample. In the case of no packet loss, I in the embodiment of the present invention is 4000, |h m,i (n)|and φ m,i (n) respectively represent the amplitude and phase of the i-th CSI data of the m-th subcarrier of the n-th communication link;

[0045] The Hampel filtering algorithm is used to select and remove outliers to improve the accuracy of the CSI amplitude data. A window with a length of 2k+1 is set to slide on the CSI amplitude data and process the data, where k is the sliding window length coefficient. In the embodiment of the present invention, k is set to 150. The median med of the window is calculated. s and median absolute deviation MAD s as follows:

[0046]

[0047] Where: median() is the function of taking the median value, s is the sequence number of the CSI amplitude, s = 151, 152, ..., 3849, 3850;

[0048] If ||h m,s (n)|-med s |>qMAD s , then |h m,s (n)| was identified as an outlier and med s Replace, where q is the weight, and in the embodiment of the present invention, q is set to 0.1;

[0049] After the abnormal values ​​in the CSI amplitude are eliminated, the Gaussian filtering algorithm is further used to eliminate the high-frequency noise in the CSI amplitude;

[0050] Step 2: From a sample amplitude vector of the mth subcarrier of the nth communication link |h m (n)|Find all elements that are greater than the values ​​of the adjacent elements to form a vector |h m The peak value set of (n)| is as follows:

[0051]

[0052] Let high(r) be Peak(|h m The rth element in (n)|) in |h m (n)|, and then find the valley values ​​closest to high(r) at both ends, denoted as low left (r) and low right (r);

[0053] Use the following formula to find the peak and valley values ​​that meet the requirements:

[0054] Max(Min(high(r)-lowleft (r),high(r)-low right (r))),

[0055] In |h m In (n)|, the data between the two valley values ​​that satisfy the above formula is the behavior recognition part of the CSI sample, and the other data is the location recognition part. This method of decomposing CSI is called the peak finding algorithm;

[0056] Step 3: The experimental device of the embodiment of the present invention includes N=3 communication links, and the difference between the CSI behavior recognition part and the position recognition part of the second and third communication links and the first communication link is calculated respectively to eliminate static path interference, and the obtained matrix is ​​converted into an image form, so that two behavior recognition images and two position recognition images can be obtained;

[0057] The intersection of the vertical center line and the horizontal center line of the image is set as the origin, a rectangular coordinate system is established, and all pixel points A(x1, y1) of the image are horizontally flipped to A'(-x1, y1). A new image is generated as a new sample. The number of samples becomes twice as much as the original one. A CSI training sample will be decomposed and transformed into 4 behavior recognition images and 4 location recognition images.

[0058] Step 4: Build a target recognition network and train it. After the training is completed, store the obtained position and behavior network parameters into the parameter library respectively;

[0059] The constructed target recognition network is a multi-attention layer structure residual network, such as Figure 2 As shown, it consists of a feature extraction module and a prediction and classification module;

[0060] The feature extraction module is sequentially provided with a convolution layer Conv1, a maximum pooling layer Maxpool, a combination structure of a channel attention layer CA1 and a spatial attention layer SA1, a combination structure of a convolution block layer Conv block1 and a spatial attention layer SA2, a combination structure of a convolution block layer Conv block2 and a spatial attention layer SA3, a combination structure of a convolution block layer Conv block3 and a spatial attention layer SA4, a convolution block layer Conv block4, a combination structure of a channel attention layer CA2 and a spatial attention layer SA5, and an average pooling layer Avgpool; the convolution block layers Conv block1-4 are composed of two non-convolution residual blocks and one convolution residual block connected in series;

[0061] The specific operation is to perform a convolution operation on the input image P through the convolution layer Conv1, then perform an operation through the maximum pooling layer Maxpool, and then use the channel attention layer CA1 to assign different weights to different channels. The function is as follows:

[0062] Map1(P)=σ(MLP(AvgPool(P))+MLP(MaxPool(P))),

[0063] Where: AvgPool() and MaxPool() are average pooling and maximum pooling functions respectively, MLP() is a multi-layer perceptron function, σ() represents the Sigmoid function, and Map1() is element-wise multiplied with the image P to obtain the reconstructed feature map F;

[0064] The spatial attention layer SA1 is used to assign different weights to different pixels. The function is as follows:

[0065] F′=σ(f 7×7 ([AvgPool(F);MaxPool(F)])),

[0066] Where: f 7×7 () indicates a convolution operation with a convolution kernel size of 7×7;

[0067] The feature image F′ after the spatial attention weights are sequentially processed by the combination structure of the convolution block layer Conv block1 and the spatial attention layer SA2, the combination structure of the convolution block layer Conv block2 and the spatial attention layer SA3, and the combination structure of the convolution block layer Conv block3 and the spatial attention layer SA4, and then processed by the combination structure of the convolution block layer Conv block4, the channel attention layer CA2 and the spatial attention layer SA5, and then processed by the average pooling layer Avgpool, and finally the feature matrix of the input image is obtained;

[0068] The prediction classification module is two fully connected layers FC1 and FC2.

[0069] When the constructed target recognition network is trained, since the position label and behavior label corresponding to each training sample are known, the position category label a corresponding to each image can be set, a=1,2,…,A, A is the total number of position categories 9, and the behavior category label b, b=1,2,…,B, B is the total number of behavior categories 6, and the position recognition image and label, as well as the action recognition image and label corresponding to each position are respectively input into the target recognition network for training;

[0070] Step 5. Input the position recognition image and behavior recognition image of the CSI sample to be tested into the trained target recognition network in sequence to recognize the position and behavior of the target respectively;

[0071] For each CSI test sample, obtain two position recognition images and two behavior recognition images according to steps 1-3, then calculate the average value of the corresponding pixels of the two position recognition images to obtain an average position recognition image, input the average position recognition image into the target recognition network, use the position network parameters in the parameter library to recognize the position of the target, then calculate the average value of the corresponding pixels of the two behavior recognition images to obtain an average behavior recognition image, input the average behavior recognition image into the target recognition network, and use the behavior network parameters corresponding to the above-mentioned recognized positions to recognize the behavior of the target.

[0072] The embodiment of the present invention uses the data of male volunteers, female volunteers and mixed male and female volunteers in experimental scenarios 1 and 2, randomly selects 1, 5 and 10 samples from each type of state samples as training samples, and the remaining samples are used as test samples to conduct experiments. The experimental results are shown in Table 1.

[0073] Table 1

[0074]

[0075] As can be seen from Table 1, as the number of training samples increases, the recognition accuracy of the present invention gradually increases. When the number of training samples in each category is 1, the recognition accuracy using all data sets is above 74%, and the average accuracy reaches 79.83%; when the number of training samples in each category is 5, the minimum recognition accuracy is 95%, and the average accuracy is 96.83%. The above experimental results show that the present invention can not only obtain a higher recognition accuracy in the case of small sample training, but also obtain a higher accuracy when using data from different volunteers in different environments, which shows that the present invention has higher small sample recognition accuracy and stability.

[0076] The present invention uses mixed male and female volunteer data from experimental scenarios 1 and 2 to evaluate the performance of the present invention method, SVM, KNN, CNN, and AB-LSTM. The obtained position and behavior joint recognition accuracy is as follows: Figure 3 As shown. Figure 3 It can be seen that when using the data of scenario 1, compared with SVM,

[0077] Compared with KNN, CNN and AB-LSTM algorithms, the recognition accuracy of the method of the present invention is improved by

[0078] 12.77%, 11.06%, 4.87% and 3.6% respectively; when using the data from scenario 2, the increases were 11.51%,

[0079] 13.22%, 6.52% and 3.92%.

Claims

1. A method for joint identification of target location and behavior based on WiFi, characterized in that Proceed as follows: Step 1: Collect CSI data at time t and express it as follows: Where: n = 1, 2, ..., N, n represents the ordinal number of the communication link, N represents the total number of communication links, m = 1, 2, ..., M, m represents the ordinal number of the subcarrier of each communication link, M represents the total number of subcarriers of each communication link, i = 1, 2, ..., I, i represents the ordinal number of the data packet of each sample, I represents the total number of data packets of each sample, |h m,i (n)| and φ m,i (n) respectively represent the amplitude and phase of the i-th CSI data of the m-th subcarrier of the n-th communication link; The Hampel filter algorithm is used to select and remove outliers: a window of length 2k+1 is set to slide on the CSI amplitude data and process the data, where k is the sliding window length coefficient, and the median med of the window is calculated. s and median absolute deviation MAD s as follows: Where: median() is the function of taking the median value, s is the sequence number of the CSI amplitude, s=k+1,k+2,…,Ik-1,Ik; if ||h m,s (n)|-med s |>qMAD s , then |h m,s (n)| was identified as an outlier and med s Replace, where q is the weight; The Gaussian filtering algorithm is further used to eliminate high-frequency noise in the CSI amplitude; Step 2: From a sample amplitude vector of the mth subcarrier of the nth communication link |h m (n)|Find all elements that are greater than the values ​​of the adjacent elements to form a vector |h m The peak value set of (n)| is as follows: Let high(r) be Peak(|h m The rth element in (n)|) in |h m (n)|, and then find the valley values ​​closest to high(r) at both ends, denoted as low left (r) and low right (r); Use the following formula to find the peak and valley values ​​that meet the requirements: Max(Min(high(r)-low left (r),high(r)-low right (r))), In |h m In (n)|, the data between the two valley values ​​that satisfy the above formula is the behavior recognition part of the CSI sample, and the other data is the location recognition part; Step 3: Calculate the difference between the behavior recognition part and the position recognition part of the CSI of different communication links respectively, and convert the obtained matrix into an image form to form the position recognition image and behavior recognition image of the CSI sample; Step 4: Build a target recognition network and train it. After the training is completed, store the obtained position and behavior network parameters into the parameter library respectively; When constructing the target recognition network for training, J training samples are obtained according to steps 1-3 to obtain a position recognition image and a behavior recognition image, the intersection of the vertical center line and the horizontal center line of the position recognition image and the behavior recognition image is respectively set as the origin, a rectangular coordinate system is established, all pixel points A(x1, y1) of the image are horizontally flipped to A'(-x1, y1), and a new image is generated to obtain J×2 position recognition images and behavior recognition images; the position category label a corresponding to each image is set, a=1,2,...,A, and the behavior category label b, b=1,2,...,B, A is the total number of position categories, and B is the total number of behavior categories, and the position recognition image and label, as well as the action recognition image and label corresponding to each position are respectively input into the target recognition network for training; Step 5. Input the position recognition image and behavior recognition image of the CSI sample to be tested into the trained target recognition network in sequence to recognize the position and behavior of the target respectively; Specifically, the average value of pixels corresponding to multiple position recognition images is calculated to obtain an average position recognition image, the average position recognition image is input into the target recognition network, and the position network parameters in the parameter library are used to identify the position of the target. Then, the average value of pixels corresponding to multiple behavior recognition images is calculated to obtain an average behavior recognition image, the average behavior recognition image is input into the target recognition network, and the behavior network parameters corresponding to the above-mentioned identified positions are used to identify the behavior of the target.

2. The method for joint identification of target location and behavior based on WiFi according to claim 1, characterized in that: The constructed target recognition network is a multi-attention layer structure residual network, which is composed of a feature extraction module and a prediction classification module; The feature extraction module is sequentially provided with a convolution layer Conv1, a maximum pooling layer Maxpool, a combination structure of a channel attention layer CA1 and a spatial attention layer SA1, a combination structure of a convolution block layer Conv block1 and a spatial attention layer SA2, a combination structure of a convolution block layer Conv block2 and a spatial attention layer SA3, a combination structure of a convolution block layer Conv block3 and a spatial attention layer SA4, a convolution block layer Conv block4, a combination structure of a channel attention layer CA2 and a spatial attention layer SA5, and an average pooling layer Avgpool; the convolution block layers Conv block1-4 are composed of two non-convolution residual blocks and one convolution residual block connected in series; The specific operation is to perform a convolution operation on the input image P through the convolution layer Conv1, then perform an operation through the maximum pooling layer Maxpool, and then use the channel attention layer CA1 to assign different weights to different channels. The function is as follows: Map1(P)=σ(MLP(AvgPool(P))+MLP(MaxPool(P))), Where: AvgPool() and MaxPool() are average pooling and maximum pooling functions respectively, MLP() is a multi-layer perceptron function, σ() represents the Sigmoid function, and Map1() is element-wise multiplied with the image P to obtain the reconstructed feature map F; The spatial attention layer SA1 is used to assign different weights to different pixels. The function is as follows: F′=σ(f 7×7 ([AvgPool(F);MaxPool(F)])), Where: f 7×7 () indicates a convolution operation with a convolution kernel size of 7×7; The feature image F′ after the spatial attention weights are sequentially processed by the combination structure of the convolution block layer Conv block1 and the spatial attention layer SA2, the combination structure of the convolution block layer Conv block2 and the spatial attention layer SA3, and the combination structure of the convolution block layer Convblock3 and the spatial attention layer SA4, and then processed by the combination structure of the convolution block layer Conv block4, the channel attention layer CA2 and the spatial attention layer SA5, and then processed by the average pooling layer Avgpool, and finally the feature matrix of the input image is obtained; The prediction classification module is two fully connected layers FC1 and FC2.