Sleeping posture classification method based on millimeter wave radar multi-view data fusion

By adopting the millimeter-wave radar multi-view data fusion method in radar sleeping posture recognition, integrating multi-view spectrum characteristics and using multi-layer perceptrons, the problem of insufficient recognition stability and accuracy of the single-view method is solved, and the individual sleeping posture is realized. Efficient and accurate identification and monitoring.

CN118734162AActive Publication Date: 2024-10-01CENT SOUTH UNIV
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202410777716.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-17
Publication Date
2024-10-01
Estimated Expiration
2044-06-17

AI Technical Summary

Technical Problem

When existing technology recognizes sleeping postures, when faced with individuals with different body shapes, sleeping habits, and complex environments, the single-view method is difficult to adapt to changing needs, resulting in poor recognition stability and accuracy, which hinders the widespread use of radar sleeping posture recognition technology. Promotion and application.

Method used

Using a multi-view data fusion method based on millimeter wave radar, the range-horizontal angle and elevation spectral features are integrated through range fast Fourier transform, Doppler fast Fourier transform, angle fast Fourier transform and feature extractor, Multi-layer perceptrons are used for individual recognition and sleeping posture recognition, and the recognition accuracy is optimized through a global multi-view fusion mechanism and a preset loss function.

Benefits of technology

It achieves all-round monitoring of individual sleeping postures, enhances the versatility and accuracy of recognition, ensures the consistency and reliability of cross-individual recognition, and improves the stability and accuracy of sleeping posture recognition.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118734162A_ABST
    Figure CN118734162A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides a sleeping posture classification method based on millimeter-wave radar multi-view data fusion, and belongs to the technical field of data identification, and the method specifically comprises the steps: carrying out the distance fast Fourier transform of each frame of original radar data; performing Doppler fast Fourier transform processing on the frequency spectrum information in the distance dimension; selecting and splicing the data after Doppler threshold processing to generate horizontal angle data and elevation angle data; performing angle fast Fourier transform on the horizontal angle data, and performing angle fast Fourier transform processing on the elevation angle data; taking a preset number of frame data of the original radar data as an identification window; a feature extractor is used for extracting features of multi-view radar sleeping posture data, features of two views are integrated through a global multi-view fusion mechanism, and fusion feature representation is formed and transmitted into a multi-layer perceptron for individual recognition and sleeping posture recognition. Through the scheme disclosed by the invention, the identification efficiency, accuracy and adaptability are improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The disclosed embodiments relate to the field of data recognition technology, and in particular to a sleeping posture classification method based on millimeter wave radar multi-view data fusion. Background Art

[0002] Sleeping posture refers to the body posture of a person during sleep. From a medical health perspective, sleeping posture has a great impact on human health. First, by observing and analyzing an individual's sleeping posture, their sleep quality can be evaluated, helping individuals to better understand their sleep conditions and take measures to improve their sleep quality. Secondly, the study of sleeping posture can help doctors assist in the diagnosis of diseases, such as sleep disorders, breathing problems, etc. In addition, different sleeping postures may have different effects on an individual's physical and mental health. The main categories of sleep medicine are supine, prone, and side-lying. For example, avoiding the supine posture can reduce the severity of sleep apnea and reduce the risk of sudden infant death syndrome (SIDS). Therefore, studying sleeping posture can help guide an individual's sleep training and promote their physical and mental health.

[0003] In the sleeping environment, individual comfort and privacy protection are crucial, and radar technology can monitor changes in sleeping posture in real time without contacting the individual. At the same time, radar technology is stable and reliable, and can provide continuous and accurate sleep monitoring services for families and medical institutions. Although radar-based sleeping posture recognition research has achieved results, facing individuals with different body shapes, sleeping habits and complex environments, the single-perspective method is difficult to adapt to changing needs, affecting recognition stability. In addition, the diversity of individuals' sleeping postures also increases the difficulty of recognition, resulting in limited model robustness and hindering the widespread promotion and application of the technology.

[0004] It can be seen that there is an urgent need for a sleeping posture classification method based on millimeter-wave radar multi-view data fusion that can non-sensitively, efficiently and accurately identify sleeping posture types. Summary of the invention

[0005] In view of this, the embodiments of the present disclosure provide a sleeping posture classification method based on millimeter-wave radar multi-view data fusion, which at least partially solves the problem of poor recognition efficiency and accuracy in the prior art.

[0006] The present disclosure provides a sleeping posture classification method based on millimeter wave radar multi-view data fusion, including:

[0007] Step 1: Perform a range fast Fourier transform on each frame of raw radar data to obtain spectrum information in the range dimension;

[0008] Step 2, performing Doppler fast Fourier transform processing on the frequency spectrum information in the distance dimension to obtain the frequency spectrum information in the velocity dimension, and performing Doppler threshold processing to filter out noise and useless information;

[0009] Step 3, selecting and splicing the data after Doppler threshold processing to generate horizontal angle data and elevation angle data;

[0010] Step 4, performing an angle fast Fourier transform on the horizontal angle data to obtain a range-horizontal angle spectrum, and performing an angle fast Fourier transform on the elevation angle data to adjust the angle fast Fourier transform result to obtain a range-elevation angle spectrum;

[0011] Step 5, using a preset number of frames of data as the recognition window for the original radar data, repeating steps 1 to 4 for each frame of data in the window, and accumulating and averaging each frame in the window, and finally forming a multi-view radar sleeping posture data of the range-horizontal angle / elevation angle spectrum for sleeping posture recognition;

[0012] Step 6, using a feature extractor to extract the features of the range-horizontal angle spectrum and the range-depression angle spectrum in the multi-view radar sleeping posture data respectively, integrating the features of the two perspectives through a global multi-view fusion mechanism, forming a fused feature representation and passing it into a multi-layer perceptron for individual identification and sleeping posture recognition, wherein the feature extractor includes a 4-layer densely connected network.

[0013] According to a specific implementation of the embodiment of the present disclosure, the expression of the spectrum information in the distance dimension is:

[0014]

[0015] Where X represents the input sequence, ω(n) represents the Blackman window function, N is the data length, and k is the frequency index.

[0016] According to a specific implementation of the embodiment of the present disclosure, the expression of the Doppler fast Fourier transform is:

[0017]

[0018] Where K represents the length of the Doppler fast Fourier transform, m represents the frequency index, and e -jπm Indicates a frequency shift operation.

[0019] According to a specific implementation of the embodiment of the present disclosure, the expression of the angle fast Fourier transform is:

[0020]

[0021] Where Q represents the length of the angular dimension, p represents the angular frequency index, and n angle Indicates the number of points for FFT in the angular dimension, e -jπp Indicates a frequency shift operation.

[0022] According to a specific implementation of an embodiment of the present disclosure, the step of using a feature extractor to respectively extract features of a range-horizontal angle spectrum and a range-depression angle spectrum in multi-view radar sleeping posture data includes:

[0023] The radar sleeping posture multi-view data is passed through a one-dimensional convolution layer, which converts the input 256 channels into 64 channels, with a convolution kernel size of 3 and a step size of 1, and is padded to obtain the feature map:

[0024] Y = Conv1d(x, w, b)

[0025] Among them, X is the radar sleeping posture tensor data of a viewing angle, W is the convolution kernel, and b is the bias;

[0026] The feature map is repeated four times through the dense connection network and transition block. In each dense connection network, the number of input channels is increased by 32 through convolution operations, and then the transition block reduces the number of channels to 64 through convolution and pooling operations:

[0027] (Y′ i =DenseBlock(Z i-1 ), Z i =TransitionBlock(Y′ i ))×4

[0028] Among them, Z i-1 Represents the output of the previous layer.

[0029] According to a specific implementation of the embodiment of the present disclosure, the step of integrating the features of two perspectives through a global multi-perspective fusion mechanism includes:

[0030] The global multi-view fusion mechanism is used to flatten the features of different viewpoints and process them through the fully connected layer. Then, the weights are calculated by splicing and Sigmoid activation function, and these weights are used to perform weighted fusion on the original features. Finally, the weighted fusion features of the two viewpoints are spliced ​​together to obtain the global fusion features. The expression of the global multi-view fusion mechanism is:

[0031] j 1 =w 1 *x 1 +b 1 j 2 =w 2 *x 2 +b 2

[0032] c 1 =concat(j 1 , j 2 )c 2 =concat(j2 , j 1 )

[0033] a 1 =Sigmoid(c 1 ) 2 =Sigmoid(c 2 )

[0034] X 1 =x 1 *(a 1 *a 2 )X 2 =x 2 *(a 1 *a 2 )

[0035] X = concat(X 1 , X 2 )

[0036] Among them, x 1 、x 2 is the one-dimensional feature of the two perspectives extracted by the feature extractor, w 1 、w 2 and b 1 、b 2 They represent the weight and bias of the fully connected layer respectively, and concat represents the connection in the feature dimension.

[0037] According to a specific implementation of the embodiment of the present disclosure, before step 6, the method further includes:

[0038] The preset loss function is used to control the loss ratio of the individual recognition task and the sleeping posture recognition task, and the multi-layer perceptron is trained so that the individual recognition task assists the sleeping posture recognition task, reduces the individual specificity in the data, thereby calibrating and optimizing the accuracy of sleeping posture recognition, and ensuring a more consistent and reliable recognition effect among different individuals. The expression of the preset loss function is:

[0039] loss = d 1 *loss sleep +d 2 *loss individual

[0040] loss sleep =CrossEntropyLoss(output sleep , label sleep )

[0041] loss individual =CrossEntropyLoss(outputindividual , label individual )

[0042] Among them, loss sleep Represents the loss of the sleeping posture recognition task, loss individual represents the loss of the individual recognition task, output sleep 、output individual They represent the results of the sleeping posture recognition task and the individual recognition task during training, respectively. sleep 、label individual They represent the sleeping posture label and individual label of multi-view data, d 1 d 2 They respectively represent the loss weights of the sleeping posture recognition task and the individual recognition task during the training process.

[0043] The sleeping posture classification scheme based on millimeter-wave radar multi-view data fusion in the embodiment of the present disclosure includes: step 1, performing distance fast Fourier transform on each frame of original radar data to obtain spectrum information in the distance dimension; step 2, performing Doppler fast Fourier transform processing on the spectrum information in the distance dimension to obtain spectrum information in the speed dimension, and performing Doppler threshold processing to filter noise and useless information; step 3, selecting and splicing the data after Doppler threshold processing to generate horizontal angle data and elevation angle data; step 4, performing angle fast Fourier transform processing on the horizontal angle data to obtain the range-horizontal angle spectrum, and performing angle fast Fourier transform processing on the elevation angle data to adjust the angle fast Fourier transform processing. Fourier transform results are used to obtain the range-elevation spectrum; step 5, using the original radar data as the recognition window with a preset number of frame data, repeating steps 1 to 4 for each frame data in the window, and accumulating and summing each frame in the window to take the average, and finally forming the multi-perspective radar sleeping posture data of the range-horizontal angle / elevation angle spectrum for sleeping posture recognition; step 6, using a feature extractor to respectively extract the features of the range-horizontal angle spectrum and the range-depression angle spectrum in the multi-perspective radar sleeping posture data, integrating the features of the two perspectives through a global multi-perspective fusion mechanism, forming a fused feature representation and passing it into a multi-layer perceptron for individual recognition and sleeping posture recognition, wherein the feature extractor includes a 4-layer densely connected network.

[0044] The beneficial effects of the embodiments of the present disclosure are as follows: through the scheme of the present disclosure, the range depression and elevation data of the radar are effectively integrated to achieve all-round monitoring of individual sleeping postures. In order to enhance the versatility of the scheme, individual recognition is used to assist sleeping posture recognition. By learning and analyzing individual characteristics, the recognition accuracy is calibrated and optimized to ensure consistency and reliability of cross-individual recognition. BRIEF DESCRIPTION OF THE DRAWINGS

[0045] In order to more clearly illustrate the technical solutions of the embodiments of the present disclosure, the drawings required for use in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present disclosure. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0046] Figure 1 A flowchart of a sleeping posture classification method based on millimeter-wave radar multi-view data fusion provided in an embodiment of the present disclosure;

[0047] Figure 2 A schematic diagram of the data processing process of a sleeping posture classification method based on millimeter-wave radar multi-view data fusion provided in an embodiment of the present disclosure;

[0048] Figure 3 A schematic diagram of a radar multi-view sleeping posture data processing process provided in an embodiment of the present disclosure. DETAILED DESCRIPTION

[0049] The embodiments of the present disclosure are described in detail below with reference to the accompanying drawings.

[0050] The following describes the embodiments of the present disclosure through specific examples, and those skilled in the art can easily understand other advantages and effects of the present disclosure from the contents disclosed in this specification. Obviously, the described embodiments are only a part of the embodiments of the present disclosure, rather than all of the embodiments. The present disclosure can also be implemented or applied through other different specific embodiments, and the details in this specification can also be modified or changed in various ways based on different viewpoints and applications without departing from the spirit of the present disclosure. It should be noted that the following embodiments and features in the embodiments can be combined with each other without conflict. Based on the embodiments in the present disclosure, all other embodiments obtained by ordinary technicians in the field without making creative work are within the scope of protection of the present disclosure.

[0051] It should be noted that various aspects of the embodiments within the scope of the appended claims are described below. It should be apparent that the aspects described herein may be embodied in a wide variety of forms, and any specific structure and / or function described herein is merely illustrative. Based on the present disclosure, it should be understood by those skilled in the art that an aspect described herein may be implemented independently of any other aspect, and two or more of these aspects may be combined in various ways. For example, any number of aspects described herein may be used to implement the device and / or practice the method. In addition, other structures and / or functionalities other than one or more of the aspects described herein may be used to implement this device and / or practice this method.

[0052] It should also be noted that the illustrations provided in the following embodiments are only schematic illustrations of the basic concept of the present disclosure. The drawings only show components related to the present disclosure rather than being drawn according to the number, shape and size of components in actual implementation. In actual implementation, the type, quantity and proportion of each component may be changed arbitrarily, and the component layout may also be more complicated.

[0053] Additionally, in the following description, specific details are provided to facilitate a thorough understanding of the examples. However, it will be understood by those skilled in the art that the aspects described may be practiced without these specific details.

[0054] Although radar-based sleeping posture recognition research has achieved good results in the past, there are still some challenges in the application process: 1) Faced with different individuals and complex sleeping environments, the single-view method may be difficult to adapt to various changes, resulting in the stability and reliability of the recognition results being affected. 2) Due to the diversity of individuals' sleeping postures due to differences in body shape and sleeping habits, past methods often face challenges when dealing with different subjects, resulting in limited model robustness. This limitation has caused difficulties in the practical application of radar-based sleeping posture recognition technology, hindering its widespread promotion and application.

[0055] The disclosed embodiment provides a sleeping posture classification method based on millimeter wave radar multi-view data fusion, which can be applied in the sleep monitoring process.

[0056] See also Figure 1 , is a flow chart of a sleeping posture classification method based on millimeter wave radar multi-view data fusion provided by an embodiment of the present disclosure. Figure 1 and Figure 2 As shown, the method mainly comprises the following steps:

[0057] Step 1: Perform a range fast Fourier transform on each frame of raw radar data to obtain spectrum information in the range dimension;

[0058] Furthermore, the expression of the spectrum information in the distance dimension is:

[0059]

[0060] Where X represents the input sequence, ω(n) represents the Blackman window function, N is the data length, and k is the frequency index.

[0061] For example, Figure 3As shown in the figure, the TI-IWR6843 radar chip was selected as the monitoring radar, and the volunteers simulated the target sleeping posture. For the original radar sleeping posture frame data, the first step of the preprocessing process is to adjust the dimension order of the frame. This step uses the scientific computing toolkit NumPy to adjust the dimension order of the frame. Specifically, the transposition of the frame data is achieved by calling the np.transpose function and specifying the new dimension order (0,1,3,2) to adapt to the subsequent signal processing steps. The second step is to reshape the frame data into a three-dimensional array, which contains information about all frames, distance units, and pulses. This step also uses the scientific computing toolkit NumPy. Specifically, the np.reshape function is called to specify the new array shape as (frame.shape[0],frame.shape[1],-1), where the first two dimensions keep the number of frames and distance units in the original data unchanged, and the third dimension uses -1 to let NumPy automatically calculate the size of the dimension to keep the total number of elements in the data unchanged. This reshaping operation ensures that the data exists in the form of a three-dimensional array that is more suitable for subsequent processing and analysis. The third step is to use the custom range_fft function to perform FFT processing on the data of each frame. In this process, the Blackman window is used as a weighting function to reduce the sidelobe effect in the FFT result.

[0062] The calculation formula for the distance FFT processing is:

[0063]

[0064] Where X represents the input sequence, ω(n) represents the Blackman window function, N is the data length, and k is the frequency index.

[0065] Step 2, performing Doppler fast Fourier transform processing on the frequency spectrum information in the distance dimension to obtain the frequency spectrum information in the velocity dimension, and performing Doppler threshold processing to filter out noise and useless information;

[0066] Based on the above embodiment, the expression of the Doppler fast Fourier transform is:

[0067]

[0068] Where K represents the length of the Doppler fast Fourier transform, m represents the frequency index, and e -jπm Indicates a frequency shift operation.

[0069] In the specific implementation, the first step is to perform Doppler FFT processing on the radar data processed in step 1 by calling the custom doppler_fft function. In this process, the Blackman window is used as the window function to reduce the sidelobe effect in the FFT result. At the same time, the number of FFT points is set to 64, which means that a 64-point FFT is performed on the data of each range unit. The doppler_fft function first applies a window function to the data for weighted processing, then performs FFT along the range unit dimension and centers the result so that the zero frequency component is at the center of the spectrum.

[0070] The calculation formula of the Doppler FFT and its corresponding Doppler threshold processing is:

[0071]

[0072] Where K represents the length of the Doppler FFT, m represents the frequency index, and e -jπm represents the frequency shift operation; the second step is to eliminate possible noise and irrelevant frequency components in the spectrum information in the velocity dimension. This step specifically sets a threshold to crop the range-Doppler spectrum. First, the part of the spectrum that exceeds a certain threshold to the right of the zero-frequency component (threshold + zero_doppler_thr) is set to zero, and then the part of the spectrum that is lower than a certain threshold to the left of the zero-frequency component (threshold - zero_doppler_thr) is also set to zero. In this way, we retain the key frequency components related to the motion of the radar target while reducing the influence of noise and other interference.

[0073] Step 3, selecting and splicing the data after Doppler threshold processing to generate horizontal angle data and elevation angle data;

[0074] In the specific implementation, the first step is to generate horizontal angle data. This step uses the scientific computing toolkit NumPy. Specifically, by calling the np.concatenate function, four slices of the start and end parts are selected from the third dimension of the spectrum information on the velocity dimension processed in step 2, and they are connected along the dimension. In this way, the horizontal angle data contains eight channel information of the spectrum information on the velocity dimension at both ends of the spectrum, representing the key frequency band for horizontal angle measurement. The second step is to generate elevation angle data. This step also uses the scientific computing toolkit NumPy. Specifically, the middle part of the spectrum information on the velocity dimension processed in step 2 is selected as the main body by using the slice operation. Then, the np.concatenate function is used to splice the two slices adjacent to the main body along the new dimension. Here, we extend a dimension on the slice by [:,:,None,:] so that they can be spliced ​​with the main slice along the new dimension. Finally, the np.concatenate function is used again to merge the main slice and the two slices with extended dimensions to generate elevation angle data.

[0075] Step 4, performing an angle fast Fourier transform on the horizontal angle data to obtain a range-horizontal angle spectrum, and performing an angle fast Fourier transform on the elevation angle data to adjust the angle fast Fourier transform result to obtain a range-elevation angle spectrum;

[0076] Based on the above embodiment, the expression of the angle fast Fourier transform is:

[0077]

[0078] Where Q represents the length of the angular dimension, p represents the angular frequency index, and n angle Indicates the number of points for FFT in the angle dimension, e -jπp Indicates a frequency shift operation.

[0079] In the specific implementation, the first step is to perform angle FFT processing on the horizontal angle data to obtain its representation in the frequency domain. This step is completed by calling the custom function angele_fft, which uses NumPy's fft.fft function to perform FFT transformation on the last dimension of the horizontal angle data and specifies the length of the transformation as n_a. Then, angele_fft also calls fft.fftshift to frequency shift the FFT result so that the low-frequency component is located in the center of the range-horizontal angle spectrum.

[0080] The calculation formula for the angle FFT and its corresponding FFTshift processing is:

[0081]

[0082] Where Q represents the length of the angular dimension, p represents the angular frequency index, and n angle Indicates the number of points for FFT in the angle dimension, e -jπp Indicates frequency shift operation;

[0083] The second step is to perform FFTshift on the elevation data to adjust the angle FFT result and obtain the range-elevation spectrum. This step is completed by directly calling NumPy's fft.fft function, specifying to perform FFT transformation on the second dimension of the elevation data (corresponding to different elevation channels), and also setting the transformation length to n_a. After obtaining the FFT result, the fft.fftshift function is used to perform frequency shift on the result to move the low-frequency component to the center of the range-elevation spectrum.

[0084] Step 5, using a preset number of frames of data as the recognition window for the original radar data, repeating steps 1 to 4 for each frame of data in the window, and accumulating and averaging each frame in the window, and finally forming a multi-view radar sleeping posture data of the range-horizontal angle / elevation angle spectrum for sleeping posture recognition;

[0085] In specific implementation, this step uses the cumulative summation and averaging method to process the data of continuous frames. First, a recognition window containing 20 frames of data is set. As the radar data is continuously collected, steps 1 to 4 are repeated for each frame of data. Then, the horizontal angle data and elevation angle data corresponding to each frame of data are accumulated. When the accumulated number of frames reaches 20 frames, the average of the two cumulative sums is calculated, that is, the mean of the horizontal angle data and the mean of the elevation data are obtained. These two means represent the average level of the radar signal strength at these two perspectives within a time window. This method effectively reduces noise interference and captures stable sleeping posture features by accumulating multiple frames of data and calculating the mean within a time window. At the same time, it simplifies the data representation, making the subsequent recognition process more efficient and intuitive.

[0086] Step 6, using a feature extractor to extract the features of the range-horizontal angle spectrum and the range-depression angle spectrum in the multi-view radar sleeping posture data respectively, integrating the features of the two perspectives through a global multi-view fusion mechanism, forming a fused feature representation and passing it into a multi-layer perceptron for individual identification and sleeping posture recognition, wherein the feature extractor includes a 4-layer densely connected network.

[0087] On the basis of the above embodiment, the step of using a feature extractor to respectively extract features of the range-horizontal angle spectrum and the range-depression angle spectrum in the multi-view radar sleeping posture data includes:

[0088] The radar sleeping posture multi-view data is passed through a one-dimensional convolution layer, which converts the input 256 channels into 64 channels, with a convolution kernel size of 3 and a step size of 1, and is padded to obtain the feature map:

[0089] Y = Conv1d(x,w,b)

[0090] Among them, X is the radar sleeping posture tensor data of a viewing angle, W is the convolution kernel, and b is the bias;

[0091] The feature map is repeated four times through the dense connection network and transition block. In each dense connection network, the number of input channels is increased by 32 through convolution operations, and then the transition block reduces the number of channels to 64 through convolution and pooling operations:

[0092] (Y′ i =DenseBlock(Z i-1 ), Z i =TransitionBlock(Y′ i ))×4

[0093] Among them, Z i-1 Represents the output of the previous layer.

[0094] Furthermore, the step of integrating the features of the two perspectives through a global multi-perspective fusion mechanism includes:

[0095] The global multi-view fusion mechanism is used to flatten the features of different viewpoints and process them through the fully connected layer. Then, the weights are calculated by splicing and Sigmoid activation function, and these weights are used to perform weighted fusion on the original features. Finally, the weighted fusion features of the two viewpoints are spliced ​​together to obtain the global fusion features. The expression of the global multi-view fusion mechanism is:

[0096] j 1 =w 1 *x 1 +b 1 j 2 =w 2 *x 2 +b 2

[0097] c 1 =concat(j 1 , j 2 )c 2 =concat(j 2 , j 1 )

[0098] a 1 =Sigmoid(c 1 ) 2=Sigmoid(c 2 )

[0099] X 1 =x 1 *(a 1 *a 2 )X 2 =x 2 *(a 1 *a 2 )

[0100] X = concat(X 1 , X 2 )

[0101] Among them, x 1 、x 2 is the one-dimensional feature of the two perspectives extracted by the feature extractor, w 1 、w 2 and b 1 、b 2 They represent the weight and bias of the fully connected layer respectively, and concat represents the connection in the feature dimension.

[0102] Furthermore, before step 6, the method further includes:

[0103] The preset loss function is used to control the loss ratio of the individual recognition task and the sleeping posture recognition task, and the multi-layer perceptron is trained so that the individual recognition task assists the sleeping posture recognition task, reduces the individual specificity in the data, thereby calibrating and optimizing the accuracy of sleeping posture recognition, and ensuring a more consistent and reliable recognition effect among different individuals. The expression of the preset loss function is:

[0104] loss = d 1 *loss sleep +d 2 *loss individual

[0105] loss sleep =CrossEntropyLoss(output sleep , label sleep )

[0106] loss individual =CrossEntropyLoss(output individual , label individual )

[0107] Among them, loss sleep Represents the loss of the sleeping posture recognition task, loss individual represents the loss of the individual recognition task, outputsleep 、output individual They represent the results of the sleeping posture recognition task and the individual recognition task during training, respectively. sleep 、label individual They represent the sleeping posture label and individual label of multi-view data, d 1 d 2 They respectively represent the loss weights of the sleeping posture recognition task and the individual recognition task during the training process.

[0108] In the specific implementation, the first step is to pass the radar sleeping posture multi-view data processed in step 5 through a one-dimensional convolution layer, which converts the input 256 channels into 64 channels, with a convolution kernel size of 3, a stride of 1, and appropriate padding:

[0109] Y = Conv1d(x, w, b)

[0110] Among them, X is the radar sleeping posture tensor data of a perspective, W is the convolution kernel, and b is the bias.

[0111] The feature map then goes through four repetitions of dense blocks and transition blocks. In each dense block, the number of input channels increases by 32 through a series of convolution operations. Next, the transition block reduces the number of channels to 64 through convolution and pooling operations:

[0112] (Y′ i =DenseBlock(Z i-1 ), Z i =TransitionBlock(Y′ i ))×4

[0113] Among them, Z i-1 Represents the output of the previous layer.

[0114] The second step is to effectively fuse multi-view features through the designed global multi-view fusion mechanism. This mechanism first flattens the features extracted from different views in the first step and processes them through a fully connected layer. Then, the weights are calculated through concatenation and Sigmoid activation function, and these weights are used to perform weighted fusion on the original features. Finally, the weighted fused features of the two views are concatenated together to obtain the global fused features. This mechanism allows the model to capture information from multiple views and balance the contributions of different views through weight adjustment:

[0115] j 1 =w 1 *x 1 +b 1 j 2 =w 2 *x 2 +b 2

[0116] c 1 =concat(j 1 , j 2 )c 2 =concat(j 2 , j 1 )

[0117] a 1 =Sigmoid(c 1 ) 2 =Sigmoid(c 2 )

[0118] X 1 =x 1 *(a 1 *a 2 )X 2 =x 2 *(a 1 *a 2 )

[0119] X = concat(X 1 , X 2 )

[0120] Among them, x 1 、x 2 are one-dimensional features of two perspectives extracted by the feature extractor in claim 4, w 1 、w 2 and b 1 、b 2 They represent the weight and bias of the fully connected layer respectively, and concat represents the connection in the feature dimension.

[0121] The third step is that the features fused by the global multi-view fusion mechanism will be passed into the multi-layer perceptron for individual recognition and sleeping posture recognition.

[0122] At the same time, before recognition, the multilayer perceptron can be trained using a sample data set. By controlling the loss ratio of the two tasks for training, the individual recognition task can assist the sleeping position recognition task, reducing the individual specificity in the data, thereby further calibrating and optimizing the accuracy of sleeping position recognition, ensuring a more consistent and reliable recognition effect among different individuals.

[0123] loss sleep = CrossEntropyLoss(outpuL sleep , label sleep )

[0124] loss individual=CrossEntropyLoss(output individual , label individual )

[0125] loss = d 1 *loss sleep +d 2 *loss individual

[0126] Among them, output sleep 、output individual They represent the results of the sleeping posture recognition and individual recognition tasks during training, respectively. sleep 、label individual They represent the sleeping posture label and individual label of multi-view data, d 1 d 2 Respectively represent the loss weights of sleeping posture recognition and individual recognition tasks during the training process.

[0127] The sleeping posture classification method based on millimeter-wave radar multi-view data fusion provided in this embodiment has brought revolutionary progress to the field of sleep health by combining the advanced nature of millimeter-wave radar technology with the innovative strategy of multi-view data fusion. This method not only fully utilizes the advantages of millimeter-wave radar in capturing human body movements and postures, but also achieves meticulous identification of individuals and their sleeping postures through FFT processing, DenseNet feature extraction and the powerful analysis capabilities of multi-layer perceptrons. Furthermore, this method combines individual identification, enabling the system to perform personalized model calibration and optimization for each user's unique sleeping habits, thereby significantly improving the accuracy and efficiency of sleeping posture recognition. This comprehensive and precise data processing method greatly improves the accuracy and real-time performance of sleeping posture recognition monitoring.

[0128] It should be understood that various parts of the present disclosure may be implemented in hardware, software, firmware, or a combination thereof.

[0129] The above is only a specific implementation of the present disclosure, but the protection scope of the present disclosure is not limited thereto. Any changes or substitutions that can be easily thought of by a person skilled in the art within the technical scope disclosed in the present disclosure should be included in the protection scope of the present disclosure. Therefore, the protection scope of the present disclosure should be based on the protection scope of the claims.

Claims

1. A sleeping posture classification method based on millimeter wave radar multi-view data fusion, It is characterized in that include: Step 1: Perform a range fast Fourier transform on each frame of raw radar data to obtain spectrum information in the range dimension; Step 2, performing Doppler fast Fourier transform processing on the frequency spectrum information in the distance dimension to obtain the frequency spectrum information in the velocity dimension, and performing Doppler threshold processing to filter out noise and useless information; Step 3, selecting and splicing the data after Doppler threshold processing to generate horizontal angle data and elevation angle data; Step 4, performing an angle fast Fourier transform on the horizontal angle data to obtain a range-horizontal angle spectrum, and performing an angle fast Fourier transform on the elevation angle data to adjust the angle fast Fourier transform result to obtain a range-elevation angle spectrum; Step 5, using a preset number of frames of data as the recognition window for the original radar data, repeating steps 1 to 4 for each frame of data in the window, and accumulating and averaging each frame in the window, and finally forming a multi-view radar sleeping posture data of the range-horizontal angle / elevation angle spectrum for sleeping posture recognition; Step 6, using a feature extractor to extract the features of the range-horizontal angle spectrum and the range-depression angle spectrum in the multi-view radar sleeping posture data respectively, integrating the features of the two perspectives through a global multi-view fusion mechanism, forming a fused feature representation and passing it into a multi-layer perceptron for individual identification and sleeping posture recognition, wherein the feature extractor includes a 4-layer densely connected network.

2. The method according to claim 1, Features , the expression of the spectrum information in the distance dimension is Where X represents the input sequence, ω(n) represents the Blackman window function, N is the data length, and k is the frequency index.

3. The method according to claim 2, Features , the expression of the Doppler fast Fourier transform is Where K represents the length of the Doppler fast Fourier transform, m represents the frequency index, and e -jπm Indicates a frequency shift operation.

4. The method according to claim 3, Features , the expression of the angle fast Fourier transform is Where Q represents the length of the angular dimension, p represents the angular frequency index, and n angle Indicates the number of points for FFT in the angle dimension, e -jπp Indicates a frequency shift operation.

5. The method according to claim 4, Features The step of using a feature extractor to respectively extract features of the range-horizontal angle spectrum and the range-depression angle spectrum in the multi-view radar sleeping posture data includes: The radar sleeping posture multi-view data is passed through a one-dimensional convolution layer, which converts the input 256 channels into 64 channels, with a convolution kernel size of 3 and a step size of 1, and is padded to obtain the feature map: Y = Conv1d(x,w,b) Among them, X is the radar sleeping posture tensor data of a viewing angle, W is the convolution kernel, and b is the bias; The feature map is repeated four times through the dense connection network and transition block. In each dense connection network, the number of input channels is increased by 32 through convolution operations, and then the transition block reduces the number of channels to 64 through convolution and pooling operations: (Y’ i =DenseBlock(Z i-1 ),Z i =TransitionBlock(Y’ i ))×4 Among them, Z i-1 Represents the output of the previous layer.

6. The method according to claim 5, Features ,The step of integrating the features of two perspectives through the global multi-perspective fusion mechanism includes: The global multi-view fusion mechanism is used to flatten the features of different viewpoints and process them through the fully connected layer. Then, the weights are calculated by splicing and Sigmoid activation function, and these weights are used to perform weighted fusion on the original features. Finally, the weighted fusion features of the two viewpoints are spliced ​​together to obtain the global fusion features. The expression of the global multi-view fusion mechanism is: j 1 =w 1 *x 1 +b 1 j 2 =w 2 *x 2 +b 2 c 1 =concat(j 1 ,j 2 ) c 2 =concat(j 2 ,j 1 ) a 1 =Sigmoid(c 1 ) a 2 =Sigmoid(c 2 ) X 1 =x 1 *(a 1 *a 2 ) X 2 =x 2 *(a 1 *a 2 ) X=concat(X 1 ,X 2 ) Among them, x 1 、x 2 is the one-dimensional feature of the two perspectives extracted by the feature extractor, w 1 、w 2 and b 1 、b 2 They represent the weight and bias of the fully connected layer respectively, and concat represents the connection in the feature dimension.

7. The method according to claim 6, Features , before step 6, the method further includes: The preset loss function is used to control the loss ratio of the individual recognition task and the sleeping posture recognition task, and the multi-layer perceptron is trained so that the individual recognition task assists the sleeping posture recognition task, reduces the individual specificity in the data, thereby calibrating and optimizing the accuracy of sleeping posture recognition, and ensuring a more consistent and reliable recognition effect among different individuals. The expression of the preset loss function is: loss=d 1 *loss sleep +d 2 *losss individual loss sleep =CrossEntropyLoss(output sleep ,label sleep ) loss individual =CrossEntropyLoss(output individual ,label individual ) Among them, loss sleep Represents the loss of the sleeping posture recognition task, loss individual represents the loss of the individual recognition task, output sleep 、output individual They represent the results of the sleeping posture recognition task and the individual recognition task during training, respectively. sleep 、label individual They represent the sleeping posture label and individual label of multi-view data, d 1 d 2 They respectively represent the loss weights of the sleeping posture recognition task and the individual recognition task during the training process.

Citation Information

Patent Citations

  • Multiple human-targets location and tracking method based on multichannel phase comparison location

    CN107167784A

  • Novel millimeter wave radar gesture signal processing method

    CN110988863A

  • Multi-scale feature fusion gesture recognition method based on FMCW millimeter wave radar

    CN113837131A

  • Convolutional neural network based human machine interface system using doppler radar and voice sensor, device for processing sensor data of the human machine interface system, method for operating the sames

    KR102322817B1