A method for jointly identifying target position and behavior based on WiFi

By processing CSI data with Hampel and Gaussian filters, and combining peak-finding algorithms and multi-attention layer residual networks, the problem of few-sample learning was solved, and high-precision joint recognition of target location and behavior was achieved.

CN118692145BActive Publication Date: 2026-11-27LIAONING NORMAL UNIVERSITY
View PDF 0 Cites 0 Cited by

Patent Information

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

AI Technical Summary

Technical Problem

Existing CSI-based joint target location and behavior recognition algorithms require a large number of training samples to achieve high recognition accuracy, and there is no application of small sample learning methods.

Method used

The CSI data is processed using Hampel filtering and Gaussian filtering algorithms. The peak finding algorithm is used to decompose the CSI data into location recognition and behavior recognition parts. A residual network with a multi-attention layer structure is constructed for training and expanded using a small number of training samples.

Benefits of technology

It achieves high accuracy and robustness in joint location and behavior recognition even with small sample sizes, providing a practical human-computer interaction solution.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118692145B_ABST
    Figure CN118692145B_ABST
Patent Text Reader

Abstract

The application discloses a WiFi-based target position and behavior joint identification method, which is characterized in that: a small amount of training samples are expanded through multi-link data difference calculation and horizontal flip, CSI data is decomposed into a position identification part and a behavior identification part by using a proposed peak searching algorithm, and is converted into an image form, and then two types of image samples and corresponding labels are input into a constructed target identification network for training, so as to jointly identify the position and behavior of to-be-tested CSI data. The experimental results show that the application realizes high position and behavior joint identification accuracy and robustness under a small sample condition, and provides a feasible human-computer interaction scheme for related applications.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of wireless sensing technology, and in particular to a method for joint identification of target location and behavior based on WiFi. Background Technology

[0002] Currently, many application systems require the simultaneous identification of multi-dimensional information such as the location and behavior of human targets. For example, in remote elderly care monitoring systems, accurately tracking the location and behavior of the monitored person is crucial. Once a potential risk behavior such as a fall is detected, an alarm mechanism is immediately triggered to quickly initiate remote medical assistance services. In smart home systems, accurate identification of human location and gesture (behavior) information is essential for controlling electrical appliances. To achieve accurate identification of multi-dimensional information of human targets, scholars at home and abroad have conducted in-depth research on key technologies such as computer vision, wearable sensors, and wireless sensing. Multi-dimensional information recognition technology based on computer vision often suffers significant accuracy issues when dealing with complex external environments such as changes in light, smoke interference, and obstructions, and is also time-consuming. Wearable sensors require users to wear specific sensors or deploy specific sensor devices in application scenarios, leading to increased costs and inconvenience. Wireless sensing-based recognition technology has several significant advantages. This technology is not limited by line-of-sight or lighting conditions, does not require users to carry any specific devices, and does not require the deployment of additional dedicated sensors in application scenarios. In particular, this technology effectively protects user privacy, and therefore has gradually occupied a core position in the field of intelligent sensing.

[0003] Wireless sensing technologies mainly include two categories: methods based on Received Signal Strength (RSS) and Channel State Information (CSI). RSS-based sensing techniques are limited by indoor multipath effects and have poor stability, restricting their application to coarse-grained sensing tasks. In contrast, CSI-based sensing techniques can acquire amplitude information from multiple subcarriers as well as corresponding phase information. Under the same propagation environment, the CSI data from the receiving device exhibits higher stability, making it more suitable for performing fine-grained sensing tasks and meeting the application requirements for higher accuracy and robustness.

[0004] Existing CSI-based joint target location and behavior recognition algorithms are mainly divided into two categories: machine learning-based and deep learning-based algorithms. Both require a large number of labeled training samples to achieve ideal recognition accuracy. To reduce the high costs associated with data acquisition and labeling, some researchers have applied few-shot learning methods to human target behavior or location recognition algorithms. However, to date, there have been no reports on applying few-shot learning methods to joint recognition algorithms for human target location and behavior. Summary of the Invention

[0005] This invention aims to address the problem in existing technologies that require a large number of training samples to achieve high recognition accuracy, by providing a WiFi-based method for joint recognition of target location and behavior.

[0006] The technical solution of this invention is: a method for joint identification of target location and behavior based on WiFi, characterized by the following method:

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

[0008]

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

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

[0011]

[0012] In the formula: median() is the function to take the median value, s is the index 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) is identified as an outlier and is used with med s Perform the replacement, where q is the weight;

[0013] Furthermore, a Gaussian filtering algorithm is employed to eliminate high-frequency noise in the CSI amplitude;

[0014] Step 2: From a sample amplitude vector |h of the m-th subcarrier of the n-th communication link m Find all elements in (n) whose values ​​are greater than their adjacent elements, and form a vector |h|. m The set of peak values ​​for (n)| is as follows:

[0015]

[0016] Let high(r) be Peak(|h) m The r-th element in (n)|) is in |h m Find high(r) in (n)|, then find the nearest valleys at both ends of high(r), and denote them as low(r) and low(r) respectively. left (r) and low right (r);

[0017] Find the peak and valley values ​​that meet the requirements using the following formula:

[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 location recognition part for different communication links, and convert the obtained matrix into image form to form the location recognition image and behavior recognition image of the CSI sample;

[0021] Step 4: Construct and train the target recognition network. After training, store the obtained location and behavior network parameters into the parameter library.

[0022] When training the target recognition network, J training samples are used to obtain position recognition images and behavior recognition images according to steps 1-3. The intersection of the vertical and horizontal center lines of the position recognition images and behavior recognition images is set as the origin to establish a rectangular coordinate system. All pixels A(x1,y1) of the image are horizontally flipped to A'(-x1,y1) to generate a new image, resulting in J×2 position recognition images and behavior recognition images. Each image is assigned a position category label a, a = 1, 2, ..., A, and a behavior category label b, b = 1, 2, ..., B, where A is the total number of position categories and B is the total number of behavior categories. The position recognition images and labels, as well as the action recognition images and labels corresponding to each position, are input into the target recognition network for training.

[0023] Step 5. Input the location recognition image and behavior recognition image of the CSI sample to be tested into the trained target recognition network in turn to identify the target's location and behavior respectively;

[0024] Specifically, the average value of pixels corresponding to multiple location recognition images is calculated to obtain an average location recognition image. This average location recognition image is then input into the target recognition network, which uses the location network parameters in the parameter library to identify the target's location. Then, the average value of pixels corresponding to multiple behavior recognition images is calculated to obtain an average behavior recognition image. This average behavior recognition image is then input into the target recognition network, which uses the behavior network parameters corresponding to the identified locations to identify the target's behavior.

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

[0026] The feature extraction module consists of, in sequence, a convolutional layer Conv1, a max pooling layer Maxpool, a combination of a channel attention layer CA1 and a spatial attention layer SA1, a combination of a convolutional block layer Conv block1 and a spatial attention layer SA2, a combination of a convolutional block layer Conv block2 and a spatial attention layer SA3, a combination of a convolutional block layer Conv block3 and a spatial attention layer SA4, a convolutional block layer Conv block4, a combination of a channel attention layer CA2 and a spatial attention layer SA5, and an average pooling layer Avgpool; the convolutional block layers Conv blocks1-4 are composed of two non-convolutional residual blocks and one convolutional residual block connected in series.

[0027] The specific operation involves performing a convolution operation on the input image P through a Conv1 convolutional layer, followed by a Maxpooling layer, and then assigning different weights to different channels using a channel attention layer CA1. The function is as follows:

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

[0029] In the formula: AvgPool() and MaxPool() are the average pooling and max pooling functions, respectively; MLP() is the multilayer perceptron function; σ() represents the Sigmoid function; and Map1() is then element-wise multiplied with the image P to obtain the reconstructed feature map F.

[0030] Different weights are assigned to different pixels using a spatial attention layer SA1, as shown in the function below:

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

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

[0033] The feature image F′ after spatial attention weighting is processed sequentially through a combination structure of convolutional block layer Conv block1 and spatial attention layer SA2, a combination structure of convolutional block layer Conv block2 and spatial attention layer SA3, and a combination structure of convolutional block layer Conv block3 and spatial attention layer SA4. Then it is processed through a combination structure of convolutional block layer Conv block4, channel attention layer CA2 and spatial attention layer SA5. Finally, it is processed by the average pooling layer Avgpool to obtain the feature matrix of the input image.

[0034] The prediction and classification module consists of two fully connected layers, FC1 and FC2.

[0035] This invention expands a small number of training samples by performing multi-link data difference calculation and horizontal flipping. It utilizes a proposed peak-finding algorithm to decompose CSI data into location recognition and behavior recognition components, converting them into image format. The two types of image samples and their corresponding labels are then input into a constructed target recognition network for training, thereby enabling joint location and behavior recognition of the CSI data under test. Experimental results show that this invention achieves high accuracy and robustness in joint location and behavior recognition even with small sample sizes, providing a practical human-computer interaction solution for related applications. Attached Figure Description

[0036] Figure 1 This is a flowchart illustrating an embodiment of the present invention.

[0037] Figure 2 This is a schematic diagram of the target recognition network according to an embodiment of the present invention.

[0038] Figure 3 This is a schematic diagram comparing the test results of embodiments of the present invention with those of various methods. Detailed Implementation

[0039] This invention was demonstrated in two laboratories with different indoor layouts. Two desktop computers equipped with Intel 5300 wireless network interface cards and Ubuntu 12.04 operating systems were used as transmitters and receivers. Each transmitter was connected to one antenna, and each receiver was connected to three antennas. Both transmitting and receiving antennas were 0.5 meters above the ground. The distances between the transmitter and receiver in experimental scenarios 1 and 2 were 4.2 meters and 6.6 meters, respectively. The receivers used a 1000Hz sampling frequency for data acquisition and obtained CSI measurements of 30 subcarriers from the three receiving antennas.

[0040] In each scenario of this invention, one male volunteer and one female volunteer performed six different actions at nine specific locations. CSI data (54 volunteer states) was collected from both male and female volunteers. Data for each action was collected continuously for four seconds as one sample, with 50 samples collected for each state state. The training and testing samples in this invention consisted of data collected from male volunteers, female volunteers, and mixed-gender volunteers, respectively. The mixed-gender volunteer data included 25 randomly selected samples from each of the 50 samples for each state state from both male and female volunteers, for a total of 50 samples.

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

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

[0043]

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

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

[0046]

[0047] In the formula: median() is the function to take the median value, s is the index of the CSI amplitude, s = 151, 152, ..., 3849, 3850;

[0048] If ||h m,s (n)|-med s |>qMAD s Then |h m,s (n) is identified as an outlier and is used with med s The replacement is performed, where q is the weight, and in this embodiment of the invention, q is set to 0.1;

[0049] After removing outliers from the CSI amplitude, a Gaussian filtering algorithm is further used to eliminate high-frequency noise in the CSI amplitude.

[0050] Step 2: From a sample amplitude vector |h of the m-th subcarrier of the n-th communication link m Find all elements in (n) whose values ​​are greater than their adjacent elements, and form a vector |h|. m The set of peak values ​​for (n)| is as follows:

[0051]

[0052] Let high(r) be Peak(|h) m The r-th element in (n)|) is in |h m Find high(r) in (n)|, then find the nearest valleys at both ends of high(r), and denote them as low(r) and low(r) respectively. left (r) and low right (r);

[0053] Find the peak and valley values ​​that meet the requirements using the following formula:

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

[0055] In |h m In (n)|, the data between two valleys 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 this embodiment of the invention includes N=3 communication links. The differences between the CSI behavior recognition part and the position recognition part of the second and third communication links and the first communication link are calculated respectively to eliminate static path interference. The obtained matrix is ​​converted into image form, so that two behavior recognition images and two position recognition images can be obtained.

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

[0058] Step 4: Construct and train the target recognition network. After training, store the obtained location and behavior network parameters into the parameter library.

[0059] The constructed target recognition network is a multi-attention layer 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 consists of, in sequence, a convolutional layer Conv1, a max pooling layer Maxpool, a combination of a channel attention layer CA1 and a spatial attention layer SA1, a combination of a convolutional block layer Conv block1 and a spatial attention layer SA2, a combination of a convolutional block layer Conv block2 and a spatial attention layer SA3, a combination of a convolutional block layer Conv block3 and a spatial attention layer SA4, a convolutional block layer Conv block4, a combination of a channel attention layer CA2 and a spatial attention layer SA5, and an average pooling layer Avgpool; the convolutional block layers Conv blocks1-4 are composed of two non-convolutional residual blocks and one convolutional residual block connected in series.

[0061] The specific operation involves performing a convolution operation on the input image P through a Conv1 convolutional layer, followed by a Maxpooling layer, and then assigning different weights to different channels using a channel attention layer CA1. The function is as follows:

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

[0063] In the formula: AvgPool() and MaxPool() are the average pooling and max pooling functions, respectively; MLP() is the multilayer perceptron function; σ() represents the Sigmoid function; and Map1() is then element-wise multiplied with the image P to obtain the reconstructed feature map F.

[0064] Different weights are assigned to different pixels using a spatial attention layer SA1, as shown in the function below:

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

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

[0067] The feature image F′ after spatial attention weighting is processed sequentially through a combination structure of convolutional block layer Conv block1 and spatial attention layer SA2, a combination structure of convolutional block layer Conv block2 and spatial attention layer SA3, and a combination structure of convolutional block layer Conv block3 and spatial attention layer SA4. Then it is processed through a combination structure of convolutional block layer Conv block4, channel attention layer CA2 and spatial attention layer SA5. Finally, it is processed by the average pooling layer Avgpool to obtain the feature matrix of the input image.

[0068] The prediction and classification module consists of two fully connected layers, FC1 and FC2.

[0069] When training the constructed target recognition network, since the location label and behavior label corresponding to each training sample are known, we can set the location category label a, a = 1, 2, ..., A, where A is the total number of location categories (9), and the behavior category label b, b = 1, 2, ..., B, where B is the total number of behavior categories (6). The location recognition image and label, as well as the action recognition image and label corresponding to each location, are input into the target recognition network for training.

[0070] Step 5. Input the location recognition image and behavior recognition image of the CSI sample to be tested into the trained target recognition network in turn to identify the target's location and behavior respectively;

[0071] For each CSI test sample, obtain two location recognition images and two behavior recognition images according to steps 1-3. Then calculate the average value of the corresponding pixels in the two location recognition images to obtain one average location recognition image. Input the average location recognition image into the target recognition network and use the location network parameters in the parameter library to identify the target's location. Then calculate the average value of the corresponding pixels in the two behavior recognition images to obtain one average behavior recognition image. Input the average behavior recognition image into the target recognition network and use the behavior network parameters corresponding to the identified locations to identify the target's behavior.

[0072] In this embodiment of the invention, data from male volunteers, female volunteers, and mixed-gender volunteers in experimental scenarios 1 and 2 were used to randomly select 1, 5, and 10 samples from each state sample as training samples, and the remaining samples as test samples. The experimental results are shown in Table 1.

[0073] Table 1

[0074]

[0075] As shown in Table 1, the recognition accuracy of this invention gradually increases with the increase of the number of training samples. When there is only one training sample per class, the recognition accuracy using all datasets is above 74%, with an average accuracy of 79.83%. When there are five training samples per class, the minimum recognition accuracy is 95%, and the average accuracy is 96.83%. These experimental results demonstrate that this invention not only achieves high recognition accuracy with small sample training but also maintains high accuracy when using data from different environments and volunteers. This indicates that this invention possesses high accuracy and stability in small sample recognition.

[0076] The embodiments of this invention utilize mixed-gender volunteer data from experimental scenarios 1 and 2 to evaluate the performance of the proposed method, SVM, KNN, CNN, and AB-LSTM. The obtained joint location and behavior recognition accuracy is as follows: Figure 3 As shown. From Figure 3 It can be seen that when using the data from Scenario 1, compared with SVM,

[0077] Compared with KNN, CNN and AB-LSTM algorithms, the recognition accuracy of the method in this invention is improved respectively.

[0078] 12.77%, 11.06%, 4.87%, and 3.6%; when using data from Scenario 2, these figures increased by 11.51%, respectively.

[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... Follow these steps: Step 1: Collect CSI data at time t and represent it as follows: In the formula: n = 1, 2, ..., N, where n represents the ordinal number of the communication link, N represents the total number of communication links, m = 1, 2, ..., M, where m represents the ordinal number of the subcarrier in each communication link, M represents the total number of subcarriers in each communication link, i = 1, 2, ..., I, where i represents the ordinal number of the data packet in each sample, I represents the total number of data packets in each sample, |h m,i (n)|and φ m,i (n) represent the amplitude and phase of the i-th CSI data of the m-th subcarrier of the n-th communication link, respectively; The Hampel filtering algorithm is used to select and remove outliers: a window of length 2k+1 is set to slide across the CSI amplitude data and process the data, where k is the sliding window length coefficient, and the median med of this window is calculated. s and median absolute deviation (MAD) s as follows: In the formula: median() is the function to take the median value, s is the index 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) is identified as an outlier and is used with med s Perform the replacement, where q is the weight; Furthermore, a Gaussian filtering algorithm is employed to eliminate high-frequency noise in the CSI amplitude; Step 2: From a sample amplitude vector |h of the m-th subcarrier of the n-th communication link m Find all elements in (n) whose values ​​are greater than their adjacent elements, and form a vector |h|. m The set of peak values ​​for (n)| is as follows: Let high(r) be Peak(|h) m The r-th element in (n)|) is in |h m Find high(r) in (n)|, then find the nearest valleys at both ends of high(r), and denote them as low(r) and low(r) respectively. left (r) and low right (r); Find the peak and valley values ​​that meet the requirements using the following formula: 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 CSI behavior recognition part and the location recognition part for different communication links, and convert the obtained matrix into image form to form the location recognition image and behavior recognition image of the CSI sample; Step 4: Construct and train the target recognition network. After training, store the obtained location and behavior network parameters into the parameter library. When training the target recognition network, J training samples are used to obtain position recognition images and behavior recognition images according to steps 1-3. The intersection of the vertical and horizontal center lines of the position recognition images and behavior recognition images is set as the origin to establish a rectangular coordinate system. All pixels A(x1,y1) of the image are horizontally flipped to A'(-x1,y1) to generate a new image, resulting in J×2 position recognition images and behavior recognition images. Each image is assigned a position category label a, a = 1, 2, ..., A, and a behavior category label b, b = 1, 2, ..., B, where A is the total number of position categories and B is the total number of behavior categories. The position recognition images and labels, as well as the action recognition images and labels corresponding to each position, are input into the target recognition network for training. Step 5. Input the location recognition image and behavior recognition image of the CSI sample to be tested into the trained target recognition network in turn to identify the target's location and behavior respectively; Specifically, the average value of pixels corresponding to multiple location recognition images is calculated to obtain an average location recognition image. This average location recognition image is then input into the target recognition network, which uses the location network parameters in the parameter library to identify the target's location. Then, the average value of pixels corresponding to multiple behavior recognition images is calculated to obtain an average behavior recognition image. This average behavior recognition image is then input into the target recognition network, which uses the behavior network parameters corresponding to the identified locations to identify the target's behavior.

2. The WiFi-based target location and behavior joint identification method according to claim 1, characterized in that: The constructed target recognition network is a multi-attention layer structure residual network, which consists of a feature extraction module and a prediction and classification module. The feature extraction module consists of, in sequence, a convolutional layer Conv1, a max pooling layer Maxpool, a combination of a channel attention layer CA1 and a spatial attention layer SA1, a combination of a convolutional block layer Conv block1 and a spatial attention layer SA2, a combination of a convolutional block layer Conv block2 and a spatial attention layer SA3, a combination of a convolutional block layer Conv block3 and a spatial attention layer SA4, a convolutional block layer Conv block4, a combination of a channel attention layer CA2 and a spatial attention layer SA5, and an average pooling layer Avgpool; the convolutional block layers Conv blocks1-4 are composed of two non-convolutional residual blocks and one convolutional residual block connected in series. The specific operation involves performing a convolution operation on the input image P through a Conv1 convolutional layer, followed by a Maxpooling layer, and then assigning different weights to different channels using a channel attention layer CA1. The function is as follows: Map1(P)=σ(MLP(AvgPool(P))+MLP(MaxPool(P))), In the formula: AvgPool() and MaxPool() are the average pooling and max pooling functions, respectively; MLP() is the multilayer perceptron function; σ() represents the Sigmoid function; and Map1() is then element-wise multiplied with the image P to obtain the reconstructed feature map F. Different weights are assigned to different pixels using a spatial attention layer SA1, as shown in the function below: F′=σ(f 7×7 ([AvgPool(F);MaxPool(F)])), In the formula: f 7×7 () indicates a convolution operation with a kernel size of 7×7; The feature image F′ after spatial attention weighting is processed sequentially through a combination structure of convolutional block layer Conv block1 and spatial attention layer SA2, a combination structure of convolutional block layer Conv block2 and spatial attention layer SA3, and a combination structure of convolutional block layer Conv block3 and spatial attention layer SA4. Then it is processed through a combination structure of convolutional block layer Conv block4, channel attention layer CA2 and spatial attention layer SA5. Finally, it is processed by the average pooling layer Avgpool to obtain the feature matrix of the input image. The prediction and classification module consists of two fully connected layers, FC1 and FC2.