Method, device, medium and program product for predicting glaucoma based on gait characteristics

Through virtual reality technology and machine learning methods, the gait characteristics of glaucoma patients are extracted, which solves the problem of identifying glaucoma in unfamiliar environments and low light conditions in the existing technology, and achieves accurate screening and behavioral training of glaucoma patients.

CN118507072BActive Publication Date: 2024-10-22THE THIRD MEDICAL CENT OF THE CHINESE PEOPLES LIBERATION ARMY GENERAL HOSPITAL
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410912131.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-09
Publication Date
2024-10-22
Estimated Expiration
2044-07-09

AI Technical Summary

Technical Problem

It is difficult to effectively identify and screen glaucoma patients with existing technology, especially in unfamiliar environments and low light conditions, which affects patients' movement and balance abilities.

Method used

A gait feature analysis method based on virtual reality technology is used to obtain gait data under different lighting conditions in a virtual reality environment, statistics and machine learning methods are used to extract differential gait features, and convolutional layers and regularization layers are used The classifier determines whether you have glaucoma.

Benefits of technology

It can accurately identify glaucoma patients under different lighting conditions, provide new methods for early screening and behavioral training, and improve the accuracy and efficiency of diagnosis.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118507072B_ABST
    Figure CN118507072B_ABST
Patent Text Reader

Abstract

The present invention belongs to the field of intelligent medical treatment, and specifically relates to a method, device, medium and program product for predicting glaucoma based on gait characteristics, the method comprising: obtaining each group of gait data by measuring the walking task performed by the subject under different lighting conditions in a virtual reality environment, the different lighting conditions including: indoor lights on, indoor lights off, outdoor scenes; statistically analyzing the groups of gait data by statistical methods or machine learning methods, obtaining differential gait characteristics with statistical differences between at least two groups; constructing a feature set based on the differential gait characteristics, and inputting the feature set into a classifier to obtain a classification result of whether the subject suffers from glaucoma. The specific gait characteristics of glaucoma patients show significant differences in unfamiliar environments and low light conditions. The present invention obtains differential gait characteristics under different lighting conditions and with or without obstacles by comparison, and can effectively identify early glaucoma patients based on the differential gait characteristics.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of intelligent medical technology, and more specifically, to a method, device, medium and program product for predicting glaucoma based on gait characteristics. Background Art

[0002] Glaucoma is a group of diseases characterized by visual field loss and optic nerve damage. It has become the world's leading irreversible blinding eye disease, a serious threat to human visual health. In the early stages of glaucoma, central vision generally does not decline, but the patient's gait characteristics when walking may become abnormal in an attempt to compensate for the decline in visual function caused by abnormal visual field. Summary of the invention

[0003] The specific gait characteristics of glaucoma patients are more significant in unfamiliar environments, low light conditions and obstacles, thus affecting the patient's ability to move and balance. The present invention provides a method for predicting glaucoma based on gait characteristics, constructs a human motion experiment system based on virtual reality technology, and designs corresponding data processing algorithms for the gait characteristics of glaucoma patients in different virtual reality scenes and tasks, so as to accurately identify glaucoma patients from gait characteristics, thereby providing a new method for glaucoma screening and behavioral training.

[0004] In a first aspect, the present application discloses a method for predicting glaucoma based on gait characteristics, the method comprising:

[0005] S1: obtaining each group of gait data by measuring the walking task performed by the subject in the virtual reality environment under different lighting conditions, wherein the different lighting conditions include: indoor lights on, indoor lights off, and outdoor scenes;

[0006] S2: performing statistical analysis on the gait data of each group by using a statistical method or a machine learning method to obtain gait features with statistical differences between at least two groups;

[0007] S3: constructing a feature set based on the differential gait features, and inputting the feature set into a classifier to obtain a classification result of whether the subject suffers from glaucoma.

[0008] Furthermore, the gait data includes sensor data on key points of the body of the subject when walking. The subject wears sensors on key points of the body when walking under different lighting conditions in a virtual reality environment. The key points of the body include one or more of the following: head, chest, waist, left hand, right hand, left knee, right knee, left foot, and right foot. The sensor data includes position coordinates, rotation angles, and timestamps; the position coordinates include x-direction, y-direction, and z-direction; the rotation angles include angles from the x-direction, angles from the y-direction, and angles from the z-direction.

[0009] Further, S1 is specifically: obtaining measurements of different walking tasks performed by the subject under different lighting conditions in a virtual reality environment to obtain each group of gait data, wherein the walking tasks include any one or more of the following: walking along a straight road, walking around an obstacle, crossing a dynamic ball, walking on a curve, crossing a high pole, and crossing a low pole.

[0010] Furthermore, the measured gait data is divided into a straight-ahead phase and a turning phase, and statistical analysis is performed on the gait data of each group of straight-ahead phases through a statistical method or a machine learning method to obtain differential gait features; and the gait data is divided into a straight-ahead phase and a turning phase according to a straight-ahead segment sliding window division algorithm.

[0011] Further, each group of gait cycles is obtained by screening based on the straight walking phase, and each group of gait cycles is statistically analyzed by a statistical method or a machine learning method to obtain gait features with statistical differences between at least two groups; one of the gait cycles includes a stance phase and a swing phase, and the gait cycle is screened based on an algorithm for selecting the start and end points of the stance phase; the algorithm for selecting the start and end points of the stance phase includes the following steps:

[0012] Input the vertical direction data of the left / right foot sensor;

[0013] Filtering the vertical direction data of the foot sensor to obtain filtered data;

[0014] The filtered data is subjected to a first-order derivative with respect to time, and the lowest point of the left / right ankle is determined according to a timestamp when the first-order derivative is 0;

[0015] The vertical height threshold of the lowest point of the ankle in the vertical direction determines the starting and ending vertical coordinates of the standing phase.

[0016] Determine the start and end timestamps of the left / right foot stance phase according to the start and end vertical coordinates with the closest time span, and output all the start and end timestamps as the start and end points of the stance phase.

[0017] Furthermore, the virtual reality environment is developed and designed using Unity3D program; the indoor lighting scene is set as follows: the indoor scene replicates the real building layout, decoration details, and lighting information, the lighting information uses fixed window light to simulate outdoor natural light, and uses controllable indoor ceiling lights to simulate indoor LED ceiling light; the fixed window light is provided by a sky box and a parallel light source, and the illumination intensity of the parallel light source remains constant everywhere; the controllable indoor ceiling light includes four point light sources on the top of the room, the point light sources constitute the four vertices of a square, the illumination intensity of the point light source is 1, the light source range is 10, and the color is white; within the illumination range of the point light source, the illumination intensity calculation formula of a certain position is expressed as follows:

[0018]

[0019] Where I is the light intensity, r is the distance between the light source and the measurement point;

[0020] The outdoor scene is a street scene under a clear weather background, the walking range is set within the zebra crossing, and the lighting information is provided by the sky box.

[0021] Furthermore, the classifier is composed of a convolution layer, a regularization layer, and an output layer; the convolution layer captures the local dependency features in the time series, the regularization layer reduces the risk of model overfitting, and the output layer outputs the prediction result to determine whether the subject is a normal person or a glaucoma patient.

[0022] The second aspect of the present application discloses a computer device, which includes: a memory and a processor; the memory is used to store program instructions; the processor is used to call the program instructions, and when the program instructions are executed, it is used to execute the steps of the above method.

[0023] A third aspect of the present application discloses a computer-readable storage medium having a computer program stored thereon, wherein the computer program implements the steps of the above method when executed by a processor.

[0024] A fourth aspect of the present application discloses a computer program product or system, including a computer program, which implements the steps of the above method when executed by a processor.

[0025] A system for predicting glaucoma based on gait characteristics, comprising:

[0026] Data acquisition module 201: used to obtain each group of gait data of the subject under different lighting conditions in the virtual reality environment, wherein the different lighting conditions include: indoor lights on, indoor lights off, and outdoor scenes;

[0027] The difference feature extraction module 202 is used to perform statistical analysis on the groups of gait data by using a statistical method or a machine learning method to obtain difference gait features with statistical differences between at least two groups;

[0028] Prediction module 203: used to construct a feature set based on the differential gait features, and input the feature set into a classifier to obtain a classification result of whether the subject suffers from glaucoma.

[0029] Advantages of this application:

[0030] 1. The specific gait characteristics of glaucoma patients are more obvious in unfamiliar environments and low-light conditions. Based on the virtual reality environment and the Unity3D human motion experiment system, the present invention collects the gait characteristics of glaucoma patients in different scenes, including indoor lights on, indoor lights off, and outdoor scenes, so as to quickly collect the gait characteristics of the subjects under different lighting conditions, obtain the difference gait characteristics under different lighting conditions by comparison, and identify early glaucoma patients based on the difference gait characteristics;

[0031] 2. The specific gait characteristics of glaucoma patients are more obvious when there are obstacles. The present invention sets obstacle-free walking and obstacle-based walking tasks in different lighting scenes, collects the gait characteristics of the subjects in the obstacle-free and obstacle-based scenes, and compares the difference in gait characteristics with and without obstacles to more accurately identify early-stage glaucoma patients. BRIEF DESCRIPTION OF THE DRAWINGS

[0032] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative work.

[0033] Figure 1 is a schematic diagram of a method flow chart provided by the first aspect of an embodiment of the present invention;

[0034] Figure 2 is a schematic diagram of a system for predicting glaucoma based on gait characteristics provided by an embodiment of the present invention;

[0035] Figure 3 is a schematic diagram of a computer device provided by an embodiment of the present invention;

[0036] Figure 4 is a schematic diagram of the architecture of an exemplary computing device provided by an embodiment of the present invention;

[0037] Figure 5 is a schematic diagram of a storage medium provided by an embodiment of the present invention;

[0038] Figure 6 A standard "A posture" human body model and device wearing position provided by an embodiment of the present invention;

[0039] Figure 7 is a real-time posture comparison diagram of a virtual character model (a) and a subject (b) provided by an embodiment of the present invention;

[0040] Figure 8is a schematic diagram of an experimental scene provided by an embodiment of the present invention, wherein (a) represents a real indoor scene; (b) represents a virtual indoor scene; (c) represents a virtual outdoor scene;

[0041] Fig. 9 This is a screen recording display of a virtual reality gait experiment provided by an embodiment of the present invention (left: game screen, right: third-person perspective screen)

[0042] Fig.10 It is a change of the Y-axis coordinate (vertical axis) of a limb key point with a time series (horizontal axis) provided by an embodiment of the present invention;

[0043] Fig.11 It is a single round trip provided by an embodiment of the present invention, and the Z coordinates (vertical axis) of the head and both hands, both knees, and both feet change with the time series (horizontal axis);

[0044] Fig.12 It is a visualization of the result of a straight segment sliding window partitioning algorithm provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0045] In order to enable those skilled in the art to better understand the solutions of the present invention, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the accompanying drawings in the embodiments of the present invention.

[0046] In some of the processes described in the specification and claims of the present invention and the above-mentioned figures, multiple operations that appear in a specific order are included, but it should be clearly understood that these operations may not be executed in the order in which they appear in this article or executed in parallel. The sequence numbers of the operations, such as S101, S102, etc., are only used to distinguish between different operations, and the sequence numbers themselves do not represent any execution order. In addition, these processes may include more or fewer operations, and these operations may be executed in sequence or in parallel. It should be noted that the descriptions of "first", "second", etc. in this article are used to distinguish different messages, devices, modules, etc., do not represent the order of precedence, and do not limit the "first" and "second" to be different types.

[0047] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present invention.

[0048] Figure 1 is a schematic flow chart of a method for predicting glaucoma based on gait characteristics provided by an embodiment of the present invention. Specifically, the method comprises the following steps:

[0049] S101: obtaining each group of gait data by measuring a walking task performed by a subject in a virtual reality environment under different lighting conditions, wherein the different lighting conditions include: indoor lights on, indoor lights off, and outdoor scenes;

[0050] In some embodiments, the gait data includes sensor data on key points of the body of the subject when walking. The subject wears sensors on key points of the body when walking under different lighting conditions in a virtual reality environment. The key points of the body include one or more of the following: head, chest, waist, left hand, right hand, left knee, right knee, left foot, right foot. Optionally, the sensor data includes position coordinates, rotation angle and timestamp; optionally, the position coordinates include x-direction, y-direction and z-direction; the rotation angle includes the angle of deviation from the x-direction, the angle of deviation from the y-direction and the angle of deviation from the z-direction.

[0051] In some embodiments, S1 specifically includes: obtaining measurements of different walking tasks performed by the subject under different lighting conditions in a virtual reality environment to obtain each group of gait data, wherein the walking tasks include any one or more of the following: walking along a straight road, walking around obstacles, crossing a dynamic ball, walking on a curve, crossing a high pole, and crossing a low pole.

[0052] In some embodiments, the gait data also includes the task start and end time and the time to walk to the calibrated distance;

[0053] In some embodiments, when walking under different lighting conditions is one or more of the following: walking around obstacles, crossing dynamic balls, crossing high poles, crossing low poles, the gait data also includes: the number of collisions with obstacles and / or the body parts that collided;

[0054] In some embodiments, the gait data further includes gait parameters, and the gait parameters include one or more of the following: step width, stride left, stride right, step height left, step height right, step speed, step frequency left, and step frequency right;

[0055] In some embodiments, gait cycles and gait parameters of different walking types under different lighting conditions are compared to obtain differential gait features.

[0056] S102: performing statistical analysis on the gait data of each group by a statistical method or a machine learning method to obtain gait features with statistical differences between at least two groups;

[0057] In some embodiments, the specific method of S2 includes: performing statistical analysis on each group of gait data by statistical methods or machine learning methods to obtain statistically different gait features.

[0058] In some embodiments, a trained difference feature extraction network is used to extract difference gait features from each group of gait data to obtain difference gait features. The training process of the difference feature extraction network is as follows: a training set sample consisting of glaucoma and normal people is used to perform measurements under different lighting conditions in a virtual reality environment to obtain a gait data set, and the gait data set is input into machine learning for training to obtain the trained difference feature extraction network.

[0059] S103: constructing a feature set based on the differential gait features, and inputting the feature set into a classifier to obtain a classification result of whether the subject suffers from glaucoma.

[0060] A specific embodiment of the present application comprises the following steps:

[0061] Based on the Unity3D human motion experiment system, a detection platform for glaucoma patients was built, including virtual reality equipment (VR headset, handle, host computer), limb motion capture equipment (IMU sensor) and gait meter;

[0062] Collect gait information and parameters of glaucoma patients;

[0063] A glaucoma-normal person classification model was established, and a deep learning model was constructed to achieve the classification goal.

[0064] 1: Building a limb motion capture system based on the gait characteristics of glaucoma patients

[0065] The virtual reality hardware device of this method uses the HTC Vive Pro Eye set. The software system is developed based on the SteamVR plug-in to process the input and output information of the VR controller and load the 3D model of the VR controller.

[0066] Building a limb motion capture system: Use SlimeVR to build a skeletal model calculated from the rotation of each individual tracker through forward kinematics. The HTC Vive head-mounted display is the only known absolute position, and it does not require base stations or other forms of additional tracking to simulate the tester's movement. The built-in hand tracking functions of the user's head display and handle can control the character's head and arms respectively. SlimeVR uses data from inertial measurement units to determine this rotation. The number of inertial measurement units used determines how many tracking points are available.

[0067] 1.1 Hardware

[0068] The hardware equipment of the SlimeVR motion capture system consists of a group of (5 to 10) trackers. The size of a single tracker is approximately 5cm×4cm×2.5cm. The main components include the motherboard, IMU, battery, charging board, switch, 3D printed shell and elastic straps for fixing to the limbs.

[0069] The present invention selects ICM 20948 as the chip of IMU. ICM 20948 is a low-power 9-axis motion tracking device that includes a programmable three-axis accelerometer, a three-axis gyroscope, and a three-axis magnetometer. The advantage of ICM 20948 is that it does not require initial reset and frequent calibration. Since its accelerometer data is relatively accurate and stable, the time drift range of IMU is within 5cm per hour.

[0070] SlimeVR uses data from the IMU to determine the rotation information of a certain joint point. The more IMUs there are, the more accurate the simulated human movement is. In the present invention, a 9-point full-body tracking configuration is adopted, of which 3 points are the HTC Vive headset and two handles, which are used to simulate the head and hands; the remaining 6 points are SlimeVR trackers, which are used to simulate the chest, waist, knees, and ankles respectively. The tracker box switch is in the positive direction upward, the chest tracker is placed below the chest, the waist tracker is placed at the navel, the knee trackers are placed above the knees, and the foot trackers are placed at the ankles. The device is worn in the following positions: Figure 6 shown.

[0071] 1.2 Software Configuration

[0072] Before using SlimeVR, you need to install a series of drivers and software, including CH340 serial port driver, java17, SteamVR plug-in and SlimeVR Server. As a server, SlimeVR Server is responsible for the communication between the tracker and the computer, and real-time monitoring of each tracker status and limb data and other parameters. Connect the tracker module to the computer with a data cable and place them in the same LAN environment. At this point, the SlimeVR tracker can be displayed in the device list as a simulated Vive Tracker and interact normally with the SteamVR application.

[0073] 1.3 Human motion tracking based on inverse kinematics

[0074] In order to realize motion tracking in Unity3D, the character model is first imported as a carrier. The character model includes the head, face, body, limbs, hands, feet and corresponding clothing. Then add VRIK components to control the movement of the character model: reference the Transform components of each joint of the character model to the corresponding position of VRIK; SteamVR has previously read the information of the virtual tracker, so the corresponding tracker can be found in the tracked device index, and the spatial postures of the six trackers are assigned to the six empty objects in the scene through the corresponding index numbers of the Tracked Object script, thus obtaining the final motion state of the inverse kinematics system; then it is necessary to bind the Transform component of the empty object (that is, the spatial posture of the tracker) to the corresponding joint of the VRIK system, and adjust the weight of the position information of each joint according to the test situation to achieve a more ideal motion restoration effect ( Figure 7 ).

[0075] 2. Baseline balance and gait testing

[0076] The gait meter is equipped with a 1-MP high-resolution 3D structured light sensor and a 12-MP high-definition RGB camera. It uses a depth camera to obtain the user's three-dimensional depth coordinates. It detects key points of the human body through deep learning algorithms and computer vision for motion capture, and can identify 29 key points including the head, shoulders, elbows, wrists, hips, knees and ankles. The instrument is easy to move and covers an inspection space of 4.5m×1m. In the present invention, seven items are selected as personalized inspection items: standing with eyes open, standing with eyes closed, tandem standing, semi-tandem standing, repeated chair standing, standing and walking experiment, and gait analysis.

[0077] Standing with eyes open and standing with eyes closed are corresponding experiments used to evaluate the balance and visual function of individuals. In the experiment, the subjects are required to open or close their eyes, raise their hands forward, stand with their feet together, and hold for 10 seconds. The maximum value of the left or right trunk shaking is taken as the trunk shaking degree index.

[0078] Tandem standing requires the subject to raise both hands forward, toes forward, feet in a straight line, toes of the back foot close to the heel of the front foot, and maintain the standing posture for 10 seconds. The maximum value of the left or right trunk sway is taken as the index of the trunk sway degree, and the reference range is within [2.99, 24.76].

[0079] Semi-tandem standing requires the subject to raise both hands forward, toes forward, and toes of the back foot close to the 1 / 2 of the front foot, and maintain the standing posture for 10 seconds. The maximum value of the left or right trunk sway is taken as the index of the trunk sway degree, and the reference range is within [0,22.61].

[0080] The repeated chair stand-up requires the subject to initially sit on the chair, keep his hands crossed over his chest during the test, stand up from the chair after hearing the start command, stand firmly and sit down again, and repeat three times. The total test time (reference range [7.40 ,17.02], unit s), trunk shaking degree (reference range [16.60 , 41.37], unit deg), standing speed (reference range [0.33 , 0.79], unit m / s), and sitting speed (reference range [0.31 , 0.78], unit m / s) were collected as evaluation indicators.

[0081] The stand-up and walk test required the subjects to initially sit on a chair, stand up from the chair after hearing the start command, walk 3 meters in a straight line, and then turn around and walk back to the starting chair to sit down. The total test time (reference range [7.47, 14.68], unit s), turn time (reference range [0, 2.32], unit s), stand-up time (reference range [0, 0.91], unit s), sit-down time (reference range [0 , 0.76], unit s), and walking speed (reference range [0.77 , 2.00], unit m / s) were collected as evaluation indicators.

[0082] The gait analysis experiment requires the subject to walk 3 meters in a straight line as fast and steadily as possible after hearing the start command, turn around and walk another 3 meters back to the starting point, and repeat three times to complete three round trips. The total test time, stance phase duration, swing phase duration, step width, stride length, step height, and step speed were collected as evaluation indicators.

[0083] The above data provide baseline data for the next part of virtual reality gait characteristics detection.

[0084] In some embodiments, the gait data also includes baseline data, and the baseline data includes one or more of the following: trunk sway when standing with eyes open, trunk sway when standing with eyes closed, trunk sway when standing in series, total test time of repeated chair stand-ups, trunk sway of repeated chair stand-ups, standing-up speed of repeated chair stand-ups, sitting-down speed of repeated chair stand-ups, total test time of stand-up and walk, turning time of stand-up and walk, standing-up time of stand-up and walk, sitting-down time of stand-up and walk, walking speed of stand-up and walk, total test time of gait analysis experiment, duration of standing phase of gait analysis experiment, duration of swing phase of gait analysis experiment, step width of gait analysis experiment, stride of gait analysis experiment, step height of gait analysis experiment, and walking speed of gait analysis experiment. The baseline data and the differential gait features are input into a classifier to obtain the prediction result of glaucoma.

[0085] 3. Unity3D scene construction

[0086] The virtual reality experimental scene was developed and designed with the help of Unity 3D program, and two experimental scenes, the initial UI interface, gait and eye movement, were developed. The present invention uses Visual Studio 2019 as the compiler of C# script.

[0087] 3.1 Information entry UI interface and initial scene

[0088] The user interface (UI) in the present invention is mainly for operators, helping them to record basic information of subjects, set specific tasks for each level, and control the formal start time of the experiment, so as to facilitate the subsequent collation of experimental results. In addition, an initial virtual reality venue will be provided to the subjects, so that they can adapt to the visual and psychological differences in the initial scene.

[0089] The UI interface is divided into three parts: icons, basic information column for subjects, level information input box, and buttons. The basic information column includes the subject ID number, name, and experimental operator. Because each subject needs to repeat the experiment, the "ID number-experimental scene" is used as the naming rule when actually filling in. The experimental scene can be filled in 4 items, "0" corresponds to the pre-experiment, "SKY" corresponds to the outdoor scene, "301-ON" corresponds to the indoor light-on scene, and "301-OFF" corresponds to the indoor light-off scene. The level information input box has 6 required items, corresponding to the 6 levels of the experiment, including walking in a straight line, walking in a curve, walking around obstacles, crossing high poles, crossing low poles, and crossing dynamic balls. The number of repetitions of each level needs to be filled in the box, and the number range is greater than or equal to 1.

[0090] In Unity3D's display space, the UI interface needs to be carried on a canvas in a three-dimensional space, and the rendering mode of the canvas is set to "Screen Space-Overlay". Add various components of the UI interface to the canvas, including four types: pictures, text, input boxes, and buttons. Picture resources are added through the UGUI's image component. Create a new blank image and adjust its color and opacity as the base map; set the texture of the icon's original image file to "2D and UI sprite type", and create a new "UI-image" to select this as the source image, and adjust the appropriate size and position. Text resources are added through the UGUI's "TextMeshPro" text component. Add TMP text at the appropriate three-dimensional coordinates, and customize the text content, font, and style. The input box is added through the UGUI's input field component. After creating a new component, customize the default prompt displayed in the box. The button is added through the UGUI's button component. You can choose the normal display color, highlight color, and press color, and add the text to be displayed on the button at the child object.

[0091] The interactive effect includes two parts: obtaining input information and realizing the corresponding function of the button. Define a public variable of type TMP_InputField in the C# script, assign the previously created input field component to the corresponding public variable, and then you can obtain the text information entered by the user through the script. The implementation process of the button function is to execute a piece of logic code to respond to the event after clicking the button (a mouse click event occurs). The content of the logic code is to load the next experimental scene, using the SceneManager class in UnityEngine.SceneManagement.

[0092] The initial scene is a street scene in clear weather. The realistic and peaceful picture makes it easy for the subjects to quickly adapt to the virtual reality environment.

[0093] 3.2 Construction of virtual reality scene for gait experiment

[0094] The gait experiment includes two scenes, indoor and outdoor. The indoor scene is divided into two sub-scenes: lights on and lights off. The outdoor scene has no brightness change. Each subject needs to conduct three gait experiments in the virtual reality environment, namely indoor lights on, indoor lights off, and outdoor scenes ( Figure 8 ).

[0095] The indoor scene was modeled one-to-one according to the actual experimental site, replicating the hospital corridor. The advantage of building a virtual reality scene is the repeatability and controllability of the experimental environment, which effectively avoids the effect of other furnishings in the cluttered space interfering with the subject's attention. The replica scene retains the architectural layout of the original site (corridor width, floor height), decoration details (wall and floor color, landmarks used in the experiment), lighting information (indoor LED ceiling lights and natural light outside the window), and appropriately omits other unnecessary elements. Because the actual experiments were all conducted during the day, a fixed window light + controllable indoor ceiling light solution was used in the setting of the light source. The light outside the window is provided by a sky box and a parallel light source. The light intensity of the parallel light source remains constant everywhere and does not decay with increasing distance. The indoor light is provided by four point light sources 3.65m above the ground (Y-axis coordinate 3.65), the Z-axis coordinates of the point light sources are 0, 4, 8, and 12, the light intensity is 1, the light source range is 10, and the color is white. Unity's rendering of point light sources basically follows the rule of quadratic attenuation, the intensity of the light source center is 1, and the intensity at the edge of the light source range is close to 0. Within the illumination range of a point light source, the calculation formula for the illumination intensity at a certain position is:

[0096]

[0097] Where I is the light intensity, and r is the distance from the light source to the measurement point (r < light source range). Combining the center point of the experimental area (0, 0, 1.5) and the average distance of the subjects' eyes from the ground 1.70-0.10 = 1.60 (m) as the measurement point, that is, (0,1.6, 1.5), the average indoor light intensity at the human eye when the light is on is about 0.0087. Therefore, the light intensity at the human eye in the light-on and light-off scenes differs by about 0.0087.

[0098] The outdoor scene is an outdoor street scene that is consistent with the initial scene, and the walking range is set within the zebra crossing. The lighting information is provided by the skybox, and the level information is the same as the indoor scene. Figure 8 Shown is a schematic diagram of an experimental scenario provided by an embodiment of the present invention.

[0099] 3.3 Virtual Reality Gait Detection

[0100] The virtual reality gait experiment is designed based on the baseline gait experiment. The subjects are required to walk three meters back and forth seven times. Each round trip involves a different gait task, and corresponding game objects will appear in the virtual reality environment. For example, guidance objects will appear in the walking task: walking trajectory guidance (blue arrow on the ground), walking direction guidance (red arrow within the visual range); obstacle objects will appear in the obstacle walking task: road cones, warning posts, and dynamic balls. The walking direction guidance is a signboard set up at 0m and 3m respectively. The arrows on the signboard will change with the position of the subject, and signs such as "walk forward, turn 180° on the spot, walk to the left, and walk to the right" will appear. While guiding the progress of the experiment, the subjects do not have to keep looking down at the trajectory guidance under their feet, and try to look straight ahead throughout the experiment. See the real-time screen recording of the gait experiment. Fig. 9 shown.

[0101] (1) First round trip: The walking track is a straight line. Initially, the signboard at 3m points forward. When the subject reaches 3m, the signboard instructs the subject to turn around. At the same time, the signboard on the ground points in the opposite direction, and the subject returns to the starting point.

[0102] (2) Second round trip: The walking trajectory is a right-convex curve. Initially, the sign at 3m points to the forward and right direction. When walking to 1.5m, the sign points to the forward and left direction. When walking to 3m, the subject is prompted to turn around. At the same time, the trajectory on the ground indicates a right-convex curve in that direction, and the subject returns to the starting point.

[0103] (3) The third round trip: The walking trajectory is a left convex curve. Initially, the sign at 3m points to the left and forward. When walking to 1.5m, the sign points to the right and forward. When walking to 3m, the subject is prompted to turn around. At the same time, the trajectory on the ground indicates a left convex curve in that direction, and the subject returns to the starting point.

[0104] (4) Fourth round trip: Walking around obstacles. There is an obstacle cone 1m away on the way there, and an obstacle 1m and 2m away on the way back.

[0105] (5) Fifth round trip: high obstacle crossing. The subject needs to cross four higher warning posts to a height of 3 m, and then cross back. The height of the warning post is 1.4 m (height in the y direction = 1.4 m), and the xz coordinates are (0.3, 0.5), (-0.3, 1), (0.3, 2), (-0.3, 2.5).

[0106] (6) Sixth round trip: low obstacle crossing. The height of the warning column is 0.65m (height in the y direction = 0.65m), the xz coordinates remain unchanged, and the rest of the experimental content is consistent with the fifth round trip.

[0107] (7) The seventh round trip: dynamic ball evasion. There is a 3m×1.5m area in front of the subject, and the ball rolls in the area at an initial speed of 1m / s. The ball is a rigid body with a linear damping coefficient of 0 and an angular resistance of 0.05. To prevent the ball from slowing down due to friction and collision, the ball speed after each collision is set to 1.3 times the speed before the collision. The subject needs to walk quickly and steadily from 0m to 3m and then back, and try not to collide with the rolling ball during the process.

[0108] 4. Analysis of gait characteristics of glaucoma patients

[0109] 4.1 Key event information

[0110] The gait experiment includes multiple round trips and different walking tasks. The Update() function in the Unity script is updated once per frame. When the experiment reaches the specified process, the event recording function will be triggered, and the key events at this time will be recorded immediately through File.AppendText() - the start and end time of the experiment, the time points when walking to 0m and 3m, the number of collisions with obstacles, and the limb parts where collisions occurred. Through the recorded time information, the experimental cycle of each subject can be fully extracted, the corresponding time period for each round trip can be divided, and a large amount of invalid data in the preparation stage can be removed.

[0111] 4.2 Limb Sensor Data

[0112] The limb sensors are linked to Unity's character model in real time by the SlimeVR server. The script is called in every frame to record the spatial information of nine key points of the human body at an average sampling frequency of 60Hz - including the three-dimensional coordinates and three-dimensional rotation angles of one headset, two handles and six limb sensors in the virtual reality environment, and output the corresponding text files to facilitate further analysis of human movement patterns.

[0113] Unity specifies a right-handed coordinate system, where the X-axis points to the right in the virtual space, that is, the right side of the character model in the world coordinate system; the Y-axis points to the top of the virtual space, that is, the direction from the feet to the top of the head in the world coordinate system; the Z-axis points to the front of the virtual space, that is, the front direction of the character model in the world coordinate system. For rotation information, the X, Y, and Z components represent the rotation angles around the X, Y, and Z axes, respectively. If the coordinates and rotation angles of the end points of the limb key points are known, the spatial state of the limb point can be obtained. By using the principle of inverse dynamics combined with the postures of each limb key point, the spatial posture and state of the entire character model at this time can be determined.

[0114] 4.2.1 Raw data display

[0115] Fig.10 The changes in the Y-axis coordinates of five key limb points, namely the head, chest, waist, left knee and left foot, over time during the entire gait experiment are listed, which more intuitively shows the characteristics of the height changes of various body parts during walking: the head remains relatively stable in the Y direction, and there is slight and irregular head shaking or swaying accompanied by specific tasks; the chest and waist show regular ups and downs with a small amplitude; the height of the knees and feet can be seen to change obviously regularly, among which the foot has the largest amplitude of change, which is consistent and consistent with the way the human body moves.

[0116] Walking is accompanied by coordinated movements of various parts of the human body. Take a single round trip and observe the changes in the Z-axis coordinates of the head, hands, knees, and feet over time. The visual graph ( Fig.11 ) shows that when walking, the movement range of the hands is relatively the smallest, followed by the knees, and the feet are the largest. This is because the arms generally play a role in balance and coordination, showing a swing opposite to the legs, and the swing range is small in non-violent movements such as slow walking; while when turning, a sudden increase in the amplitude of the hands can be observed. The human body often drives the body to turn quickly on the spot by waving the hands, and maintains the dynamic balance posture of the limbs. On the other hand, the knees promote the stepping action, and the alternating steps of the feet push the body forward and reach the designated position.

[0117] 4.2.2 Data Preprocessing

[0118] ① Division of straight and turning: A complete gait experiment in the same scenario includes multiple round trips, which can be divided into multiple straight segments and turning segments. Since starting, turning, and stopping involve extremely fast acceleration or deceleration, 0.2m is reserved for each start and end, and the effective data range of 0.2m to 2.8m is intercepted as the average speed, and the minimum straight distance threshold is set to 2.5m.

[0119] Table 1 Sliding window partitioning algorithm for straight segments

[0120]

[0121] The designed sliding window algorithm combines a reasonable threshold to effectively divide the starting and ending points of the straight segment. Fig.12 The straight segment division result of a complete gait experiment is given. Adjacent starting and ending points are grouped together. The straight starting point and ending point are marked in red and green respectively. The turning and non-standard walking segments (as shown in the x-axis 1800 to 2000) are successfully excluded.

[0122] ② Gait phase division: Gait phase is a description of the different stages of the gait cycle. A gait cycle can be divided into two basic phases, the stance phase and the swing phase. In order to achieve the basic function of walking, each step involves the periodic transformation and alignment between the supporting leg, the swinging leg and the body's center of gravity. By analyzing the individual's movement pattern according to the walking phase, the proportion of the basic phase can be determined more intuitively. The balance and falling tendency can be analyzed through the double support phase and the single support phase, and then the kinematic and biomechanical characteristics of walking can be studied.

[0123] The moment when the heel contacts the ground is called Initial Contact (IC), which is generally regarded as the starting point of the gait cycle. At this stage, the hips are bent, the knees are extended, and the ankle joints are dorsiflexed, and the leg is about to start to bear the weight of the body as the supporting leg. In the straight segment of the three-meter return task, the height characteristics of the foot sensor are more distinct and are most suitable for the division of gait phases. Specifically, the motion waveforms of both feet change regularly and periodically in the Y-axis (perpendicular to the ground), with obvious peaks and troughs. Therefore, the point where the Y-direction speed quickly returns to zero is selected to represent the lowest point (trough) of the ankle, and then the start and end points of the single support phase are searched forward and backward respectively.

[0124] Taking into full consideration the movement law of human walking, the present invention designs an algorithm for selecting the start and end points of the stance phase. First, the moment when the ankle is at the lowest point is found by taking the first-order derivative as 0. Starting from the lowest point, the time point when the heel contacts the ground and the foot leaves the ground is found by using the height threshold y_height=0.02. Then, using the results of the previous straight segment sliding window division algorithm, only the start and end points of the stance phase within the straight interval are retained to screen the gait cycles that meet the conditions.

[0125] Since the stance phase and swing phase of a single foot are performed alternately, the swing phase is the section between the two stance phases. For the whole of both feet, the left single support phase represents the stage when the left foot is in the stance phase and the right foot is in the swing phase, the right single support phase represents the stage when the right foot is in the stance phase and the left foot is in the swing phase, and the double support phase represents the stage when both feet are in the stance phase at the same time. In this way, the gait phases of both feet are successfully divided and the preprocessing of gait data is completed.

[0126] Table 2 Algorithm for the start and end points of the stance phase

[0127]

[0128] In some embodiments, selecting a gait cycle based on a selection algorithm for the start and end points of the stance phase includes: selecting a gait cycle between two adjacent start and end points based on the output start and end time points.

[0129] In one embodiment, the data of the left ankle sensor is segmented to select the y(t) of the straight phase, and the y(t) of the straight phase is input into the selection algorithm of the start and end points of the stance phase, and the time point of the left stance phase is output. , select a gait cycle from the output left foot stance phase time point, the gait cycle starts at , ending at .

[0130] 4.2.2 Data Analysis

[0131] ① Compare the gait parameters measured by the gait meter in real scenarios with the gait parameters calculated by limb sensors in virtual reality scenarios, including step width, stride left, stride right, step height left, step height right, step speed, step frequency left and step frequency right.

[0132] ② In virtual reality scenarios, compare the gait phases in three scenarios: indoor lights on, indoor lights off, and outdoor scenes.

[0133] In some embodiments, a difference feature extraction network is used to perform the two comparisons mentioned above, and the training set samples consisting of glaucoma and normal people are measured under different lighting conditions in a virtual reality environment to obtain a gait data set. The gait data set is input into machine learning for training to obtain a trained difference feature extraction network, and the difference feature extraction network can be used for feature extraction of gait data of future test subjects under different lighting conditions.

[0134] 5. Establishing a glaucoma-normal classification model

[0135] 5.1 Composition of raw data

[0136] Each limb sensor raw file contains all the limb information of the subject in the scene, with "_body.csv" as the suffix. The file contains 55 columns, with the first column recording the timestamp, which is a widely used time representation method in operating systems. It uses Greenwich Mean Time as the benchmark, and the unit of the sixth decimal point of the timestamp is seconds. For example, the difference between 1674956974000000 and 11674956975000000 is 1000000, which is actually an interval of 1.000000s. The 2nd to 55th columns record the 6 sensor data (position coordinates x, y, z and rotation angles rx, ry, rz) of 9 parts: head (Head), chest (Chest), waist (Waist), left hand (LeftHand), right hand (RightHand), left knee (LeftKnee), right knee (RightKnee), left foot (LeftFootAnkle), right foot (RightFootAnkle). The column naming rules are in brackets.

[0137] 5.2 Deep Learning Datasets

[0138] The stride time is defined as the time from one foot's heel to the next heel strike, that is, the duration of a gait cycle. For an adult around 50 years old, the stride time is about 0.95~1.32s. The overall sampling frequency is 60Hz, which is downsampled to 20Hz. 25 rows are selected, which contain a total of All limb sensors within the time period extract the human kinematic information within a gait cycle. Every 25 rows of time series data form a group, and 54 columns of limb data are flattened into one row, with a total of 25×54=1350 features.

[0139] Based on this, the features of the gait cycles of 18 tasks in 6 tasks under 3 different scenarios were extracted, input into the difference feature extraction network training and extracted the difference gait features, and a deep learning data set was constructed with the difference gait features. The category of the subject corresponding to the file was used as the label, 0 represents normal subjects and 1 represents glaucoma patients.

[0140] 5.3 Glaucoma Classification Network Model

[0141] The data is first input into the deep learning network module as a whole, and then passes through the classification network to generate the final prediction label.

[0142] Build a 1D CNN model: Use one-dimensional convolutional layers (Conv1D) as the main body of the model. Convolutional layers can capture local dependency features in time series. Choose an appropriate convolution kernel size (i.e., time window size). Add multiple convolutional layers to gradually extract more abstract features of time series data. Use pooling layers after convolutional layers to reduce the number of parameters and prevent overfitting.

[0143] Add a regularization layer: Using the Dropout layer can reduce the risk of overfitting the model and improve the generalization ability of the model by randomly ignoring some neuron outputs.

[0144] Design the output layer: For the binary classification problem (distinguishing between glaucoma patients and normal people), the output layer is a layer with a single neuron and a sigmoid activation function, which is used to output the probability between the two categories.

[0145] Compile the model: Select the loss function binary_crossentropy. Select the optimizer adam and set hyperparameters such as learning rate. Define evaluation metrics, including accuracy and precision.

[0146] Train the model: Use the training data to train the model and monitor the model performance through the validation data to prevent overfitting. Adjust the training epochs and batch size to optimize the model performance.

[0147] Model evaluation and testing: Evaluate model performance on the test set to verify the model's generalization ability to unknown data. Use metrics such as confusion matrix, precision, recall, and F1 score for detailed evaluation.

[0148] Model tuning: According to the performance of the model on the validation set and test set, adjust the model architecture, hyperparameters, etc. to optimize the model to achieve better performance.

[0149] Ultimately, accurate classification of glaucoma patients and normal people can be achieved.

[0150] In some embodiments, gait data of the subject are collected when ① walking along a straight path with lights on indoors, ② walking around obstacles with lights on indoors, ③ crossing a dynamic ball with lights on indoors, ④ walking along a straight path with lights off indoors, ⑤ walking around obstacles with lights off indoors, ⑥ crossing a dynamic ball with lights off indoors, ⑦ walking along a straight path in outdoor scenes, ⑧ walking around obstacles in outdoor scenes, and ⑨ crossing a dynamic ball in outdoor scenes. The gait data include data from sensors of key points of the body. The above 9 groups of data are divided to obtain gait data of a gait cycle in the straight walking stage. The 9 groups of data, i.e., the obtained 9 groups of gait cycles, are input into a trained difference feature extraction network to extract gait difference features, and the gait difference features are input into a classifier to obtain a prediction result of glaucoma of the subject.

[0151] In some embodiments, gait data of the subject are collected when ① walking along a straight path with lights on indoors, ② walking around obstacles with lights on indoors, ③ crossing a dynamic ball with lights on indoors, ④ walking along a straight path with lights off indoors, ⑤ walking around obstacles with lights off indoors, ⑥ crossing a dynamic ball with lights off indoors, ⑦ walking along a straight path in outdoor scenes, ⑧ walking around obstacles in outdoor scenes, and ⑨ crossing a dynamic ball in outdoor scenes. The gait data include data from sensors of key points of the body, stride, step width, step frequency, and the number of collisions with obstacles. The above 9 groups of data are divided to obtain gait data of a gait cycle in the straight walking stage. The 9 groups of data, i.e., the 9 groups of gait cycles obtained, are input into a trained difference feature extraction network to extract gait difference features, and the gait difference features are input into a classifier to obtain a prediction result of glaucoma of the subject.

[0152] In some embodiments, gait data of the subject are collected when ① walking along a straight path with lights on indoors, ② walking around obstacles with lights on indoors, ③ crossing a dynamic ball with lights on indoors, ④ walking along a straight path with lights off indoors, ⑤ walking around obstacles with lights off indoors, ⑥ crossing a dynamic ball with lights off indoors, ⑦ walking along a straight path in an outdoor scene, ⑧ walking around obstacles in an outdoor scene, and ⑨ crossing a dynamic ball in an outdoor scene. The gait data include data from sensors of key points of the body, stride, step width, step frequency, number of collisions with obstacles, and time to walk to a calibration point. The above 9 groups of data are divided to obtain gait data of a gait cycle in the straight walking stage. The 9 groups of data, i.e., the 9 groups of gait cycles obtained, are input into a trained difference feature extraction network to extract gait difference features, and the gait difference features are input into a classifier to obtain a prediction result of glaucoma of the subject.

[0153] In some embodiments, gait data of the subject are collected when ① walking along a straight path with the lights on indoors, ② walking around obstacles with the lights on indoors, ③ crossing a dynamic ball with the lights on indoors, ④ walking along a straight path with the lights off indoors, ⑤ walking around obstacles with the lights off indoors, ⑥ crossing a dynamic ball with the lights off indoors, ⑦ walking along a straight path in an outdoor scene, ⑧ walking around obstacles in an outdoor scene, ⑨ crossing a dynamic ball in an outdoor scene, and ⑩ gait data of a baseline task, wherein the gait data of the baseline task include the trunk sway when standing with eyes open, the trunk sway when standing with eyes closed, the trunk sway when standing in series, and the total gait data of repeated chair stand-ups. time, trunk shaking degree of repeated chair stand-ups, standing speed of repeated chair stand-ups, sitting speed of repeated chair stand-ups, total test time of stand-up and walk, turning time of stand-up and walk, standing time of stand-up and walk, sitting time of stand-up and walk, walking speed of stand-up and walk, total test time of gait analysis experiment, standing phase duration of gait analysis experiment, swing phase duration of gait analysis experiment, step width of gait analysis experiment, stride of gait analysis experiment, step height of gait analysis experiment, walking speed of gait analysis experiment, the data of the first 9 groups are divided to obtain gait data of one gait cycle in the straight walking stage, these 9 groups, that is, the obtained 9 groups of gait cycle data are input into the trained difference feature extraction network to extract gait difference features, and the gait difference features and the gait data of the baseline task of the tenth group are input into the classifier to obtain the prediction result of glaucoma of the subject.

[0154] In some embodiments, based on the fact that the specific gait characteristics of glaucoma patients are more prominent in unfamiliar environments, low light conditions, and when there are obstacles, different lighting conditions are set, and whether there are obstacles is set, so as to collect the data of the subject walking along a straight path with the lights on indoors, walking around obstacles with the lights on indoors, crossing a dynamic ball with the lights on indoors, walking along a curve with the lights on indoors, crossing a high pole with the lights on indoors, crossing a low pole with the lights on indoors, walking along a straight path with the lights off indoors, walking around obstacles with the lights off indoors, crossing a dynamic ball with the lights off indoors, and walking along a straight path with the lights off indoors. The gait data include walking along a curve when the lights are turned off indoors, ⑪ crossing a high pole when the lights are turned off indoors, ⑫ crossing a low pole when the lights are turned off indoors, ⑬ walking along a straight road in an outdoor scene, ⑭ walking around an obstacle in an outdoor scene, ⑮ crossing a dynamic ball in an outdoor scene, ⑯ walking along a curve in an outdoor scene, ⑰ crossing a high pole in an outdoor scene, and ⑱ crossing a low pole in an outdoor scene. The gait data includes data from sensors of key points of the body, stride, step width, step frequency, and the number of collisions with obstacles. The above 18 groups of data are divided to obtain gait data of a gait cycle in the straight walking stage. The 18 groups of data, i.e., the obtained 18 gait cycles, are input into the trained difference feature extraction network to extract gait difference features, and the gait difference features are input into the classifier to obtain the prediction result of glaucoma of the subject.

[0155] Figure 3 is a schematic diagram of a computer device provided by an embodiment of the present invention, such as Figure 3 As shown, the device may include: one or more processors, and one or more memories; wherein the memories store computer-readable codes, and when the computer-readable codes are run by the one or more processors, the method described above may be executed.

[0156] The processor in this embodiment can be an integrated circuit chip with signal processing capabilities. The above processor can be a general-purpose processor, a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components. The disclosed methods, operations and logic block diagrams in the embodiments of the present disclosure can be implemented or executed. The general-purpose processor can be a microprocessor or the processor can also be any conventional processor, etc., which can be an X86 architecture or an ARM architecture.

[0157] In general, various example embodiments of the present disclosure may be implemented in hardware or dedicated circuits, software, firmware, logic, or any combination thereof. Certain aspects may be implemented in hardware, while other aspects may be implemented in firmware or software that may be executed by a controller, microprocessor, or other computing device. When various aspects of the disclosed embodiments are illustrated or described as block diagrams, flow charts, or using some other graphical representation, it will be understood that the blocks, devices, systems, techniques, or methods described herein may be implemented in hardware, software, firmware, dedicated circuits or logic, general purpose hardware or controllers or other computing devices, or some combination thereof as non-limiting examples.

[0158] For example, the method or device according to the embodiment of the present disclosure may also be implemented by Figure 4 The architecture of the computing device 3000 shown in FIG. Figure 4 As shown, the computing device 3000 may include a bus 3010, one or more CPUs 3020, a read-only memory (ROM) 3030, a random access memory (RAM) 3040, a communication port 3050 connected to a network, an input / output component 3060, a hard disk 3070, etc. The storage device in the computing device 3000, such as ROM 3030 or hard disk 3070, may store various data or files used for processing and / or communication of the method provided by the present disclosure and program instructions executed by the CPU. The computing device 3000 may also include a user interface 3080. Of course, Figure 4 The architecture shown is only exemplary and can be omitted according to actual needs when implementing different devices. Figure 4 One or more components of a computing device are shown.

[0159] The embodiment of the present invention also provides a computer-readable storage medium, such as Figure 5As shown, it is a schematic diagram of a storage medium provided by an embodiment of the present invention, and a computer readable instruction 4010 is stored on the computer storage medium 4020. When the computer readable instruction 4010 is executed by the processor, the method according to the embodiment of the present disclosure described with reference to the above figures can be executed. The computer readable storage medium in the embodiment of the present disclosure can be a volatile memory or a non-volatile memory, or can include both volatile and non-volatile memories. The non-volatile memory can be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM) or a flash memory. The volatile memory can be a random access memory (RAM), which is used as an external cache. By way of example and not limitation, many forms of RAM are available, such as static random access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDRSDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link dynamic random access memory (SLDRAM), and direct memory bus random access memory (DR RAM). It should be noted that the memory of the methods described herein is intended to include, but is not limited to, these and any other suitable types of memory. It should be noted that the memory of the methods described herein is intended to include, but is not limited to, these and any other suitable types of memory.

[0160] The embodiments of the present disclosure also provide a computer program product or system, which implements the steps of the above method when the computer program is executed by a processor.

[0161] A system for predicting glaucoma based on gait characteristics, such as Figure 2 As shown, including:

[0162] Data acquisition module 201: used to obtain each group of gait data of the subject under different lighting conditions in the virtual reality environment, wherein the different lighting conditions include: indoor lights on, indoor lights off, and outdoor scenes;

[0163] The difference feature extraction module 202 is used to compare the differences between the groups of gait data to obtain difference gait features;

[0164] Prediction module 203: used to construct a feature set based on the differential gait features, and input the feature set into a classifier to obtain whether the subject suffers from glaucoma.

[0165] It should be noted that the flowcharts and block diagrams in the accompanying drawings illustrate the possible architecture, functions and operations of the systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each box in the flowchart or block diagram can represent a module, a program segment, or a part of a code, and the module, program segment, or a part of the code contains one or more executable instructions for implementing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two 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 box in the block diagram and / or flowchart, and the combination of boxes in the block diagram and / or flowchart 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.

[0166] In general, various example embodiments of the present disclosure may be implemented in hardware or dedicated circuits, software, firmware, logic, or any combination thereof. Certain aspects may be implemented in hardware, while other aspects may be implemented in firmware or software that may be executed by a controller, microprocessor, or other computing device. When various aspects of the disclosed embodiments are illustrated or described as block diagrams, flow charts, or using some other graphical representation, it will be understood that the blocks, devices, systems, techniques, or methods described herein may be implemented in hardware, software, firmware, dedicated circuits or logic, general purpose hardware or controllers or other computing devices, or some combination thereof as non-limiting examples.

[0167] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.

[0168] In the several embodiments provided in the present application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces, devices or units, which can be electrical, mechanical or other forms.

[0169] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0170] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0171] A person skilled in the art may understand that all or part of the steps in the various methods of the above embodiments may be completed by instructing related hardware through a program, and the program may be stored in a computer-readable storage medium, and the storage medium may include: a read-only memory (ROM), a random access memory (RAM), a disk or an optical disk, etc.

[0172] A person skilled in the art can understand that all or part of the steps in the above-mentioned embodiment method can be completed by instructing related hardware through a program, and the program can be stored in a computer-readable storage medium. The above-mentioned storage medium can be a read-only memory, a disk or an optical disk, etc.

[0173] The above is a detailed introduction to a computer device provided by the present invention. For a person skilled in the art, according to the concept of the embodiments of the present invention, there may be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as limiting the present invention.

Claims

1. A method for predicting glaucoma based on gait characteristics, characterized in that: The method comprises: S1: Obtain each group of gait data by measuring the subject performing walking tasks under different lighting conditions in a virtual reality environment, wherein the different lighting conditions include: indoor lights on, indoor lights off, and outdoor scenes; S1 specifically includes: obtaining each group of gait data by measuring the subject performing different walking tasks under different lighting conditions in a virtual reality environment, wherein the walking tasks include any one or more of the following: walking along a straight road, walking around obstacles, crossing a dynamic ball, walking on a curve, crossing a high pole, and crossing a low pole; The gait data includes sensor data on key points of the body of the subject when walking. The subject wears sensors on key points of the body when walking under different lighting conditions in a virtual reality environment. The key points of the body include one or more of the following: head, chest, waist, left hand, right hand, left knee, right knee, left foot, right foot. The sensor data includes position coordinates, rotation angles and time points. The position coordinates include x-direction, y-direction and z-direction. The rotation angles include angles deviating from the x-direction, angles deviating from the y-direction and angles deviating from the z-direction. The groups of gait data are divided into a straight-ahead phase and a turning phase, and statistically analyzing the gait data of each group of straight-ahead phases by a machine learning method to obtain differential gait features; the gait data are divided into a straight-ahead phase and a turning phase according to a straight-ahead segment sliding window division algorithm; Based on the straight walking phase, each group of gait cycles is screened and obtained, and the gait cycles of each group are statistically analyzed by a machine learning method to obtain at least two groups of statistically different gait features; a gait cycle includes a stance phase and a swing phase, and the gait cycle is screened based on an algorithm for selecting the start and end points of the stance phase; the algorithm for selecting the start and end points of the stance phase includes the following steps: Input the vertical direction data of the left / right foot sensor; Filtering the vertical direction data of the foot sensor to obtain filtered data; The filtered data is subjected to a first-order derivative with respect to time, and the lowest point of the left / right ankle is determined according to the time point when the first-order derivative is 0; The vertical height threshold of the lowest point of the ankle in the vertical direction is used to determine the start and end vertical coordinates of the standing phase, and the start and end time points of the left / right foot standing phase are determined according to the start and end vertical coordinates with the closest time span, and all the start and end time points are output as the start and end points of the standing phase; The virtual reality environment is developed and designed using Unity3D program; the indoor lighting scene is set as follows: the indoor scene replicates the real building layout, decoration details, and lighting information, and the lighting information uses fixed light outside the window to simulate outdoor natural light, and uses controllable indoor ceiling lights to simulate indoor LED ceiling light; the fixed light outside the window is provided by a sky box and a parallel light source, and the illumination intensity of the parallel light source remains constant everywhere; the controllable indoor ceiling light includes four point light sources on the top of the room, and the point light sources form the four vertices of a square, the illumination intensity of the point light source is 1, the light source range is 10, and the color is white; within the illumination range of the point light source, the illumination intensity calculation formula of a certain position is expressed as follows: Where I is the light intensity, r is the distance between the light source and the measurement point; The outdoor scene is a street scene under a sunny weather background, the walking range is set within the zebra crossing, and the lighting information is provided by the sky box; S2: performing statistical analysis on the gait data of each group by a machine learning method to obtain gait features with statistical differences between at least two groups; S3: constructing a feature set based on the differential gait features, and inputting the feature set into a classifier to obtain a classification result of whether the subject suffers from glaucoma; the classifier is composed of a convolution layer, a regularization layer, and an output layer; the convolution layer captures the local dependency features in the time series, the regularization layer reduces the risk of model overfitting, and the output layer outputs a prediction result to determine whether the subject is a normal person or a glaucoma patient.

2. A computer device, characterized in that: The device comprises: a memory and a processor; the memory is used to store a computer program; the processor executes the computer program to implement the steps of the method according to claim 1.

3. A computer-readable storage medium, characterized in that: A computer program is stored thereon, and when the computer program is executed by a processor, the steps of the method according to claim 1 are implemented.

4. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method according to claim 1 are implemented.