A method and system for motion posture recognition in VR devices

By collecting and preprocessing user motion data in real time, and using dynamic background separation and LSTM model recognition technology, the problem of misjudgment of the gesture recognition system in VR equipment under complex backgrounds is solved, efficient and accurate gesture recognition is achieved, and the system is significantly improved. recognition accuracy and practicality.

CN118644896BActive Publication Date: 2024-10-22SHANDONG BUSINESS INST
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411124098.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-08-16
Publication Date
2024-10-22
Estimated Expiration
2044-08-16

AI Technical Summary

Technical Problem

Existing VR device motion posture recognition systems are difficult to handle complex or rapidly changing backgrounds, leading to data misreading or misjudgment. They also lack flexibility and accuracy in data preprocessing and feature extraction, limiting the performance of the recognition algorithm.

Method used

By collecting user motion data in real time, performing bilateral filtering and low-pass filter denoising, dynamic background separation, feature extraction, and constructing a long short-term memory network LSTM model for gesture recognition, combined with a 3D convolutional neural network and bag-of-words model, to generate high-quality dimensional feature vector to achieve accurate recognition of user motion posture.

Benefits of technology

It significantly improves the recognition accuracy and real-time performance of the system, enhances the practicality and market competitiveness of VR equipment, can more accurately handle motion postures in complex environments, reduces misjudgments, and improves the robustness and universality of the system. .

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118644896B_ABST
    Figure CN118644896B_ABST
Patent Text Reader

Abstract

The present invention discloses a motion posture recognition method and system for VR equipment, which relates to the field of virtual reality technology, including real-time collection of user motion data, preprocessing of the collected user motion data, dynamic background separation of video data of the preprocessed user motion data; extracting features of the preprocessed motion data, connecting the extracted motion data features in series, constructing a long short-term memory network LSTM model for user motion posture recognition; and securely storing the user motion data and implementing access control. The present invention realizes efficient data processing and posture recognition by collecting user motion data in real time and preprocessing, extracting features of the preprocessed motion data, and constructing a long short-term memory network LSTM model for user motion posture recognition, significantly improving the recognition accuracy and real-time performance of the system, and greatly enhancing the practicality and market competitiveness of VR equipment.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of virtual reality technology, and in particular to a motion posture recognition method and system for VR equipment. Background Art

[0002] In the development of virtual reality (VR) technology, motion posture recognition has always been one of the key technologies to improve user experience and interaction quality. With the popularization of VR devices and their application expansion in games, education, and training simulation, the demand for accurate recognition of motion postures is growing. Traditional posture recognition technology mainly relies on external sensors or specific capture devices. These methods are often subject to many restrictions due to device limitations or environmental interference. In recent years, the research on motion posture recognition using built-in cameras and sensors in VR devices has gradually increased. This type of technology can provide a relatively natural interactive experience without relying on external devices by analyzing the user's visual and motion data.

[0003] Although the existing technology has made certain progress, the shortcomings of the existing technology are mainly manifested in the following aspects: the existing gesture recognition system often has difficulty in handling complex or rapidly changing backgrounds, which can lead to misreading or misjudgment of data; the existing system often lacks sufficient flexibility and accuracy in data preprocessing and feature extraction, which limits the overall performance of the recognition algorithm. Summary of the invention

[0004] In view of the problems existing in the above-mentioned existing motion posture recognition methods and systems for VR devices, the present invention is proposed.

[0005] Therefore, the problem to be solved by the present invention is that existing gesture recognition systems often have difficulty in processing complex or rapidly changing backgrounds, which may lead to misreading or misjudgment of data. Existing systems often lack sufficient flexibility and accuracy in data preprocessing and feature extraction, which limits the overall performance of the recognition algorithm.

[0006] To solve the above technical problems, the present invention provides the following technical solutions: a motion posture recognition method for VR equipment, which includes collecting user motion data in real time, preprocessing the collected user motion data, and performing dynamic background separation on video data of the preprocessed user motion data; extracting features of the preprocessed motion data, connecting the extracted motion data features in series, and constructing a long short-term memory network LSTM model to recognize user motion postures; and securely storing the user motion data and implementing access control.

[0007] As a preferred solution of the motion posture recognition method for VR equipment described in the present invention, the preprocessing of the collected user motion data refers to using bilateral filtering to denoise the video data and using a low-pass filter to denoise the motion sensor data.

[0008] As a preferred solution of the motion posture recognition method for VR equipment of the present invention, wherein: the dynamic background separation of the pre-processed video data refers to selecting the average value of the first 10 frames of the video data to generate the initial reference frame I ref (x, y), update the reference frame I using the exponential weighted average method t+1 ref (x,y);

[0009] Calculate the pixel difference between the current frame and the reference frame of the video data. The formula is:

[0010] ;

[0011] Where Δ(x,y) is the pixel difference value;

[0012] Randomly select 10 video clips from the video data as experimental data, calculate the inter-frame difference value for each frame in the experimental data set, and obtain the pixel difference image Δ ’ (x, y), count all pixel difference values ​​and draw a histogram. According to historical experimental data, the lower limit a is set as the 10th percentile of the difference value distribution, and the upper limit b is set as the 90th percentile;

[0013] Define the fuzzy sets "large" and "small" to describe the size of the difference value, and classify the difference value of each pixel through the fuzzy set. The formula is:

[0014] ;

[0015] ;

[0016] Among them, big(Δ(x,y)) and small(Δ(x,y)) are fuzzy sets;

[0017] According to the fuzzy set value, the pixels big(Δ(x,y)) are classified as "dynamic" and small(Δ(x,y)) as "static";

[0018] Calculate the experimental dynamic deterministic value Dyn for each frame of experimental data ’ (x,y), all experimental dynamic deterministic values ​​Dyn ’ (x,y) for statistical analysis, select the experimental dynamic deterministic value Dyn ’The mean of (x, y) is set as the dynamic certainty threshold Γ. By comparing the dynamic and static labels of each pixel, the dynamic certainty Dyn(x, y) is calculated as follows:

[0019] ;

[0020] If the value of the dynamic certainty Dyn(x, y) is greater than the set dynamic certainty threshold Γ, it is determined to be a foreground area; if the value of the dynamic certainty Dyn(x, y) is less than or equal to the set dynamic certainty threshold Γ, it is determined to be a background area;

[0021] Dynamic background separation video data is generated according to the determined foreground area and background area.

[0022] As a preferred solution of the motion posture recognition method for VR equipment of the present invention, wherein: the feature extraction of the pre-processed motion data refers to extracting the outline of the user from the foreground area of ​​the video data using the Canny edge detection algorithm, and calculating the center of gravity (C x ,C y );

[0023] The statistical analysis method is used to extract the mean c1 and z1, variance c2 and z2, and change rate of the preprocessed acceleration and angular velocity data respectively. The change rate formula is:

[0024] ;

[0025] ;

[0026] Where Δc is the rate of change of acceleration, Δz is the rate of change of angular velocity, Δt is the time interval between two measurements, c u,t 、c v,t and c w,t are the acceleration values ​​of the three axes u, v and w at time t, c u,t-1 、c v,t-1 and c w,t-1 are the acceleration values ​​of the three axes u, v and w at the previous time point, z u,t 、z v,t and z w,t are the angular velocities of the three axes u, v and w at time t, z u,t-1 、z v,t-1 and z w,t-1 are the acceleration values ​​of the three axes u, v and w at the previous time point respectively;

[0027] The center of gravity of the user foreground area (C x ,C y), the mean c1 and z1, variance c2 and z2, and change rate Δc and Δz of acceleration and angular velocity data are integrated into feature vectors, and the formula is:

[0028] ;

[0029] Where F is the eigenvector.

[0030] As a preferred solution of the motion posture recognition method for VR equipment of the present invention, wherein: the said concatenating the extracted motion data features refers to randomly selecting k initial cluster centers, and using the Euclidean distance formula to calculate the distance d(F,μ j );

[0031] Classify each feature vector and update the cluster center μ ’ j , the formula is:

[0032] ;

[0033] Among them C j is the feature vector of the jth cluster;

[0034] The maximum number of iterations is set to T max , repeatedly calculate the distance from each feature vector F to the cluster center, and update the cluster center until the cluster center reaches the maximum number of iterations T max Stop iteration when

[0035] According to the results of k-means clustering, each cluster center corresponds to a "word", and the clustered features are mapped to the discretized vocabulary space to generate a bag-of-words model. The frequency of occurrence of different "words" in each video sequence is counted to generate the corresponding word frequency vector V;

[0036] Collect the dynamic background separation video data after historical processing, generate an operation set, build a 3D convolutional neural network, set the input layer to the dynamic background separation video data, use the operation set to train the 3D convolutional neural network, and use the loss function and Adam optimizer to iteratively optimize the model parameters;

[0037] The dynamic background separation video data is input into the trained 3D convolutional neural network to obtain the three-dimensional feature vector F of the dynamic background separation video data. 3D ;

[0038] The word frequency vector V after k-means clustering is combined with the three-dimensional feature vector F extracted by the 3D convolutional neural network 3D Concatenate them to form the final high-dimensional feature vector, the formula is:

[0039] ;

[0040] Where Z is the final high-dimensional feature vector.

[0041] As a preferred solution of the motion posture recognition method for VR equipment described in the present invention, wherein: the construction of the long short-term memory network LSTM model for user motion posture recognition refers to collecting historical user motion data for preprocessing and feature extraction to obtain a historical high-dimensional feature vector Z ’ , generate training set;

[0042] Construct a long short-term memory network LSTM model, including input gate, forget gate, memory unit and output gate;

[0043] Set the input gate to a high-dimensional feature vector;

[0044] Use the training set to train the LSTM model, and use the loss function and Adam optimizer to iteratively optimize the model parameters;

[0045] Input the high-dimensional feature vector V into the trained long short-term memory network LSTM model to obtain the user's temporal posture probability distribution;

[0046] Select the category with the highest probability as the motion posture at the current time.

[0047] As a preferred solution of the motion posture recognition method for VR devices described in the present invention, wherein: the secure storage of user motion data and implementation of access control refers to storing the user's running data information, running posture recognition results and timestamps in a database, and setting security access measures. The database backs up the stored data in the cloud, and regularly performs integrity checks on the stored data and backup data. After the test is completed, an integrity test record is generated and synchronously stored in the database, allowing authorized users to query the running posture recognition results through a visual interface.

[0048] Another object of the present invention is to provide a motion gesture recognition system for a VR device, which includes a collection and processing module for collecting user motion data in real time and preprocessing the collected user motion data;

[0049] Extraction and construction module, used to extract the features of pre-processed motion data and build a long short-term memory network LSTM model for user motion posture recognition;

[0050] The visualization storage module is used to build a visualization interface to display user motion posture recognition in real time. It will be used to securely store motion data and implement access control.

[0051] A computer device comprises: a memory and a processor; the memory stores a computer program, and the processor implements the steps of the above-mentioned motion posture recognition method for VR equipment when executing the computer program.

[0052] A computer-readable storage medium stores a computer program, which, when executed by a processor, implements the steps of the above-mentioned motion posture recognition method for VR equipment.

[0053] The beneficial effects of the present invention are as follows: the present invention collects user motion data in real time and performs preprocessing, extracts features of the preprocessed motion data, and constructs a long short-term memory network LSTM model to perform user motion posture recognition, thereby achieving efficient data processing and posture recognition, significantly improving the recognition accuracy and real-time performance of the system, and greatly enhancing the practicality and market competitiveness of VR equipment. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0055] Figure 1 The figure is a flow chart of a motion posture recognition method for VR equipment.

[0056] Figure 2 It is a structural schematic diagram of a motion posture recognition method for VR equipment.

[0057] Figure 3 Schematic diagram of the structure of the motion posture recognition system for VR equipment. DETAILED DESCRIPTION

[0058] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, the specific embodiments of the present invention are described in detail below in conjunction with the accompanying drawings.

[0059] In the following description, many specific details are set forth to facilitate a full understanding of the present invention, but the present invention may also be implemented in other ways different from those described herein, and those skilled in the art may make similar generalizations without violating the connotation of the present invention. Therefore, the present invention is not limited to the specific embodiments disclosed below.

[0060] Secondly, the term "one embodiment" or "embodiment" as used herein refers to a specific feature, structure, or characteristic that may be included in at least one implementation of the present invention. The term "in one embodiment" that appears in different places in this specification does not necessarily refer to the same embodiment, nor is it a separate or selective embodiment that is mutually exclusive with other embodiments.

[0061] Example 1, reference Figure 1 and Figure 2 , which is the first embodiment of the present invention, and which provides a motion posture recognition method for a VR device. The motion posture recognition method for a VR device includes:

[0062] S1. Collect user motion data in real time, pre-process the collected user motion data, and perform dynamic background separation on the video data of the pre-processed user motion data;

[0063] Specifically, real-time collection of user motion data refers to collecting user motion data through the built-in camera and IMU sensor of the VR device, including video and motion sensor data, where the IMU sensor includes a three-axis accelerometer and a three-axis gyroscope, and the motion sensor data includes acceleration and angular velocity data;

[0064] A timestamp is performed each time the user's motion data is collected, and linear interpolation is used to align the motion sensor data to the time axis of the video frame.

[0065] Through multi-sensor fusion technology, the system can obtain more comprehensive and accurate motion data. The camera provides visual information to capture the user's overall motion trajectory, while the IMU sensor provides high-frequency motion details, such as acceleration and rotation information. Combining these two data sources, the system can more accurately identify and analyze the user's motion posture, especially in complex dynamic environments, which can improve the accuracy and response speed of posture recognition. Timestamp marking lays the foundation for the timing analysis and synchronous processing of data. Through accurate timestamps, the system can track and align data at different time points to avoid data inconsistency caused by time errors. This process is particularly important in real-time applications. It can ensure that the system remains synchronized when processing multi-source data, avoid delays and distortion, and improve the overall stability and reliability of the system.

[0066] Furthermore, preprocessing the collected user motion data refers to denoising the video data using bilateral filtering and denoising the motion sensor data using a low-pass filter;

[0067] The fuzzy logic method is used to perform dynamic background separation on the denoised video data, including:

[0068] Select the average value of the first 10 frames of video data to generate the initial reference frame Iref (x, y), update the reference frame I using the exponential weighted average method t+1 ref (x,y), the formula is:

[0069] ;

[0070] Among them I t ref (x, y) is the reference frame of the tth frame, I cur (x, y) is the pixel value of the current frame, α is the smoothing coefficient;

[0071] Calculate the pixel difference between the current frame and the reference frame of the video data. The formula is:

[0072] ;

[0073] Where Δ(x,y) is the pixel difference value;

[0074] Randomly select 10 video clips from the video data as experimental data, calculate the inter-frame difference value for each frame in the experimental data set, and obtain the pixel difference image Δ ’ (x, y), count all pixel difference values ​​and draw a histogram. According to historical experimental data, the lower limit a is set as the 10th percentile of the difference value distribution, and the upper limit b is set as the 90th percentile;

[0075] Define the fuzzy sets "large" and "small" to describe the size of the difference value, and classify the difference value of each pixel through the fuzzy set. The formula is:

[0076] ;

[0077] ;

[0078] Among them, big(Δ(x,y)) and small(Δ(x,y)) are fuzzy sets;

[0079] Pixels are classified as "dynamic" or "static" based on the fuzzy set value. The formula is:

[0080] ;

[0081] ;

[0082] Among them, M dyn (x,y) is a dynamic pixel, M stat (x,y) is a static pixel;

[0083] Calculate the experimental dynamic deterministic value Dyn for each frame of experimental data ’(x,y), all experimental dynamic deterministic values ​​Dyn ’ (x,y) for statistical analysis, select the experimental dynamic deterministic value Dyn ’ The mean of (x, y) is set as the dynamic certainty threshold Γ. By comparing the dynamic and static labels of each pixel, the dynamic certainty Dyn(x, y) is calculated as follows:

[0084] ;

[0085] If the value of the dynamic certainty Dyn(x, y) is greater than the set dynamic certainty threshold Γ, it is determined to be a foreground area; if the value of the dynamic certainty Dyn(x, y) is less than or equal to the set dynamic certainty threshold Γ, it is determined to be a background area;

[0086] Dynamic background separation video data is generated according to the determined foreground area and background area.

[0087] The denoising processing of bilateral filtering and low-pass filtering can effectively eliminate high-frequency noise in the data, ensuring that errors will not be caused by noise interference in subsequent calculations. At the same time, bilateral filtering has advantages in retaining image details, which is crucial for subsequent fuzzy logic processing. The low-pass filter can smooth the motion sensor data, making subsequent processing more stable and accurate. Fuzzy logic allows complex and uncertain situations to be processed in video analysis. The classification of pixel differential values ​​by fuzzy sets can more flexibly handle small movements in the video, avoiding misjudgment or missed judgment that is easy to cause in traditional hard threshold methods. At the same time, dynamic background separation effectively distinguishes the foreground and background areas, enhancing the system's sensitivity to moving targets and recognition accuracy. By setting a reasonable threshold through statistical analysis of dynamic deterministic values, the system can more accurately distinguish the foreground and background areas. This process reduces the probability of misjudgment and can adapt to complex environments under different video scenes, improving the robustness and universality of dynamic background separation.

[0088] S2, extracting the features of the preprocessed motion data, connecting the extracted motion data features in series, and constructing a long short-term memory network LSTM model to perform user motion posture recognition;

[0089] Specifically, extracting the features of the pre-processed motion data refers to extracting the outline of the user from the foreground area of ​​the video data using the Canny edge detection algorithm, and calculating the center of gravity of the user foreground area from the extracted outline of the user. The formula is:

[0090] ;

[0091] ;

[0092] Among them C x and Cy are the horizontal and vertical coordinates of the center of gravity of the foreground area, N is the total number of pixels in the foreground area, x i and i are the coordinates of the pixels in the foreground area respectively;

[0093] The statistical analysis method is used to extract the mean c1 and z1, variance c2 and z2, and change rate of the preprocessed acceleration and angular velocity data respectively. The change rate formula is:

[0094] ;

[0095] ;

[0096] Where Δc is the rate of change of acceleration, Δz is the rate of change of angular velocity, Δt is the time interval between two measurements, c u,t 、c v,t and c w,t are the acceleration values ​​of the three axes u, v and w at time t, c u,t-1 、c v,t-1 and c w,t-1 are the acceleration values ​​of the three axes u, v and w at the previous time point, z u,t 、z v,t and z w,t are the angular velocities of the three axes u, v and w at time t, z u,t-1 、z v,t-1 and z w,t-1 are the acceleration values ​​of the three axes u, v and w at the previous time point respectively;

[0097] The center of gravity of the user foreground area (C x ,C y ), the mean c1 and z1, variance c2 and z2, and change rate Δc and Δz of acceleration and angular velocity data are integrated into feature vectors, and the formula is:

[0098] ;

[0099] Where F is the eigenvector;

[0100] Randomly select k initial cluster centers and use the Euclidean distance formula to calculate the distance d(F,μ j ), the formula is:

[0101] ;

[0102] where μ ji is the cluster center μ j Medium and F m The corresponding eigenvalue, F m is any eigenvalue in the mth eigenvector;

[0103] Classify each feature vector and update the cluster center μ ’ j , the formula is:

[0104] ;

[0105] Among them C j is the feature vector of the jth cluster;

[0106] The maximum number of iterations is set to T max , repeatedly calculate the distance from each feature vector F to the cluster center, and update the cluster center until the cluster center reaches the maximum number of iterations T max Stop iteration when

[0107] According to the results of k-means clustering, each cluster center corresponds to a "word", and the clustered features are mapped to the discretized vocabulary space to generate a bag-of-words model. The frequency of occurrence of different "words" in each video sequence is counted to generate the corresponding word frequency vector V;

[0108] Collect historically processed dynamic background separation video data and generate an operation set;

[0109] Construct a 3D convolutional neural network and set the input layer to dynamic background separation video data;

[0110] Use the operation set to train the 3D convolutional neural network, and use the loss function and Adam optimizer to iteratively optimize the model parameters;

[0111] The dynamic background separation video data is input into the trained 3D convolutional neural network to obtain the three-dimensional feature vector F of the dynamic background separation video data. 3D ;

[0112] The word frequency vector V after k-means clustering is combined with the three-dimensional feature vector F extracted by the 3D convolutional neural network 3D Concatenate them to form the final high-dimensional feature vector, the formula is:

[0113] ;

[0114] Where Z is the final high-dimensional feature vector.

[0115] The Canny edge detection algorithm can effectively filter out noise while retaining image details, making the extracted user contour more accurate. By calculating the center of gravity of the foreground area, the user's position information is further extracted, providing important parameters for subsequent feature integration. This process is especially important in dynamic environments because it can adapt to user posture changes under different lighting conditions and complex backgrounds. Through statistical analysis, the extracted mean, variance, and rate of change can effectively capture the amplitude, change trend, and stability of the movement. These feature parameters are crucial for identifying the user's specific motion state, especially in complex three-dimensional motion environments. It can provide a more detailed description of motion information. k-mean S clustering effectively reduces the complexity of data and improves the efficiency of pattern recognition by grouping feature vectors. The bag-of-words model provides an intuitive and effective representation method for subsequent posture analysis. By counting the frequency of occurrence of different "words", the motion patterns in video data can be better understood and analyzed. The 3D convolutional neural network can capture the spatiotemporal features in video data and provide a deeper understanding of the motion process. Through multi-dimensional analysis of video sequences, the generated three-dimensional feature vector can more comprehensively describe the user's motion state and provide a higher-dimensional input for subsequent posture classification. By integrating feature vectors from different sources, the final high-dimensional feature vector Z has richer expression capabilities. This vector not only contains the user's spatial position information, but also contains the spatiotemporal dynamic features of the motion, providing a comprehensive and accurate description of the posture. This process significantly improves the accuracy and robustness of motion posture recognition, enabling the system to maintain high performance in complex environments.

[0116] Furthermore, constructing a long short-term memory network LSTM model for user motion posture recognition means collecting historical user motion data for preprocessing and feature extraction to obtain a historical high-dimensional feature vector Z ’ , generate training set;

[0117] Construct a long short-term memory network LSTM model, including input gate, forget gate, memory unit and output gate;

[0118] Set the input gate to a high-dimensional feature vector;

[0119] Use the training set to train the LSTM model, and use the loss function and Adam optimizer to iteratively optimize the model parameters;

[0120] Input the high-dimensional feature vector V into the trained long short-term memory network LSTM model to obtain the user's temporal posture probability distribution;

[0121] Select the category with the highest probability as the motion posture at the current time.

[0122] Through the systematic processing of historical data, the preprocessing step can eliminate noise and redundant information, while feature extraction extracts the motion patterns contained in the data in the form of high-dimensional vectors. The gating mechanism of the LSTM model enables it to effectively process and memorize long-term dependencies in time series data. In motion posture recognition, it can capture the potential patterns in the user's continuous actions. The application of the Adam optimizer accelerates the convergence of the model, reduces the training time, and ensures the stability of the model when processing complex high-dimensional data. By utilizing the time series learning ability of the LSTM model, the system can accurately classify continuous motion data. The generated posture probability distribution provides a probabilistic basis for the recognition results, enhancing the robustness and reliability of the recognition process. This probability-based posture recognition method can effectively reduce misjudgments, especially in complex and changeable motion scenes, significantly improving the practicality of the system.

[0123] S3, securely store user motion data and implement access control;

[0124] Specifically, securely storing user motion data and implementing access control means storing the user's running data information, running posture recognition results and timestamps in the database, and setting security access measures. The database will back up the stored data in the cloud, and regularly perform integrity checks on the stored data and backup data. After the test is completed, the integrity test record is generated and stored synchronously in the database, allowing authorized users to query the running posture recognition results through a visual interface.

[0125] By storing data in a structured manner in a database, the system can achieve efficient management and fast query of motion data. Through strict access control, the system can effectively prevent unauthorized access and data leakage. Permission management enables different users to access corresponding data based on their permission levels. Encryption technology ensures the confidentiality of data during transmission and storage. Cloud backup provides redundancy for data storage, enhancing data security and recovery capabilities. By storing integrity detection records in the database, the system can quickly locate and resolve problems when they arise, further improving the transparency and traceability of data management.

[0126] Example 2, reference Figure 3 , which is the second embodiment of the present invention. This embodiment is different from the previous embodiment and provides a motion posture recognition system for VR equipment:

[0127] A collection and processing module, used for collecting user motion data in real time and preprocessing the collected user motion data;

[0128] Extraction and construction module, used to extract the features of pre-processed motion data and build a long short-term memory network LSTM model for user motion posture recognition;

[0129] The storage module is used to securely store motion data and implement access control.

[0130] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art, or the part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium, including several instructions to enable a computer device (which can be a personal computer, server, or network device, etc.) to perform all or part of the steps of the methods described in various embodiments of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk, etc., which can store program codes.

[0131] The logic and / or steps represented in the flowchart or otherwise described herein, for example, can be considered as an ordered list of executable instructions for implementing logical functions, and can be embodied in any computer-readable medium for use by an instruction execution system, device or apparatus (such as a computer-based system, a system including a processor, or other system that can fetch instructions from an instruction execution system, device or apparatus and execute instructions), or in conjunction with such instruction execution systems, devices or apparatuses. For the purposes of this specification, "computer-readable medium" can be any device that can contain, store, communicate, propagate or transmit a program for use by an instruction execution system, device or apparatus, or in conjunction with such instruction execution systems, devices or apparatuses.

[0132] More specific examples of computer-readable media (a non-exhaustive list) include the following: an electrical connection with one or more wires (electronic device), a portable computer disk case (magnetic device), a random access memory (RAM), a read-only memory (ROM), an erasable and programmable read-only memory (EPROM or flash memory), an optical fiber device, and a portable compact disk read-only memory (CDROM). In addition, the computer-readable medium may even be a paper or other suitable medium on which the program is printed, since the program may be obtained electronically, for example, by optically scanning the paper or other medium, followed by editing, deciphering or, if necessary, processing in another suitable manner, and then stored in a computer memory.

[0133] It should be understood that the various parts of the present invention can be implemented by hardware, software, firmware or a combination thereof. In the above embodiments, multiple steps or methods can be implemented by software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented by hardware, as in another embodiment, it can be implemented by any one of the following technologies known in the art or their combination: a discrete logic circuit with a logic gate circuit for implementing a logic function for a data signal, a dedicated integrated circuit with a suitable combination of logic gate circuits, a programmable gate array (PGA), a field programmable gate array (FPGA), etc.

Claims

1. A motion posture recognition method for VR equipment, characterized in that: include, Collect user motion data in real time, pre-process the collected user motion data, and perform dynamic background separation on video data of the pre-processed user motion data; Extract the features of the preprocessed motion data, connect the extracted motion data features in series, and build a long short-term memory network LSTM model to recognize user motion postures; Securely store user motion data and implement access control; The real-time collection of user motion data refers to collecting user motion data through the built-in camera and IMU sensor of the VR device, including video and motion sensor data, wherein the IMU sensor includes a three-axis accelerometer and a three-axis gyroscope, and the motion sensor data includes acceleration and angular velocity data; Timestamp the user's motion data each time it is collected, and use linear interpolation to align the motion sensor data to the time axis of the video frame; The preprocessing of the collected user motion data refers to using bilateral filtering to perform denoising on the video data and using a low-pass filter to perform denoising on the motion sensor data; The dynamic background separation of the pre-processed video data refers to selecting the average value of the first 10 frames of the video data to generate an initial reference frame I ref (x, y), update the reference frame I using the exponential weighted average method t+1 ref (x,y); Calculate the pixel difference between the current frame and the reference frame of the video data. The formula is: , Where Δ(x,y) is the pixel difference value, I ref (x,y) is the initial reference frame; Randomly select 10 video clips from the video data as experimental data, calculate the inter-frame difference value for each frame in the experimental data set, and obtain the pixel difference image Δ ’ (x, y), count all pixel difference values ​​and draw a histogram. According to historical experimental data, the lower limit a is set as the 10th percentile of the difference value distribution, and the upper limit b is set as the 90th percentile; Define the fuzzy sets "large" and "small" to describe the size of the difference value, and classify the difference value of each pixel through the fuzzy set. The formula is: , , Among them, big(Δ(x,y)) and small(Δ(x,y)) are fuzzy sets; According to the fuzzy set value, the pixels big(Δ(x,y)) are classified as "dynamic" and small(Δ(x,y)) "static"; Calculate the experimental dynamic deterministic value Dyn for each frame of experimental data ’ (x,y), all experimental dynamic deterministic values ​​Dyn ’ (x,y) for statistical analysis, select the experimental dynamic deterministic value Dyn ’ The mean of (x, y) is set as the dynamic certainty threshold Γ. By comparing the dynamic and static labels of each pixel, the dynamic certainty Dyn(x, y) is calculated. The formula is: , Among them, M dyn (x,y) is a dynamic pixel, M stat (x,y) is a static pixel; If the value of the dynamic certainty Dyn(x, y) is greater than the set dynamic certainty threshold Γ, it is determined to be a foreground area; if the value of the dynamic certainty Dyn(x, y) is less than or equal to the set dynamic certainty threshold Γ, it is determined to be a background area; Generate dynamic background separation video data according to the determined foreground area and background area; The feature extraction of the pre-processed motion data refers to extracting the outline of the user from the foreground area of ​​the video data using the Canny edge detection algorithm, and calculating the center of gravity (C x ,C y ); The statistical analysis method is used to extract the mean c1 and z1, variance c2 and z2, and change rate of the preprocessed acceleration and angular velocity data respectively. The change rate formula is: , , Where Δc is the rate of change of acceleration, Δz is the rate of change of angular velocity, Δt is the time interval between two measurements, c u,t 、c v,t and c w,t are the acceleration values ​​of the three axes u, v and w at time t, c u,t-1 、c v,t-1 and c w,t-1 are the acceleration values ​​of the three axes u, v and w at the previous time point, z u,t 、z v,t and z w,t are the angular velocities of the three axes u, v and w at time t, z u,t-1 、z v,t-1 and z w,t-1 are the acceleration values ​​of the three axes u, v and w at the previous time point respectively; The center of gravity of the user foreground area (C x ,C y ), the mean c1 and z1, variance c2 and z2, and change rate Δc and Δz of acceleration and angular velocity data are integrated into feature vectors, and the formula is: , Where F is the eigenvector.

2. The motion posture recognition method for VR equipment according to claim 1, characterized in that: The extracted motion data features are serially connected by randomly selecting k initial cluster centers and using the Euclidean distance formula to calculate the distance d(F,μ j ); Classify each feature vector and update the cluster center μ ’ j , the formula is: , Among them C j is the feature vector of the jth cluster; The maximum number of iterations is set to T max , repeatedly calculate the distance from each feature vector F to the cluster center, and update the cluster center until the cluster center reaches the maximum number of iterations T max Stop iteration when According to the results of k-means clustering, each cluster center corresponds to a "word", and the clustered features are mapped to the discretized vocabulary space to generate a bag-of-words model. The frequency of occurrence of different "words" in each video sequence is counted to generate the corresponding word frequency vector V; Collect the dynamic background separation video data after historical processing, generate an operation set, build a 3D convolutional neural network, set the input layer to the dynamic background separation video data, use the operation set to train the 3D convolutional neural network, and use the loss function and Adam optimizer to iteratively optimize the model parameters; The dynamic background separation video data is input into the trained 3D convolutional neural network to obtain the three-dimensional feature vector F of the dynamic background separation video data. 3D ; The word frequency vector V after k-means clustering is combined with the three-dimensional feature vector F extracted by the 3D convolutional neural network 3D Concatenate them to form the final high-dimensional feature vector, the formula is: , Where Z is the final high-dimensional feature vector.

3. The motion posture recognition method for VR equipment according to claim 2, characterized in that: The construction of the long short-term memory network LSTM model for user motion posture recognition refers to collecting historical user motion data for preprocessing and feature extraction to obtain a historical high-dimensional feature vector Z ’ , generate training set; Construct a long short-term memory network LSTM model, including input gate, forget gate, memory unit and output gate; Set the input gate to a high-dimensional feature vector; Use the training set to train the LSTM model, and use the loss function and Adam optimizer to iteratively optimize the model parameters; Input the high-dimensional feature vector V into the trained long short-term memory network LSTM model to obtain the user's temporal posture probability distribution; Select the category with the highest probability as the motion posture at the current time.

4. The motion posture recognition method for VR equipment according to claim 3, characterized in that: The secure storage of user motion data and implementation of access control refers to storing the user's running data information, running posture recognition results and timestamp in the database, and setting security access measures. The database will back up the stored data in the cloud, and regularly perform integrity checks on the stored data and backup data. After the test is completed, an integrity test record is generated and synchronously stored in the database, allowing authorized users to query the running posture recognition results through a visual interface.

5. A motion posture recognition system for VR devices based on the motion posture recognition method for VR devices according to any one of claims 1 to 4, characterized in that: include, A collection and processing module, used for collecting user motion data in real time and preprocessing the collected user motion data; Extraction and construction module, used to extract the features of pre-processed motion data and connect them in series, and build a long short-term memory network LSTM model for user motion posture recognition; The storage module is used to securely store motion data and implement access control.

6. A computer device comprising: Memory and processor; The memory stores a computer program, characterized in that when the processor executes the computer program, the steps of the motion posture recognition method for VR equipment described in any one of claims 1 to 4 are implemented.

7. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the motion posture recognition method for a VR device described in any one of claims 1 to 4 are implemented.