An augmented reality teaching improvement method and system for chemical engineering education and training

Through the combination of augmented reality technology, LSTM and OpenPose algorithms, the problems of expensive equipment, complex operations and safety risks in cold mold experimental teaching are solved, achieving efficient and safe experimental operations and cost reduction.

CN117687517BActive Publication Date: 2024-09-20BEIJING THINKING WISDOM PARK TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410145412.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-02-02
Publication Date
2024-09-20
Estimated Expiration
2044-02-02

AI Technical Summary

Technical Problem

Traditional cold mold experiment teaching is conducted under potentially dangerous conditions such as high and low temperatures. The equipment is expensive and the operation is complex. It is difficult for students to become proficient, there are safety risks, and the cost of laboratory construction and maintenance is high.

Method used

Using augmented reality technology, the three-dimensional virtual model is matched with the actual scene, the FAST edge detection algorithm and the BRIEF algorithm are used to extract feature points, the EPnP algorithm is used to solve the camera pose, and the LSTM model and OpenPose algorithm are combined to achieve real-time gesture recognition and device operation control. Reduce security risks.

Benefits of technology

It improves the accuracy of experimental scene matching and the safety of student operations, reduces the frequent use and maintenance costs of experimental equipment, and enhances the adaptability and safety of experiments.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117687517B
    Figure CN117687517B
Patent Text Reader

Abstract

The present invention discloses an improved method and system for augmented reality teaching for chemical engineering education and training, and the method includes experimental design, tracking registration, gesture detection, and interactive design. The present invention belongs to the field of chemical engineering education and training technology, and specifically refers to an improved method and system for augmented reality teaching for chemical engineering education and training. This scheme uses augmented reality tracking registration technology, uses FAST edge detection algorithm and BRIEF algorithm to extract and describe feature points of actual scene images, and uses EPnP algorithm to solve camera pose, improve the accuracy of matching actual scene and virtual scene, enhance the adaptability of various cold model experiment requirements, and realize accurate perception of actual scene; construct LSTM model to extract spatiotemporal features of gesture images, and combine OpenPose algorithm to build gesture recognition network to capture student gestures, realize real-time control of experimental equipment, reduce potential safety risks of cold model experiments, and reduce the cost of laboratory construction and maintenance.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of chemical engineering teaching and training, and in particular to an augmented reality teaching improvement method and system for chemical engineering teaching and training. Background Art

[0002] Cold model experiments are chemical experiments that study the transfer laws of devices without chemical reactions. Cold model experiment teaching and training often involve high temperatures, low temperatures and other potentially dangerous conditions. General cold model experiment teaching requires a lot of materials and expensive equipment when facing various types of experiments. The experimental process is complicated and the operation flexibility is poor. Students need to repeat many times to master the experimental skills and adapt to a variety of different experimental environments. Traditional cold model experiment teaching requires frequent adjustments and precise operations when using experimental equipment. Accidents are likely to occur if the operation is improper, and there are great safety risks in contact with hazardous substances when you are not familiar with the experimental reaction mechanism. Summary of the invention

[0003] In view of the above situation, in order to overcome the defects of the prior art, the present invention provides an improved method and system for augmented reality teaching for chemical engineering education and training. In view of the general cold model experiment teaching facing various types of experiments, a large amount of materials and expensive equipment are required, and the experimental process is complicated and the operation flexibility is poor. Students need to repeat many times to master the experimental skills and adapt to various different experimental environments. This solution uses augmented reality tracking and registration technology to match the three-dimensional virtual model and the actual scene, uses the FAST edge detection algorithm and the BRIEF algorithm to extract and describe the feature points of the actual scene image, and uses the EPnP algorithm to solve the camera pose, which effectively improves the actual scene and the virtual scene. The accuracy of matching enhances the adaptability to various cold model experiment needs and realizes accurate perception of actual scenes. Traditional cold model experiment teaching requires frequent adjustments and precise operations when using experimental equipment. Accidents are likely to occur when the operation is improper, and there are great safety risks when contacting hazardous substances when one is not familiar with the experimental reaction mechanism. This solution constructs an LSTM model to extract the spatiotemporal features of gesture images, realizes real-time feedback and interaction of cold model experiment operations, and combines the OpenPose algorithm to build a gesture recognition network to accurately capture student gestures, realize real-time operation control of experimental equipment, reduce the potential safety risks of cold model experiments, and reduce the cost of laboratory construction and maintenance.

[0004] The technical solution adopted by the present invention is as follows: The present invention provides an improved method for augmented reality teaching for chemical engineering education and training, the method comprising the following steps:

[0005] Step S1: Experimental design, creating a three-dimensional virtual model of the cold mold experiment, including the experimental scene, experimental equipment, and experimental materials, obtaining a three-dimensional virtual model image, and designing the cold mold experiment procedure, including the cold mold experiment process, equipment operation method, and reaction mechanism procedure;

[0006] Step S2: Tracking registration, obtaining real-time data of the actual scene through cameras and sensors, including the user's position, head angle, and movement, and matching the 3D virtual model with the actual scene according to the user's field of view;

[0007] Step S3: gesture detection, constructing an LSTM model to extract the spatial features of gesture images, and establishing a gesture recognition network to extract the features of gesture images and recognize gestures;

[0008] Step S4: Interaction design, create a cold model experiment environment, define the interaction scenario between the user and the cold model experiment environment, design interactive actions related to gestures according to the requirements of the cold model experiment interaction scenario, determine the meaning of gestures and corresponding operations, evaluate the user's experimental behavior and provide personalized guidance.

[0009] Furthermore, in step S2, the tracking registration specifically includes the following steps:

[0010] Step S21: image acquisition, using a camera to capture images of the actual scene at different viewing angles, obtaining an actual scene image, reading a three-dimensional virtual model image, and the actual scene image and the three-dimensional virtual model image constitute an experimental image;

[0011] Step S22: Feature extraction, using the FAST edge detection algorithm to detect corner points in the experimental image as feature points, the steps are as follows:

[0012] Step S221: Select a central pixel point, and select a pixel point with a larger gray value in each experimental image as the central pixel point;

[0013] Step S222: construct a circle, select 16 pixels evenly distributed on the circumference of the central pixel point, and the formula used is as follows:

[0014] ;

[0015] In the formula, and Indicates the horizontal and vertical coordinates of the center pixel. and Indicates the circumference The horizontal and vertical coordinates of the pixel points, Indicates the radius of a circle;

[0016] Step S223: Threshold determination, setting a grayscale threshold to determine the grayscale difference between the central pixel and the surrounding pixels. If the grayscale value difference between 12 consecutive pixels and the central pixel exceeds the grayscale threshold, the central pixel is a feature point. The formula used is as follows:

[0017] ;

[0018] In the formula, Represents pixel The gray value of Indicates the center pixel The gray value of is the grayscale threshold;

[0019] Step S224: non-maximum suppression, performing non-maximum suppression on the detected feature points, eliminating redundant feature points, and retaining the feature points with the largest grayscale value;

[0020] Step S23: feature description, using the BRIEF algorithm to generate feature point descriptors for feature points, the steps are as follows:

[0021] Step S231: selecting a test point pair, randomly selecting a test point around the feature point, the feature point and the test point constitute a set of test point pairs, and selecting multiple sets of test point pairs for generating feature point descriptors;

[0022] Step S232: Calculate pixel differences. Calculate the pixel differences of each set of test point pairs. The formula used is as follows:

[0023] ;

[0024] In the formula, represents the pixel difference, is the feature point, For the test point;

[0025] Step S233: Generate a descriptor, concatenate the binary bits generated by all the test point pairs of the feature point together to generate a feature point descriptor, and the formula used is as follows:

[0026] D=[ d 1 , d 2 ,…, d n ] ;

[0027] In the formula, is the feature point descriptor;

[0028] Step S24: feature matching, defining the feature points in the actual scene image as 2D feature points, and the feature points in the three-dimensional virtual model image as 3D feature points, calculating the Hamming distance between the 2D feature point descriptor and the 3D feature point descriptor, setting the Hamming distance threshold, and defining the 2D feature points and 3D feature points that are less than the Hamming distance threshold as 2D-3D feature point pairs. The formula used is as follows:

[0029] ;

[0030] In the formula, represents the Hamming distance, represents the feature point descriptor in the actual scene image, represents the feature point descriptor in the 3D virtual model image, It means to calculate the number of bits with value 1 in the descriptor. represents the Hamming distance threshold;

[0031] Step S25: Camera pose calculation: the EPnP algorithm is used to calculate the camera pose according to the result of feature matching. The steps are as follows:

[0032] Step S251: Select matching feature point pairs, select a set of 2D-3D feature point pairs;

[0033] Step S252: Define the camera intrinsic parameter matrix. The formula used is as follows:

[0034] ;

[0035] In the formula, represents the camera intrinsic parameter matrix, and Respectively represent the focal lengths of the experimental image in the horizontal and vertical directions, and The horizontal and vertical coordinates represent the optical center of the experimental image;

[0036] Step S253: Normalize the coordinates. According to the camera intrinsic parameter matrix, the coordinates of the 2D-3D feature point pairs are converted into normalized coordinates in the camera coordinate system. The formula used is as follows:

[0037] ;

[0038] ;

[0039] In the formula, and Respectively represent the initial coordinates of 3D feature points and 2D feature points, and Respectively represent the coordinates of 3D feature points and 2D feature points in the camera coordinate system, represents the inverse matrix of the camera intrinsic parameter matrix, Represents the three-dimensional coordinates of the 3D feature points, Represents the two-dimensional coordinates of 2D feature points;

[0040] Step S254: Establish a linear equation system, construct a camera information matrix and a camera transformation matrix, and establish a linear equation system. The camera information matrix contains the information of the camera parameters and feature points, and the camera transformation matrix contains the camera rotation matrix and the camera translation vector. The formula used is as follows:

[0041] ;

[0042] ;

[0043] ;

[0044] In the formula, represents the camera information matrix, represents the camera transformation matrix, and Respectively represent For the coordinates of the matched 3D feature points and 2D feature points, represents the rotation vector of the camera, Represents the translation vector of the camera in the x-axis, y-axis, and z-axis directions;

[0045] Step S255: Singular value decomposition, decomposing the camera information matrix, and calculating the camera transformation matrix. The formula used is as follows:

[0046] ;

[0047] ;

[0048] In the formula, is an orthogonal matrix containing the singular vectors, is a diagonal matrix containing singular values, is the camera rotation matrix, is the camera translation vector;

[0049] Step S256: Denormalize the camera rotation matrix and the camera translation vector to obtain the camera pose. The formula used is as follows:

[0050] ;

[0051] In the formula, represents the rotation vector of the camera, Represents the translation vector of the camera in the x-axis, y-axis, and z-axis directions;

[0052] Step S26: virtual-real fusion, matching the 3D virtual model with the actual scene, adjusting the position and direction of the 3D virtual model according to the real-time camera posture, and ensuring that the 3D virtual model is consistent with the actual scene.

[0053] Furthermore, in step S3, the gesture recognition specifically includes the following steps:

[0054] Step S31: data collection, collecting the EgoGesture gesture image database as a data set;

[0055] Step S32: Data preprocessing: preprocessing the data set, including denoising, cropping, and normalization. Randomly select 70% of the gesture images as a training set and 30% of the gesture images as a test set.

[0056] Step S33: Extracting spatiotemporal features, constructing an LSTM model to extract the spatiotemporal features of the gesture image. The LSTM model consists of an input gate, a forget gate, a memory cell, and an output gate. The steps are as follows:

[0057] Step S331: Input gate, the formula used is as follows:

[0058] ;

[0059] In the formula, is the input gate, is the activation function, is the input at the current moment, is the hidden state at the previous moment, is the weight of the input gate, is the weight from the previous hidden state to the input gate, is the bias of the input gate;

[0060] Step S332: Forget gate, the formula used is as follows:

[0061] ;

[0062] In the formula, It's the Gate of Forgetfulness. is the activation function, is the input at the current moment, is the hidden state at the previous moment, is the weight of the forget gate, is the weight from the previous hidden state to the forget gate, is the bias of the forget gate;

[0063] Step S333: Output gate, the formula used is as follows:

[0064] ;

[0065] In the formula, is the output gate, is the activation function, is the input at the current moment, is the hidden state at the previous moment, is the weight of the output gate, is the weight from the previous hidden state to the output gate, is the bias of the output gate;

[0066] Step S334: Cell renewal, the formula used is as follows:

[0067] ;

[0068] In the formula, is the state of memory cells, is the activation function, represents element-wise multiplication, is the weight of the memory cell, is the weight of the hidden state to the memory cell at the previous moment, It is the bias of memory cells;

[0069] Step S335: Hide state, the formula used is as follows:

[0070] ;

[0071] In the formula, Indicates hidden state;

[0072] Step S34: Gesture recognition. Use the OpenPose algorithm to build a gesture recognition network for gesture recognition. The gesture recognition network consists of a VGG-19 model, a PCM model, and a PAFs model. The steps are as follows:

[0073] Step S341: Detect gesture key points and construct a VGG-19 model to extract gesture features. The VGG-19 model consists of an input layer, a convolutional layer, and a fully connected layer. The input layer inputs gesture images, the convolutional layer extracts gesture features, and the fully connected layer outputs gesture feature vectors. The formula used is as follows:

[0074] ;

[0075] In the formula, The gesture image representing the input, Represent the weight matrix and bias of the first convolution operation, respectively. Represent the weight matrix and bias of the second convolution operation respectively, Respectively represent the weight matrix and bias of the third convolution operation, is a nonlinear activation function;

[0076] Step S342: Generate a gesture heat map, build a PCM model to generate a gesture heat map, each heat map corresponds to a key point, the key points include finger joints and wrists, the value of the heat map represents the confidence of the corresponding key point, the formula used is as follows:

[0077] ;

[0078] In the formula, Indicated in The losses during the phase, represents the total number of key points, represents the loss weight, Indicates Key points in pixels The confidence level at Indicates The actual value of the key point is in pixels Confidence level at

[0079] Step S343: Generate a gesture structure diagram, construct a PAFs model to generate a vector to represent the connection information between two key points, including the connection relationship between fingers and the connection relationship between fingers and wrists, and reconstruct the overall structure of the gesture. The formula used is as follows:

[0080] ;

[0081] In the formula, Indicated in The losses during the phase, represents the total number of vectors, represents the loss weight, Indicates Prediction values, Indicates Actual value;

[0082] Step S344: Model evaluation, using the test set to evaluate the overall error of the gesture recognition network, the formula used is as follows:

[0083] ;

[0084] In the formula, Represents the overall error of the gesture recognition network.

[0085] The invention provides an augmented reality teaching improvement system for chemical engineering teaching and training, comprising an experiment design module, a tracking registration module, a gesture detection module and an interaction design module;

[0086] The experimental design module creates a three-dimensional virtual model of the cold model experiment, including the experimental scene, experimental equipment, and experimental materials, designs the cold model experiment program, including the cold model experiment process, equipment operation method, and reaction mechanism program, sends the three-dimensional virtual model to the tracking registration module and the interactive design module, and sends the cold model experiment program to the interactive design module;

[0087] The tracking and registration module receives the three-dimensional virtual model from the experiment design module, obtains real-time data of the actual scene through cameras and sensors, including the user's position, head angle, and movement, matches the three-dimensional virtual model with the actual scene according to the user's field of view to obtain a matching result, and sends the matching result to the gesture detection module and the interaction design module;

[0088] The gesture detection module receives the matching results from the tracking and registration module, constructs an LSTM model to extract the spatial features of the gesture image, establishes a gesture recognition network to extract the features of the gesture image and recognize the gesture, and sends the gesture recognition network to the interaction design module;

[0089] The interaction design module receives the three-dimensional virtual model and cold model experiment program from the experiment design module, the matching results from the tracking and registration module, and the gesture recognition network from the gesture detection module, creates a cold model experiment environment, defines the interaction scene between the user and the cold model experiment environment, designs interaction actions related to gestures according to the requirements of the cold model experiment interaction scene, determines the meaning of gestures and corresponding operations, evaluates the user's experimental behavior and provides personalized guidance.

[0090] The beneficial effects achieved by the present invention using the above scheme are as follows:

[0091] (1) In view of the problem that general cold model experiment teaching faces various types of experiments, it requires a large amount of materials and expensive equipment, and the experimental process is complicated and the operation flexibility is poor. Students need to repeat the experiment many times to master the experimental skills and adapt to various different experimental environments. This scheme uses augmented reality tracking and registration technology to match the three-dimensional virtual model and the actual scene, uses the FAST edge detection algorithm and the BRIEF algorithm to extract and describe the feature points of the actual scene image, and uses the EPnP algorithm to solve the camera pose, which effectively improves the accuracy of the matching between the actual scene and the virtual scene, enhances the adaptability to various cold model experiment needs, and realizes the accurate perception of the actual scene.

[0092] (2) Traditional cold model experiment teaching requires frequent adjustments and precise operations when using experimental equipment. Accidents are likely to occur if the operation is improper. There is also a great safety risk of contacting hazardous substances when one is not familiar with the experimental reaction mechanism. This scheme extracts the spatiotemporal features of gesture images through the LSTM model, realizes real-time feedback and interaction of cold model experiment operations, and combines the OpenPose algorithm to build a gesture recognition network to accurately capture students' gestures, realize real-time operation and control of experimental equipment, reduce the potential safety risks of cold model experiments, and reduce the cost of laboratory construction and maintenance. BRIEF DESCRIPTION OF THE DRAWINGS

[0093] Figure 1 A schematic diagram of a flow chart of an improved augmented reality teaching method for chemical engineering education and training proposed by the present invention;

[0094] Figure 2 A schematic diagram of an augmented reality teaching improvement system for chemical engineering education and training proposed by the present invention;

[0095] Figure 3 is a schematic flow chart of step S2;

[0096] Figure 4 is a schematic diagram of the process of step S22;

[0097] Figure 5 is a schematic diagram of the process of step S23;

[0098] Figure 6 is a schematic diagram of the process of step S25;

[0099] Figure 7 is a schematic flow chart of step S3;

[0100] Figure 8 is a flow chart of step S33;

[0101] Fig. 9 It is a flowchart diagram of step S34.

[0102] The accompanying drawings are used to provide further understanding of the present invention and constitute a part of the specification. They are used to explain the present invention together with the embodiments of the present invention and do not constitute a limitation of the present invention. DETAILED DESCRIPTION

[0103] The technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, rather than all the embodiments; based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present invention.

[0104] In the description of the present invention, it should be understood that terms such as “upper”, “lower”, “front”, “back”, “left”, “right”, “top”, “bottom”, “inside” and “outside” indicating directions or positional relationships are based on the directions or positional relationships shown in the accompanying drawings, and are only for the convenience of describing the present invention and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific direction, be constructed and operated in a specific direction, and therefore should not be understood as limiting the present invention.

[0105] Example 1, see Figure 1 The present invention provides an improved method for augmented reality teaching for chemical engineering education and training, the method comprising the following steps:

[0106] Step S1: Experimental design, creating a three-dimensional virtual model of the cold model experiment, including the experimental scene, experimental equipment, and experimental materials, and designing the cold model experiment procedure, including the cold model experiment process, equipment operation method, and reaction mechanism procedure;

[0107] Step S2: Tracking registration, obtaining real-time data of the actual scene through cameras and sensors, including the user's position, head angle, and movement, and matching the 3D virtual model with the actual scene according to the user's field of view;

[0108] Step S3: gesture detection, constructing an LSTM model to extract the spatial features of gesture images, and establishing a gesture recognition network to extract the features of gesture images and recognize gestures;

[0109] Step S4: Interaction design, create a cold model experiment environment, define the interaction scenario between the user and the cold model experiment environment, design interactive actions related to gestures according to the requirements of the cold model experiment interaction scenario, determine the meaning of gestures and corresponding operations, evaluate the user's experimental behavior and provide personalized guidance.

[0110] Example 2, see Figure 1 , Figure 3 , Figure 4 , Figure 5 and Figure 6 This embodiment is based on the above embodiment. In step S2, tracking registration specifically includes the following steps:

[0111] Step S21: image acquisition, using a camera to capture images of the actual scene at different viewing angles, obtaining an actual scene image, reading a predefined three-dimensional virtual model image, and the actual scene image and the three-dimensional virtual model image constitute an experimental image;

[0112] Step S22: Feature extraction, using the FAST edge detection algorithm to detect corner points in the experimental image as feature points, the steps are as follows:

[0113] Step S221: Select a central pixel point, and select a pixel point with a larger gray value in each experimental image as the central pixel point;

[0114] Step S222: construct a circle, select 16 pixels evenly distributed on the circumference of the central pixel point, and the formula used is as follows:

[0115] ;

[0116] In the formula, and Indicates the horizontal and vertical coordinates of the center pixel. and Indicates the circumference The horizontal and vertical coordinates of the pixel points, Indicates the radius of a circle;

[0117] Step S223: Threshold determination, setting a grayscale threshold to determine the grayscale difference between the central pixel and the surrounding pixels. If the grayscale value difference between 12 consecutive pixels and the central pixel exceeds the grayscale threshold, the central pixel is a feature point. The formula used is as follows:

[0118] ;

[0119] In the formula, Represents pixel The gray value of Indicates the center pixel The gray value of is the grayscale threshold;

[0120] Step S224: non-maximum suppression, performing non-maximum suppression on the detected feature points, eliminating redundant feature points, and retaining the feature points with the largest grayscale value;

[0121] Step S23: feature description, using the BRIEF algorithm to generate feature point descriptors for feature points, the steps are as follows:

[0122] Step S231: selecting a test point pair, randomly selecting a test point around the feature point, the feature point and the test point constitute a set of test point pairs, and selecting multiple sets of test point pairs for generating feature point descriptors;

[0123] Step S232: Calculate pixel differences. Calculate the pixel differences of each set of test point pairs. The formula used is as follows:

[0124] ;

[0125] In the formula, is the feature point, For the test point;

[0126] Step S233: Generate a descriptor, concatenate the binary bits generated by all the test point pairs of the feature point together to generate a feature point descriptor, and the formula used is as follows:

[0127] D=[ d 1 , d 2 ,…, d n ] ;

[0128] In the formula, is the feature point descriptor;

[0129] Step S24: feature matching, defining the feature points in the actual scene image as 2D feature points, and the feature points in the three-dimensional virtual model image as 3D feature points, calculating the Hamming distance between the 2D feature point descriptor and the 3D feature point descriptor, setting the Hamming distance threshold, and defining the 2D feature points and 3D feature points that are less than the Hamming distance threshold as 2D-3D feature point pairs. The formula used is as follows:

[0130] ;

[0131] In the formula, represents the Hamming distance, represents the feature point descriptor in the actual scene image, represents the feature point descriptor in the 3D virtual model image, It indicates the number of bits with value 1 in the calculation descriptor. represents the Hamming distance threshold;

[0132] Step S25: Camera pose calculation: the EPnP algorithm is used to calculate the camera pose according to the result of feature matching. The steps are as follows:

[0133] Step S251: Select matching feature point pairs, and select a set of 2D-3D feature point pairs from the feature matching results;

[0134] Step S252: Define the camera intrinsic parameter matrix. The formula used is as follows:

[0135] ;

[0136] In the formula, represents the camera intrinsic parameter matrix, and Respectively represent the focal lengths of the experimental image in the horizontal and vertical directions, and The horizontal and vertical coordinates represent the optical center of the experimental image;

[0137] Step S253: Normalize the coordinates. According to the camera intrinsic parameter matrix, the coordinates of the 2D-3D feature point pairs are converted into normalized coordinates in the camera coordinate system. The formula used is as follows:

[0138] ;

[0139] ;

[0140] In the formula, and Respectively represent the initial coordinates of 3D feature points and 2D feature points, and Respectively represent the coordinates of 3D feature points and 2D feature points in the camera coordinate system, Represents the inverse matrix of the camera intrinsic parameter matrix;

[0141] Step S254: Establish a linear equation system, construct a camera information matrix and a camera transformation matrix, and establish a linear equation system. The camera information matrix contains the information of the camera parameters and feature points, and the camera transformation matrix contains the camera rotation matrix and the camera translation vector. The formula used is as follows:

[0142] ;

[0143] ;

[0144] ;

[0145] In the formula, represents the camera information matrix, represents the camera transformation matrix, and Respectively represent The coordinates of the matched 3D feature points and 2D feature points;

[0146] Step S255: Singular value decomposition, decomposing the camera information matrix, and calculating the camera transformation matrix. The formula used is as follows:

[0147] ;

[0148] ;

[0149] In the formula, is an orthogonal matrix containing singular vectors, is a diagonal matrix containing singular values, is the camera rotation matrix, is the camera translation vector;

[0150] Step S256: Denormalize the camera rotation matrix and the camera translation vector to obtain the camera pose. The formula used is as follows:

[0151] ;

[0152] In the formula, represents the rotation vector of the camera, Represents the translation vector of the camera in the x-axis, y-axis, and z-axis directions;

[0153] Step S26: virtual-real fusion, matching the coordinate system of the 3D virtual model with the coordinate system of the camera, adjusting the position and direction of the 3D virtual model according to the real-time camera posture, and ensuring that the 3D virtual model is consistent with the actual scene.

[0154] By executing the operations, in view of the problem that general cold model experiment teaching faces various types of experiments, a large amount of materials and expensive equipment are needed, the experimental process is complicated, the operation flexibility is poor, and students need to repeat many times to master the experimental skills and adapt to various different experimental environments, this solution uses augmented reality tracking and registration technology to match the three-dimensional virtual model and the actual scene, uses the FAST edge detection algorithm and the BRIEF algorithm to extract and describe the feature points of the actual scene image, and uses the EPnP algorithm to solve the camera pose, which effectively improves the accuracy of the matching between the actual scene and the virtual scene, enhances the adaptability to various cold model experiment needs, and realizes the accurate perception of the actual scene.

[0155] Example 3, see Figure 1 , Figure 7 , Figure 8 and Fig. 9 This embodiment is based on the above embodiment. In step S3, gesture recognition specifically includes the following steps:

[0156] Step S31: data collection, collecting the EgoGesture gesture image database as a data set;

[0157] Step S32: Data preprocessing: preprocessing the data set, including denoising, cropping, and normalization. Randomly select 70% of the gesture images as a training set and 30% of the gesture images as a test set.

[0158] Step S33: Extracting spatiotemporal features, constructing an LSTM model to extract the spatiotemporal features of the gesture image. The LSTM model consists of an input gate, a forget gate, a memory cell, and an output gate. The steps are as follows:

[0159] Step S331: Input gate, the formula used is as follows:

[0160] ;

[0161] In the formula, is the input gate, is the activation function, is the input at the current moment, is the hidden state at the previous moment, is the weight of the input gate, is the weight from the previous hidden state to the input gate, is the bias of the input gate;

[0162] Step S332: Forget gate, the formula used is as follows:

[0163] ;

[0164] In the formula, It's the Gate of Forgetfulness. is the activation function, is the input at the current moment, is the hidden state at the previous moment, is the weight of the forget gate, is the weight from the previous hidden state to the forget gate, is the bias of the forget gate;

[0165] Step S333: Output gate, the formula used is as follows:

[0166] ;

[0167] In the formula, is the output gate, is the activation function, is the input at the current moment, is the hidden state at the previous moment, is the weight of the output gate, is the weight from the previous hidden state to the output gate, is the bias of the output gate;

[0168] Step S334: Cell renewal, the formula used is as follows:

[0169] ;

[0170] In the formula, is the state of memory cells, is the activation function, represents element-wise multiplication, is the weight of the memory cell, is the weight of the hidden state to the memory cell at the previous moment, It is the bias of memory cells;

[0171] Step S335: Hide state, the formula used is as follows:

[0172] ;

[0173] In the formula, Indicates hidden state;

[0174] Step S34: Gesture recognition. Use the OpenPose algorithm to build a gesture recognition network for gesture recognition. The gesture recognition network consists of a VGG-19 model, a PCM model, and a PAFs model. The steps are as follows:

[0175] Step S341: Detect gesture key points and construct a VGG-19 model to extract gesture features. The VGG-19 model consists of an input layer, a convolutional layer, and a fully connected layer. The input layer inputs gesture images, the convolutional layer extracts gesture features, and the fully connected layer outputs gesture feature vectors. The formula used is as follows:

[0176] ;

[0177] In the formula, The gesture image representing the input, Represent the weight matrix and bias of the first convolution operation, respectively. Represent the weight matrix and bias of the second convolution operation respectively, Respectively represent the weight matrix and bias of the third convolution operation, is a nonlinear activation function;

[0178] Step S342: Generate a gesture heat map, build a PCM model to generate a gesture heat map, each heat map corresponds to a key point, the key points include finger joints and wrists, the value of the heat map represents the confidence of the corresponding key point, the formula used is as follows:

[0179] ;

[0180] In the formula, Indicated in The losses during the phase, represents the total number of key points, represents the loss weight, Indicates Key points in pixels The confidence level at Indicates The actual value of the key point is in pixels Confidence level at

[0181] Step S343: Generate a gesture structure diagram, construct a PAFs model to generate a vector to represent the connection information between two key points, including the connection relationship between fingers and the connection relationship between fingers and wrists, and reconstruct the overall structure of the gesture. The formula used is as follows:

[0182] ;

[0183] In the formula, Indicated in The losses during the phase, represents the total number of vectors, represents the loss weight, Indicates Prediction values, Indicates Actual value;

[0184] Step S344: Model evaluation, using the test set to evaluate the overall error of the gesture recognition network, the formula used is as follows:

[0185] ;

[0186] In the formula, Represents the overall error of the gesture recognition network.

[0187] By performing the operations, traditional cold model experiment teaching requires frequent adjustments and precise operations when using experimental equipment. Accidents are likely to occur if the operation is improper, and there are great safety risks when contacting hazardous substances when one is not familiar with the experimental reaction mechanism. This solution extracts the spatiotemporal features of gesture images through the LSTM model, realizes real-time feedback and interaction of cold model experiment operations, and combines the OpenPose algorithm to build a gesture recognition network to accurately capture student gestures, realize real-time operation control of experimental equipment, reduce potential safety risks of cold model experiments, and reduce the cost of laboratory construction and maintenance.

[0188] Example 4, see Figure 2 , this embodiment is based on the above embodiment, and the present invention provides an augmented reality teaching improvement system for chemical engineering education and training, including an experiment design module, a tracking registration module, a gesture detection module and an interaction design module;

[0189] The experimental design module creates a three-dimensional virtual model of the cold model experiment, including the experimental scene, experimental equipment, and experimental materials, designs the cold model experiment program, including the cold model experiment process, equipment operation method, and reaction mechanism program, sends the three-dimensional virtual model to the tracking registration module and the interactive design module, and sends the cold model experiment program to the interactive design module;

[0190] The tracking and registration module receives the three-dimensional virtual model from the experiment design module, obtains real-time data of the actual scene through cameras and sensors, including the user's position, head angle, and movement, matches the three-dimensional virtual model with the actual scene according to the user's field of view to obtain a matching result, and sends the matching result to the gesture detection module and the interaction design module;

[0191] The gesture detection module receives the matching results from the tracking and registration module, constructs an LSTM model to extract the spatial features of the gesture image, establishes a gesture recognition network to extract the features of the gesture image and recognize the gesture, and sends the gesture recognition network to the interaction design module;

[0192] The interaction design module receives the three-dimensional virtual model and cold model experiment program from the experiment design module, the matching results from the tracking and registration module, and the gesture recognition network from the gesture detection module, creates a cold model experiment environment, defines the interaction scene between the user and the cold model experiment environment, designs interaction actions related to gestures according to the requirements of the cold model experiment interaction scene, determines the meaning of gestures and corresponding operations, evaluates the user's experimental behavior and provides personalized guidance.

[0193] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device.

[0194] Although embodiments of the present invention have been shown and described, it will be appreciated by those skilled in the art that various changes, modifications, substitutions and variations may be made to the embodiments without departing from the principles and spirit of the present invention, and that the scope of the present invention is defined by the appended claims and their equivalents.

[0195] The present invention and its embodiments are described above, and such description is not restrictive. The drawings show only one embodiment of the present invention, and the actual structure is not limited thereto. In short, if ordinary technicians in the field are inspired by it, without departing from the purpose of the invention, they can design a structure and embodiment similar to the technical solution without creativity, which should belong to the protection scope of the present invention.

Claims

1. An improved method of augmented reality teaching for chemical engineering education and training, characterized by: The method comprises the following steps: Step S1: Experimental design, creating a three-dimensional virtual model of the cold mold experiment, including the experimental scene, experimental equipment, and experimental materials, obtaining a three-dimensional virtual model image, and designing the cold mold experiment procedure, including the cold mold experiment process, equipment operation method, and reaction mechanism procedure; Step S2: Tracking registration, obtaining real-time data of the actual scene through cameras and sensors, including the user's position, head angle, and movement, and matching the 3D virtual model with the actual scene according to the user's field of view; Step S3: gesture detection, constructing an LSTM model to extract the spatial features of gesture images, and establishing a gesture recognition network to extract the features of gesture images and recognize gestures; Step S4: interaction design, creating a cold model experiment environment, defining the interaction scenario between the user and the cold model experiment environment, designing interactive actions related to gestures according to the requirements of the cold model experiment interaction scenario, determining the meaning of gestures and corresponding operations, evaluating the user's experimental behavior and providing personalized guidance; In step S2, the tracking registration includes the following steps: Step S21: image acquisition, using a camera to capture images of the actual scene at different viewing angles, obtaining an actual scene image, reading a three-dimensional virtual model image, and the actual scene image and the three-dimensional virtual model image constitute an experimental image; Step S22: feature extraction, using the FAST edge detection algorithm to detect corner points in the experimental image as feature points; Step S23: feature description, using the BRIEF algorithm to generate feature point descriptors for feature points; Step S24: feature matching, defining the feature points in the actual scene image as 2D feature points, and the feature points in the three-dimensional virtual model image as 3D feature points, calculating the Hamming distance between the 2D feature point descriptor and the 3D feature point descriptor, setting the Hamming distance threshold, and defining the 2D feature points and 3D feature points that are less than the Hamming distance threshold as 2D-3D feature point pairs. The formula used is as follows: ; In the formula, represents the Hamming distance, represents the feature point descriptor in the actual scene image, represents the feature point descriptor in the 3D virtual model image, It indicates the number of bits with value 1 in the calculation descriptor. represents the Hamming distance threshold; Step S25: Calculate the camera pose using the EPnP algorithm based on the result of feature matching; Step S26: virtual-real fusion, matching the 3D virtual model with the actual scene, adjusting the position and direction of the 3D virtual model according to the real-time camera posture, to ensure that the 3D virtual model is consistent with the actual scene; In step S3, the gesture detection includes the following steps: Step S31: data collection, collecting the EgoGesture gesture image database as a data set; Step S32: Data preprocessing: preprocessing the data set, including denoising, cropping, and normalization. Randomly select 70% of the gesture images as a training set and 30% of the gesture images as a test set. Step S33: extracting spatiotemporal features, constructing an LSTM model to extract the spatiotemporal features of the gesture image. The LSTM model consists of an input gate, a forget gate, a memory cell, and an output gate; Step S34: gesture recognition, using the OpenPose algorithm to build a gesture recognition network for gesture recognition. The gesture recognition network consists of a VGG-19 model, a PCM model, and a PAFs model. In step S34, the gesture recognition includes the following steps: Step S341: Detect gesture key points and construct a VGG-19 model to extract gesture features. The VGG-19 model consists of an input layer, a convolutional layer, and a fully connected layer. The input layer inputs gesture images, the convolutional layer extracts gesture features, and the fully connected layer outputs gesture feature vectors. The formula used is as follows: ; In the formula, The gesture image representing the input, Represent the weight matrix and bias of the first convolution operation, respectively. Represent the weight matrix and bias of the second convolution operation respectively, Respectively represent the weight matrix and bias of the third convolution operation, is a nonlinear activation function; Step S342: Generate a gesture heat map, build a PCM model to generate a gesture heat map, each heat map corresponds to a key point, the key points include finger joints and wrists, the value of the heat map represents the confidence of the corresponding key point, the formula used is as follows: ; In the formula, Indicated in The losses during the phase, represents the total number of key points, represents the loss weight, Indicates Key points in pixels The confidence level at Indicates The actual value of the key point is in pixels Confidence level at Step S343: Generate a gesture structure diagram, construct a PAFs model to generate a vector to represent the connection information between two key points, including the connection relationship between fingers and the connection relationship between fingers and wrists, and reconstruct the overall structure of the gesture. The formula used is as follows: ; In the formula, Indicated in The losses during the phase, represents the total number of vectors, represents the loss weight, Indicates Prediction values, Indicates Actual values; Step S344: Model evaluation, using the test set to evaluate the overall error of the gesture recognition network, the formula used is as follows: ; In the formula, Represents the overall error of the gesture recognition network.

2. The method for improving augmented reality teaching for chemical engineering education and training according to claim 1, characterized in that: In step S22, the feature extraction includes the following steps: Step S221: Select a central pixel point, and select a pixel point with a larger gray value in each experimental image as the central pixel point; Step S222: construct a circle, select 16 pixels evenly distributed on the circumference of the central pixel point, and the formula used is as follows: ; In the formula, and Indicates the horizontal and vertical coordinates of the center pixel. and Indicates the circumference The horizontal and vertical coordinates of the pixel points, Indicates the radius of a circle; Step S223: Threshold determination, setting a grayscale threshold to determine the grayscale difference between the central pixel and the surrounding pixels. If the grayscale value difference between 12 consecutive pixels and the central pixel exceeds the grayscale threshold, the central pixel is a feature point. The formula used is as follows: ; In the formula, Represents pixel The gray value of Indicates the center pixel The gray value of is the grayscale threshold; Step S224: non-maximum suppression, performing non-maximum suppression on the detected feature points, eliminating redundant feature points, and retaining the feature points with the largest grayscale value.

3. The method for improving augmented reality teaching for chemical engineering education and training according to claim 2, characterized in that: In step S23, the feature description includes the following steps: Step S231: selecting a test point pair, randomly selecting a test point around the feature point, the feature point and the test point constitute a set of test point pairs, and selecting multiple sets of test point pairs for generating feature point descriptors; Step S232: Calculate pixel differences. Calculate the pixel differences of each set of test point pairs. The formula used is as follows: ; In the formula, represents the pixel difference, is the feature point, For the test point; Step S233: Generate a descriptor, concatenate the binary bits generated by all the test point pairs of the feature point together to generate a feature point descriptor, and the formula used is as follows: ; In the formula, is the feature point descriptor.

4. The method for improving augmented reality teaching for chemical engineering education and training according to claim 3 is characterized by: In step S25, the camera posture solution includes the following steps: Step S251: Select matching feature point pairs, select a set of 2D-3D feature point pairs; Step S252: Define the camera intrinsic parameter matrix. The formula used is as follows: ; In the formula, represents the camera intrinsic parameter matrix, and Respectively represent the focal lengths of the experimental image in the horizontal and vertical directions, and The horizontal and vertical coordinates represent the optical center of the experimental image; Step S253: Normalize the coordinates. According to the camera intrinsic parameter matrix, the coordinates of the 2D-3D feature point pairs are converted into normalized coordinates in the camera coordinate system. The formula used is as follows: ; ; In the formula, and Respectively represent the initial coordinates of 3D feature points and 2D feature points, and Respectively represent the coordinates of 3D feature points and 2D feature points in the camera coordinate system, represents the inverse matrix of the camera intrinsic parameter matrix, Represents the three-dimensional coordinates of the 3D feature points, Represents the two-dimensional coordinates of 2D feature points; Step S254: Establish a linear equation system, construct a camera information matrix and a camera transformation matrix, and establish a linear equation system. The camera information matrix contains the information of the camera parameters and feature points, and the camera transformation matrix contains the camera rotation matrix and the camera translation vector. The formula used is as follows: ; ; ; In the formula, represents the camera information matrix, represents the camera transformation matrix, and Respectively represent For the coordinates of the matched 3D feature points and 2D feature points, represents the rotation vector of the camera, Represents the translation vector of the camera in the x-axis, y-axis, and z-axis directions; Step S255: Singular value decomposition, decomposing the camera information matrix, and calculating the camera transformation matrix. The formula used is as follows: ; ; In the formula, is an orthogonal matrix containing the singular vectors, is a diagonal matrix containing singular values, is the camera rotation matrix, is the camera translation vector; Step S256: Denormalize the camera rotation matrix and the camera translation vector to obtain the camera pose. The formula used is as follows: ; In the formula, represents the rotation vector of the camera, Represents the translation vector of the camera in the x-axis, y-axis, and z-axis directions.

5. The method for improving augmented reality teaching for chemical engineering education and training according to claim 1, characterized in that: In step S33, the spatiotemporal feature extraction includes the following steps: Step S331: Input gate, the formula used is as follows: ; In the formula, is the input gate, is the activation function, is the input at the current moment, is the hidden state at the previous moment, is the weight of the input gate, is the weight from the previous hidden state to the input gate, is the bias of the input gate; Step S332: Forget gate, the formula used is as follows: ; In the formula, It's the Gate of Forgetfulness. is the activation function, is the input at the current moment, is the hidden state at the previous moment, is the weight of the forget gate, is the weight from the previous hidden state to the forget gate, is the bias of the forget gate; Step S333: Output gate, the formula used is as follows: ; In the formula, is the output gate, is the activation function, is the input at the current moment, is the hidden state at the previous moment, is the weight of the output gate, is the weight from the previous hidden state to the output gate, is the bias of the output gate; Step S334: Cell renewal, the formula used is as follows: ; In the formula, is the state of memory cells, is the activation function, represents element-wise multiplication, is the weight of the memory cell, is the weight of the hidden state to the memory cell at the previous moment, It is the bias of memory cells; Step S335: Hide state, the formula used is as follows: ; In the formula, Indicates the hidden state.

6. An augmented reality teaching improvement system for chemical engineering teaching and training, used to implement an augmented reality teaching improvement method for chemical engineering teaching and training as described in any one of claims 1 to 5, characterized in that: It includes experimental design module, tracking and registration module, gesture detection module and interaction design module; The experimental design module creates a three-dimensional virtual model of the cold model experiment, including the experimental scene, experimental equipment, and experimental materials, designs the cold model experiment program, including the cold model experiment process, equipment operation method, and reaction mechanism program, sends the three-dimensional virtual model to the tracking registration module and the interactive design module, and sends the cold model experiment program to the interactive design module; The tracking and registration module receives the three-dimensional virtual model from the experiment design module, obtains real-time data of the actual scene through cameras and sensors, including the user's position, head angle, and movement, matches the three-dimensional virtual model with the actual scene according to the user's field of view to obtain a matching result, and sends the matching result to the gesture detection module and the interaction design module; The gesture detection module receives the matching results from the tracking and registration module, constructs an LSTM model to extract the spatial features of the gesture image, establishes a gesture recognition network to extract the features of the gesture image and recognize the gesture, and sends the gesture recognition network to the interaction design module; The interaction design module receives the three-dimensional virtual model and cold model experiment program from the experiment design module, the matching results from the tracking and registration module, and the gesture recognition network from the gesture detection module, creates a cold model experiment environment, defines the interaction scene between the user and the cold model experiment environment, designs interaction actions related to gestures according to the requirements of the cold model experiment interaction scene, determines the meaning of the gestures and the corresponding operations, evaluates the user's experimental behavior and provides personalized guidance.