Abnormal gait behavior detection system, method, electronic device and readable storage medium
The sensor module collects plantar pressure signals and constructs gait characteristics. Combined with the detection model, it solves the problem of low accuracy of Parkinson's disease gait detection in the existing technology and achieves accurate identification and differentiation of Parkinson's disease gait abnormalities. .
Patent Information
- Application Number
- CN202211370089.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-11-03
- Publication Date
- 2024-09-24
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
In the existing technology, the detection accuracy of abnormal gait behavior caused by Parkinson's disease is low, and the image recognition method cannot effectively distinguish gait abnormalities caused by Parkinson's disease and other leg diseases.
The sensor module is used to collect plantar pressure signals, the gait characteristics are constructed through the feature building module, and the abnormal gait behavior detection module and detection model are used for detection to accurately identify gait abnormalities caused by Parkinson's disease.
It improves the accuracy of detecting abnormal gait behavior caused by Parkinson's disease, avoids misjudgments caused by other reasons, and enhances the accuracy of detection.
Smart Images

Figure CN115517666B
Abstract
Description
Technical Field
[0001] The present application relates to the field of big data technology, and in particular to an abnormal gait behavior detection system, method, electronic device and readable storage medium. Background Art
[0002] Parkinson's disease is a common neurodegenerative disease. Parkinson's disease often causes patients to have abnormal gait behavior. Therefore, it is necessary to detect the abnormal gait behavior caused by Parkinson's disease.
[0003] Currently, abnormal gait behavior of users is detected through image recognition, which only involves the detection of abnormal gait performance of users. Since abnormal gait behavior may be caused by other reasons besides Parkinson's disease, such as leg injury and flat feet, the detection accuracy of abnormal gait behavior caused by Parkinson's disease is low. Summary of the invention
[0004] The main purpose of the present application is to provide an abnormal gait behavior detection system, method, electronic device and readable storage medium, aiming to solve the technical problem of low detection accuracy of abnormal gait behavior caused by Parkinson's disease in the prior art.
[0005] To achieve the above objectives, the present application provides an abnormal gait behavior detection system, which includes a sensor module, a feature construction module and an abnormal gait behavior detection module.
[0006] The sensor module is used to collect a plantar pressure signal of a user to be detected, wherein the plantar pressure signal is used to represent the plantar pressure of the user to be detected that changes over time when the user is walking;
[0007] The feature construction module is used to construct a gait feature corresponding to the user to be detected according to the plantar pressure signal;
[0008] The abnormal gait behavior detection module is used to perform abnormal gait behavior detection on the user to be detected according to the gait characteristics and the abnormal gait behavior detection model to obtain a detection result.
[0009] The present application also provides a method for detecting abnormal gait behavior, the method comprising:
[0010] Collecting a plantar pressure signal of a user to be detected, wherein the plantar pressure signal is used to represent the plantar pressure of the user to be detected that changes over time when the user is walking;
[0011] constructing a gait feature corresponding to the user to be detected according to the plantar pressure signal;
[0012] According to the gait characteristics and the abnormal gait behavior detection model, abnormal gait behavior detection is performed on the user to be detected to obtain a detection result.
[0013] The present application also provides an electronic device, which includes: a memory, a processor, and a program of the abnormal gait behavior detection system stored in the memory and executable on the processor. When the program of the abnormal gait behavior detection system is executed by the processor, the steps of the abnormal gait behavior detection system as described above can be implemented.
[0014] The present application also provides a computer-readable storage medium, on which is stored a program for implementing an abnormal gait behavior detection system. When the program for the abnormal gait behavior detection system is executed by a processor, the steps of the abnormal gait behavior detection system as described above are implemented.
[0015] The present application also provides a computer program product, including a computer program, which implements the steps of the abnormal gait behavior detection system as described above when executed by a processor.
[0016] The present application provides an abnormal gait behavior detection system, method, electronic device and readable storage medium. Compared with the method of detecting abnormal gait behavior of a user by image recognition, the abnormal gait behavior detection system in the present application includes a sensor module, a feature construction module and an abnormal gait behavior detection module. The sensor module collects the plantar pressure signal of the user to be detected; the feature construction module constructs the gait feature corresponding to the user to be detected according to the plantar pressure signal; the abnormal gait behavior detection module performs abnormal gait behavior detection on the user to be detected according to the gait feature and the abnormal gait behavior detection model, and obtains the detection result. The symptoms of patients with Parkinson's disease are mostly static tremors, so there are great differences in gait between them and other people who do not suffer from Parkinson's disease and other patients with leg diseases. The gait information of the user to be detected is determined according to the plantar pressure signal of the user to be detected, so that the abnormal gait behavior of the user to be detected caused by Parkinson's disease can be detected according to the gait information, thereby realizing accurate detection of the inducement of the abnormal gait behavior of the user to be detected, avoiding the technical defect of low detection accuracy of abnormal gait behavior caused by Parkinson's disease due to other reasons such as leg injury and flat feet in addition to Parkinson's disease, thereby improving the detection accuracy of abnormal gait behavior caused by Parkinson's disease. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.
[0018] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.
[0019] Figure 1 This is a flow chart of the first embodiment of the abnormal gait behavior detection system of the present application;
[0020] Figure 2 This is a schematic diagram of the system structure of the abnormal gait behavior detection system of this application;
[0021] Figure 3 This is an example diagram of the placement of each pressure sensor in the sensor module corresponding to the left sole and the right sole in the abnormal gait behavior detection system of this application;
[0022] Figure 4 Schematic diagram of the device structure of the hardware operating environment involved in the abnormal gait behavior detection system in the embodiment of the present application.
[0023] The purpose, features and advantages of this application will be further described in conjunction with the embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION
[0024] In order to make the above-mentioned purposes, features and advantages of the present application more obvious and understandable, the technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work belong to the scope of protection of this application.
[0025] Embodiment 1
[0026] The present application embodiment provides an abnormal gait behavior detection system. In the first embodiment of the abnormal gait behavior detection system of the present application, referring to Figure 1 and Figure 2 The abnormal gait behavior detection system includes a sensor module, a feature construction module and an abnormal gait behavior detection module.
[0027] The sensor module is used to execute step S10, collecting a plantar pressure signal of the user to be detected, wherein the plantar pressure signal is used to represent the plantar pressure of the user to be detected that changes over time when the user is walking;
[0028] The feature construction module is used to execute step S20, constructing a gait feature corresponding to the user to be detected according to the plantar pressure signal;
[0029] The abnormal gait behavior detection module is used to execute step S30, and perform abnormal gait behavior detection on the user to be detected according to the gait characteristics and the abnormal gait behavior detection model to obtain a detection result.
[0030] It is understandable that in order to solve the above-mentioned technical defect of low accuracy in detecting abnormal gait behavior caused by Parkinson's disease, doctors can also observe the walking conditions of the user to be detected to detect abnormal gait behavior. However, the observation ability of the human eye is limited, and excessive reliance on the doctor's diagnostic experience may easily lead to the situation that the doctor cannot distinguish the abnormal gait behavior caused by other leg diseases, resulting in low accuracy in detecting abnormal gait behavior caused by Parkinson's disease.
[0031] In this embodiment, it should be noted that the user to be detected is a user waiting for abnormal gait behavior detection, and the user to be detected may be a potential Parkinson's disease patient, or a non-potential Parkinson's disease patient, or a patient who has suffered from and / or is cured and / or still suffering from Parkinson's disease. The abnormal gait behavior detection model is a trained model for detecting whether the user to be detected has abnormal gait behavior caused by Parkinson's disease.
[0032] To overcome the above-mentioned defects, exemplarily, steps S10 to S30 include: collecting the plantar pressure signal of the user to be detected at preset time intervals through the pressure sensor in the sensor module placed on the sole of the user to be detected, wherein the preset time interval is a preset time interval for collecting the plantar pressure signal of the user to be detected, and the preset time interval can be 1s, 2s, 3s or any other time interval; performing feature extraction on the plantar pressure signal through a preset feature extractor to obtain gait features corresponding to the user to be detected; performing abnormal gait behavior detection on the user to be detected according to the gait features and the abnormal gait behavior detection model to obtain a detection result.
[0033] As an example, step S30 includes: mapping the gait feature into the probability of the existence of abnormal gait behavior due to Parkinson's disease corresponding to the user to be detected through an abnormal gait behavior detection model; performing abnormal gait behavior detection on the user to be detected according to the probability to obtain a detection result, and further, the detection result includes abnormal gait behavior caused by Parkinson's disease and gait behavior not caused by Parkinson's disease, wherein the gait behavior not caused by Parkinson's disease includes abnormal gait behavior caused by non-Parkinson's disease and non-abnormal gait behavior, and when the probability is greater than a preset probability threshold, the abnormal gait behavior caused by Parkinson's disease is taken as the detection result, wherein the preset probability threshold is a preset critical value of the probability of the existence of abnormal gait behavior due to Parkinson's disease corresponding to the user to be detected when the detection result of the user to be detected is determined to be an abnormal gait behavior caused by Parkinson's disease, and when the probability is less than or equal to the preset probability threshold, the gait behavior not caused by Parkinson's disease is taken as the detection result.
[0034] As an example, step S30 includes: mapping the gait features into gait behavior labels corresponding to the user to be detected through an abnormal gait behavior detection model, wherein the gait behavior labels include abnormal gait behavior labels caused by Parkinson's disease, abnormal gait behavior labels caused by non-Parkinson's diseases, and non-abnormal gait behavior labels; and using the gait behavior labels as detection results.
[0035] It is understandable that when the signal collection positions and the number of signal collection positions of the plantar pressure signals of the left and right soles are inconsistent, it is easy for the extracted gait features to fail to accurately express the gait of the user to be detected, resulting in low detection accuracy of abnormal gait behavior caused by Parkinson's disease.
[0036] Optionally, to avoid the above defects, the sensor modules are respectively arranged on the left sole and the right sole of the user to be detected, and the sensor modules include at least one pressure sensor. The number of pressure sensors corresponding to the sensor modules placed on the left sole is consistent with the number of pressure sensors corresponding to the sensor modules placed on the right sole, and the relative position of the pressure sensors corresponding to the sensor modules placed on the left sole on the left sole is consistent with the relative position of the pressure sensors corresponding to the sensor modules placed on the right sole on the right sole, and the sensor modules can be foot pressure shoes. The signal collection positions and the number of signal collection positions of the sole pressure signals of the left and right soles are consistent, thereby improving the detection accuracy of abnormal gait behavior caused by Parkinson's disease.
[0037] As an example, see Figure 3 , Figure 3The following is an example diagram of the placement of each pressure sensor in the sensor module corresponding to the left and right soles of the feet. Figure 3 Including: pressure sensors L1, L2, L3...L8 on the left foot, and pressure sensors R1, R2, R3...R8 on the right foot, wherein the relative positions of pressure sensor L1 and pressure sensor R1 on the sole of the foot are consistent, and the relative positions of other pressure sensors are also consistent.
[0038] Wherein, in step S20, the step of constructing the plantar pressure feature corresponding to the user to be detected according to the plantar pressure signal includes:
[0039] Step S21, preprocessing the plantar pressure signal to obtain a processed plantar pressure signal;
[0040] Step S22, determining the plantar pressure center feature corresponding to the user to be detected according to the processed plantar pressure signal;
[0041] Step S23, determining the plantar pressure characteristics corresponding to the user to be detected according to the processed plantar pressure signal;
[0042] Step S24, constructing the gait feature according to the plantar pressure center signal and the plantar pressure signal.
[0043] Exemplarily, steps S21 to S24 include: preprocessing the plantar pressure signal to obtain a processed plantar pressure signal; the preset feature extractor includes a plantar pressure center feature extractor and a plantar pressure feature extractor, and the plantar pressure center feature extractor performs feature extraction on the processed plantar pressure signal to obtain the plantar pressure center feature corresponding to the user to be detected; the plantar pressure feature extractor performs feature extraction on the processed plantar pressure signal to obtain the plantar pressure feature corresponding to the user to be detected; and the plantar pressure center signal and the plantar pressure signal are spliced into the gait feature.
[0044] Wherein, in step S22, the step of determining the plantar pressure center feature corresponding to the user to be detected according to the processed plantar pressure signal includes:
[0045] Step A10, obtaining the relative positions of the soles of the feet corresponding to the sole pressure signals;
[0046] Step A20, locating the plantar pressure center corresponding to the user to be detected according to each plantar pressure signal and the corresponding relative position of the sole, and obtaining the plantar pressure center feature.
[0047] In this embodiment, it should be noted that the relative position of the sole is the relative position of the signal collection position corresponding to the sole pressure signal on the sole. The sole pressure center is the pressure contact center reflected by the vertical ground reaction force of the sole.
[0048] Exemplarily, steps A10 to A20 include: determining the center of each sole of the foot, and locating the relative position of the sole corresponding to each sole pressure signal according to each center of the foot; constructing a first coordinate axis with the center point between the left sole and the right sole as the origin, locating the corresponding plantar pressure center of each sole on the first coordinate axis according to each plantar pressure signal and the corresponding relative position of the sole, and obtaining the plantar pressure center feature.
[0049] As an example, step A10 includes: acquiring the position coordinates of the signal collection position corresponding to each of the plantar pressure signals on the first coordinate axis to obtain the relative position of the plantar.
[0050] As an example, step A10 includes: determining the center of the sole of the foot, constructing a second coordinate axis with the center of the foot as the origin, obtaining the position coordinates of the signal collection position corresponding to each sole pressure signal on the second coordinate axis, and obtaining the relative position of the sole of the foot.
[0051] As an example, step A10 includes: determining the center position of the sole of the foot, determining the relative distance and relative orientation between the signal collection position corresponding to each sole pressure signal and the center position, and using the relative distance and relative orientation as the relative position of the sole of the foot.
[0052] Optionally, the relative position of the sole includes the lateral relative position of the signal acquisition position corresponding to each of the sole pressure signals in the lateral direction on the first coordinate axis and the longitudinal relative position of the signal acquisition position corresponding to each of the sole pressure signals in the longitudinal direction on the first coordinate axis, and the plantar pressure center includes the central lateral relative position of each of the plantar pressure centers in the lateral direction on the first coordinate axis and the central longitudinal relative position of each of the soles in the longitudinal direction on the first coordinate axis. The step of locating the corresponding plantar pressure center of each of the soles on the first coordinate axis according to each of the plantar pressure signals and the corresponding relative position of the sole may specifically include:
[0053]
[0054] Among them, COP x is the horizontal relative position of the center, f i is the plantar pressure signal collected by the i-th pressure sensor, n is the number of pressure sensors, S ixis the collected lateral relative position of the ith pressure sensor on the first coordinate axis.
[0055]
[0056] Among them, COP y is the longitudinal relative position of the center, f i is the plantar pressure signal collected by the i-th pressure sensor, n is the number of pressure sensors, S iy is the collected longitudinal relative position of the ith pressure sensor on the first coordinate axis.
[0057] Wherein, in step S23, the step of determining the plantar pressure feature corresponding to the user to be detected according to the processed plantar pressure signal includes:
[0058] Step B10, obtaining a time plantar pressure signal by transposing the processed plantar pressure signal;
[0059] Step B20, converting the feature dimension corresponding to the temporal plantar pressure signal and the feature dimension corresponding to the processed plantar pressure signal into a preset feature dimension;
[0060] Step B30, performing multi-head self-attention processing on the temporal plantar pressure signal to obtain a temporal self-attention pressure signal, and performing masked multi-head self-attention processing on the processed plantar pressure signal to obtain a masked self-attention pressure signal;
[0061] Step B40: constructing a plantar pressure feature corresponding to the user to be detected according to the temporal self-attention pressure signal and the masked self-attention pressure signal.
[0062] Understandably, people with Parkinson's disease may experience gait disturbance and slowness of movement, so there will be large differences in cadence and gait position between people with Parkinson's disease, those without Parkinson's disease, and those with other leg disorders.
[0063] In this embodiment, it should be noted that the preset characteristic dimension is a unified characteristic dimension corresponding to the time plantar pressure signal and the processed plantar pressure signal set in advance. The preset characteristic dimension can be the characteristic dimension corresponding to the time plantar pressure signal, the characteristic dimension corresponding to the processed plantar pressure, or any other characteristic dimension.
[0064] Exemplarily, step B10 to step B40 include: obtaining a temporal plantar pressure signal by transposing the processed plantar pressure signal; obtaining a preset feature dimension, converting the feature dimension corresponding to the temporal plantar pressure signal into the preset feature dimension, and converting the feature position corresponding to the processed plantar pressure signal into the preset feature dimension; performing multi-head self-attention processing on the temporal plantar pressure signal to obtain a temporal self-attention pressure signal, and performing masked multi-head self-attention processing on the processed plantar pressure signal to obtain a masked self-attention pressure signal; splicing the temporal self-attention pressure signal and the masked self-attention pressure signal into a spliced plantar pressure feature corresponding to the user to be detected, performing feedforward control on the spliced plantar pressure feature to obtain a feedforward plantar pressure feature, performing residual processing on the feedforward plantar pressure feature to obtain the plantar pressure feature corresponding to the user to be detected, and performing temporal and spatial feature extraction on the processed plantar pressure signal, so that the extracted plantar pressure feature can characterize the step frequency and gait characteristics of the user to be detected, thereby improving the detection accuracy of abnormal gait behavior caused by Parkinson's disease.
[0065] Optionally, the step of splicing the self-attention pressure signal and the masked self-attention pressure signal into a spliced plantar pressure feature corresponding to the user to be detected may specifically be:
[0066] x'=(LN(MMSA(x))+x)+(LN(MSA(x) T ))+x T ) T
[0067] Wherein, x' is the spliced plantar pressure feature, x is the processed plantar pressure signal, and x T is the temporal plantar pressure signal, MMSA(x) is the masked self-attention pressure signal, MSA(x T ) is the temporal self-attention pressure signal.
[0068] Optionally, the step of performing feedforward control on the spliced plantar pressure feature to obtain a feedforward plantar pressure feature, and performing residual processing on the feedforward plantar pressure feature to obtain the plantar pressure feature corresponding to the user to be detected may specifically be:
[0069] output = tanh(LN(MLP(x'))+x')
[0070] Among them, output is the plantar pressure feature, and x' is the spliced plantar pressure feature.
[0071] Among them, in step B30, the steps of performing multi-head self-attention processing on the temporal plantar pressure signal to obtain a temporal self-attention pressure signal, and performing masked multi-head self-attention processing on the processed plantar pressure signal to obtain a masked self-attention pressure signal include:
[0072] Step B31, mapping the temporal plantar pressure signal into a temporal matching vector, a temporal matched vector and a temporal extracted information vector, and performing multi-head self-attention processing on the temporal plantar pressure signal according to the temporal matching vector, the temporal matched vector and the temporal extracted information vector to obtain the temporal self-attention pressure signal;
[0073] Step B32, mapping the processed plantar pressure information into a processed matching vector, a processed matched vector and a processed extracted information vector, and performing multi-head self-attention processing on the processed plantar pressure information according to the processed matching vector, the processed matched vector and the processed extracted information vector to obtain a processed self-attention pressure signal;
[0074] Step B33, obtaining a preset masking rule, and masking the processed self-attention pressure signal according to the preset masking rule to obtain the masked self-attention pressure signal.
[0075] It is understandable that when a person is walking, each step is usually made with a single foot, and the pressure sensor placed on the sole of the foot of the user to be tested collects pressure in real time. That is, the sole pressure signal collected for each step of the user to be tested includes pressure signals corresponding to the left sole and the right sole. When one of the soles of the foot is placed on the sole, the other sole is suspended. Therefore, the sole pressure signal collected from the other sole may interfere with the detection of the cause of abnormal gait behavior, thereby affecting the detection accuracy of abnormal gait behavior caused by Parkinson's disease.
[0076] In this embodiment, it should be noted that the preset masking rule is a pre-set rule for masking the processed self-attention pressure signal, and the preset masking rule can be for masking the processed self-attention pressure signal corresponding to the sole of the foot in a suspended state.
[0077] To solve the above defects, exemplarily, steps B31 to B33 include: obtaining a preset number of self-attention heads, dividing the time plantar pressure signal into at least one time attention head according to the preset number of self-attention heads, mapping each of the time attention heads into a time matching vector, a time matched vector, and a time extracted information vector, performing multi-head self-attention processing on the time plantar pressure signal according to each of the time matching vectors, each of the time matched vectors, each of the time extracted information vectors, and the weights corresponding to each of the time attention heads to obtain the time self-attention pressure signal; dividing the processed plantar pressure signal into at least one processing attention head according to the preset number of self-attention heads, mapping each of the processing attention heads into a processing matching vector , process the matched vector and the processed extracted information vector, obtain a preset masking rule, determine the mask information corresponding to each of the processing attention heads according to the preset masking rule, perform multi-head self-attention processing on the processed plantar pressure information according to each of the processing matching vectors, each of the processed matched vectors, each of the processed extracted information vectors, the mask information corresponding to each of the processing attention heads and the weight corresponding to each of the processing attention heads, and obtain a masked self-attention pressure signal, and mask the processed self-attention pressure signal corresponding to the plantar in a suspended state, thereby reducing the interference of the processed self-attention pressure signal corresponding to the plantar in a suspended state on the detection of the cause of abnormal gait behavior, thereby improving the detection accuracy of abnormal gait behavior caused by Parkinson's disease.
[0078] Optionally, the step of mapping each of the temporal attention heads into a temporal matching vector, a temporal matched vector and a temporal extracted information vector may specifically be:
[0079]
[0080] Among them, head(x T ) is the temporal attention head, Q1 is the temporal matching vector, K1 is the temporal matched vector, is the vector length corresponding to the time matched vector, and V1 is the time extracted information vector.
[0081] Optionally, the step of performing multi-head self-attention processing on the temporal plantar pressure signal according to each of the temporal matching vectors, each of the temporal matched vectors, each of the temporal extracted information vectors and the weights corresponding to each of the temporal attention heads to obtain the temporal self-attention pressure signal may specifically be:
[0082] MSA(x T )=MultiHead(Q1, K1, V1)=Concat(head1(x T )W 1, ..., head h (x T )W h )
[0083] Among them, MSA(x T ) is the temporal self-attention pressure signal, MultiHead(Q1, K1, V1) is the self-attention pressure signal, Q1 is the temporal matching vector, K1 is the temporal matched vector, V1 is the temporal information extraction vector, head1(x T ) is the first time attention head, W 1 is the weight corresponding to the first time attention head, head h (x T ) is the h-th time attention head, W h is the weight corresponding to the h-th time attention head.
[0084] Optionally, the step of performing multi-head self-attention processing on the processed plantar pressure information according to each of the processed matching vectors, each of the processed matched vectors, each of the processed extracted information vectors, the mask information corresponding to each of the processed attention heads, and the weight corresponding to each of the processed attention heads to obtain the masked self-attention pressure signal may specifically be:
[0085]
[0086] Among them, head(x) is the processing attention head, Q2 is the processing matching vector, K2 is the processing matched vector, V2 is the processing extracted information vector, and M is the mask corresponding to the processing attention head. The length of the vector corresponding to the matched vector for processing.
[0087] MMSA(x)=MultiHead(Q2, K2, V2)=Concat(head1(x)W 1 , ..., head h (x)W h )
[0088] Where MMSA(x) is the masked self-attention pressure signal, MultiHead(Q2, K2, V2) is the masked self-attention pressure signal, head1(x) is the first processing attention head, W 1 is the weight corresponding to the first processing attention head, head h (x) is the hth processing attention head, W h is the weight corresponding to the h-th processing attention head.
[0089] The embodiment of the present application provides an abnormal gait behavior detection system. Compared with the method of detecting abnormal gait behavior of a user by image recognition, the abnormal gait behavior detection system in the embodiment of the present application includes a sensor module, a feature construction module and an abnormal gait behavior detection module. The sensor module collects the plantar pressure signal of the user to be detected; the feature construction module constructs the plantar pressure feature corresponding to the user to be detected according to the plantar pressure signal; the abnormal gait behavior detection module performs abnormal gait behavior detection on the user to be detected according to the plantar pressure feature and the abnormal gait behavior detection model, and obtains the detection result. The condition is mostly static tremor, so there is a big difference in gait from other people who do not suffer from Parkinson's disease and other patients with leg diseases. The gait information of the user to be detected is determined according to the plantar pressure signal of the user to be detected, so that the abnormal gait behavior of the user to be detected caused by Parkinson's disease can be detected according to the gait information, thereby achieving accurate detection of the cause of the abnormal gait behavior of the user to be detected, avoiding the technical defect of low detection accuracy of abnormal gait behavior caused by Parkinson's disease due to other reasons such as leg injury and flat feet in addition to Parkinson's disease, thereby improving the detection accuracy of abnormal gait behavior caused by Parkinson's disease.
[0090] Embodiment 2
[0091] Further, based on the first embodiment of the present application, in another embodiment of the present application, the same or similar contents as those in the above-mentioned embodiment 1 can be referred to the above introduction, and will not be repeated later. On this basis, in step S21, the step of preprocessing the plantar pressure signal to obtain the processed plantar pressure signal includes:
[0092] Step C10, selecting a walking pressure signal with a preset number of steps from each of the plantar pressure signals;
[0093] Step C20, cutting the walking pressure signal according to a preset signal quantity to obtain a processed plantar pressure signal.
[0094] It is understandable that due to each person's walking habits, there are differences in cadence between each person, and the cadence between Parkinson's disease patients, those without Parkinson's disease and patients with other leg diseases is quite different. Therefore, cadence is also a factor in determining the cause of abnormal gait behavior. In order to reflect the cadence between each user to be detected, the data length of the plantar pressure signal collected by the user to be detected can be fixed, or the number of steps of the plantar pressure signal collected by the user to be detected can be fixed, so that the data obtained each time can maintain a unified data dimension, and the cadence of each user to be detected can be characterized.
[0095] In this embodiment, it should be noted that the preset number of steps is the preset number of selected steps, which can be 4 steps, 5 steps, 6 steps, etc. The preset number of signals is the preset number of selected walking pressure signals.
[0096] Exemplarily, step C10 to step C20 include: selecting a walking pressure signal with a preset number of steps from each of the plantar pressure signals; if the number of signals corresponding to the walking pressure signal is greater than the preset number of signals, removing the portion of the walking pressure signal that is greater than the preset number of signals to obtain the processed plantar pressure signal; if the number of signals corresponding to the walking pressure signal is less than the preset number of signals, padding the walking pressure signal with zeros to obtain the processed plantar pressure signal; if the number of signals corresponding to the walking pressure signal is equal to the preset number of signals, using the walking pressure signal as the processed plantar pressure signal, and padding or cutting the walking pressure signal with zeros so that the data collected each time maintains a unified data dimension and the collected data represents the step frequency of each user to be detected, thereby improving the detection accuracy of abnormal gait behavior caused by Parkinson's disease.
[0097] As an example, step C10 to step C20 include: when the preset number of steps is 5 steps and the preset number of signals is 350, 5 steps of walking pressure signals are selected from each of the plantar pressure signals; if the number of signals corresponding to the walking pressure signals is greater than 350, the part exceeding 350 in step 5 is removed; if the number of signals corresponding to the walking pressure signals is less than 350, the walking pressure signals are padded with zeros.
[0098] Wherein, in step S30, before the step of performing abnormal gait behavior detection on the user to be detected according to the gait characteristics and the abnormal gait behavior detection model to obtain the detection result, it also includes:
[0099] Step D10, obtaining an abnormal gait behavior detection model to be trained and training samples;
[0100] Step D20, preprocessing the training sample to obtain at least one processed training sample;
[0101] Step D30, determining the sample weight corresponding to each of the processed training samples;
[0102] Step D40, iteratively optimizing the abnormal gait behavior detection model to be trained according to each of the processed training samples and the sample weights corresponding to each of the processed training samples, to obtain the abnormal gait behavior detection model.
[0103] In this embodiment, it should be noted that the training samples include one or more plantar pressures of Parkinson's disease patients when walking, plantar pressures of people without Parkinson's disease when walking, and plantar pressures of other leg disease patients when walking. The abnormal gait behavior detection model to be trained is an untrained abnormal gait behavior detection model.
[0104] Exemplarily, steps D10 to D40 include: obtaining an abnormal gait behavior detection model to be trained and training samples; preprocessing the training samples to obtain at least one processed training sample; determining the sample weights corresponding to each of the processed training samples; outputting a training diagnostic label according to each of the processed training samples and the abnormal gait behavior detection model to be trained, and calculating the model loss corresponding to the abnormal gait behavior detection model to be trained according to the difference between the training diagnostic label and the true label corresponding to each of the processed training samples and each of the sample weights, and then judging whether the model loss converges; if the model loss converges, the abnormal gait behavior detection model to be trained is used as the abnormal gait behavior detection model; if the model loss does not converge, based on the gradient calculated by the model loss, the abnormal gait behavior detection model to be trained is updated by a preset model updating method, and the execution step is returned to: obtaining training samples, wherein the preset model updating method includes a gradient descent method and a gradient ascent method, etc.
[0105] Optionally, the step of calculating the model loss corresponding to the abnormal gait behavior detection model to be trained according to the difference between the training diagnostic label and the true label corresponding to each of the processed training samples and the weight of each sample may specifically be:
[0106]
[0107] Among them, loss is the model loss corresponding to the abnormal gait behavior detection model to be trained, y n is the true label corresponding to the nth sample, p n is the training diagnostic label corresponding to the nth sample, and sample_weight is the sample weight.
[0108] Wherein, in step D30, the step of determining the sample weight corresponding to each of the processed training samples includes:
[0109] Step D31, obtaining the true label corresponding to each of the processed training samples;
[0110] Step D32, determining the sample ratio between positive samples and negative samples in the processed training samples according to the true labels;
[0111] Step D33: generating a sample weight corresponding to each of the processed training samples according to the sample ratio.
[0112] Exemplarily, step D31 to step D33 include: obtaining the true label corresponding to each of the processed training samples, wherein the true label includes a gait behavior label of an affected state and a gait behavior label of a non-affected state; obtaining the number corresponding to the affected gait behavior label to obtain the number of positive samples corresponding to the positive samples, obtaining the number corresponding to the non-affected gait behavior label to obtain the number of negative samples corresponding to the negative samples, and obtaining the sample ratio between positive samples and negative samples in the processed training samples based on the ratio between the number of positive samples and the number of negative samples; and generating sample weights corresponding to each of the processed training samples based on the sample ratio.
[0113] The embodiment of the present application provides an abnormal gait behavior detection system. Compared with the method of detecting abnormal gait behavior of a user by image recognition, the abnormal gait behavior detection system in the embodiment of the present application includes a sensor module, a feature construction module and an abnormal gait behavior detection module. The sensor module collects the plantar pressure signal of the user to be detected; the feature construction module constructs the plantar pressure feature corresponding to the user to be detected according to the plantar pressure signal; the abnormal gait behavior detection module performs abnormal gait behavior detection on the user to be detected according to the plantar pressure feature and the abnormal gait behavior detection model, and obtains the detection result. The condition is mostly static tremor, so there is a big difference in gait from other people who do not suffer from Parkinson's disease and other patients with leg diseases. The gait information of the user to be detected is determined according to the plantar pressure signal of the user to be detected, so that the abnormal gait behavior of the user to be detected caused by Parkinson's disease can be detected according to the gait information, thereby achieving accurate detection of the cause of the abnormal gait behavior of the user to be detected, avoiding the technical defect of low detection accuracy of abnormal gait behavior caused by Parkinson's disease due to other reasons such as leg injury and flat feet in addition to Parkinson's disease, thereby improving the detection accuracy of abnormal gait behavior caused by Parkinson's disease.
[0114] Embodiment 3
[0115] An embodiment of the present application provides an electronic device, comprising: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the abnormal gait behavior detection system in the above embodiment.
[0116] Reference below Figure 4, which shows a schematic diagram of the structure of an electronic device suitable for implementing the embodiments of the present disclosure. The electronic device in the embodiments of the present disclosure may include, but is not limited to, mobile terminals such as mobile phones, notebook computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), vehicle-mounted terminals (such as vehicle-mounted navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc. Figure 4 The electronic device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present disclosure.
[0117] like Figure 4 As shown, the electronic device may include a processing device (e.g., a central processing unit, a graphics processing unit, etc.), which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) or a program loaded from a storage device into a random access memory (RAM). In the RAM, various programs and data required for the operation of the electronic device are also stored. The processing device, ROM, and RAM are connected to each other via a bus. An input / output (I / O) interface is also connected to the bus.
[0118] Typically, the following systems can be connected to the I / O interface: input devices including, for example, a touch screen, a touchpad, a keyboard, a mouse, an image sensor, a microphone, an accelerometer, a gyroscope, etc.; output devices including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; storage devices including, for example, a magnetic tape, a hard disk, etc.; and communication devices. The communication device can allow the electronic device to communicate with other devices wirelessly or by wire to exchange data. Although the figure shows an electronic device with various systems, it should be understood that it is not required to implement or have all the systems shown. More or fewer systems may be implemented or have alternatively.
[0119] In particular, according to an embodiment of the present disclosure, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present disclosure includes a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program contains a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication device, or installed from a storage device, or installed from a ROM. When the computer program is executed by a processing device, the above-mentioned functions defined in the method of the embodiment of the present disclosure are executed.
[0120] The electronic device provided by the present application adopts the abnormal gait behavior detection system in the above embodiment to solve the technical problem of low detection accuracy of abnormal gait behavior caused by Parkinson's disease. Compared with the prior art, the beneficial effects of the electronic device provided by the embodiment of the present application are the same as the beneficial effects of the abnormal gait behavior detection system provided by the above embodiment, and other technical features in the electronic device are the same as the features disclosed in the above embodiment method, which will not be repeated here.
[0121] It should be understood that the various parts of the present disclosure can be implemented with hardware, software, firmware or a combination thereof. In the description of the above embodiments, specific features, structures, materials or characteristics can be combined in any one or more embodiments or examples in a suitable manner.
[0122] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
[0123] Embodiment 4
[0124] This embodiment provides a computer-readable storage medium having computer-readable program instructions stored thereon, and the computer-readable program instructions are used to execute the method of the abnormal gait behavior detection system in the above embodiment.
[0125] The computer-readable storage medium provided in the embodiment of the present application can be, for example, a USB flash drive, but is not limited to electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems, systems or devices, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present embodiment, the computer-readable storage medium can be any tangible medium containing or storing a program, which can be used by an instruction execution system, a system or a device or used in combination with it. The program code contained on the computer-readable storage medium can be transmitted with any appropriate medium, including but not limited to: wires, optical cables, RF (radio frequency), etc., or any suitable combination of the above.
[0126] The computer-readable storage medium may be included in the electronic device, or may exist independently without being installed in the electronic device.
[0127] The computer-readable storage medium carries one or more programs. When the one or more programs are executed by an electronic device, the electronic device: collects a plantar pressure signal of a user to be detected, wherein the plantar pressure signal is used to characterize the plantar pressure of the user to be detected that changes over time when the user to be detected is walking; constructs a gait feature corresponding to the user to be detected based on the plantar pressure signal; and performs abnormal gait behavior detection on the user to be detected based on the gait feature and an abnormal gait behavior detection model to obtain a detection result.
[0128] Computer program code for performing the operations of the present disclosure may be written in one or more programming languages, or a combination thereof, including object-oriented programming languages, such as Java, Smalltalk, C++, and conventional procedural programming languages, such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., through the Internet using an Internet service provider).
[0129] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present application. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0130] The modules involved in the embodiments described in the present disclosure may be implemented by software or hardware, wherein the name of the module does not limit the unit itself in some cases.
[0131] The computer-readable storage medium provided by the present application stores computer-readable program instructions for executing the above-mentioned abnormal gait behavior detection system, which solves the technical problem of low detection accuracy of abnormal gait behavior caused by Parkinson's disease. Compared with the prior art, the beneficial effects of the computer-readable storage medium provided by the embodiment of the present application are the same as the beneficial effects of the abnormal gait behavior detection system provided by the above-mentioned implementation, and will not be repeated here.
[0132] Embodiment 5
[0133] The present application also provides a computer program product, including a computer program, which implements the steps of the abnormal gait behavior detection system as described above when executed by a processor.
[0134] The computer program product provided by the present application solves the technical problem of low detection accuracy of abnormal gait behavior caused by Parkinson's disease. Compared with the prior art, the beneficial effects of the computer program product provided by the embodiment of the present application are the same as the beneficial effects of the abnormal gait behavior detection system provided by the above embodiment, which will not be repeated here.
[0135] The above are only preferred embodiments of the present application, and are not intended to limit the patent scope of the present application. Any equivalent structure or equivalent process transformation made using the contents of the present application specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent processing scope of the present application.
Claims
1. An abnormal gait behavior detection system, characterized in that: The abnormal gait behavior detection system comprises a sensor module, a feature construction module and an abnormal gait behavior detection module. The sensor module is used to collect a plantar pressure signal of a user to be detected, wherein the plantar pressure signal is used to represent the plantar pressure of the user to be detected that changes over time when the user is walking; The feature construction module is used to construct a gait feature corresponding to the user to be detected according to the plantar pressure signal; The abnormal gait behavior detection module is used to perform abnormal gait behavior detection on the user to be detected according to the gait characteristics and the abnormal gait behavior detection model to obtain a detection result; The step of constructing the gait feature corresponding to the user to be detected according to the plantar pressure signal comprises: Preprocessing the plantar pressure signal to obtain a processed plantar pressure signal; Determining the plantar pressure center feature corresponding to the user to be detected according to the processed plantar pressure signal; Determining the plantar pressure characteristics corresponding to the user to be detected according to the processed plantar pressure signal; constructing the gait feature according to the plantar pressure center feature and the plantar pressure feature; The step of determining the plantar pressure center feature corresponding to the user to be detected according to the processed plantar pressure signal comprises: Acquire the relative positions of the soles of the feet corresponding to the respective sole pressure signals; According to each of the plantar pressure signals and the corresponding relative position of the sole, the plantar pressure center corresponding to the user to be detected is located to obtain the plantar pressure center feature; The step of determining the plantar pressure feature corresponding to the user to be detected according to the processed plantar pressure signal comprises: By performing transposition processing on the processed plantar pressure signal, a time plantar pressure signal is obtained; Converting the characteristic dimension corresponding to the temporal plantar pressure signal and the characteristic dimension corresponding to the processed plantar pressure signal into a preset characteristic dimension; Performing multi-head self-attention processing on the temporal plantar pressure signal to obtain a temporal self-attention pressure signal, and performing masked multi-head self-attention processing on the processed plantar pressure signal to obtain a masked self-attention pressure signal; Constructing a plantar pressure feature corresponding to the user to be detected according to the temporal self-attention pressure signal and the masked self-attention pressure signal; The steps of performing multi-head self-attention processing on the temporal plantar pressure signal to obtain a temporal self-attention pressure signal, and performing masked multi-head self-attention processing on the processed plantar pressure signal to obtain a masked self-attention pressure signal include: Mapping the temporal plantar pressure signal into a temporal matching vector, a temporal matched vector and a temporal extracted information vector, and performing multi-head self-attention processing on the temporal plantar pressure signal according to the temporal matching vector, the temporal matched vector and the temporal extracted information vector to obtain the temporal self-attention pressure signal; Mapping the processed plantar pressure signal into a processed matching vector, a processed matched vector and a processed extracted information vector, and performing multi-head self-attention processing on the processed plantar pressure signal according to the processed matching vector, the processed matched vector and the processed extracted information vector to obtain a processed self-attention pressure signal; A preset masking rule is obtained, and the processed self-attention pressure signal is masked according to the preset masking rule to obtain the masked self-attention pressure signal.
2. The abnormal gait behavior detection system according to claim 1, characterized in that: The step of preprocessing the plantar pressure signal to obtain a processed plantar pressure signal comprises: Selecting a walking pressure signal with a preset number of steps from each of the plantar pressure signals; The walking pressure signal is cut according to a preset signal quantity to obtain a processed plantar pressure signal.
3. The abnormal gait behavior detection system according to claim 1, characterized in that: Before the step of performing abnormal gait behavior detection on the user to be detected according to the gait characteristics and the abnormal gait behavior detection model to obtain the detection result, the method further includes: Obtaining an abnormal gait behavior detection model to be trained and training samples; Preprocessing the training sample to obtain at least one processed training sample; Determining a sample weight corresponding to each of the processed training samples; According to each of the processed training samples and the sample weights corresponding to each of the processed training samples, the abnormal gait behavior detection model to be trained is iteratively optimized to obtain the abnormal gait behavior detection model.
4. An electronic device, characterized in that: The electronic device comprises: at least one processor; and, a memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the steps of the abnormal gait behavior detection system according to any one of claims 1 to 3.
5. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a program for implementing an abnormal gait behavior detection system, and the program for implementing an abnormal gait behavior detection system is executed by a processor to implement the steps of the abnormal gait behavior detection system as described in any one of claims 1 to 3.
