Human body action recognition system based on WiFi-CSI large model technology

Through WiFi-CSI large model technology, cloud servers and fine-tuned data sets are used to achieve high-precision human action and movement recognition in indoor environments, solving the problems of recognition detection accuracy and device linkage in the existing technology, and providing efficient recognition. solution.

CN118555552APending Publication Date: 2024-08-27NINGBO DIGITAL TWIN (EASTERN UNIV OF TECH) RES INST +2

Patent Information

Application Number
CN202411025978.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-30
Publication Date
2024-08-27

AI Technical Summary

Technical Problem

In indoor environments, it is difficult for existing technologies to achieve high-precision recognition and detection of human activities and movements, especially under the premise of satisfying privacy issues, and traditional multi-modal large models cannot effectively collect and link IoT device information, which requires Make adjustments and improvements for different scenarios.

Method used

Using large model technology based on WiFi-CSI, the CSI terminal data of mobile terminal devices is collected through multiple data collection devices, and preprocessed and analyzed through the cloud server. The pre-trained multi-modal large model is used to realize the output of action recognition results. and visual display, combined with fine-tuned data sets to learn the relationship between actions and amounts of exercise.

Benefits of technology

It achieves high-precision recognition and detection of human body movements and movement in indoor environments, collects data through non-inductive WiFi transmission and receives it uniformly, reducing the need for adjustment of different user equipment and improving the accuracy and efficiency of recognition and detection.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118555552A
    Figure CN118555552A
Patent Text Reader

Abstract

The invention provides a human body action recognition system based on a WiFi-CSI large model technology, and the system comprises a plurality of data collection devices which are connected with indoor WiFi for networking, each data collection device is connected with a mobile terminal device, the mobile terminal devices belong to different users, and the data collection devices are used for continuously collecting CSI terminal data of the mobile terminal devices; the cloud server is in communication connection with each data acquisition device and is used for receiving each piece of CSI terminal data, preprocessing the CSI terminal data for each piece of CSI terminal data to obtain corresponding preprocessed data, analyzing the preprocessed data through a pre-trained multi-modal large model to obtain a corresponding action recognition result and outputting the action recognition result; and the display interface is connected with the cloud server and is used for receiving the action recognition result and visually displaying the action recognition result. The beneficial effects of the invention are that the system can achieve the collection and linkage of the information of the Internet of Things equipment, and achieves the high-precision recognition and detection of the motion and the amount of motion of a human body in an indoor environment.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of artificial intelligence, and in particular to a human motion recognition system based on WiFi-CSI large model technology. Background Art

[0002] In the field of artificial intelligence, the emergence of multimodal large models has made up for the shortcomings of traditional models in terms of generalization and robustness. At the same time, the larger number of parameters makes multimodal large models different from traditional models. They can have "emergence capabilities" for prediction targets, making multimodal large models applicable to more application scenarios. However, training a large model requires extremely high costs and hardware facilities, which is an extremely high cost investment for general units or organizations. Therefore, fine-tuning the basic model has become the first choice for current vertical field model training.

[0003] A large number of studies have been conducted in the field of IoT perception. However, the detection of human activities in indoor environments requires accurate acquisition of target actions while satisfying privacy issues. This has always been a challenge for traditional models. Although many large multimodal models have emerged, the collection and linkage of IoT device information cannot be carried out for different scenarios, and different large multimodal models still need to be adjusted and improved. It is also difficult to achieve high-precision recognition and detection of human movements and motion in indoor environments. Summary of the invention

[0004] The technical problem to be solved by the present invention is to collect and link the information of Internet of Things devices, and to achieve high-precision recognition and detection of the movements and exercise volume of human activities in an indoor environment. In order to overcome the defects of the above-mentioned prior art (or related technology), the present invention provides a human motion recognition system based on WiFi-CSI large model technology.

[0005] The present invention provides a human motion recognition system based on WiFi-CSI large model technology, comprising: Multiple data collection devices are installed in an indoor home scene and connected to the indoor WiFi in the indoor home scene for networking. Each of the data collection devices is connected to a mobile terminal device and each of the mobile terminal devices belongs to a different user. Each of the data collection devices is used to continuously collect CSI terminal data of each of the mobile terminal devices. a cloud server, respectively connected to the data acquisition devices, for receiving the CSI terminal data and preprocessing the CSI terminal data to obtain corresponding preprocessed data for each CSI terminal data, and analyzing the preprocessed data by using a multimodal large model pre-trained by using a fine-tuning data set to obtain a corresponding action recognition result and output it; A display interface is connected to the cloud server and is used to receive the action recognition result and perform a visual display.

[0006] Compared with the prior art, the human motion recognition system based on WiFi-CSI large model technology has the following advantages: In the present invention, a data acquisition device is used to realize CSI terminal data acquisition of mobile terminal devices of different users. After the data acquisition device is connected to the indoor WiFi in the indoor home scene, the CSI terminal data of the mobile terminal device is collected in a senseless manner using WiFi as the transmission medium, and the data acquisition linkage is realized by uniformly receiving the data through the cloud server. The pre-processed data is analyzed through a pre-trained multimodal large model to obtain the corresponding action recognition results to characterize the actions and movement of human activities, thereby realizing high-precision recognition detection.

[0007] In a possible implementation, each of the data acquisition devices is installed with an esp32 chip, and is connected to the indoor WiFi via the esp32 chip for networking.

[0008] In a possible implementation manner, each of the mobile terminal devices is a mobile phone, a tablet computer, a laptop computer, or a mobile development version smart terminal device with a communication function.

[0009] In a possible implementation manner, each of the data collection devices includes a data collection module for collecting user information, CSI data information, and time information corresponding to each of the mobile terminal devices and including them in the CSI terminal data.

[0010] In a possible implementation, the cloud server includes: a preprocessing module, configured to check and save each of the user information, and for each of the user information, filter out the CSI data information and the time information corresponding to the user information, associate them with the user information, and then synchronously save them to obtain the preprocessed data; A model analysis module is connected to the preprocessing module, and is used for processing the CSI data information in the preprocessed data to the same length for each preprocessed data, converting it into a two-dimensional matrix and inputting it into the multimodal large model to perform user motion recognition and user action recognition to obtain the corresponding action recognition result for output.

[0011] In a possible implementation, the cloud server also includes a model training module connected to the model analysis module, for describing different action decompositions for the same action and including them in the fine-tuning data set, and adding a preset number of actions and motion data corresponding to the actions to the fine-tuning data set, and using the fine-tuning data set to fine-tune the multimodal large model until the multimodal large model converges.

[0012] Compared with the prior art, after adopting the above technical solution, a description of action decomposition will be added when the fine-tuning data set is produced, that is, how many known data a larger action in space is composed of, so that the multimodal large model can learn different actions and the relationship between large actions and different small actions. At the same time, in this application, a small amount of actions and the motion data corresponding to the actions are added to the fine-tuning data set to enable the multimodal large model to learn the relationship between actions and motion amounts, and to enable the multimodal large model to monitor and count the amount of activity through actions.

[0013] In a possible implementation, the display interface is a cloud page or a mobile applet. BRIEF DESCRIPTION OF THE DRAWINGS

[0014] Figure 1 This is a system deployment architecture diagram of the present invention; Figure 2 It is a structural principle diagram of the present invention; Figure 3 A schematic diagram of a device for collecting channel state data of the present invention; Explanation of the accompanying drawings: 1. Data acquisition device; 2. Indoor WiFi; 3. Mobile terminal device; 4. Cloud server; 41. Preprocessing module; 42. Model analysis module; 43. Model training module; 5. Display interface. DETAILED DESCRIPTION

[0015] First, those skilled in the art should understand that these implementations are only used to explain the technical principles of the embodiments of the present application, and are not intended to limit the protection scope of the embodiments of the present application. Those skilled in the art can make adjustments to them as needed to adapt to specific application scenarios.

[0016] The present application is further described in detail below with reference to the accompanying drawings and specific embodiments.

[0017] See also Figure 1The embodiment of the present invention discloses a human motion recognition system based on WiFi-CSI large model technology. The system as a whole can provide services to multiple users. The user uses 1~2 data acquisition devices 1 containing esp32 chips. The data acquisition device 1 is connected to a mobile terminal device 3. The collected CSI terminal data is uploaded to a cloud server 4 through the mobile terminal device 3. Figure 2 As shown, the cloud server 4 includes a preprocessing module 41, a model analysis module 42, and a model training module 43. The preprocessing module 41 is used to check and save each user information, and for each user information, screen out the CSI data information and time information corresponding to the user information, associate with the user information, and then save them synchronously to obtain the preprocessed data; the model analysis module 42 is used to, for each preprocessed data, process the CSI data information in the preprocessed data to the same length, convert it into a two-dimensional matrix, and input it into the multimodal large model for user motion recognition and user action recognition to obtain the corresponding action recognition result for output; the model training module 43 is used to describe the decomposition of different actions for the same action and include it in the fine-tuning data set, as well as add a preset number of actions and the motion data corresponding to the actions to the fine-tuning data set, and use the fine-tuning data set to fine-tune the multimodal large model until the model converges.

[0018] Continue to see Figure 1 The present invention can deploy a multimodal large model in the cloud. Its operating principle is to deploy the back-end code corresponding to the cloud deployment system to provide data interface services. The cloud server 4 can be an online cloud server deployed on a cloud platform, or it can be deployed on any server in a home intranet. It can also be a cloud server that can provide basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud communications, and big data and artificial intelligence platforms. The mobile terminal device 3 can be a mobile phone, a tablet computer, a laptop computer, a mobile development version with communication functions, and other intelligent terminal devices.

[0019] Continue to see Figure 1 , the following is a specific description of the data transmission between one of the mobile terminal devices 3 and the cloud server 4 as an example. The mobile terminal device 3 is used in the smart home scenario and can be combined with various products in daily life. It can also appear alone as a decoration. The data acquisition device 1 containing the esp32 chip can be deployed separately and connected to the indoor WiFi2 in the daily indoor home environment for data collection. Two data acquisition devices 1 containing the esp32 chip can also be used at the same time for separate connection to realize data collection. The mobile terminal device 3 can collect the data sent by the data acquisition device 1 containing the esp32 chip and send it to the cloud server 4 as a transfer.

[0020] Continue to see Figure 1, the cloud server 4 develops a special data receiving port. When collecting data, it is necessary to start the back-end code in the cloud first and provide interface services to the outside to ensure that the mobile terminal device 3 can successfully access the cloud interface.

[0021] Continue to see Figure 1 The cloud server 4 processes the preprocessed data according to the model requirements. After the CSI terminal data is uploaded, it contains user information, CSI data information and corresponding time information. The back-end code first processes this part, compares the user information and saves it, and associates the corresponding time information and the corresponding CSI data information and user information and saves them. After the cloud data is saved, the preprocessed data and user information are transmitted separately to the multimodal large model for processing. The multimodal large model identifies the user activity according to the CSI data information and outputs the results. The cloud server 4 saves the results in the corresponding database.

[0022] Continue to see Figure 1 The cloud pages and mini-programs display data based on database data. The specific displayed data include user action recognition content, user exercise volume estimation, etc. The corresponding exercise volume is used to provide users with daily life exercise volume monitoring, and activity improvement suggestions are provided based on the recognition results to prevent daily office sitting for long periods of time. In addition, if users use the system for post-illness rehabilitation management, the system will give more professional suggestions and opinions based on different users.

[0023] Continue to see Figure 1 The present invention modifies the input of the basic multimodal large model, adds a new module for processing signal data, and enables the multimodal large model to recognize actions through training of a large amount of signal data, and enables the multimodal large model to consciously recognize the composition form of actions. The specific implementation method is mainly divided into the following steps: Model processing: The present invention uses a common multimodal large model as the basic model for modification and fine-tuning. Unlike other models, the input mode of the multimodal large model in the present invention is signal timing information. Therefore, the present invention adjusts the length of the input data and encodes it into a dictionary pair that the multimodal large model can understand and correspond to. All signal timing information is processed with a limited dictionary pair to achieve the representation of the input CSI terminal data. Among them, firstly, the input CSI terminal data is analyzed, and the mapping of CSI terminal data to different actions is counted. CSI terminal data is important information to show the state of WiFi channel. The disturbance in the environment will be displayed in different waveforms in CSI, so the terminal data can represent different actions. In the field of large models, taking language input as an example, the multimodal large model will encode the input signal, and in the subsequent recognition, a limited dictionary will correspond to the input data, and predict the content of the next word, referring to the input of time series data and considering that the action content represented by CSI terminal data in space is also limited, the present invention modifies the data input of the original multimodal large model. The present invention processes the CSI terminal data when making a data set, and realizes the input of the multimodal large model data description object by converting the time series into a two-dimensional matrix; Dataset collection and processing: Data quality is crucial to the training effect of multimodal large models. High-quality data enables multimodal large models to quickly obtain relationships between data and infer more complex relationships from basic relationships. Among them, the present invention realizes the recognition of CSI terminal data input by fine-tuning the multimodal large model, while not affecting the original model's understanding of the existing world. After completing the design of the multimodal large model for data processing, according to the input of the model data, the present invention designs a corresponding fine-tuning data set. Similar to other fine-tuning data sets, the fine-tuning data set of the present invention contains a description of the CSI terminal data. For the same action, the present invention makes different descriptions. At the same time, in particular, for a large action, the present invention will add a description of the action decomposition when making the fine-tuning data set, that is, how many known data a larger action in space is composed of, so that the multimodal large model can learn different actions and the relationship between large actions and different small actions. At the same time, the present invention adds a small amount of actions and the motion data corresponding to the actions to the data set, so that the multimodal large model learns the relationship between actions and motion, and realizes that the multimodal large model can monitor and count the activity through actions; Among them, the most important thing to achieve the monitoring and statistics of activity volume is to realize the multimodal large model to identify the user's actions and count the user's actions, and then realize the statistics of the user's activity volume. The implementation process is as follows: First, it is necessary to construct high-quality data for model training. Since the present invention is implemented based on a large language model, in order for the model to understand the relationship between different actions as quickly as possible, the data set of the present invention is constructed based on language. The data set consists of two parts: channel state data and corresponding description files. The channel state data is collected by using CSI tools in the early stage. The data is collected in a real home environment. like Figure 3As shown, the signal receiving end of the esp32 chip device is connected to the notebook as the signal receiving end to obtain data, and the signal sending end can be another esp32 chip device or an indoor WIFI device as the signal sending end. The signal receiving end can obtain the channel status of the indoor WIFI by connecting to the indoor WIFI signal. The CSI data is stored in the last data array, framed by [...], and contains the channel status information of each subcarrier. For each subcarrier, the structure consists of an imaginary part plus a real part (that is, the CSI structure in data is as follows: [imaginary part of subcarrier 1, real part of subcarrier 1, imaginary part of subcarrier 2, real part of subcarrier 2, imaginary part of subcarrier 3, real part of subcarrier 3, ...]), in addition, the data is described in JSON format, which contains id, corresponding CSI data, and corresponding dialogue; When making a dialogue, the present invention mainly describes the dialogue and the action information contained in the CSI data, namely the action name, the purpose of the action, the number of sub-actions contained and the corresponding calories consumed by each sub-action, and uses GPT to summarize the data and generate the corresponding JSON structure.

[0024] Model training: Based on the existing data and the selected basic model, the present invention fine-tunes the multimodal large model. After the model is trained until convergence, the model can be deployed and tested. Among them, the input data will be processed during the model training process. First, the CSI signal information and the corresponding description dialogue information are obtained through the JSON file, and then the two different data are processed separately. The CSI signal is encoded into signal features by calling the signal encoder, and the text token is converted into text features by calling the language model. The signal features and text features are then concatenated into the input features of the language model.

[0025] Continue to see Figure 1 , the cloud server 4 trains and updates the model weights of the multimodal large model when reaching different data amounts, and uses the new model weights to analyze the CSI terminal data after the training is completed.

[0026] Continue to see Figure 1, the following introduces the processing of CSI signal input. CSI is a series of time series. In order to retain the time characteristics of CSI signals and facilitate the model to extract features, the present invention converts CSI time series data into two-dimensional spatial data according to the input features of the multimodal large model. The present invention uses Gramian Angular Field (GAF) to encode CSI data. This scheme eliminates time series noise through spatial transformation and uses vector inner product to save time information. In order to retain more CSI data and better extract the processed CSI features, the present invention divides and combines the same CSI signal to realize different CSI sequences. Before performing Gram transformation, since the Gram pairwise inner product will make it impossible to distinguish between value information and Gaussian noise, the data needs to be converted from the Cartesian coordinate system to the polar coordinate system before the change; For CSI sequence , first scale the sequence data to between [-1,1], the formula is as follows: ; in, Represents the normalized value of the CSI channel carrier data, represents the CSI channel carrier data in the CSI sequence, X represents the entire input CSI sequence, min(X) represents the minimum value in the input CSI sequence, and max(X) represents the maximum value in the input CSI sequence; Then, the normalized value data obtained above is transformed into polar coordinates to obtain the polar coordinates corresponding to each normalized value data. The calculation method is as follows: ; in, It is the arccosine of the inverse trigonometric function, used to represent the angle data of Cartesian coordinates in polar coordinates. , while r represents the length of the polar diameter, Indicate point timestamp, N represents the number of all time points contained in the time series data, ~ represents the tilde symbol, represents the normalized value of the CSI sequence; Then, using the sum angle relationship and difference angle relationship formula, we can get the corresponding matrix data of GASF graph and GADF graph: ; ; Afterwards, the information of two different two-dimensional images can be fused through convolution, thereby compensating for the limitations of the two Gram images, and achieving the goal of retaining the sensitivity of CSI fluctuation while taking into account other feature information in the CSI sequence. The above sum angle relationship and difference angle relationship formulas are the existing calculation formulas for the Gram angle field, which will not be expanded here; For the text language model, the present invention adopts the llama3-70B model as the basic model for training. Of course, other language models can also be used as base models for training. During the training process, the processed CSI signal and language description information will be input into the multimodal large model after feature fusion.

[0027] Continue to see Figure 1 The present invention provides a method for human motion recognition based on a WiFi-CSI large model in a smart home environment, the method comprising: Step S1, receiving a data request from a data acquisition device 1 in an indoor home scene, wherein the data request from the data acquisition device 1 includes CSI channel data required to be processed by a hardware device for identifying human motion in an indoor home scene; Step S2, selecting a suitable multimodal large model and a data annotation model according to the data type and the indoor home scene, and connecting the data annotation model to the multimodal large model for model fine-tuning; Specifically, we first train the data annotation model on the basic data set and some public CSI action data sets until convergence, and then use the data annotation model to annotate the basic actions; Step S3, based on the basic data set, design the combined action and produce the corresponding CSI data set, and train the multimodal large model after mixing the basic action data set and the combined action data set; Specifically, the CSI terminal data is input into the multimodal large model, which extracts the basic features of the data type through the encoder, and the model decoder is used to restore the original data from the target data center; Furthermore, after the CSI terminal data is transmitted to the multimodal large model, the CSI terminal data is processed with equal length, and then the information time series data is encoded and mapped, and different CSI terminal data are represented by a fixed number of codes. After mapping, the CSI terminal data is transmitted to the multimodal large model for processing; Furthermore, the model loss function of the multimodal large model is the difference between the loss function of the multimodal large model and the anti-overfitting function, and the anti-overfitting loss function is obtained according to the encoder layer and the decoder layer in the multimodal large model.

[0028] In the description of the present application, the description with reference to the terms "one embodiment", "some embodiments", "in the present embodiment", "specific example", or "some examples" etc. means that the specific features, mechanisms, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present application. In this specification, the schematic representations of the above terms do not necessarily refer to the same embodiment or example. Moreover, the specific features, mechanisms, materials or characteristics described may be combined in a suitable manner in any one or more embodiments or examples. In addition, those skilled in the art may combine and combine the different embodiments or examples described in this specification and the features of the different embodiments or examples, without contradiction.

[0029] The above is only a specific implementation of the present application, but the protection scope of the present application 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 application should be included in the protection scope of the present application. Therefore, the protection scope of the present application shall be based on the protection scope of the claims.

Claims

1. A human motion recognition system based on WiFi-CSI large model technology, characterized in that: include: A plurality of data collection devices (1) are installed in an indoor home scene and connected to an indoor WiFi (2) in the indoor home scene for networking, each of the data collection devices (1) is connected to a mobile terminal device (3) and each of the mobile terminal devices (3) belongs to a different user, and each of the data collection devices (1) is used to continuously collect CSI terminal data of each of the mobile terminal devices (3); a cloud server (4), respectively connected to each of the data acquisition devices (1) for communication, for receiving each of the CSI terminal data and preprocessing the CSI terminal data for each of the CSI terminal data to obtain corresponding preprocessed data, and analyzing the preprocessed data by using a multimodal large model pre-trained by using a fine-tuning data set to obtain a corresponding action recognition result and output it; A display interface (5) connected to the cloud server (4) and used for receiving the action recognition result and performing a visual display.

2. The human motion recognition system according to claim 1, characterized in that: Each of the data acquisition devices (1) is installed with an esp32 chip, and is connected to the indoor WiFi (2) via the esp32 chip for networking.

3. The human motion recognition system according to claim 1, characterized in that: The cloud server (4) is an online cloud server deployed on a cloud platform or any server in a home intranet in the indoor home scene.

4. The human motion recognition system according to claim 1, characterized in that: Each of the mobile terminal devices (3) is a mobile phone, a tablet computer, a laptop computer, or a mobile development version intelligent terminal device with communication function.

5. The human motion recognition system according to claim 1, characterized in that: Each of the data acquisition devices (1) comprises a data acquisition module, which is used to collect user information, CSI data information and time information corresponding to each of the mobile terminal devices (3) and include them in the CSI terminal data.

6. The human motion recognition system according to claim 5, characterized in that: The cloud server (4) comprises: a preprocessing module (41), used to check and save each user information, and for each user information, screen out the CSI data information and the time information corresponding to the user information, associate them with the user information, and then save them synchronously to obtain the preprocessed data; A model analysis module (42) is connected to the preprocessing module (41) and is used to process the CSI data information in the preprocessed data to the same length for each preprocessed data, convert it into a two-dimensional matrix, and input it into the multimodal large model to perform user motion recognition and user action recognition to obtain the corresponding action recognition result for output.

7. The human motion recognition system according to claim 6, characterized in that: The cloud server (4) also includes a model training module (43), which is connected to the model analysis module (42) and is used to describe the decomposition of different actions for the same action and include them in the fine-tuning data set, and to add a preset number of actions and the movement data corresponding to the actions to the fine-tuning data set, and use the fine-tuning data set to fine-tune the multimodal large model until the multimodal large model converges.

8. The human motion recognition system according to claim 1, characterized in that: The display interface (5) is a cloud page or a mobile applet.

Citation Information

Patent Citations

  • Wireless behavior perception model cross-scene pre-selection method

    CN112906768A

  • Multi-person online semi-automatic image labeling method and system

    CN112966772A

  • Indoor personnel action recognition method and system, medium, equipment and terminal

    CN114423034A

  • Station special passenger identification and interaction system and method based on image semantic identification

    CN116758591A

  • Search question and answer method based on large model

    CN117609444A

Cited By

  • Intelligent networking linkage system and method based on Internet of Things technology

    CN119788703A

  • Smart networking linkage system and method based on Internet of Things technology

    CN119788703B