Disclosure of Invention
The invention aims to overcome the defects in the prior art, and provides a breathing training method based on virtual reality, which integrates breathing modes with different requirements, converts breathing data into a real-time breathing image, and completes scientific guidance through matching of the real-time breathing image and a set scientific mode, so that a user is easy to operate, simple and effective.
The technical proposal adopted by the invention is that,
the breathing training method based on virtual reality is characterized by comprising a breathing mask, wherein a baffle is arranged at the position, corresponding to an oral cavity and a nasal cavity, of the breathing mask, the breathing mask is buckled on virtual reality equipment, and the breathing training method comprises the following steps:
detecting a respiratory sound wave signal and a respiratory airflow direction signal of a user; if the breathing sound wave is not detected, prompting that the breathing mask is not installed or the installation is incorrect;
in response to detecting the breath sound wave, prompting a selection of a breath training coaching mode;
determining a breathing mode according to the flow direction signal of the breathing air flow, wherein the breathing mode is inspiration or expiration;
preprocessing a respiratory sound wave signal, and corresponding to respiratory intensity according to decibels;
continuously generating a real-time breathing image according to the breathing mode and the breathing intensity, and outputting the breathing image to a VR picture;
and generating a contrast diagram according to the real-time respiratory image and the selected respiratory training instruction mode until the real-time respiratory image matches the selected respiratory training instruction mode, and finishing respiratory training.
In particular, the respiratory training guidance mode includes, but is not limited to, a parturient respiratory training mode, a meditation respiratory training mode, and a respiratory disease rehabilitation training mode.
Specifically, the breath training guidance mode corresponds to a breath training guidance mode data packet, the data packet including breath training guidance data including a breath mode and a breath intensity, and a breath training real-time guidance image.
Specifically, if the breathing sound wave is not detected, prompting that the breathing mask is not installed or is installed incorrectly; the method comprises the following steps:
respiratory sound wave lower than 20 dB is judged as incorrect exhalation, and the judgment of 'not installing a respiratory mask or not installing correctly' is indicated.
In another aspect, the embodiment of the present invention provides a respiratory training system based on virtual reality, including a respiratory mask, where a baffle is disposed at a position corresponding to an oral-nasal position of the respiratory mask, and the respiratory mask is fastened on virtual reality equipment, and further including:
correctly wear the detection unit: detecting a respiratory sound wave signal and a respiratory airflow direction signal of a user; if the breathing sound wave is not detected, prompting that the breathing mask is not installed or the installation is incorrect;
mode selection unit: in response to detecting the breath sound wave, prompting a selection of a breath training coaching mode;
a breathing pattern acquisition unit: determining a breathing mode according to the flow direction signal of the breathing air flow, wherein the breathing mode is inspiration or expiration;
respiratory intensity acquisition unit: preprocessing a respiratory sound wave signal, and corresponding to respiratory intensity according to decibels;
a respiratory image generation unit: continuously generating a real-time breathing image according to the breathing mode and the breathing intensity, and outputting the breathing image to a VR picture;
breath training unit: and generating a contrast diagram according to the real-time respiratory image and the selected respiratory training instruction mode until the real-time respiratory image matches the selected respiratory training instruction mode, and finishing respiratory training.
In particular, the respiratory training guidance mode includes, but is not limited to, a parturient respiratory training mode, a meditation respiratory training mode, and a respiratory disease rehabilitation training mode.
Specifically, the breath training guidance mode corresponds to a breath training guidance mode data packet, the data packet including breath training guidance data including a breath mode and a breath intensity, and a breath training real-time guidance image.
Specifically, if the breathing sound wave is not detected, prompting that the breathing mask is not installed or is installed incorrectly; the method comprises the following steps:
respiratory sound wave lower than 20 dB is judged as incorrect exhalation, and the judgment of 'not installing a respiratory mask or not installing correctly' is indicated.
Still another aspect of the present invention provides an electronic apparatus, including: the breathing training device comprises a memory, a processor and a computer program stored on the memory and capable of running on the processor, wherein the processor realizes the breathing training step based on virtual reality when executing the computer program.
In yet another aspect, the present invention provides a computer readable storage medium having a computer program stored therein, which when executed by a processor, implements a virtual reality-based breath training step as described above.
As can be seen from the above description of the present invention, compared with the prior art, the present invention has the following advantages:
the invention provides a breathing training method based on virtual reality, which is characterized by comprising a breathing mask, wherein a baffle is arranged at the position, corresponding to an oral cavity and a nasal cavity, of the breathing mask, the breathing mask is buckled on virtual reality equipment, and the breathing training method comprises the following steps: detecting a respiratory sound wave signal and a respiratory airflow direction signal of a user; if the breathing sound wave is not detected, prompting that the breathing mask is not installed or the installation is incorrect; in response to detecting the breath sound wave, prompting a selection of a breath training coaching mode; determining a breathing mode according to the flow direction signal of the breathing air flow, wherein the breathing mode is inspiration or expiration; preprocessing a respiratory sound wave signal, and corresponding to respiratory intensity according to decibels; continuously generating a real-time breathing image according to the breathing mode and the breathing intensity, and outputting the breathing image to a VR picture; generating a contrast graph according to the real-time respiratory image and the selected respiratory training instruction mode until the real-time respiratory image matches the selected respiratory training instruction mode, and finishing respiratory training; the invention provides a breath training method based on virtual reality, which integrates breath modes with different requirements, converts breath data into a real-time breath image, completes scientific guidance through matching of the real-time breath image and a set scientific mode, and is easy to operate, simple and effective for a user.
Detailed Description
The invention provides a breath training method based on virtual reality, which integrates breath modes with different requirements, converts breath data into a real-time breath image, completes scientific guidance through matching of the real-time breath image and a set scientific mode, and is easy to operate, simple and effective for a user.
As shown in fig. 1, a user wears a scene diagram of a breathing mask and VR equipment, a double-hook on the breathing mask is firstly installed on the edge of the VR integrated machine on the same face of a power switch, then a single buckle on the lower side of the breathing mask is clamped at a concave inlet on the lower side of the VR integrated machine, the breathing mask is installed, and a baffle is arranged at the position, corresponding to the nose and the mouth, of the breathing mask for enhancing breathing sound waves.
Fig. 2 is a flowchart of a breath training method based on virtual reality, and the specific method is as follows:
s101: detecting a respiratory sound wave signal and a respiratory airflow direction signal of a user; if the breathing sound wave is not detected, prompting that the breathing mask is not installed or the installation is incorrect;
the mask is provided with an acoustic wave sensor and an airflow sensor, and is used for detecting breathing acoustic wave signals and breathing airflow direction signals of a user, prompting that the breathing mask is not installed or is installed incorrectly if the breathing acoustic wave is not detected, specifically prompting that the breathing acoustic wave is lower than 20 dB and judging that the breathing mask is not installed correctly exhales, prompting that the breathing acoustic wave is not installed or is installed incorrectly, prompting that the breathing acoustic wave is between 20 and 70 dB, prompting that a breathing training guidance mode is selected, and further prompting that the breathing acoustic wave is higher than 70 dB, judging that the environment is too noisy and prompting that the user should replace the training environment.
S102: in response to detecting the breath sound wave, prompting a selection of a breath training coaching mode;
in particular, the respiratory training guidance mode includes, but is not limited to, a parturient respiratory training mode, a meditation respiratory training mode, and a respiratory disease rehabilitation training mode. Specifically, the different respiratory training guidance modes correspond to a respiratory training guidance mode data packet, the data packet including respiratory training guidance data including a respiratory mode and a respiratory intensity, and a respiratory training real-time guidance image.
S103: determining a breathing mode according to the flow direction signal of the breathing air flow, wherein the breathing mode is inspiration or expiration;
the flow direction signal of the respiratory airflow is detected according to the airflow sensor, and whether inhalation or exhalation is performed is determined according to the flow direction signal of the respiratory airflow.
S104: preprocessing a respiratory sound wave signal, and corresponding to respiratory intensity according to decibels;
firstly, preprocessing according to respiratory acoustic signals detected by an acoustic sensor, wherein the preprocessing comprises filtering and noise reduction, then obtaining the decibel of the preprocessed acoustic signals, and corresponding the decibel of the acoustic signals to respiratory intensity.
S105: continuously generating a real-time breathing image according to the breathing mode and the breathing intensity, and outputting the breathing image to a VR picture;
different respiration image templates exist in the system, such as a respiration flame template, the respiration mode corresponds to the direction of respiration flame, when the respiration mode is expiration, the flame is leftward, when the respiration mode is inspiration, the flame is rightward, and the respiration intensity corresponds to the height of respiration flame, so that a respiration image is generated.
S106: and generating a contrast diagram according to the real-time respiratory image and the selected respiratory training instruction mode until the real-time respiratory image matches the selected respiratory training instruction mode, and finishing respiratory training.
The VR images are presented with the real-time breath image and the breath training real-time instruction image simultaneously, and the breath flame template is taken as an example, when the breath flame direction and the breath flame height of the real-time breath image are consistent with the breath flame direction and the breath flame height of the breath training real-time instruction image, the breath image is matched with the selected breath training instruction mode, and the breath training is completed. In the process, the user adjusts the breathing according to the real-time breathing image and the breathing training real-time guiding image, so that the real-time breathing image and the breathing training real-time guiding image are matched.
For example, a pregnant woman selects a parturient respiratory training mode, and the aims of relieving labor pain, adjusting state and accelerating delivery are achieved through a Lema respiratory method. The user is guided to carry out breathing training according to the rhythm of the Lema breathing method in an interactive software mode.
An image of breathing flame in a pregnant woman's lamarcus breathing method is illustrated in fig. 3. In-process can voice prompt lying-in women to breathe according to rhythm, and the breathing rhythm of the lying-in women is correct, and in-process lying-in women can master the correct breathing rhythm through real-time feedback and strengthening exercise effects.
Fig. 4 is a schematic diagram of a respiratory training system based on virtual reality, specifically including a respiratory mask, the respiratory mask sets up a baffle corresponding to the mouth and nose, and the respiratory mask is buckled on virtual reality equipment, and further includes:
the correct wearing detection unit 401: detecting a respiratory sound wave signal and a respiratory airflow direction signal of a user; if the breathing sound wave is not detected, prompting that the breathing mask is not installed or the installation is incorrect;
the mask is provided with an acoustic wave sensor and an airflow sensor, and is used for detecting breathing acoustic wave signals and breathing airflow direction signals of a user, prompting that the breathing mask is not installed or is installed incorrectly if the breathing acoustic wave is not detected, specifically prompting that the breathing acoustic wave is lower than 20 dB and judging that the breathing mask is not installed correctly exhales, prompting that the breathing acoustic wave is not installed or is installed incorrectly, prompting that the breathing acoustic wave is between 20 and 70 dB, prompting that a breathing training guidance mode is selected, and further prompting that the breathing acoustic wave is higher than 70 dB, judging that the environment is too noisy and prompting that the user should replace the training environment.
Mode selection unit 402: in response to detecting the breath sound wave, prompting a selection of a breath training coaching mode;
in particular, the respiratory training guidance mode includes, but is not limited to, a parturient respiratory training mode, a meditation respiratory training mode, and a respiratory disease rehabilitation training mode. Specifically, the different respiratory training guidance modes correspond to a respiratory training guidance mode data packet, the data packet including respiratory training guidance data including a respiratory mode and a respiratory intensity, and a respiratory training real-time guidance image.
Breathing pattern acquisition unit 403: determining a breathing mode according to the flow direction signal of the breathing air flow, wherein the breathing mode is inspiration or expiration;
the flow direction signal of the respiratory airflow is detected according to the airflow sensor, and whether inhalation or exhalation is performed is determined according to the flow direction signal of the respiratory airflow.
Breath intensity acquisition unit 404: preprocessing a respiratory sound wave signal, and corresponding to respiratory intensity according to decibels;
firstly, preprocessing according to respiratory acoustic signals detected by an acoustic sensor, wherein the preprocessing comprises filtering and noise reduction, then obtaining the decibel of the preprocessed acoustic signals, and corresponding the decibel of the acoustic signals to respiratory intensity.
A respiratory image generation unit 405: continuously generating a real-time breathing image according to the breathing mode and the breathing intensity, and outputting the breathing image to a VR picture;
different respiration image templates exist in the system, such as a respiration flame template, the respiration mode corresponds to the direction of respiration flame, when the respiration mode is expiration, the flame is leftward, when the respiration mode is inspiration, the flame is rightward, and the respiration intensity corresponds to the height of respiration flame, so that a respiration image is generated.
Breath training unit 406: and generating a contrast diagram according to the real-time respiratory image and the selected respiratory training instruction mode until the real-time respiratory image matches the selected respiratory training instruction mode, and finishing respiratory training.
The VR images are presented with the real-time breath image and the breath training real-time instruction image simultaneously, and the breath flame template is taken as an example, when the breath flame direction and the breath flame height of the real-time breath image are consistent with the breath flame direction and the breath flame height of the breath training real-time instruction image, the breath image is matched with the selected breath training instruction mode, and the breath training is completed. In the process, the user adjusts the breathing according to the real-time breathing image and the breathing training real-time guiding image, so that the real-time breathing image and the breathing training real-time guiding image are matched.
As shown in fig. 5, an electronic device 500 is provided according to an embodiment of the present invention, which includes a memory 510, a processor 520, and a computer program 511 stored in the memory 520 and capable of running on the processor 520, and the processor 520 implements the breathing training method based on virtual reality according to the embodiment of the present invention when executing the computer program 511.
Since the electronic device described in this embodiment is a device used in implementing the embodiment of the present invention, based on the method described in this embodiment of the present invention, those skilled in the art can understand the specific implementation of the electronic device in this embodiment and various modifications thereof, so how the electronic device implements the method in the embodiment of the present invention will not be described in detail herein, and only those devices used by those skilled in the art to implement the method in the embodiment of the present invention are included in the scope of the invention.
Referring to fig. 6, fig. 6 is a schematic diagram of an embodiment of a computer readable storage medium according to an embodiment of the invention.
As shown in fig. 6, the present embodiment provides a computer readable storage medium 400, on which a computer program 611 is stored, which computer program 611, when executed by a processor, implements a breath training method based on virtual reality provided by an embodiment of the present invention.
In the foregoing embodiments, the descriptions of the embodiments are focused on, and for those portions of one embodiment that are not described in detail, reference may be made to the related descriptions of other embodiments.
It will be appreciated by those skilled in the art that embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The invention provides a breathing training method based on virtual reality, which is characterized by comprising a breathing mask, wherein a baffle is arranged at the position, corresponding to an oral cavity and a nasal cavity, of the breathing mask, the breathing mask is buckled on virtual reality equipment, and the breathing training method comprises the following steps: detecting a respiratory sound wave signal and a respiratory airflow direction signal of a user; if the breathing sound wave is not detected, prompting that the breathing mask is not installed or the installation is incorrect; in response to detecting the breath sound wave, prompting a selection of a breath training coaching mode; determining a breathing mode according to the flow direction signal of the breathing air flow, wherein the breathing mode is inspiration or expiration; preprocessing a respiratory sound wave signal, and corresponding to respiratory intensity according to decibels; continuously generating a real-time breathing image according to the breathing mode and the breathing intensity, and outputting the breathing image to a VR picture; generating a contrast graph according to the real-time respiratory image and the selected respiratory training instruction mode until the real-time respiratory image matches the selected respiratory training instruction mode, and finishing respiratory training; the invention provides a breath training method based on virtual reality, which integrates breath modes with different requirements, converts breath data into a real-time breath image, completes scientific guidance through matching of the real-time breath image and a set scientific mode, and is easy to operate, simple and effective for a user.
It should be noted that in this document, relational terms such as "first" and "second" and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Moreover, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element. The foregoing is merely a specific embodiment of the application to enable one skilled in the art to understand or practice the application. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the application. Thus, the present application is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.
The foregoing is merely illustrative of specific embodiments of the present invention, but the design concept of the present invention is not limited thereto, and any insubstantial modification of the present invention by using the design concept falls into the protection scope of the present invention.