CN117292810A - Visual method and device for respiratory muscle strength test - Google Patents
Visual method and device for respiratory muscle strength test Download PDFInfo
- Publication number
- CN117292810A CN117292810A CN202311393956.8A CN202311393956A CN117292810A CN 117292810 A CN117292810 A CN 117292810A CN 202311393956 A CN202311393956 A CN 202311393956A CN 117292810 A CN117292810 A CN 117292810A
- Authority
- CN
- China
- Prior art keywords
- image frame
- expiratory pressure
- pressure gradient
- user
- preset
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G16—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR SPECIFIC APPLICATION FIELDS
- G16H—HEALTHCARE INFORMATICS, i.e. INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR THE HANDLING OR PROCESSING OF MEDICAL OR HEALTHCARE DATA
- G16H40/00—ICT specially adapted for the management or administration of healthcare resources or facilities; ICT specially adapted for the management or operation of medical equipment or devices
- G16H40/60—ICT specially adapted for the management or administration of healthcare resources or facilities; ICT specially adapted for the management or operation of medical equipment or devices for the operation of medical equipment or devices
- G16H40/63—ICT specially adapted for the management or administration of healthcare resources or facilities; ICT specially adapted for the management or operation of medical equipment or devices for the operation of medical equipment or devices for local operation
-
- A—HUMAN NECESSITIES
- A61—MEDICAL OR VETERINARY SCIENCE; HYGIENE
- A61B—DIAGNOSIS; SURGERY; IDENTIFICATION
- A61B5/00—Measuring for diagnostic purposes; Identification of persons
- A61B5/22—Ergometry; Measuring muscular strength or the force of a muscular blow
- A61B5/224—Measuring muscular strength
-
- A—HUMAN NECESSITIES
- A61—MEDICAL OR VETERINARY SCIENCE; HYGIENE
- A61B—DIAGNOSIS; SURGERY; IDENTIFICATION
- A61B5/00—Measuring for diagnostic purposes; Identification of persons
- A61B5/72—Signal processing specially adapted for physiological signals or for diagnostic purposes
Landscapes
- Health & Medical Sciences (AREA)
- Engineering & Computer Science (AREA)
- Life Sciences & Earth Sciences (AREA)
- Biomedical Technology (AREA)
- General Health & Medical Sciences (AREA)
- Medical Informatics (AREA)
- Public Health (AREA)
- Heart & Thoracic Surgery (AREA)
- Veterinary Medicine (AREA)
- Animal Behavior & Ethology (AREA)
- Surgery (AREA)
- Physics & Mathematics (AREA)
- Molecular Biology (AREA)
- Biophysics (AREA)
- Pathology (AREA)
- Physical Education & Sports Medicine (AREA)
- Business, Economics & Management (AREA)
- Epidemiology (AREA)
- Primary Health Care (AREA)
- General Business, Economics & Management (AREA)
- Artificial Intelligence (AREA)
- Computer Vision & Pattern Recognition (AREA)
- Physiology (AREA)
- Psychiatry (AREA)
- Signal Processing (AREA)
- Measurement Of The Respiration, Hearing Ability, Form, And Blood Characteristics Of Living Organisms (AREA)
Abstract
Description
技术领域Technical field
本发明涉及医疗康复设备技术领域,尤其涉及一种呼吸肌力量测试可视化的方法及装置。The present invention relates to the technical field of medical rehabilitation equipment, and in particular to a method and device for visualizing respiratory muscle strength testing.
背景技术Background technique
呼吸系统是人呼吸的器官和组织构成的系统,与呼吸运动相关的肌肉也是呼吸系统的一部分,肺部康复的目标是改善患有肺部疾病的人的生活质量,如慢性阻塞性肺病(COPD)、哮喘、支气管扩张、囊性纤维化、间质性肺病、肺癌和神经肌肉疾病失调等,肺部康复锻炼有助于改善呼吸短促,增强患者的运动耐量,提高生活幸福感,减少就诊次数。肺部康复锻炼的例子包括激励性肺活量计、吹气球、吸管吹泡泡和噘嘴呼吸练习。The respiratory system is a system of organs and tissues for human breathing. The muscles related to respiratory movements are also part of the respiratory system. The goal of pulmonary rehabilitation is to improve the quality of life of people with lung diseases, such as chronic obstructive pulmonary disease (COPD). ), asthma, bronchiectasis, cystic fibrosis, interstitial lung disease, lung cancer, and neuromuscular disorders, etc. Pulmonary rehabilitation exercises can help improve shortness of breath, enhance patients’ exercise tolerance, improve their sense of well-being, and reduce the number of doctor visits. . Examples of pulmonary rehabilitation exercises include motivational spirometers, balloon blowing, straw blowing bubbles, and pursed-lip breathing exercises.
目前,市面上有一些简单的呼吸训练器设备,但这些设备并不提供任何测试功能来测量呼吸肌的力量情况,同时这些简单的训练器设备采用传统的机械方案,无法记录使用患者的表现数据,因此也无法分析患者的表现和健康情况,使得无法高效地进对患者的呼吸肌力量进行精确和准确的记录,同时现有的呼吸康复训练设备(如激励性肺活量计、多气阻呼吸训练器)机械结构非常简单、基础,提供的呼吸练习有限,对患者的吸引力也较差,导致患者对现有的呼吸训练器很快就失去了兴趣,进而导致呼吸肌力量测试康复的效果较差。Currently, there are some simple respiratory trainer devices on the market, but these devices do not provide any testing functions to measure the strength of respiratory muscles. At the same time, these simple trainer devices use traditional mechanical solutions and cannot record patient performance data. , therefore it is impossible to analyze the patient's performance and health status, making it impossible to accurately and accurately record the patient's respiratory muscle strength. At the same time, existing respiratory rehabilitation training equipment (such as incentive spirometer, multi-resistance breathing training The mechanical structure of the machine is very simple and basic, and it provides limited breathing exercises and is less attractive to patients. As a result, patients quickly lose interest in existing breathing trainers, which in turn leads to poor rehabilitation effects in respiratory muscle strength testing. .
因此,目前亟需一种能够提高呼吸肌力量测量记录的精度和效率、能够准确地对呼吸肌力量测量进行可视化的方法。Therefore, there is an urgent need for a method that can improve the accuracy and efficiency of respiratory muscle strength measurement recording and accurately visualize respiratory muscle strength measurement.
发明内容Contents of the invention
本发明提供了一种呼吸肌力量测试可视化的方法及装置,以解决现有技术中无法高效地对呼吸肌力量进行精确和准确的记录、无法准确可视化测量过程和结果的技术问题。The present invention provides a method and device for visualizing respiratory muscle strength testing to solve the technical problems in the prior art that the respiratory muscle strength cannot be accurately and accurately recorded efficiently and the measurement process and results cannot be accurately visualized.
为了解决上述技术问题,本发明实施例提供了一种呼吸肌力量测试可视化的方法,包括:In order to solve the above technical problems, embodiments of the present invention provide a method for visualizing respiratory muscle strength testing, including:
在显示屏中显示初始图像帧,并响应于用户对吹嘴装置的呼气,通过压力传感器,实时获取所述用户的呼气压力;Display the initial image frame on the display screen, and in response to the user exhaling on the mouthpiece device, obtain the exhalation pressure of the user in real time through the pressure sensor;
根据预设呼气压力梯度范围,确定当前的呼气压力所在的呼气压力梯度,并得到当前的呼气压力梯度对应的显示图像帧;其中,每一个呼气压力梯度对应有一个显示图像帧,每一个呼气压力梯度表示预设呼气压力梯度范围中的一个子范围;According to the preset expiratory pressure gradient range, determine the expiratory pressure gradient where the current expiratory pressure lies, and obtain a display image frame corresponding to the current expiratory pressure gradient; wherein, each expiratory pressure gradient corresponds to a display image frame , each expiratory pressure gradient represents a sub-range in the preset expiratory pressure gradient range;
将所述显示屏中的初始图像帧,更新为当前的呼吸测量梯度对应的显示图像帧,从而实现呼吸肌力量的测试可视化。The initial image frame in the display screen is updated to the display image frame corresponding to the current respiratory measurement gradient, thereby achieving visualization of the test of respiratory muscle strength.
作为优选方案,在显示屏中显示初始图像帧之前,还包括:As a preferred solution, before displaying the initial image frame on the display screen, it also includes:
响应于用户所选择的测试等级,根据所述测试等级,得到预设呼气压力梯度范围;其中,每一个测试等级对应有一个预设呼气压力梯度范围,所述呼气压力梯度范围包括若干个呼气压力梯度。In response to the test level selected by the user, a preset expiratory pressure gradient range is obtained according to the test level; wherein each test level corresponds to a preset expiratory pressure gradient range, and the expiratory pressure gradient range includes several expiratory pressure gradient.
作为优选方案,所述在显示屏中显示初始图像帧,并响应于用户对吹嘴装置的呼气,通过压力传感器,实时获取所述用户的呼气压力,具体包括:As a preferred solution, the initial image frame is displayed on the display screen, and in response to the user exhaling on the mouthpiece device, the user's exhalation pressure is obtained in real time through a pressure sensor, specifically including:
根据所述呼气压力梯度的数量,确定预设动画的显示图像帧的数量,从而在显示屏中显示预设动画的初始图像帧;Determine the number of display image frames of the preset animation according to the number of the expiratory pressure gradient, thereby displaying the initial image frame of the preset animation on the display screen;
响应于用户对吹嘴装置的呼气,通过压力传感器实时获取所述用户的呼气压力,并通过时钟记录所述用户的呼气压力所对应的时间。In response to the user exhaling on the mouthpiece device, the user's exhalation pressure is acquired in real time through a pressure sensor, and the time corresponding to the user's exhalation pressure is recorded through a clock.
作为优选方案,所述根据预设呼气压力梯度范围,确定当前的呼气压力所在的呼气压力梯度,并得到当前的呼气压力梯度对应的显示图像帧,具体包括:As a preferred solution, determining the expiratory pressure gradient where the current expiratory pressure is located according to the preset expiratory pressure gradient range, and obtaining a display image frame corresponding to the current expiratory pressure gradient, specifically includes:
确定当前实时的呼气压力,在所述预设呼气压力梯度范围中对应的呼气压力梯度;其中,预设呼气压力梯度范围中的每一个呼气压力梯度由小到大排序;Determine the current real-time expiratory pressure and the corresponding expiratory pressure gradient in the preset expiratory pressure gradient range; wherein each expiratory pressure gradient in the preset expiratory pressure gradient range is ordered from small to large;
将每一个呼气压力梯度的排序,与所述预设动画的显示图像帧建立索引关系,从而得到当前实时的呼气压力所在的呼气压力梯度对应的最终显示图像帧;其中,所述预设动画的显示图像帧的数量与所述呼气压力梯度的数量相同。Establish an index relationship between the sorting of each expiratory pressure gradient and the display image frame of the preset animation, thereby obtaining the final display image frame corresponding to the expiratory pressure gradient where the current real-time expiratory pressure is located; wherein, the preset animation It is assumed that the number of displayed image frames of the animation is the same as the number of expiratory pressure gradients.
作为优选方案,所述将所述显示屏中的初始图像帧,更新为当前的呼吸测量梯度对应的显示图像帧,具体包括:As a preferred solution, updating the initial image frame in the display screen to a display image frame corresponding to the current respiratory measurement gradient specifically includes:
根据当前呼气压力梯度在预设呼气压力梯度范围中的排序位置,得到当前呼气压力梯度排序位置之前所有的呼气压力梯度及其对应的显示图像帧,作为待显示图像帧集;其中,所述待显示图像帧集中的每一个显示图像帧按照其对应的呼气压力梯度由小到大排序;According to the sorting position of the current expiratory pressure gradient in the preset expiratory pressure gradient range, all expiratory pressure gradients before the current expiratory pressure gradient sorting position and their corresponding display image frames are obtained as a set of image frames to be displayed; where , each display image frame in the set of image frames to be displayed is sorted from small to large according to its corresponding expiratory pressure gradient;
响应于用户对吹嘴装置的呼气,在每延迟预设时间后,按照所述待显示图像帧集中的每一个显示图像帧的顺序,依次在所述显示屏中更新显示所述待显示图像帧集中的显示图像帧,直至所述待显示图像帧集中的所有显示图像帧均更新了一遍后,最终在所述显示屏中更新为最终显示图像帧。In response to the user exhaling on the mouthpiece device, after each delay of a preset time, the image to be displayed is sequentially updated and displayed in the display screen according to the order of each displayed image frame in the set of image frames to be displayed. The display image frames in the frame set are updated to the final display image frame in the display screen until all the display image frames in the image frame set to be displayed are updated once.
作为优选方案,在更新为当前的呼吸测量梯度对应的显示图像帧之前,还包括:As a preferred solution, before updating the display image frame corresponding to the current respiratory measurement gradient, it also includes:
根据所述用户的实时呼气压力所对应的时间,从而计算出维持在该实时呼气压力对应的呼气压力梯度的持续时间;Calculate the duration of the expiratory pressure gradient maintained at the real-time expiratory pressure according to the time corresponding to the user's real-time expiratory pressure;
当所述持续时间大于或等于预设保持时间时,则更新为当前的呼吸测量梯度对应的显示图像帧;When the duration is greater than or equal to the preset holding time, the display image frame corresponding to the current respiratory measurement gradient is updated;
当所述持续时间小于预设保持时间时,则保持等待,并继续获取所述用户的实时呼气压力。When the duration is less than the preset holding time, the system keeps waiting and continues to obtain the user's real-time exhalation pressure.
作为优选方案,还包括:As a preferred solution, it also includes:
根据所述用户的实时呼气压力所对应的时间,从而得到所述用户在整个呼气过程所持续的时间,以及在该持续的时间中各个时刻对应的呼气压力;According to the time corresponding to the user's real-time exhalation pressure, the duration of the entire exhalation process of the user is obtained, as well as the exhalation pressure corresponding to each moment during the duration;
根据整个呼气过程所持续的时间,以及各个时刻对应的呼气压力,生成呼气压力与时间关系图;Based on the duration of the entire exhalation process and the expiration pressure corresponding to each moment, a graph of the relationship between expiration pressure and time is generated;
响应于用户对显示屏的点击操作,显示所述呼气压力与时间关系图。In response to the user's click operation on the display screen, the exhalation pressure versus time graph is displayed.
相应地,本发明还提供一种呼吸肌力量测试可视化的装置,包括:呼气压力模块、显示图像帧模块和显示屏更新模块;Correspondingly, the present invention also provides a device for visualizing respiratory muscle strength testing, including: an expiratory pressure module, a display image frame module and a display screen update module;
所述呼气压力模块,用于在显示屏中显示初始图像帧,并响应于用户对吹嘴装置的呼气,通过压力传感器,实时获取所述用户的呼气压力;The exhalation pressure module is used to display an initial image frame on the display screen, and in response to the user's exhalation of the mouthpiece device, obtain the user's exhalation pressure in real time through a pressure sensor;
所述显示图像帧模块,用于根据预设呼气压力梯度范围,确定当前的呼气压力所在的呼气压力梯度,并得到当前的呼气压力梯度对应的显示图像帧;其中,每一个呼气压力梯度对应有一个显示图像帧,每一个呼气压力梯度表示预设呼气压力梯度范围中的一个子范围;The display image frame module is used to determine the expiration pressure gradient where the current expiration pressure is based on the preset expiration pressure gradient range, and obtain the display image frame corresponding to the current expiration pressure gradient; wherein, each exhalation The air pressure gradient corresponds to a display image frame, and each expiratory pressure gradient represents a sub-range of the preset expiratory pressure gradient range;
所述显示屏更新模块,用于将所述显示屏中的初始图像帧,更新为当前的呼吸测量梯度对应的显示图像帧,从而实现呼吸肌力量的测试可视化。The display screen update module is used to update the initial image frame in the display screen to the display image frame corresponding to the current respiratory measurement gradient, thereby realizing the visualization of the test of respiratory muscle strength.
相应地,本发明还提供一种终端设备,包括处理器、存储器以及存储在所述存储器中且被配置为由所述处理器执行的计算机程序,所述处理器执行所述计算机程序时实现如上任意一项所述的呼吸肌力量测试可视化的方法。Correspondingly, the present invention also provides a terminal device, including a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor. When the processor executes the computer program, the above is implemented. A method of visualizing respiratory muscle strength testing as described in any one of the above.
相应地,本发明还提供一种计算机可读存储介质,所述计算机可读存储介质包括存储的计算机程序,其中,在所述计算机程序运行时控制所述计算机可读存储介质所在设备执行如上任意一项所述的呼吸肌力量测试可视化的方法。Correspondingly, the present invention also provides a computer-readable storage medium. The computer-readable storage medium includes a stored computer program, wherein when the computer program is running, the device where the computer-readable storage medium is located is controlled to execute any of the above. A method of visualizing respiratory muscle strength testing.
相比于现有技术,本发明实施例具有如下有益效果:Compared with the prior art, embodiments of the present invention have the following beneficial effects:
本发明的技术方案通过在显示屏中显示初始图像帧,并在用户对吹嘴装置的呼气时,通过压力传感器实时获取用户的呼气压力,进而通过预设呼气压力梯度范围确定呼气压力梯度,进而确定对应的显示图像帧,从而能够准确且高效地确保所要在显示屏中显示的图像帧,使得呼气压力与显示图像帧之间建立准确的索引链接,并将显示屏中的初始图像帧,更新为当前的呼吸测量梯度对应的显示图像帧,从而能够准确显示当前用户呼气压力下所对应的图像帧,使得用户能够根据所显示的图像帧来准确且直观地确定自己当前的呼气压力,避免了数据显示不直观、难以量化的问题,提高了用户的使用体验。The technical solution of the present invention displays the initial image frame on the display screen, and when the user exhales on the mouthpiece device, obtains the user's exhalation pressure in real time through the pressure sensor, and then determines the exhalation through the preset expiration pressure gradient range. The pressure gradient is used to determine the corresponding display image frame, so that the image frame to be displayed on the display screen can be accurately and efficiently ensured, so that an accurate index link is established between the expiratory pressure and the display image frame, and the image frame in the display screen is The initial image frame is updated to the display image frame corresponding to the current respiratory measurement gradient, so that the image frame corresponding to the current user's exhalation pressure can be accurately displayed, allowing the user to accurately and intuitively determine his or her current situation based on the displayed image frame. The exhalation pressure avoids the problem of unintuitive data display and difficulty in quantification, and improves the user experience.
附图说明Description of drawings
图1:为本发明实施例所提供的一种呼吸肌力量测试可视化的方法的步骤流程图;Figure 1: A step flow chart of a method for visualizing respiratory muscle strength testing provided by an embodiment of the present invention;
图2:为本发明实施例所提供的吹嘴装置和设备与页面展示示意图;Figure 2: A schematic diagram of the mouthpiece device and equipment and page display provided by the embodiment of the present invention;
图3:为本发明实施例所提供的呼吸举重游戏中显示游戏角色举重动作流程不同动画帧的示意图;Figure 3: A schematic diagram showing different animation frames of the game character's weightlifting action process in the breathing weightlifting game provided by the embodiment of the present invention;
图4:为本发明实施例所提供的呼吸举重游戏流程图;Figure 4: Flow chart of the breathing weightlifting game provided by the embodiment of the present invention;
图5:为本发明实施例所提供的最大呼气气压(MEP)情况展示页面的示意图;Figure 5: A schematic diagram of a maximum expiratory pressure (MEP) status display page provided by an embodiment of the present invention;
图6:为本发明实施例所提供的一种呼吸肌力量测试可视化的装置的结构示意图。Figure 6 is a schematic structural diagram of a device for visualizing respiratory muscle strength testing provided by an embodiment of the present invention.
具体实施方式Detailed ways
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only some of the embodiments of the present invention, rather than all the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without making creative efforts fall within the scope of protection of the present invention.
实施例一Embodiment 1
请参照图1,为本发明实施例提供的一种呼吸肌力量测试可视化的方法,包括以下步骤S101-S103:Please refer to Figure 1, which is a visual method for testing respiratory muscle strength provided by an embodiment of the present invention, including the following steps S101-S103:
步骤S101:在显示屏中显示初始图像帧,并响应于用户对吹嘴装置的呼气,通过压力传感器,实时获取所述用户的呼气压力。Step S101: Display an initial image frame on the display screen, and in response to the user's exhalation of the mouthpiece device, obtain the user's exhalation pressure in real time through a pressure sensor.
作为本实施例的优选方案,在显示屏中显示初始图像帧之前,还包括:As a preferred solution of this embodiment, before displaying the initial image frame on the display screen, it also includes:
响应于用户所选择的测试等级,根据所述测试等级,得到预设呼气压力梯度范围;其中,每一个测试等级对应有一个预设呼气压力梯度范围,所述呼气压力梯度范围包括若干个呼气压力梯度。In response to the test level selected by the user, a preset expiratory pressure gradient range is obtained according to the test level; wherein each test level corresponds to a preset expiratory pressure gradient range, and the expiratory pressure gradient range includes several expiratory pressure gradient.
在本实施例中,进行呼吸肌力量测试的终端设备中预先存储有每个测试等级对应的一个等级系数,而预设呼气压力梯度范围可以通过用户所选择的等级系数与单位呼气压力梯度范围相乘而得到;其中,单位呼气压力梯度范围即表示了在初始单位压力下每一个梯度所涵盖的范围;可示例性地,单位呼气压力梯度范围包括a、b、c和d的四个梯度,其中,a为0-5mmHg,b为5-10mmHg,c为10-15mmHg,d为15-20mmHg。可示例性地,用户可选择的测试等级有3个,即对应有1kg压力、5kg压力和10kg压力,当用户选择了5kg压力,即该等级系数为5,则将单位呼气压力梯度范围与等级系数相乘,得到预设呼气压力梯度范围(包括A、B、C和D四个梯度范围),其中,A=(0-5mmhg)*5,B=(5-10mmHg)*5,C=(10-15mmHg)*5,D=(15-20mmHg)*5。In this embodiment, a grade coefficient corresponding to each test level is pre-stored in the terminal device for testing respiratory muscle strength, and the preset expiratory pressure gradient range can be determined by the user-selected grade coefficient and unit expiratory pressure gradient. obtained by multiplying the ranges; where, the unit expiratory pressure gradient range represents the range covered by each gradient under the initial unit pressure; for example, the unit expiratory pressure gradient range includes a, b, c and d Four gradients, where a is 0-5mmHg, b is 5-10mmHg, c is 10-15mmHg, and d is 15-20mmHg. For example, there are three test levels that the user can select, that is, corresponding to 1kg pressure, 5kg pressure and 10kg pressure. When the user selects 5kg pressure, that is, the level coefficient is 5, then the unit expiration pressure gradient range and Multiply the grade coefficients to obtain the preset expiratory pressure gradient range (including four gradient ranges A, B, C and D), where A=(0-5mmhg)*5, B=(5-10mmHg)*5, C=(10-15mmHg)*5, D=(15-20mmHg)*5.
作为另一示例,单位呼气压力梯度范围包括N个梯度,则第一个梯度至第N个梯度对应的预设呼气压力梯度范围,即可通过用户可选择的测试等级来得到。As another example, the unit expiratory pressure gradient range includes N gradients, then the preset expiratory pressure gradient range corresponding to the first gradient to the Nth gradient can be obtained through the user-selectable test levels.
作为本实施例的优选方案,所述在显示屏中显示初始图像帧,并响应于用户对吹嘴装置的呼气,通过压力传感器,实时获取所述用户的呼气压力,具体包括:As a preferred solution of this embodiment, the initial image frame is displayed on the display screen, and in response to the user's exhalation of the mouthpiece device, the user's exhalation pressure is obtained in real time through a pressure sensor, specifically including:
根据所述呼气压力梯度的数量,确定预设动画的显示图像帧的数量,从而在显示屏中显示预设动画的初始图像帧;响应于用户对吹嘴装置的呼气,通过压力传感器实时获取所述用户的呼气压力,并通过时钟记录所述用户的呼气压力所对应的时间。According to the number of exhalation pressure gradients, the number of display image frames of the preset animation is determined, so that the initial image frame of the preset animation is displayed on the display screen; in response to the user's exhalation of the mouthpiece device, the pressure sensor is used in real time to Obtain the user's expiratory pressure, and record the time corresponding to the user's expiratory pressure through a clock.
在本实施例中,可示例性地,呼气压力梯度共有A、B、C和D四个,因此预设动画的显示图像帧的数量也有四个,从而将预设动画的第一个图像帧作为显示屏中显示的初始图像帧。通过响应于用户对吹嘴装置的呼气,从而能够通过压力传感器准确地实时获取用户的呼气压力,并通过时钟记录用户的呼气压力所对应的时间和/或时刻,以使得能够对用户的呼气压力等数据进行准确且完整的记录。In this embodiment, for example, there are four exhalation pressure gradients A, B, C and D, so the number of display image frames of the preset animation is also four, so that the first image of the preset animation is frame as the initial image frame displayed on the display. By responding to the user's exhalation of the mouthpiece device, the user's exhalation pressure can be accurately obtained in real time through the pressure sensor, and the time and/or moment corresponding to the user's exhalation pressure can be recorded through the clock, so that the user can be monitored Accurately and completely record the expiratory pressure and other data.
步骤S102:根据预设呼气压力梯度范围,确定当前的呼气压力所在的呼气压力梯度,并得到当前的呼气压力梯度对应的显示图像帧;其中,每一个呼气压力梯度对应有一个显示图像帧,每一个呼气压力梯度表示预设呼气压力梯度范围中的一个子范围。Step S102: Determine the expiratory pressure gradient where the current expiratory pressure is based on the preset expiratory pressure gradient range, and obtain a display image frame corresponding to the current expiratory pressure gradient; wherein, each expiratory pressure gradient corresponds to Image frames are displayed, and each expiratory pressure gradient represents a sub-range of the preset expiratory pressure gradient range.
作为本实施例的优选方案,所述根据预设呼气压力梯度范围,确定当前的呼气压力所在的呼气压力梯度,并得到当前的呼气压力梯度对应的显示图像帧,具体包括:As a preferred solution of this embodiment, determining the expiratory pressure gradient where the current expiratory pressure is based on the preset expiratory pressure gradient range, and obtaining a display image frame corresponding to the current expiratory pressure gradient, specifically includes:
确定当前实时的呼气压力,在所述预设呼气压力梯度范围中对应的呼气压力梯度;其中,预设呼气压力梯度范围中的每一个呼气压力梯度由小到大排序;将每一个呼气压力梯度的排序,与所述预设动画的显示图像帧建立索引关系,从而得到当前实时的呼气压力所在的呼气压力梯度对应的最终显示图像帧;其中,所述预设动画的显示图像帧的数量与所述呼气压力梯度的数量相同。Determine the current real-time expiratory pressure and the corresponding expiratory pressure gradient in the preset expiratory pressure gradient range; wherein, each expiratory pressure gradient in the preset expiratory pressure gradient range is sorted from small to large; The sorting of each expiratory pressure gradient establishes an index relationship with the display image frame of the preset animation, thereby obtaining the final display image frame corresponding to the expiratory pressure gradient where the current real-time expiratory pressure is located; wherein, the preset animation The number of displayed image frames of the animation is the same as the number of said expiratory pressure gradients.
在本实施例中,通过确定当前实时的呼气压力后,在预设呼气压力梯度范围中选取对应的呼气压力梯度,可示例性地,以预设呼气压力梯度范围(包括A、B、C和D四个梯度范围),其中,A=(0-5mmhg)*5,B=(5-10mmHg)*5,C=(10-15mmHg)*5,D=(15-20mmHg)*5为例子,当前实时的呼气压力为36mmhg时,则选取呼气压力梯度B。进一步地,将每一个呼气压力梯度的排序,与预设动画的显示图像帧建立索引关系,同时由于预设呼气压力梯度范围中的每一个呼气压力梯度由小到大排序,因此预设动画随着播放显示图像帧的顺序,与呼气压力梯度建立索引关系,即呼气压力梯度A对应于第一个图像帧,呼气压力梯度B对应于第二个图像帧,呼气压力梯度C对应于第三个图像帧,呼气压力梯度D对应于第四个图像帧。In this embodiment, after determining the current real-time expiratory pressure, the corresponding expiratory pressure gradient is selected from the preset expiratory pressure gradient range. For example, the preset expiratory pressure gradient range (including A, Four gradient ranges of B, C and D), among which, A=(0-5mmhg)*5, B=(5-10mmHg)*5, C=(10-15mmHg)*5, D=(15-20mmHg) *5 is an example. When the current real-time expiratory pressure is 36mmhg, select expiratory pressure gradient B. Further, an index relationship is established between the sorting of each expiratory pressure gradient and the display image frame of the preset animation. At the same time, since each expiratory pressure gradient in the preset expiratory pressure gradient range is sorted from small to large, the preset Assume that the animation displays the image frames in sequence as they are played, and establishes an index relationship with the expiratory pressure gradient, that is, the expiratory pressure gradient A corresponds to the first image frame, the expiratory pressure gradient B corresponds to the second image frame, and the expiratory pressure gradient Gradient C corresponds to the third image frame, and expiratory pressure gradient D corresponds to the fourth image frame.
在本实施例中,在建立显示图像帧与呼气压力梯度之间的索引对应关系后,即可通过当前实时的呼气压力所对应的呼气压力梯度,从而确定得到该呼气压力梯度的显示图像帧,进而作为当前实时的呼气压力队对应的最终显示图像帧。In this embodiment, after establishing the index correspondence between the display image frame and the expiratory pressure gradient, the expiratory pressure gradient corresponding to the current real-time expiratory pressure can be used to determine the expiratory pressure gradient. The image frame is displayed, which is then used as the final displayed image frame corresponding to the current real-time expiratory pressure team.
步骤S103:将所述显示屏中的初始图像帧,更新为当前的呼吸测量梯度对应的显示图像帧,从而实现呼吸肌力量的测试可视化。Step S103: Update the initial image frame in the display screen to the display image frame corresponding to the current respiratory measurement gradient, thereby realizing the visualization of the test of respiratory muscle strength.
作为本实施例的优选方案,所述将所述显示屏中的初始图像帧,更新为当前的呼吸测量梯度对应的显示图像帧,具体包括:As a preferred solution of this embodiment, updating the initial image frame in the display screen to a display image frame corresponding to the current respiratory measurement gradient specifically includes:
根据当前呼气压力梯度在预设呼气压力梯度范围中的排序位置,得到当前呼气压力梯度排序位置之前所有的呼气压力梯度及其对应的显示图像帧,作为待显示图像帧集;其中,所述待显示图像帧集中的每一个显示图像帧按照其对应的呼气压力梯度由小到大排序;响应于用户对吹嘴装置的呼气,在每延迟预设时间后,按照所述待显示图像帧集中的每一个显示图像帧的顺序,依次在所述显示屏中更新显示所述待显示图像帧集中的显示图像帧,直至所述待显示图像帧集中的所有显示图像帧均更新了一遍后,最终在所述显示屏中更新为最终显示图像帧。According to the sorting position of the current expiratory pressure gradient in the preset expiratory pressure gradient range, all expiratory pressure gradients before the current expiratory pressure gradient sorting position and their corresponding display image frames are obtained as a set of image frames to be displayed; where , each display image frame in the set of image frames to be displayed is sorted from small to large according to its corresponding exhalation pressure gradient; in response to the user exhaling on the mouthpiece device, after each delay of the preset time, according to the The sequence of each display image frame in the set of image frames to be displayed is sequentially updated and displayed on the display screen until all display image frames in the set of image frames to be displayed are updated. After one pass, the display screen is finally updated to the final display image frame.
在本实施例中,通过当前呼气压力梯度在预设呼气压力梯度范围中的排序位置,即可得到当前呼气压力梯度排序位置之前所有的呼气压力梯度及其对应的显示图像帧。可示例性地,以以预设呼气压力梯度范围(包括A、B、C和D四个梯度范围),当前呼气压力为60mmhg为例,即当前呼气压力梯度为C,通过当前呼气压力梯度在预设呼气压力梯度范围中的排序位置,即第三的位置,对应第三图像帧为最终图像帧,可得到当前呼气压力梯度排序位置之前所有的呼气压力梯度(A和B)及其对应的显示图像帧(第一图像帧和第二图像帧),从而在响应于用户对吹嘴装置的呼气后,在延迟预设时间后,将初始图像帧更新为第一图像帧;在换成第一图像帧后,再延迟预设时间后,将第一图像帧更新为第二图像帧;在换成第二图像帧后,再延迟预设时间后,由于所有的待显示图像帧集中的第一图像帧和第二图像帧均已经显示,因此将第二图像帧更新为第三图像帧,即最终图像帧,从而完成呼气压力的可视化。需要说明的是,预设时间可以根据实际的测量需求进行确定,优选地,预设时间为500微秒。In this embodiment, through the sorting position of the current expiratory pressure gradient in the preset expiratory pressure gradient range, all expiratory pressure gradients before the current expiratory pressure gradient sorting position and their corresponding display image frames can be obtained. For example, taking the preset expiratory pressure gradient range (including four gradient ranges A, B, C and D) and the current expiratory pressure as 60mmhg, that is, the current expiratory pressure gradient is C, through the current expiratory pressure gradient range The sorting position of the air pressure gradient in the preset expiratory pressure gradient range, that is, the third position, corresponding to the third image frame is the final image frame, and all expiratory pressure gradients (A) before the current expiratory pressure gradient sorting position can be obtained and B) and their corresponding display image frames (the first image frame and the second image frame), thereby updating the initial image frame to the first image frame after a preset time delay in response to the user exhaling on the mouthpiece device. An image frame; after changing to the first image frame, and then delaying the preset time, the first image frame is updated to the second image frame; after changing to the second image frame, and then delaying the preset time, due to all Both the first image frame and the second image frame in the set of image frames to be displayed have been displayed, so the second image frame is updated to the third image frame, that is, the final image frame, thereby completing the visualization of expiratory pressure. It should be noted that the preset time can be determined according to actual measurement requirements. Preferably, the preset time is 500 microseconds.
作为本实施例的优选方案,在更新为当前的呼吸测量梯度对应的显示图像帧之前,还包括:As a preferred solution of this embodiment, before updating the display image frame corresponding to the current respiratory measurement gradient, it also includes:
根据所述用户的实时呼气压力所对应的时间,从而计算出维持在该实时呼气压力对应的呼气压力梯度的持续时间;当所述持续时间大于或等于预设保持时间时,则更新为当前的呼吸测量梯度对应的显示图像帧;当所述持续时间小于预设保持时间时,则保持等待,并继续获取所述用户的实时呼气压力。According to the time corresponding to the user's real-time expiratory pressure, the duration of maintaining the expiratory pressure gradient corresponding to the real-time expiratory pressure is calculated; when the duration is greater than or equal to the preset holding time, update is the display image frame corresponding to the current respiratory measurement gradient; when the duration is less than the preset holding time, the system keeps waiting and continues to obtain the user's real-time expiratory pressure.
在本实施例中,通过用户的实时呼气压力所对应的时间和/或时刻,从而能够计算出当前的实时呼气压力对应的呼气压力梯度,所维持的时间,作为持续时间。由于人体呼气的整个流程的压力是先由低到高再到低的,因此在压力升高或降低的过程,可以通过其呼气压力梯度所覆盖的实时呼气压力,对应的时间,即可计算出对应的该呼气压力梯度的持续时间。In this embodiment, through the time and/or moment corresponding to the user's real-time expiratory pressure, the expiratory pressure gradient corresponding to the current real-time expiratory pressure can be calculated, and the time maintained is used as the duration. Since the pressure in the entire process of human exhalation first goes from low to high and then to low again, during the process of pressure increase or decrease, the real-time exhalation pressure covered by the expiration pressure gradient can be used to correspond to the time, that is, The corresponding duration of the expiratory pressure gradient can be calculated.
进一步地,当持续时间大于或等于预设保持时间时,则说明在该呼气压力梯度下并不是一个呼气压力升高或降低的过程量,而是用户已经将呼气压力维持于当前的呼气压力梯度,可理解为用户的呼气压力的最大值(或极大值),因此预设动画则定格于当前的该呼气压力梯度对应的显示图像帧,进而更新至显示屏上。当持续时间小于预设保持时间时,则说明在该呼气压力梯度下是一个呼气压力升高或降低的过程量,因此呼气压力还会继续升高或降低,即还未到达呼气压力的最大值(或极大值)来进行显示,其呼气压力梯度还会发生变化,使得其对应的最终图像帧还未能进行确定,从而提高了图像帧显示的准确性,同时也能够实现预设动画的流畅播放,减少了呼气压力以及动画显示之间所存在的较大延迟,提高了呼吸压力可视化显示的可靠性和精确度。Furthermore, when the duration is greater than or equal to the preset holding time, it means that the expiratory pressure gradient is not a process of increasing or decreasing the expiratory pressure, but that the user has maintained the expiratory pressure at the current level. The expiratory pressure gradient can be understood as the maximum value (or maximum value) of the user's expiratory pressure, so the preset animation is frozen at the current display image frame corresponding to the expiratory pressure gradient, and then updated to the display screen. When the duration is less than the preset holding time, it means that the expiratory pressure gradient is a process of increasing or decreasing the expiratory pressure, so the expiratory pressure will continue to increase or decrease, that is, the expiratory pressure has not yet been reached. The maximum value (or maximum value) of the pressure is displayed, and the expiratory pressure gradient will also change, so that the corresponding final image frame cannot be determined, thereby improving the accuracy of the image frame display, and at the same time, it can Achieve smooth playback of preset animations, reduce the large delay between expiratory pressure and animation display, and improve the reliability and accuracy of visual display of respiratory pressure.
作为本实施例的优选方案,还包括:As a preferred solution of this embodiment, it also includes:
根据所述用户的实时呼气压力所对应的时间,从而得到所述用户在整个呼气过程所持续的时间,以及在该持续的时间中各个时刻对应的呼气压力;根据整个呼气过程所持续的时间,以及各个时刻对应的呼气压力,生成呼气压力与时间关系图;响应于用户对显示屏的点击操作,显示所述呼气压力与时间关系图。According to the time corresponding to the user's real-time exhalation pressure, the duration of the entire exhalation process of the user and the expiration pressure corresponding to each moment during the duration are obtained; according to the time corresponding to the entire exhalation process The duration and the expiratory pressure corresponding to each moment are used to generate an expiratory pressure versus time graph; in response to the user's click operation on the display screen, the expiratory pressure versus time graph is displayed.
在本实施例中,根据所述用户的实时呼气压力所对应的时间,从而得到通过用户在整个呼气过程所持续的时间,以及在该持续的时间中各个时刻对应的呼气压力,进而来生成对应的呼气压力与时间关系图。使得用户在结束呼吸力量训练测试后,即可通过对显示屏的点击操作,从而显示出呼气压力与时间关系图,进而使得用户能够准确得到完整流程的数据,并且医生或医疗机构还可以更具该完整的呼吸压力数据,对用户或患者制定更详细的康复方案,进而提高用户的使用体验。In this embodiment, based on the time corresponding to the user's real-time exhalation pressure, the duration of the entire exhalation process by the user and the corresponding exhalation pressure at each moment during the duration are obtained, and then To generate the corresponding expiratory pressure versus time graph. After finishing the respiratory strength training test, the user can click on the display screen to display the relationship between exhalation pressure and time, thus allowing the user to accurately obtain the data of the complete process, and the doctor or medical institution can also update With this complete respiratory pressure data, more detailed rehabilitation plans can be formulated for users or patients, thereby improving the user experience.
在本实施例中,请参阅图2和图3,其为本发明实施例所提供的连接吹嘴装置与手机体验呼吸举重游戏的设备与页面展示,该呼吸肌测试所用到的预设动画为举重动画,请参阅图4,其为是呼吸举重游戏的流程图,展示了游戏动画或动画帧是如何响应与智能手机连接的吹嘴所产生的气压信号。该游戏中提供多种举重重量选项,从10公斤到N x10公斤。控制游戏动画举重有2个主要参数,分别是吹嘴产生的气压P,以及用户保持特定气压数值的时间m。a、b、c、d指用户举起所选重量所需产生的压力大小,其中d最大,a最小。如果用户选择更大的重量,则这4个压力大小也会相应增加。例如,在该游戏中选择哑铃重量“10公斤”,则对应的举起流程压力大小为a=5mmHg,b=10mmHg,c=15mmHg,d=20mmHg。假设m值为500微秒。In this embodiment, please refer to Figures 2 and 3, which are equipment and page displays for connecting a mouthpiece device and a mobile phone to experience a breathing weight lifting game provided by an embodiment of the present invention. The preset animation used in the respiratory muscle test is Weightlifting animation, see Figure 4, which is a flowchart of the breathing weightlifting game, showing how the game animation or animation frame responds to the air pressure signal generated by the mouthpiece connected to the smartphone. Multiple weight lifting options are available in this game from 10kg to N x10kg. There are two main parameters that control the weight lifting in the game animation, namely the air pressure P generated by the mouthpiece, and the time m for the user to maintain a specific air pressure value. a, b, c, and d refer to the amount of pressure required by the user to lift the selected weight, among which d is the largest and a is the smallest. If the user selects a larger weight, these 4 pressure levels will increase accordingly. For example, if the dumbbell weight "10 kg" is selected in this game, the corresponding pressure during the lifting process is a=5mmHg, b=10mmHg, c=15mmHg, d=20mmHg. Assume the m value is 500 microseconds.
当用户开始用吹嘴产生压力时,P值会增加(P>0),游戏就会随动画第一帧更新开始。随着用户用吹嘴产生的压力越来越大,当压力超过5mmHg时,游戏动画更新到第二帧,哑铃会被举得越来越高。同样一直持续到最后一帧,每一帧都将以500微秒延迟更新,这样动画看起来就很平滑。当压力超过20mmHg后,用户要保持在这个最大压力水平,在m秒延迟后,动画会更新到最后一帧,显示用户游戏胜利。如果用户未能保持在该水平或低于P值,则会显示用户游戏失败。When the user starts to generate pressure with the mouthpiece, the P value will increase (P>0) and the game will start with the first frame of the animation updated. As the pressure generated by the user with the mouthpiece increases, when the pressure exceeds 5mmHg, the game animation is updated to the second frame, and the dumbbell will be lifted higher and higher. The same continues until the last frame, and each frame will be updated with a 500 microsecond delay so that the animation looks smooth. When the pressure exceeds 20mmHg, the user must maintain the maximum pressure level. After a delay of m seconds, the animation will be updated to the last frame to show the user's victory in the game. If the user fails to stay at that level or below the P-value, the user's game will be shown as failed.
需要说明的是,本发明实施例利用手机的显示屏和气压传感器作为用户界面,实现呼吸康复训练系统中的人机交互,为无趣的呼吸康复锻炼增添了多功能性、乐趣和吸引力。在康复锻炼过程中,软件系统(手机中的App)接收使用患者生成的数据,并以动画、音乐、生成呼吸测试结果等多种形式展示这些数据。该软件系统可以安装在智能手机或平板电脑上。It should be noted that the embodiment of the present invention uses the display screen and air pressure sensor of the mobile phone as the user interface to realize human-computer interaction in the respiratory rehabilitation training system, adding versatility, fun and attraction to boring respiratory rehabilitation exercises. During the rehabilitation exercise process, the software system (App on the mobile phone) receives the data generated by the patient and displays the data in various forms such as animation, music, and generated respiratory test results. The software system can be installed on a smartphone or tablet.
可以理解的是,本发明采用的是一种非侵入性的呼吸肌力量测试,可以测量呼吸肌的力量情况(MEP和M IP),图5示了所述软件的测试模块测量最大呼气压力(MEP或PEmax)的页面。该页面在显示屏上显示了使用患者的MEP值以及呼吸肌的压力数据随时间变化的图表。同时它还显示基于年龄和性别进行比较的参考正常范围,并对结果进行评论,提高了用户的使用体验。进一步地,本发明还记录、维护使用患者的呼吸康复训练记录/数据,并以此作为使用患者的长期呼吸系统健康情况记录。该系统的另一个重要功能是根据收集的数据进行统计分析,检测并展示使用患者在康复锻炼过程中表现改善情况。在不同的训练模式下,使用患者可以通过调用数据存储模块中存储的训练数据来查看不同时间段的训练记录。It can be understood that the present invention uses a non-invasive respiratory muscle strength test that can measure the strength of respiratory muscles (MEP and MIP). Figure 5 shows the test module of the software measuring the maximum expiratory pressure. (MEP or PEmax) page. This page displays a graph on the display using the patient's MEP values and respiratory muscle pressure data over time. At the same time, it also displays the reference normal range for comparison based on age and gender, and comments on the results, improving the user experience. Furthermore, the present invention also records and maintains the patient's respiratory rehabilitation training records/data, and uses this as a long-term respiratory system health record of the patient. Another important function of the system is to perform statistical analysis based on the collected data to detect and demonstrate improvements in the patient's performance during rehabilitation exercises. In different training modes, users can view training records in different time periods by calling the training data stored in the data storage module.
实施以上实施例,具有如下效果:Implementing the above embodiments will have the following effects:
本发明的技术方案通过在显示屏中显示初始图像帧,并在用户对吹嘴装置的呼气时,通过压力传感器实时获取用户的呼气压力,进而通过预设呼气压力梯度范围确定呼气压力梯度,进而确定对应的显示图像帧,从而能够准确且高效地确保所要在显示屏中显示的图像帧,使得呼气压力与显示图像帧之间建立准确的索引链接,并将显示屏中的初始图像帧,更新为当前的呼吸测量梯度对应的显示图像帧,从而能够准确显示当前用户呼气压力下所对应的图像帧,使得用户能够根据所显示的图像帧来准确且直观地确定自己当前的呼气压力,避免了数据显示不直观、难以量化的问题,提高了用户的使用体验。The technical solution of the present invention displays the initial image frame on the display screen, and when the user exhales on the mouthpiece device, obtains the user's exhalation pressure in real time through the pressure sensor, and then determines the exhalation through the preset expiration pressure gradient range. The pressure gradient is used to determine the corresponding display image frame, so that the image frame to be displayed on the display screen can be accurately and efficiently ensured, so that an accurate index link is established between the expiratory pressure and the display image frame, and the image frame in the display screen is The initial image frame is updated to the display image frame corresponding to the current respiratory measurement gradient, so that the image frame corresponding to the current user's exhalation pressure can be accurately displayed, allowing the user to accurately and intuitively determine his or her current situation based on the displayed image frame. The exhalation pressure avoids the problem of unintuitive data display and difficulty in quantification, and improves the user experience.
实施例二Embodiment 2
请参阅图6,其为本发明所提供一种呼吸肌力量测试可视化的装置,包括:呼气压力模块201、显示图像帧模块202和显示屏更新模块203。Please refer to FIG. 6 , which is a device for visualizing respiratory muscle strength testing provided by the present invention, including: an expiratory pressure module 201 , a display image frame module 202 and a display screen update module 203 .
所述呼气压力模块201,用于在显示屏中显示初始图像帧,并响应于用户对吹嘴装置的呼气,通过压力传感器,实时获取所述用户的呼气压力。The exhalation pressure module 201 is used to display an initial image frame on the display screen, and in response to the user's exhalation of the mouthpiece device, obtain the user's exhalation pressure in real time through a pressure sensor.
所述显示图像帧模块202,用于根据预设呼气压力梯度范围,确定当前的呼气压力所在的呼气压力梯度,并得到当前的呼气压力梯度对应的显示图像帧;其中,每一个呼气压力梯度对应有一个显示图像帧,每一个呼气压力梯度表示预设呼气压力梯度范围中的一个子范围。The display image frame module 202 is used to determine the expiration pressure gradient where the current expiration pressure is located according to the preset expiration pressure gradient range, and obtain the display image frame corresponding to the current expiration pressure gradient; wherein, each The expiratory pressure gradient corresponds to one display image frame, and each expiratory pressure gradient represents a sub-range of the preset expiratory pressure gradient range.
所述显示屏更新模块203,用于将所述显示屏中的初始图像帧,更新为当前的呼吸测量梯度对应的显示图像帧,从而实现呼吸肌力量的测试可视化。The display screen update module 203 is used to update the initial image frame in the display screen to the display image frame corresponding to the current respiratory measurement gradient, thereby realizing the visualization of the test of respiratory muscle strength.
作为优选方案,在显示屏中显示初始图像帧之前,还包括:As a preferred solution, before displaying the initial image frame on the display screen, it also includes:
响应于用户所选择的测试等级,根据所述测试等级,得到预设呼气压力梯度范围;其中,每一个测试等级对应有一个预设呼气压力梯度范围,所述呼气压力梯度范围包括若干个呼气压力梯度。In response to the test level selected by the user, a preset expiratory pressure gradient range is obtained according to the test level; wherein each test level corresponds to a preset expiratory pressure gradient range, and the expiratory pressure gradient range includes several expiratory pressure gradient.
作为优选方案,所述在显示屏中显示初始图像帧,并响应于用户对吹嘴装置的呼气,通过压力传感器,实时获取所述用户的呼气压力,具体包括:As a preferred solution, the initial image frame is displayed on the display screen, and in response to the user exhaling on the mouthpiece device, the user's exhalation pressure is obtained in real time through a pressure sensor, specifically including:
根据所述呼气压力梯度的数量,确定预设动画的显示图像帧的数量,从而在显示屏中显示预设动画的初始图像帧;Determine the number of display image frames of the preset animation according to the number of the expiratory pressure gradient, thereby displaying the initial image frame of the preset animation on the display screen;
响应于用户对吹嘴装置的呼气,通过压力传感器实时获取所述用户的呼气压力,并通过时钟记录所述用户的呼气压力所对应的时间。In response to the user exhaling on the mouthpiece device, the user's exhalation pressure is acquired in real time through a pressure sensor, and the time corresponding to the user's exhalation pressure is recorded through a clock.
作为优选方案,所述根据预设呼气压力梯度范围,确定当前的呼气压力所在的呼气压力梯度,并得到当前的呼气压力梯度对应的显示图像帧,具体包括:As a preferred solution, determining the expiratory pressure gradient where the current expiratory pressure is located according to the preset expiratory pressure gradient range, and obtaining a display image frame corresponding to the current expiratory pressure gradient, specifically includes:
确定当前实时的呼气压力,在所述预设呼气压力梯度范围中对应的呼气压力梯度;其中,预设呼气压力梯度范围中的每一个呼气压力梯度由小到大排序;Determine the current real-time expiratory pressure and the corresponding expiratory pressure gradient in the preset expiratory pressure gradient range; wherein each expiratory pressure gradient in the preset expiratory pressure gradient range is ordered from small to large;
将每一个呼气压力梯度的排序,与所述预设动画的显示图像帧建立索引关系,从而得到当前实时的呼气压力所在的呼气压力梯度对应的最终显示图像帧;其中,所述预设动画的显示图像帧的数量与所述呼气压力梯度的数量相同。Establish an index relationship between the sorting of each expiratory pressure gradient and the display image frame of the preset animation, thereby obtaining the final display image frame corresponding to the expiratory pressure gradient where the current real-time expiratory pressure is located; wherein, the preset animation It is assumed that the number of displayed image frames of the animation is the same as the number of expiratory pressure gradients.
作为优选方案,所述将所述显示屏中的初始图像帧,更新为当前的呼吸测量梯度对应的显示图像帧,具体包括:As a preferred solution, updating the initial image frame in the display screen to a display image frame corresponding to the current respiratory measurement gradient specifically includes:
根据当前呼气压力梯度在预设呼气压力梯度范围中的排序位置,得到当前呼气压力梯度排序位置之前所有的呼气压力梯度及其对应的显示图像帧,作为待显示图像帧集;其中,所述待显示图像帧集中的每一个显示图像帧按照其对应的呼气压力梯度由小到大排序;According to the sorting position of the current expiratory pressure gradient in the preset expiratory pressure gradient range, all expiratory pressure gradients before the current expiratory pressure gradient sorting position and their corresponding display image frames are obtained as a set of image frames to be displayed; where , each display image frame in the set of image frames to be displayed is sorted from small to large according to its corresponding expiration pressure gradient;
响应于用户对吹嘴装置的呼气,在每延迟预设时间后,按照所述待显示图像帧集中的每一个显示图像帧的顺序,依次在所述显示屏中更新显示所述待显示图像帧集中的显示图像帧,直至所述待显示图像帧集中的所有显示图像帧均更新了一遍后,最终在所述显示屏中更新为最终显示图像帧。In response to the user exhaling on the mouthpiece device, after each delay of a preset time, the image to be displayed is sequentially updated and displayed in the display screen according to the order of each displayed image frame in the set of image frames to be displayed. The display image frames in the frame set are updated to the final display image frame in the display screen until all the display image frames in the image frame set to be displayed are updated once.
作为优选方案,在更新为当前的呼吸测量梯度对应的显示图像帧之前,还包括:As a preferred solution, before updating the display image frame corresponding to the current respiratory measurement gradient, it also includes:
根据所述用户的实时呼气压力所对应的时间,从而计算出维持在该实时呼气压力对应的呼气压力梯度的持续时间;Calculate the duration of the expiratory pressure gradient maintained at the real-time expiratory pressure according to the time corresponding to the user's real-time expiratory pressure;
当所述持续时间大于或等于预设保持时间时,则更新为当前的呼吸测量梯度对应的显示图像帧;When the duration is greater than or equal to the preset holding time, the display image frame corresponding to the current respiratory measurement gradient is updated;
当所述持续时间小于预设保持时间时,则保持等待,并继续获取所述用户的实时呼气压力。When the duration is less than the preset holding time, the system keeps waiting and continues to obtain the user's real-time exhalation pressure.
作为优选方案,还包括:As a preferred option, it also includes:
根据所述用户的实时呼气压力所对应的时间,从而得到所述用户在整个呼气过程所持续的时间,以及在该持续的时间中各个时刻对应的呼气压力;According to the time corresponding to the user's real-time exhalation pressure, the duration of the entire exhalation process of the user is obtained, as well as the exhalation pressure corresponding to each moment during the duration;
根据整个呼气过程所持续的时间,以及各个时刻对应的呼气压力,生成呼气压力与时间关系图;Based on the duration of the entire exhalation process and the expiration pressure corresponding to each moment, a graph of the relationship between expiration pressure and time is generated;
响应于用户对显示屏的点击操作,显示所述呼气压力与时间关系图。In response to the user's click operation on the display screen, the exhalation pressure versus time graph is displayed.
所属领域的技术人员可以清楚的了解到,为描述的方便和简洁,上述描述的装置的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。Those skilled in the art can clearly understand that for the convenience and simplicity of description, the specific working process of the device described above can be referred to the corresponding process in the foregoing method embodiment, and will not be described again here.
实施以上实施例,具有如下效果:Implementing the above embodiments will have the following effects:
本发明的技术方案通过在显示屏中显示初始图像帧,并在用户对吹嘴装置的呼气时,通过压力传感器实时获取用户的呼气压力,进而通过预设呼气压力梯度范围确定呼气压力梯度,进而确定对应的显示图像帧,从而能够准确且高效地确保所要在显示屏中显示的图像帧,使得呼气压力与显示图像帧之间建立准确的索引链接,并将显示屏中的初始图像帧,更新为当前的呼吸测量梯度对应的显示图像帧,从而能够准确显示当前用户呼气压力下所对应的图像帧,使得用户能够根据所显示的图像帧来准确且直观地确定自己当前的呼气压力,避免了数据显示不直观、难以量化的问题,提高了用户的使用体验。The technical solution of the present invention displays the initial image frame on the display screen, and when the user exhales on the mouthpiece device, obtains the user's exhalation pressure in real time through the pressure sensor, and then determines the exhalation through the preset expiration pressure gradient range. The pressure gradient is used to determine the corresponding display image frame, so that the image frame to be displayed on the display screen can be accurately and efficiently ensured, so that an accurate index link is established between the expiratory pressure and the display image frame, and the image frame in the display screen is The initial image frame is updated to the display image frame corresponding to the current respiratory measurement gradient, so that the image frame corresponding to the current user's exhalation pressure can be accurately displayed, allowing the user to accurately and intuitively determine his or her current situation based on the displayed image frame. The exhalation pressure avoids the problem of unintuitive data display and difficulty in quantification, and improves the user experience.
实施例三Embodiment 3
相应地,本发明还提供一种终端设备,包括:处理器、存储器以及存储在所述存储器中且被配置为由所述处理器执行的计算机程序,所述处理器执行所述计算机程序时实现如上任意一项实施例所述的呼吸肌力量测试可视化的方法。Correspondingly, the present invention also provides a terminal device, including: a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor. When the processor executes the computer program, the The method for visualization of respiratory muscle strength test as described in any of the above embodiments.
该实施例的终端设备包括:处理器、存储器以及存储在所述存储器中并可在所述处理器上运行的计算机程序、计算机指令。所述处理器执行所述计算机程序时实现上述实施例一中的各个步骤,例如图1所示的步骤S101至S103。或者,所述处理器执行所述计算机程序时实现上述装置实施例中各模块/单元的功能,例如显示屏更新模块203。The terminal device of this embodiment includes: a processor, a memory, and a computer program and computer instructions stored in the memory and executable on the processor. When the processor executes the computer program, it implements each step in the above-mentioned Embodiment 1, such as steps S101 to S103 shown in FIG. 1 . Alternatively, when the processor executes the computer program, it implements the functions of each module/unit in the above device embodiment, such as the display screen update module 203.
示例性的,所述计算机程序可以被分割成一个或多个模块/单元,所述一个或者多个模块/单元被存储在所述存储器中,并由所述处理器执行,以完成本发明。所述一个或多个模块/单元可以是能够完成特定功能的一系列计算机程序指令段,该指令段用于描述所述计算机程序在所述终端设备中的执行过程。例如,所述显示屏更新模块203,用于将所述显示屏中的初始图像帧,更新为当前的呼吸测量梯度对应的显示图像帧,从而实现呼吸肌力量的测试可视化。Exemplarily, the computer program may be divided into one or more modules/units, and the one or more modules/units are stored in the memory and executed by the processor to complete the present invention. The one or more modules/units may be a series of computer program instruction segments capable of completing specific functions. The instruction segments are used to describe the execution process of the computer program in the terminal device. For example, the display screen update module 203 is used to update the initial image frame in the display screen to a display image frame corresponding to the current respiratory measurement gradient, thereby realizing test visualization of respiratory muscle strength.
所述终端设备可以是桌上型计算机、笔记本、掌上电脑及云端服务器等计算设备。所述终端设备可包括,但不仅限于,处理器、存储器。本领域技术人员可以理解,示意图仅仅是终端设备的示例,并不构成对终端设备的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件,例如所述终端设备还可以包括输入输出设备、网络接入设备、总线等。The terminal device may be a computing device such as a desktop computer, a notebook, a PDA, a cloud server, etc. The terminal device may include, but is not limited to, a processor and a memory. Those skilled in the art can understand that the schematic diagram is only an example of the terminal equipment and does not constitute a limitation of the terminal equipment. It may include more or fewer components than shown in the figure, or combine certain components, or different components, such as the so-called terminal equipment. The terminal device may also include input and output devices, network access devices, buses, etc.
所称处理器可以是中央处理单元(Central Processing Unit,CPU),还可以是其他通用处理器、数字信号处理器(Digital Signal Processor,DSP)、专用集成电路(Application Specific Integrated Circuit,ASIC)、现成可编程门阵列(Field-Programmable Gate Array,FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件等。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等,所述处理器是所述终端设备的控制中心,利用各种接口和线路连接整个终端设备的各个部分。The so-called processor can be a central processing unit (Central Processing Unit, CPU), or other general-purpose processor, digital signal processor (Digital Signal Processor, DSP), application specific integrated circuit (Application Specific Integrated Circuit, ASIC), off-the-shelf processor Programmable gate array (Field-Programmable Gate Array, FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general processor may be a microprocessor or the processor may be any conventional processor, etc. The processor is the control center of the terminal device and uses various interfaces and lines to connect various parts of the entire terminal device.
所述存储器可用于存储所述计算机程序和/或模块,所述处理器通过运行或执行存储在所述存储器内的计算机程序和/或模块,以及调用存储在存储器内的数据,实现终端设备的各种功能。所述存储器可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的应用程序等;存储数据区可存储根据移动终端的使用所创建的数据等。此外,存储器可以包括高速随机存取存储器,还可以包括非易失性存储器,例如硬盘、内存、插接式硬盘,智能存储卡(Smart Media Card,SMC),安全数字(SecureDigital,SD)卡,闪存卡(Flash Card)、至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。The memory may be used to store the computer program and/or module. The processor implements the terminal device by running or executing the computer program and/or module stored in the memory and calling data stored in the memory. Various functions. The memory may mainly include a stored program area and a stored data area, wherein the stored program area may store an operating system, an application program required for at least one function, etc.; the stored data area may store data created according to the use of the mobile terminal, etc. In addition, the memory may include high-speed random access memory, and may also include non-volatile memory, such as hard disk, memory, plug-in hard disk, smart memory card (Smart Media Card, SMC), secure digital (Secure Digital, SD) card, Flash Card, at least one disk storage device, flash memory device, or other volatile solid-state storage device.
其中,所述终端设备集成的模块/单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本发明实现上述实施例方法中的全部或部分流程,也可以通过计算机程序来指令相关的硬件来完成,所述的计算机程序可存储于一计算机可读存储介质中,该计算机程序在被处理器执行时,可实现上述各个方法实施例的步骤。其中,所述计算机程序包括计算机程序代码,所述计算机程序代码可以为源代码形式、对象代码形式、可执行文件或某些中间形式等。所述计算机可读介质可以包括:能够携带所述计算机程序代码的任何实体或装置、记录介质、U盘、移动硬盘、磁碟、光盘、计算机存储器、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、电载波信号、电信信号以及软件分发介质等。需要说明的是,所述计算机可读介质包含的内容可以根据司法管辖区内立法和专利实践的要求进行适当的增减,例如在某些司法管辖区,根据立法和专利实践,计算机可读介质不包括电载波信号和电信信号。Wherein, if the modules/units integrated with the terminal device are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the present invention can implement all or part of the processes in the methods of the above embodiments, and can also be completed by instructing relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium, and the computer program can be stored in a computer-readable storage medium. When the program is executed by the processor, the steps of each of the above method embodiments can be implemented. Wherein, the computer program includes computer program code, which may be in the form of source code, object code, executable file or some intermediate form. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording media, U disk, mobile hard disk, magnetic disk, optical disk, computer memory, read-only memory (ROM, Read-Only Memory) , Random Access Memory (RAM, Random Access Memory), electrical carrier signals, telecommunications signals, and software distribution media, etc. It should be noted that the content contained in the computer-readable medium can be appropriately added or deleted according to the requirements of legislation and patent practice in the jurisdiction. For example, in some jurisdictions, according to legislation and patent practice, the computer-readable medium Excludes electrical carrier signals and telecommunications signals.
实施例四Embodiment 4
相应地,本发明还提供一种计算机可读存储介质,所述计算机可读存储介质包括存储的计算机程序,其中,在所述计算机程序运行时控制所述计算机可读存储介质所在设备执行如上任意一项实施例所述的呼吸肌力量测试可视化的方法。Correspondingly, the present invention also provides a computer-readable storage medium. The computer-readable storage medium includes a stored computer program, wherein when the computer program is running, the device where the computer-readable storage medium is located is controlled to execute any of the above. A method for visualizing respiratory muscle strength test according to one embodiment.
以上所述的具体实施例,对本发明的目的、技术方案和有益效果进行了进一步的详细说明,应当理解,以上所述仅为本发明的具体实施例而已,并不用于限定本发明的保护范围。特别指出,对于本领域技术人员来说,凡在本发明的精神和原则之内,所做的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。The above-mentioned specific embodiments further describe the purpose, technical solutions and beneficial effects of the present invention in detail. It should be understood that the above-mentioned are only specific embodiments of the present invention and are not intended to limit the scope of the present invention. . It is particularly pointed out that for those skilled in the art, any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention shall be included in the protection scope of the present invention.
Claims (10)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202311393956.8A CN117292810A (en) | 2023-10-25 | 2023-10-25 | Visual method and device for respiratory muscle strength test |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202311393956.8A CN117292810A (en) | 2023-10-25 | 2023-10-25 | Visual method and device for respiratory muscle strength test |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| CN117292810A true CN117292810A (en) | 2023-12-26 |
Family
ID=89240815
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202311393956.8A Pending CN117292810A (en) | 2023-10-25 | 2023-10-25 | Visual method and device for respiratory muscle strength test |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN117292810A (en) |
Citations (9)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101390747A (en) * | 2008-11-06 | 2009-03-25 | 杭州海利赢医疗技术有限公司 | Remote wireless network physiology multi-parameter monitoring device |
| CN102151385A (en) * | 2011-05-27 | 2011-08-17 | 徐赤坤 | Breath trainer |
| CN103908234A (en) * | 2014-04-21 | 2014-07-09 | 湖南振邦医疗科技有限公司 | Medical intelligent control system for pulse, breathing and body temperature measurement |
| CN109906054A (en) * | 2016-10-26 | 2019-06-18 | 皇家飞利浦有限公司 | A system and method for estimating respiratory muscle pressure and respiratory mechanics using the P0.1 strategy |
| CN113592804A (en) * | 2021-07-27 | 2021-11-02 | 东软医疗系统股份有限公司 | Image processing method, device and equipment |
| CN113724851A (en) * | 2021-10-29 | 2021-11-30 | 南京舒普思达医疗设备有限公司 | Intelligent synchronization method of breathing machine and data visualization system thereof |
| CN115100159A (en) * | 2022-07-01 | 2022-09-23 | 上海商汤临港智能科技有限公司 | Breathing state detection method, device, equipment and storage medium |
| CN115723920A (en) * | 2021-09-01 | 2023-03-03 | 诚加兴业股份有限公司 | respirable mask |
| CN116740621A (en) * | 2023-08-14 | 2023-09-12 | 中国科学院长春光学精密机械与物理研究所 | A non-contact breath detection method, equipment and medium |
-
2023
- 2023-10-25 CN CN202311393956.8A patent/CN117292810A/en active Pending
Patent Citations (9)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101390747A (en) * | 2008-11-06 | 2009-03-25 | 杭州海利赢医疗技术有限公司 | Remote wireless network physiology multi-parameter monitoring device |
| CN102151385A (en) * | 2011-05-27 | 2011-08-17 | 徐赤坤 | Breath trainer |
| CN103908234A (en) * | 2014-04-21 | 2014-07-09 | 湖南振邦医疗科技有限公司 | Medical intelligent control system for pulse, breathing and body temperature measurement |
| CN109906054A (en) * | 2016-10-26 | 2019-06-18 | 皇家飞利浦有限公司 | A system and method for estimating respiratory muscle pressure and respiratory mechanics using the P0.1 strategy |
| CN113592804A (en) * | 2021-07-27 | 2021-11-02 | 东软医疗系统股份有限公司 | Image processing method, device and equipment |
| CN115723920A (en) * | 2021-09-01 | 2023-03-03 | 诚加兴业股份有限公司 | respirable mask |
| CN113724851A (en) * | 2021-10-29 | 2021-11-30 | 南京舒普思达医疗设备有限公司 | Intelligent synchronization method of breathing machine and data visualization system thereof |
| CN115100159A (en) * | 2022-07-01 | 2022-09-23 | 上海商汤临港智能科技有限公司 | Breathing state detection method, device, equipment and storage medium |
| CN116740621A (en) * | 2023-08-14 | 2023-09-12 | 中国科学院长春光学精密机械与物理研究所 | A non-contact breath detection method, equipment and medium |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US12214274B2 (en) | Avatar-incentive healthcare therapy | |
| US8696592B2 (en) | Breath biofeedback system and method | |
| US7063665B2 (en) | Health care system | |
| Kranz et al. | The mobile fitness coach: Towards individualized skill assessment using personalized mobile devices | |
| KR101680972B1 (en) | Indoor exercise system using virtual reality | |
| CN105976288A (en) | Student exercise guidance system and guidance method thereof | |
| JP2012532695A (en) | Visualization inspection and / or training | |
| JPWO2020071149A1 (en) | Information processing device | |
| Wollmann et al. | User-centred design and usability evaluation of a heart rate variability biofeedback game | |
| Knols et al. | Exergames for patients in acute care settings: systematic review of the reporting of methodological quality, FITT components, and program intervention details | |
| JP2017188012A (en) | Information providing device, information providing method, and computer program | |
| US20140371886A1 (en) | Method and system for managing performance of an athlete | |
| CN117292810A (en) | Visual method and device for respiratory muscle strength test | |
| CN102332053A (en) | A rating system for doctors' word-of-mouth scoring | |
| JP2022097045A (en) | Biological information processing device, biological information processing method, program, and storage medium | |
| US12357877B2 (en) | Using wearable device data to enable control of an application | |
| CN219109467U (en) | A psychological stress intervention recorder | |
| Estrella et al. | A serious game to self-regulate heart rate variability as a technique to manage arousal level through cardiorespiratory biofeedback: development and pilot evaluation study | |
| WO2023035647A1 (en) | Music recommendation method and apparatus based on wearable device, and device and storage medium | |
| Zhu et al. | Role of Active Video Games in Blood Pressure Management Among Children and Young Adults: Systematic Review and Meta-Analysis | |
| CN114377269B (en) | A method and device for determining a balance capability index | |
| Jansen-Kosterink et al. | The results of an iterative evaluation process of an mhealth application for rewarding healthy behaviour among older adults | |
| Bastos et al. | A gamification and biofeedback-based serious game for adherence to physical activity | |
| CN115702791A (en) | Physiological data processing method and device, wearable device and readable storage medium | |
| Lu et al. | Reducing adolescent obesity with a social networking mobile fitness application |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| RJ01 | Rejection of invention patent application after publication | ||
| RJ01 | Rejection of invention patent application after publication |
Application publication date: 20231226 |