Detection device, detection method, insole, training method and identification method
By introducing an insulating layer structure with two layers of protective layer and sensory layer into the piezoelectric film sensor, combined with the insole and classifier training method, the problem of insufficient external stimulation detection capability in the existing technology is solved, and accurate detection of the type of external stimulation is achieved. Recognition and gait analysis.
Patent Information
- Application Number
- CN202110935805.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-08-16
- Publication Date
- 2024-09-20
- Estimated Expiration
- 2041-08-16
AI Technical Summary
Existing piezoelectric film sensors can only detect the presence and magnitude of pressure stimulation, and cannot further analyze external stimulation. They have poor detection capabilities and single functions.
A piezoelectric signal detection device is designed, including two layers of protective layers and at least two layers of sensory layers. An insulation layer is set between the sensory layers. The sensing units are distributed in an array and connected in series. The series direction of the adjacent two layers of sensing units has a calibration clip. Angle, determines the type of external stimulus by the size and sign of the output electrical signal, and performs gait recognition combined with insole and classifier training methods.
It improves the ability to detect external stimuli, can effectively analyze the relationship between different actions and gait, enhances the judgment of the impact on gait, and achieves accurate identification of types of external stimuli.
Smart Images

Figure CN113647937B
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of data detection, and in particular to a detection device, a detection method, an insole, a training method and an identification method. Background Art
[0002] Piezoelectric film sensors are a type of dynamic strain sensor that converts pressure into electrical signals. Existing piezoelectric film sensors can only detect whether there is pressure stimulation and the magnitude of the pressure, but cannot further analyze the external stimulation. They have poor detection capabilities and relatively simple functions. Summary of the invention
[0003] The problem solved by the present invention is how to improve the detection capability of external stimuli.
[0004] In order to solve the above problems, the present invention provides a detection device, a detection method, an insole, a training method and an identification method.
[0005] In a first aspect, the present invention provides a piezoelectric signal detection device, comprising two protective layers, at least two sensing layers and an insulating layer arranged opposite to each other, each of the sensing layers being arranged between the two protective layers, and one insulating layer being arranged between each two adjacent sensing layers;
[0006] Each sensory layer includes a plurality of sensing units for converting external stimuli into electrical signals. The plurality of sensing units are distributed in an array, and the sensing units in each row or column are connected in series. One end of the sensing units in each row or column of the series connection is grounded, and the other end is used to output electrical signals. There is a calibrated angle between the series connection directions of the sensing units on two adjacent sensory layers.
[0007] Optionally, the protective layer and the insulating layer include polydimethylsiloxane, and the sensing unit includes polyvinylidene fluoride doped with hexafluoropropylene and graphene oxide.
[0008] In a second aspect, the present invention provides an external stimulus detection method, based on the piezoelectric signal detection device as described above, comprising:
[0009] Obtaining the output voltage of each sensory layer in the piezoelectric signal detection device under external stimulation;
[0010] comparing the output voltage of the upper sensory layer with a first preset threshold;
[0011] When the output voltage of the upper sensory layer is greater than or equal to the first preset threshold, if the output voltage of any lower sensory layer is less than the second preset threshold, it indicates that the type of the external stimulus is slight sliding, wherein the second preset threshold is less than the first preset threshold, the upper sensory layer is the sensory layer closest to the site of action of the external stimulus, and the lower sensory layer is the sensory layer other than the upper sensory layer;
[0012] If the output voltage of the upper sensory layer and the output voltage of any of the lower sensory layers have the same sign, then the type of the external stimulus is bending;
[0013] If the output voltage of the upper sensory layer and the output voltage of any of the lower sensory layers have opposite signs, it indicates that the type of the external stimulus is pressing.
[0014] In a third aspect, the present invention provides an insole on which a plurality of piezoelectric signal detection devices as described above are arranged.
[0015] In a fourth aspect, the present invention provides a classifier training method based on the insole as described above, comprising:
[0016] Acquire sensor data streams output by each piezoelectric signal detection device on the insole when performing different calibration actions based on the insole;
[0017] Performing data segmentation on each of the sensor data streams to obtain a plurality of sensor data segments;
[0018] Each of the sensor data segments is input into a classifier, and based on the external stimulus detection method as described above, features of the sensor data segments are extracted, and the classifier is trained using the extracted feature data to obtain a trained classifier.
[0019] Optionally, the extracting features from the sensor data segments and training a classifier using the extracted feature data includes:
[0020] A forward propagation step, extracting feature data corresponding to the external stimulus in each of the sensor data segments, determining the probability that the calibration action is each gait template according to the feature data, and determining the gait template with the greatest probability as the predicted gait;
[0021] A back propagation step, performing a cross entropy loss according to the calibration action and the predicted gait, and optimizing the classifier according to the cross entropy loss;
[0022] The forward propagation step and the back propagation step are repeated cyclically until the loss no longer decreases, thereby obtaining the trained classifier.
[0023] Optionally, the classifier includes two one-dimensional convolutional layers, a maximum pooling layer, a flattening layer, an LSTM layer, a squeeze-excitation calculation unit, a Softmax layer and an output layer connected in sequence, and the extracting feature data corresponding to the external stimulus in each of the sensor data segments, and determining the probability that the calibration action is each gait template according to the feature data includes:
[0024] Input the multi-channel sensor data fragments into the first one-dimensional convolution layer, perform feature extraction through two one-dimensional convolution layers, and form a feature map with all the extracted data;
[0025] Inputting the feature map into the maximum pooling layer, performing feature extraction on each sub-region of the feature map, and obtaining the feature data corresponding to the external stimulus;
[0026] Input the feature data into the flattening layer, shape the feature data into a one-dimensional vector through the flattening layer, input the one-dimensional vector into the LSTM layer for processing, and the LSTM layer includes a plurality of LSTM units;
[0027] Input the data output by each LSTM unit into the squeeze-excitation calculation unit for weighting, input the weighted data into the Softmax layer, and determine the probability that the calibration action is each gait template;
[0028] The output layer outputs the gait template with the highest probability, and the gait template with the highest probability is the predicted gait.
[0029] Optionally, the squeeze-excitation calculation unit includes a first fully connected layer, a ReLU layer, a second fully connected layer and a Sigmoid layer which are connected in sequence.
[0030] Optionally, the classifier further includes a plurality of dropout layers, wherein two of the dropout layers are arranged between the second one-dimensional convolutional layer and the maximum pooling layer, and two of the dropout layers are arranged between the LSTM layer and the first fully connected layer.
[0031] In a fifth aspect, the present invention provides a gait recognition method, comprising:
[0032] Acquire sensor data collected by each piezoelectric signal collection device on the insole when the user completes the current action;
[0033] All the sensor data are input into a trained classifier to determine the gait corresponding to the current action, wherein the trained classifier is trained using the classifier training method described above.
[0034] The detection device, detection method, insole, training method and identification method of the present invention have the following beneficial effects: the sensory layer is arranged between two protective layers, which can protect the sensory units on the sensory layer; an insulating layer is arranged between each two adjacent sensory layers, which can be used as a neutral layer and can avoid crosstalk between the sensory layers. Each row or column of sensory units in the sensory layer is connected in series, which can simplify the circuit connection structure; the series connection direction of the sensory units of two adjacent sensory layers has a calibrated angle, so that under the same external stimulus, different sensory layers output different electrical signals, and the type of external stimulus can be judged according to the size and sign of the electrical signals output by each sensory layer, which is conducive to further analysis of the external stimulus and improves the detection capability of the external stimulus. BRIEF DESCRIPTION OF THE DRAWINGS
[0035] Figure 1 It is a structural schematic diagram of a piezoelectric signal detection device according to an embodiment of the present invention;
[0036] Figure 2 This is a schematic diagram of the structure of the upper sensory layer and the lower sensory layer of an embodiment of the present invention;
[0037] Figure 3 A schematic flow chart of an external stimulus detection method according to another embodiment of the present invention;
[0038] Figure 4 It is a structural schematic diagram of the piezoelectric signal detection device under pressure according to an embodiment of the present invention;
[0039] Figure 5 It is a schematic diagram of the response curves of the two sensing layers under slight sliding stimulation according to an embodiment of the present invention;
[0040] Figure 6 Schematic diagram of response curves of two sensing layers under pressure stimulation according to an embodiment of the present invention;
[0041] Figure 7 It is a schematic structural diagram of the piezoelectric signal detection device under bending according to an embodiment of the present invention;
[0042] Figure 8 It is a schematic diagram of the response curves of the two sensing layers under bending stimulation according to an embodiment of the present invention;
[0043] Fig. 9 A schematic diagram of the relationship between the bending radius and the output voltage of the sensing layer according to an embodiment of the present invention;
[0044] Fig.10 This is a schematic structural diagram of an insole according to another embodiment of the present invention;
[0045] Fig.11 A schematic flow chart of a classifier training method according to another embodiment of the present invention;
[0046] Fig.12 FIG. 4 is a flow chart of a gait recognition method according to another embodiment of the present invention. DETAILED DESCRIPTION
[0047] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, specific embodiments of the present invention are described in detail below with reference to the accompanying drawings.
[0048] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the numbers used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein.
[0049] Orthopedic insoles change the ground to adapt to the wearer's individual foot shape, and are used to correct the user's gait, etc. In order to achieve a better correction effect, a piezoelectric film sensor can be set on the orthopedic insole to monitor the user's gait in real time, and push messages to the terminal when the gait is incorrect to remind the user to correct the gait. This method can be applied in a variety of fields, such as patient rehabilitation training, exercise process monitoring, and somatosensory games. Piezoelectric film sensors are a kind of dynamic strain sensors. Existing piezoelectric film sensors can only detect whether there is pressure stimulation, and the function is relatively simple, which is not conducive to further analysis of the external stimulation received, and thus is not conducive to analyzing the relationship between different actions and gaits, as well as the impact on gait.
[0050] like Figure 1 and Figure 2 As shown, a piezoelectric signal detection device provided by an embodiment of the present invention comprises two protective layers, at least two sensing layers and an insulating layer arranged opposite to each other, wherein the sensing layer is arranged between the two protective layers, and an insulating layer is arranged between each two adjacent sensing layers;
[0051] Each sensory layer includes a plurality of sensing units for converting external stimuli into electrical signals. The plurality of sensing units are distributed in an array, and the sensing units in each row or column are connected in series. One end of the sensing units in each row or column of the series connection is grounded, and the other end is used to output electrical signals. There is a calibrated angle between the series connection directions of the sensing units on two adjacent sensory layers.
[0052] In this embodiment, the sensory layer is arranged between two protective layers, which can protect the sensory units on the sensory layer. An insulating layer is arranged between each two adjacent sensory layers, which can be used as a neutral layer and can avoid crosstalk between the sensory layers. Each row or column of sensory units in the sensory layer is connected in series, which can simplify the circuit connection structure. The series connection direction of the sensory units of two adjacent sensory layers has a calibrated angle, so that under the same external stimulus, different sensory layers output different electrical signals. The type of external stimulus can be judged according to the size and sign of the electrical signals output by each sensory layer, which is conducive to further analysis of the external stimulus and improves the detection capability of the external stimulus.
[0053] Specifically, the protective layer is used to protect the internal sensory layer and transmit external stimuli. The thickness may preferably be 100 μm and the elastic modulus may preferably be 2.6 MPa. The thickness of the sensory layer may preferably be 30 μm and the elastic modulus may preferably be 26-33 MPa. The thickness of the insulating layer may preferably be 100 to 300 μm. On the one hand, the insulating layer is used to avoid crosstalk between the two sensory layers. On the other hand, the relatively thicker insulating layer ensures that the stress-neutral layer is away from the two sensory layers, so that each sensory layer can only be stretched or compressed under bending stimulation, thereby increasing the output voltage.
[0054] like Figure 2 As shown, taking two sensory layers as an example, in each sensory layer, each row or column of sensory units are connected in series to form a channel, and the series connection directions of the sensory units on the two sensory layers have a certain angle, which can be preferably 90 degrees, that is, the series connection directions of the sensory units on the two sensory layers are orthogonal.
[0055] The sensing units at one end of each channel can be connected in series and then grounded. The other end of each channel serves as the output of the sensing unit of the channel. The outputs of each channel are not connected to avoid crosstalk. On the one hand, this connection method avoids local deformation inside multiple channels when subjected to external stimuli, making stress transmission more uniform. On the other hand, compared with using each sensing unit as an output channel, it can reduce the number of wires, simplify the circuit structure, and save costs.
[0056] Optionally, the protective layer and the insulating layer include polydimethylsiloxane (PDMS), and the sensing unit includes polyvinylidene fluoride doped with hexafluoropropylene and graphene oxide (PVDF-HFP / GO).
[0057] Specifically, polydimethylsiloxane is non-toxic, has good biocompatibility, is low-cost, and can simulate skin tissue and dermis. Polyvinylidene fluoride has the advantages of ultra-transparency, high flexibility, and lead-free biocompatibility.
[0058] This piezoelectric signal detection device can not only identify stimulation for a single sensory unit, but also for multiple sensory units. First, scan each channel and determine whether the channels of the upper sensory layer and the lower sensory layer are activated at the same time. According to experience, the threshold can be set to 0.4V, and the signal with an output voltage higher than the threshold is considered to be activated. If the upper and lower sensory layers are activated at the same time, the output voltage calculation formula between multiple sensory units is V = (Vt + Vb) / 2, otherwise it is V = min (Vt, Vb), where V is the voltage output of the piezoelectric signal detection device caused by external stimulation, Vt is the output voltage of the upper sensory layer, and Vb is the output voltage of the lower sensory layer. The elastic modulus of the sensory layer used here is 600-700MPa, which has better dynamic tensile ability than the common PVDF original film (generally with an elastic modulus of about 3GPa), and can be formed into a film through a composite material of hexafluoropropylene and graphene oxide.
[0059] like Figure 3 As shown, another embodiment of the present invention provides an external stimulus detection method, based on the piezoelectric signal detection device as described above, comprising:
[0060] Step S110, obtaining the output voltage of each sensory layer in the piezoelectric signal detection device under external stimulation;
[0061] Step S120, comparing the output voltage of the upper sensory layer with a first preset threshold;
[0062] Step S130, when the output voltage of the upper sensory layer is greater than or equal to the first preset threshold, if the output voltage of any of the lower sensory layers is less than the second preset threshold, it indicates that the type of the external stimulus is slight sliding, wherein the second preset threshold is less than the first preset threshold, the upper sensory layer is the sensory layer closest to the site of action of the external stimulus, and the lower sensory layer is the sensory layer other than the upper sensory layer;
[0063] If the output voltage of the upper sensory layer and the output voltage of the lower sensory layer have the same sign, then the type of the external stimulus is bending;
[0064] If the output voltage of the upper sensory layer and the output voltage of the lower sensory layer have opposite signs, it indicates that the type of the external stimulation is pressing.
[0065] Specifically, taking two sensory layers as an example, the external stimuli detected by the piezoelectric signal detection device include slight sliding, pressing and bending. Figure 4 and Figure 5 As shown, when the piezoelectric signal detection device is stimulated by a slight sliding, the pressure acting on the piezoelectric signal detection device is very small, the upper sensory layer has a small voltage output, and the lower sensory layer has almost no voltage output. Figure 4 and Figure 6 As shown in the figure, when the piezoelectric signal detection device is stimulated by pressure, both sensory layers are in a compressive stress state, and the maximum stress is located in the sensory unit at the pressure stimulation area. At the same time, due to the buffering effect of the insulating layer, the stress of the sensory unit in the upper sensory layer will be greater than the stress of the sensory unit in the lower sensory layer, that is, the output voltage of the upper sensory layer will be greater. At the same time, it can be seen from the stress state, piezoelectric constitutive relationship, polarization direction and circuit connection that the output voltage signs of the two sensory layers are opposite (the phase difference is 180°). Figure 7 and Figure 8 As shown, when the piezoelectric signal detection device is stimulated by bending, the neutral layer is located in the insulating layer between the two sensory layers, resulting in opposite stress states of the two sensory layers, one is tension and the other is compression. At the same time, the output voltage generated by the sensory layer can reflect the bending direction and bending radius. As shown in the figure, the bending direction angle and bending radius can be determined by the maximum value of the sensory layer output voltage. When the output voltage of the upper sensory layer is consistent with that of the lower sensory layer, the bending direction angle and bending radius can be inferred. Fig. 9 The figure shows the output voltage curves of the two sensing layers at different bending radii when the bending angle is 10°. As the bending radius increases, the pressure of the upper sensing layer decreases and the tension increases, while the pressure of the lower sensing layer increases and the output voltage increases. When the bending angle is 45°, the stresses of the upper and lower sensing layers are close, and the amplitudes of the output voltages of the two output layers are also close. This is for multiple sensing layers. Since the uppermost sensing layer is effectively bent at 0°, and the most effective bending direction is when the lowermost sensing layer is bent at 90°, at 45°, the sensing layer structure and the applied load are approximately symmetrical, so the stress distribution of the two layers is relatively close at this time. Considering the stress state, piezoelectric constitutive relationship, polarization direction and circuit connection, under bending stimulation, the output voltages of the two sensing layers are in phase and synchronized, and the output voltage depends on both the bending angle and the bending radius.
[0066] The thickness and Young's modulus of the protective layer and the insulating layer can be designed according to actual application requirements. Under the same bending direction and bending radius, the stress of the thicker protective layer is slightly higher because the thicker insulating layer increases the stiffness of the sensing unit.
[0067] In summary, under slight sliding stimulation, the upper sensory layer has a voltage output with a smaller amplitude, while the output voltage of the lower sensory layer is close to zero; under pressing stimulation, the output voltage waveforms of the upper and lower sensory layers are 180° phase-shifted; under bending stimulation, the output voltages of the upper and lower sensory layers have the same phase shift, and when the bending angle reaches 45°, the output voltages of the upper and lower sensory layers are of the same phase and magnitude; other angles are in phase but different in magnitude.
[0068] First, the output voltage of the upper sensory layer is compared with the first preset threshold value, which may preferably be 0.25V. When the output voltage of the upper sensory layer is less than the first preset threshold value, it indicates that the external stimulation is too small. When the output voltage of the upper sensory layer is greater than or equal to the first preset threshold value, it indicates that a channel in the upper sensory layer is activated. At this time, the output voltage of the lower sensory layer is compared with the second preset threshold value, which may preferably be 0.2V. If the output voltage of the lower sensory layer is less than the second preset threshold value, it indicates that the external stimulation is a slight sliding. If the output voltage of the lower sensory layer is greater than or equal to the second preset threshold value, it is determined whether the signs of the output voltages of the upper sensory layer and the lower sensory layer are the same. If so, the external stimulation is bending. If not, the external stimulation is pressing.
[0069] In this embodiment, the type of external stimulus can be quickly determined by analyzing the output voltages of each sensing layer, thereby achieving further analysis of the external stimulus and improving the ability to detect the external stimulus.
[0070] like Fig.10 As shown, another embodiment of the present invention provides an insole on which a plurality of piezoelectric signal detection devices as described above are arranged.
[0071] Specifically, according to actual application requirements, a piezoelectric signal detection device can be arranged on the insole. In order to ensure the accuracy and quantity of data collection, the number of piezoelectric signal collection devices is recommended to be no less than 8. Taking into account the cost and wiring complexity, the number is recommended not to exceed 20.
[0072] In this embodiment, multiple piezoelectric signal detection devices are arranged on the insole, and the piezoelectric signal detection devices are used to detect the force data of various positions on the sole of the tester's foot. Through further analysis of these force data, the tester's foot movement, such as gait, etc., can be determined, thereby expanding the application scope of the piezoelectric signal detection device.
[0073] like Fig.11 As shown, another embodiment of the present invention provides a classifier training method based on the insole as described above, comprising:
[0074] Step S210, obtaining the sensor data stream output by each piezoelectric signal detection device on the insole when the tester performs different calibration actions.
[0075] Specifically, the tester wears shoes with the above-mentioned insoles, and the feet perform corresponding calibration actions.
[0076] Step S220: performing data segmentation on each of the sensor data streams to obtain a plurality of sensor data segments.
[0077] Specifically, before data segmentation, the sensor data streams output by each piezoelectric signal detection device can be synchronized and filtered in advance. Data segmentation is used to identify data segments containing activity information in the sensor data stream. A sliding window can be used to move on the sensor data stream to intercept multiple sensor data segments. The breakpoints corresponding to the activity information can be found by comparing the differences between two adjacent sensor data segments. Alternatively, the sensor data stream can be segmented according to the activity transition point or activity boundary by detecting activity transitions or activity boundaries. For example, the relationship between pressure stimulation and the output voltage of the piezoelectric signal detection device is linear, while the relationship curve between bending stimulation and the output voltage is a polynomial curve. This can determine the state transition point during the user's movement and perform data segmentation.
[0078] Step S230, inputting each of the sensor data segments into a classifier, performing feature extraction on the sensor data segments based on the external stimulus detection method as described above, and using the extracted feature data to train the classifier to obtain a trained classifier.
[0079] In this embodiment, the sensor data stream output when the tester completes the calibration actions corresponding to different gait templates is obtained, and the sensor data stream is segmented and processed before being used to train a classifier. The classifier can be established based on a machine learning model, and the training requires less data and has higher accuracy.
[0080] Optionally, the extracting features from the sensor data segments and training a classifier using the extracted feature data includes:
[0081] The forward propagation step extracts the feature data corresponding to the external stimulus in each of the sensor data segments, determines the probability that the calibration action is each gait template based on the feature data, and determines the gait template with the highest probability as the predicted gait.
[0082] Specifically, based on the above external stimulus detection method, slight sliding stimulus, pressing stimulus and bending stimulus are identified, and feature data corresponding to the external stimulus are extracted from the sensor data segment.
[0083] A back propagation step, performing a cross entropy loss according to the calibration action and the predicted gait, and optimizing the classifier according to the cross entropy loss;
[0084] The forward propagation step and the back propagation step are repeated cyclically until the loss no longer decreases, thereby obtaining the trained classifier.
[0085] Optionally, the classifier includes two one-dimensional convolutional layers, a maximum pooling layer, a flattening layer, an LSTM layer, a squeeze-excitation calculation unit, a Softmax layer and an output layer connected in sequence, and the extracting feature data corresponding to the external stimulus in each of the sensor data segments, and determining the probability that the calibration action is each gait template according to the feature data includes:
[0086] The multi-channel sensor data segments are input into the first one-dimensional convolutional layer, feature extraction is performed through two one-dimensional convolutional layers, and all the extracted data are combined into a feature map.
[0087] Specifically, the sensor data segments are reshaped from one-dimensional time series data into two-dimensional matrices to meet the input size requirements of the next dimensional convolutional layer in the Tensorflow or Keras (machine learning framework) computing framework, where one dimension is the time step and the other dimension is the feature at each time step. Using two one-dimensional convolutional layers can improve the robustness of the extracted features. The one-dimensional convolutional layer is a variant of CNN (Convolutional Neural Networks) that is specifically designed to process sequence and time series data. In a one-dimensional convolutional layer, the convolution filter only moves along the time direction of the data, so the one-dimensional convolutional layer can derive features from fixed-length segments of data. When applied to gait recognition, CNN has two advantages over other models, local dependence and scale invariance. Local dependence means that nearby signals may be related, while scale invariance means that the scale of different step lengths or frequencies is invariant.
[0088] The feature map is input into the maximum pooling layer, and features are extracted from each sub-region of the feature map to obtain the feature data corresponding to the external stimulus.
[0089] Specifically, after completing the convolution, a maximum pooling layer is applied to extract the most important features from each region in the feature map output by the one-dimensional convolutional layer, which can reduce the number of features and speed up the training process.
[0090] The feature data is input into the flattening layer, the feature data is shaped into a one-dimensional vector through the flattening layer, and the one-dimensional vector is input into the LSTM layer for processing, wherein the LSTM layer includes a plurality of LSTM units.
[0091] Specifically, since the output after processing by the one-dimensional convolution layer and the maximum pooling layer is a two-dimensional matrix, and the input size of the LSTM layer is required to be a one-dimensional vector, the flattening layer is used to flatten the second feature data output by the maximum pooling layer into a one-dimensional vector and input it into the LSTM layer as one-dimensional time series data. The flattening layer can be regarded as a bridge layer between the CNN and LSTM layers, which is used to convert two-dimensional data into one-dimensional data and unify the LSTM layer without losing information.
[0092] The data output by each LSTM unit is input into the squeeze-excitation calculation unit for weighting, and the weighted data is input into the Softmax layer to determine the probability that the calibration action is each gait template.
[0093] Optionally, the squeeze-excitation calculation unit includes a first fully connected layer, a ReLU layer, a second fully connected layer and a Sigmoid layer which are connected in sequence.
[0094] Specifically, each LSTM unit corresponds to the input of a channel, and two fully connected layers of different sizes are used to assign different weights to different channels by scaling the input of multiple signals. After the first fully connected layer, the rectified linear unit ReLu layer is used for activation. On the one hand, since its gradient is non-saturated, it can effectively speed up the convergence speed of gradient descent and meet the requirements of fast convergence; on the other hand, the ReLU function solves the problem of gradient disappearance by using a gradient of 0 or 1. After weighting different channels separately, the output of the ReLU layer is used as the input of the second fully connected layer, and then activated by the second fully connected layer and the Sigmoid layer, and the dimension is restored through the SoftMax layer and the classification label is output. The sum of the probabilities of all category labels is 1, and the category label with the highest probability will be the final predicted category label of the model.
[0095] The output layer outputs the gait template with the highest probability, and the gait template with the highest probability is the predicted gait.
[0096] Specifically, the Softmax layer is often used as the last layer of the model. It is an activation function commonly used in classification problems. It outputs the probability that the action corresponding to the gait template is each category label, and the sum of the probabilities of all category labels is 1. The category label with the highest probability is the predicted category label of the model, that is, the predicted gait of the model.
[0097] Optionally, the classifier further includes a plurality of dropout layers, wherein two of the dropout layers are arranged between the second one-dimensional convolutional layer and the maximum pooling layer, and two of the dropout layers are arranged between the LSTM layer and the first fully connected layer.
[0098] Specifically, training a neural network with a relatively small dataset will lead to overfitting of the training data, because the model will learn the statistical noise in the training data, and will show poor performance when the trained model is tested or evaluated on new data. Therefore, in order to prevent overfitting and reduce generalization error, a dropout layer is introduced in the deep learning framework, and the model learns robust features. The dropout rate of the dropout layer can be set to 0.5, which means that the dropout layer randomly selects 50% of the input units to be set to zero.
[0099] The number and spatial layout of piezoelectric signal detection devices can be optimized according to the weights of each channel through the attention mechanism to reduce the number and wiring complexity of piezoelectric signal detection devices. The sampling rate of the piezoelectric signal detection device can also be adjusted according to actual application requirements. For example, since the walking frequency of elderly people with limited mobility is low, the sampling rate can be appropriately reduced to reduce energy consumption.
[0100] A general subject population dataset and a cross-subject population dataset can be established in advance according to different application scenarios, such as gait monitoring of the elderly or athletes. The dataset includes the sensor data stream output by the piezoelectric signal detection device when the tester performs the calibration action. The data in the dataset is classified according to factors such as age, gender, amateur / professional, etc. of different user groups. This method includes the user's own data and has weaker robustness, but the model training effect is better. The general subject population dataset is used to train a general gait classifier, which can be used to complete classification tasks for different individuals. The cross-subject population dataset excludes the dataset outside the subject and can be used to train the group posture classifier, which can save the calibration process, build a model for the cross-subject population dataset other than its own dataset, and test the model architecture more strictly.
[0101] like Fig.12 As shown, another embodiment of the present invention provides a gait recognition method, comprising:
[0102] Step S310, obtaining sensor data collected by each piezoelectric signal collection device on the insole when the user completes the current action;
[0103] Step S320, inputting all the sensor data into a trained classifier to determine the gait corresponding to the current action, wherein the trained classifier is trained using the classifier training method described above.
[0104] In this embodiment, the sensor data collected by each piezoelectric signal acquisition device on the insole is input into the trained classifier to determine the predicted gait with the highest probability as the gait corresponding to the current action. The current action of the tester can be quickly identified. When the gait corresponding to the current action is incorrect, it can be quickly fed back to the user to remind the user to adjust the gait in time.
[0105] Another embodiment of the present invention provides an external stimulus detection device, comprising:
[0106] A first acquisition module, used to acquire the output voltage of each sensory layer in the piezoelectric signal detection device under external stimulation;
[0107] A processing module is used to compare the output voltage of the upper sensory layer with a first preset threshold value; when the output voltage of the upper sensory layer is greater than or equal to the first preset threshold value, if the output voltage of any of the lower sensory layers is less than the second preset threshold value, it indicates that the type of the external stimulation is slight sliding, wherein the second preset threshold value is less than the first preset threshold value, the upper sensory layer is the sensory layer closest to the site of action of the external stimulation, and the lower sensory layer is the sensory layer other than the upper sensory layer; if the output voltage of the upper sensory layer and the output voltage of the lower sensory layer have the same sign, the type of the external stimulation is bending; if the output voltage of the upper sensory layer and the output voltage of the lower sensory layer have opposite signs, it indicates that the type of the external stimulation is pressing.
[0108] A classifier training device provided by another embodiment of the present invention is based on the insole as described above, and includes:
[0109] A second acquisition module is used to acquire sensor data streams output by each piezoelectric signal detection device on the insole when the tester performs different calibration actions;
[0110] A segmentation module, used for performing data segmentation on the sensor data stream of each channel to obtain a plurality of sensor data segments;
[0111] The training module is used to input each of the sensor data segments into a classifier, extract features from the sensor data segments based on the external stimulus detection method as described above, and use the extracted feature data to train the classifier to obtain a trained classifier.
[0112] Another embodiment of the present invention provides a gait recognition method, comprising:
[0113] The third acquisition module is used to acquire sensor data collected by each piezoelectric signal acquisition device on the insole when the user completes the current action;
[0114] The recognition module is used to input all the sensor data into a trained classifier to determine the gait corresponding to the current action, wherein the trained classifier is trained using the classifier training method described above.
[0115] Another embodiment of the present invention provides an electronic device, including a memory and a processor; the memory is used to store a computer program; the processor is used to implement the external stimulus detection method, the classifier training method, or the gait recognition method as described above when executing the computer program.
[0116] Another embodiment of the present invention provides a computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, the external stimulus detection method, the classifier training method, or the gait recognition method as described above is implemented.
[0117] A person of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment method can be completed by instructing the relevant hardware through a computer program, and the program can be stored in a computer-readable storage medium. When the program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, the storage medium can be a disk, an optical disk, a read-only memory (ROM) or a random access memory (RAM), etc. In the present application, the unit described as a separate component may or may not be physically separated, and the component displayed as a unit may or may not be a physical unit, that is, it may be located in one place, or it may be distributed on multiple network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the embodiment of the present invention. In addition, each functional unit in each embodiment of the present invention can be integrated in a processing unit, or each unit can exist physically separately, or two or more units can be integrated in one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of a software functional unit.
[0118] Although the present invention is disclosed as above, the protection scope of the present invention is not limited thereto. Those skilled in the art may make various changes and modifications without departing from the spirit and scope of the present invention, and these changes and modifications will fall within the protection scope of the present invention.
Claims
1. A method for detecting external stimulation, characterized in that: Based on a piezoelectric signal detection device, the piezoelectric signal detection device comprises two protective layers, at least two sensing layers and an insulating layer arranged opposite to each other, the sensing layer is arranged between the two protective layers, and one insulating layer is arranged between each two adjacent sensing layers; Each of the sensory layers comprises a plurality of sensory units for converting external stimuli into electrical signals, the plurality of sensory units are distributed in an array, and the sensory units in each row or column are connected in series, one end of the sensory units in each row or column of the series connection is grounded, and the other end is used to output electrical signals, and there is a calibrated angle between the series connection directions of the sensory units on two adjacent sensory layers; The external stimulus detection method comprises: Obtaining the output voltage of each sensory layer in the piezoelectric signal detection device under external stimulation; comparing the output voltage of the upper sensory layer with a first preset threshold; When the output voltage of the upper sensory layer is greater than or equal to the first preset threshold, if the output voltage of any lower sensory layer is less than the second preset threshold, it indicates that the type of the external stimulus is slight sliding, wherein the second preset threshold is less than the first preset threshold, the upper sensory layer is the sensory layer closest to the site of action of the external stimulus, and the lower sensory layer is the sensory layer other than the upper sensory layer; If the output voltage of the upper sensory layer and the output voltage of any of the lower sensory layers have the same sign, it indicates that the type of the external stimulus is bending; If the output voltage of the upper sensory layer and the output voltage of any of the lower sensory layers have opposite signs, it indicates that the type of the external stimulus is pressing.
2. The external stimulus detection method according to claim 1, characterized in that: The protective layer and the insulating layer include polydimethylsiloxane, and the sensing unit includes polyvinylidene fluoride doped with hexafluoropropylene and graphene oxide.
3. A classifier training method, characterized in that: Based on the insole, a plurality of piezoelectric signal detection devices are arranged on the insole, and the piezoelectric signal detection devices include two relatively arranged protective layers, at least two sensory layers and an insulating layer, the sensory layer is arranged between the two protective layers, and one insulating layer is arranged between each two adjacent sensory layers; each sensory layer includes a plurality of sensing units for converting external stimuli into electrical signals, the plurality of sensing units are distributed in an array, and the sensing units in each row or column are connected in series, one end of the sensing units in each row or column of the series connection is grounded, and the other end is used to output electrical signals, and there is a calibrated angle between the series connection directions of the sensing units on the two adjacent sensory layers; The classifier training method comprises: Acquire sensor data streams output by each piezoelectric signal detection device on the insole when performing different calibration actions based on the insole; Performing data segmentation on each of the sensor data streams to obtain a plurality of sensor data segments; Input each of the sensor data segments into a classifier, perform feature extraction on the sensor data segments based on the external stimulus detection method as described in claim 1 or 2, and use the extracted feature data to train the classifier to obtain a trained classifier.
4. The classifier training method according to claim 3, characterized in that: The step of extracting features from the sensor data segments and using the extracted feature data to train a classifier includes: A forward propagation step, extracting feature data corresponding to the external stimulus in each of the sensor data segments, determining the probability that the calibration action is each gait template according to the feature data, and determining the gait template with the greatest probability as the predicted gait; A back propagation step, performing a cross entropy loss according to the calibration action and the predicted gait, and optimizing the classifier according to the cross entropy loss; The forward propagation step and the back propagation step are repeated cyclically until the loss no longer decreases, thereby obtaining the trained classifier.
5. The classifier training method according to claim 4, characterized in that: The classifier includes two one-dimensional convolutional layers, a maximum pooling layer, a flattening layer, an LSTM layer, a squeeze-excitation calculation unit, a Softmax layer and an output layer connected in sequence, and extracts feature data corresponding to the external stimulus in each of the sensor data segments; Determining the probability that the calibration action is each gait template according to the feature data includes: Input the multi-channel sensor data fragments into the first one-dimensional convolution layer, perform feature extraction through two one-dimensional convolution layers, and form a feature map with all the extracted data; Inputting the feature map into the maximum pooling layer, performing feature extraction on each sub-region of the feature map, and obtaining the feature data corresponding to the external stimulus; Input the feature data into the flattening layer, shape the feature data into a one-dimensional vector through the flattening layer, input the one-dimensional vector into the LSTM layer for processing, and the LSTM layer includes a plurality of LSTM units; Input the data output by each LSTM unit into the squeeze-excitation calculation unit for weighting, input the weighted data into the Softmax layer, and determine the probability that the calibration action is each gait template; The output layer outputs the gait template with the highest probability, and the gait template with the highest probability is the predicted gait.
6. The classifier training method according to claim 5, characterized in that: The squeeze-excitation calculation unit includes a first fully connected layer, a ReLU layer, a second fully connected layer and a Sigmoid layer which are connected in sequence.
7. The classifier training method according to claim 6, characterized in that: The classifier also includes multiple dropout layers, wherein two of the dropout layers are arranged between the second one-dimensional convolutional layer and the maximum pooling layer, and two of the dropout layers are arranged between the LSTM layer and the first fully connected layer.
8. A gait recognition method, characterized in that: include: Acquire sensor data collected by each piezoelectric signal collection device on the insole when the user completes the current action; All the sensor data are input into a trained classifier to determine the gait corresponding to the current action, wherein the trained classifier is trained using the classifier training method according to any one of claims 3 to 7.
