Method, device, storage medium and electronic device for real-time positioning of breathing phase in olfactory decoding system

Through the method and device for real-time positioning of the respiratory phase, the problem that odor decoding cannot be decoded in real-time in the prior art is solved, and fast and sensitive odor detection is realized, which is suitable for portable bioelectronic nose equipment.

CN115987253BActive Publication Date: 2025-08-01GUANGDONG MEDICAL UNIV
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202211584518.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-12-09
Publication Date
2025-08-01
Estimated Expiration
2042-12-09

AI Technical Summary

Technical Problem

In the prior art, odor decoding mainly adopts offline analysis methods, which cannot meet the needs of real-time decoding, especially the rapid response requirements for harmful gas detection in flammable and explosive environments or rescue activities.

Method used

Respiratory signals are collected through pressure sensors, and real-time positioning devices composed of amplifiers, analog-to-digital conversion units, low-pass filter units, and phase locking units are used to position the respiratory phase in real time, especially the inhalation phase, to achieve rapid odor decoding.

Benefits of technology

Real-time positioning of the respiratory phase is realized, real-time and sensitivity of the olfactory decoding system are improved, and the design of portable bioelectronic nose devices is provided.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115987253B_ABST
    Figure CN115987253B_ABST
Patent Text Reader

Abstract

An embodiment of the present application discloses a method, device, storage medium, and electronic device for real-time positioning of respiratory phases in an olfactory decoding system, which relates to the field of olfactory decoding. In the present application, a low-pass filter unit filters the digital respiratory signal generated by an analog-to-digital converter, and the filtered digital respiratory signal is cycle-locked to generate a respiratory cycle-locked signal. When it is detected that the odor delivery signal is valid, the zero-crossing points of the digital respiratory signal are detected within the first respiratory cycle determined by the respiratory cycle-locked signal, and the phase of the zero-crossing point is used as the starting position for olfactory decoding, realizing the rapid positioning of the respiratory phase after odor delivery and making it possible for the subsequent real-time odor decoding of the olfactory decoding system.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of olfactory decoding, and in particular, to a method, device, storage medium, and electronic device for real-time positioning of respiratory phases in an olfactory decoding system. Background Art

[0002] Odors can provide very useful information in the real world. Mammals often use or rely on odors to explore information about the external world. For example, lions usually use their unique odor to mark their territory; gorillas can judge the quality of food by smelling it and also avoid dangerous predators based on the detected odor. In human daily life, odors also have their unique uses: such as detecting flammable and explosive items, illegal drugs, or even in the exploration of mineral resources. Interestingly, scientists have even found that trained dogs can detect whether a patient has certain types of cancer through odors. All these applications highlight the important uses of odor detection and discrimination, and also promote the research of scientists, especially neuroscientists, on the encoding and decoding principles of the mammalian olfactory system.

[0003] Neuroscientists have found that in the olfactory system of ordinary animals, odor information is first captured by olfactory sensor neurons, which convert the odor information into neuronal action potentials. Then, through olfactory glomeruli, the information of the same type of olfactory sensor neurons is transmitted into the olfactory bulb. Mitral / tufted cells in the olfactory bulb encode the received odor information and transmit it to the next-level olfactory sensory central nerve for processing. Therefore, by recording and decoding the information encoded by mitral / tufted cells, the contained odor information can be decoded. Early research found that odor stimulation can trigger neuronal activities in different time domains, and these activities contain key information representing odor encoding, where respiratory information was not used in the analysis and decoding. Later, further research found that the activities of mitral / tufted cells are affected by respiration, and the information of neuronal activities is modulated by respiratory phases. Respiration is an active sampling process for odors, and the encoding process of neurons for the entire odor can be completed in a single rapid inhalation phase. The encoding process of the olfactory system for the entire odor is contained in the information of neurons in each respiratory cycle. However, neuroscientists further found that in the respiratory cycle, the inhalation phase contains the most important decoding information, especially the neuronal information within the initial dozens of milliseconds of the first inhalation phase, which contains the most important encoding information; moreover, the encoded information is stably present in both fast and slow respirations.

[0004] Currently, odor decoding, particularly from a neuronal perspective, mostly relies on offline analysis: This involves recording odor delivery and respiratory information, along with the activity of mitral cells, and storing this information on a hard drive. After the experiment, software is developed to analyze the neuronal activity and decode the odor information encoded by the neurons. This approach places no strict requirements on decoding time. However, this offline decoding approach is unsuitable for applications requiring real-time decoding. For example, detecting odors in flammable and explosive environments requires as fast as possible, while detecting hazardous gases during rescue operations demands even faster processing. In these applications, real-time decoding is crucial and holds significant practical significance. Detecting the respiratory phase, especially the rapid and real-time inhalation phase, is a key step in achieving real-time decoding. Because the olfactory system encodes odor information within the first few tens of milliseconds of inhalation after odor detection, detecting the first inhalation phase to improve the real-time performance of odor decoding is a current research hotspot.

[0005] Application Content

[0006] The present invention provides a method, device, storage medium, and electronic device for real-time respiratory phase positioning in an olfactory decoding system, which can locate the respiratory phase in real time. The technical solution is as follows:

[0007] In a first aspect, an embodiment of the present application provides a method for real-time positioning of respiratory phase in an olfactory decoding system, the method comprising:

[0008] amplifying the analog respiratory signal collected by the pressure sensor and converting the amplified analog respiratory signal into a digital respiratory signal;

[0009] Converting the analog switch signal of the odor delivery control unit into a digital signal for odor delivery control;

[0010] Performing low-pass filtering on the digital respiratory signal;

[0011] Performing cycle locking on the filtered digital respiratory signal to generate a respiratory cycle locking signal;

[0012] When the edge of the odor delivery control digital signal is detected, the first breathing cycle is determined according to the breathing cycle locking signal, and the zero crossing point of the filtered digital breathing signal is detected within the first breathing cycle, and the phase of the zero crossing point is used as the target phase.

[0013] In a second aspect, an embodiment of the present application provides a device for real-time positioning of respiratory phase in an olfactory decoding system, the device comprising:

[0014] An amplifier for amplifying the analog respiration signal collected by a pressure sensor;

[0015] An analog-to-digital conversion unit for converting the amplified analog respiration signal into a digital respiration signal;

[0016] The analog-to-digital conversion unit is further configured to convert the analog switch signal of the odor delivery control unit into an odor delivery control digital signal;

[0017] A low-pass filtering unit for performing low-pass filtering on the digital respiration signal;

[0018] A respiration cycle locking unit for performing cycle locking on the filtered digital respiration signal to generate a respiration cycle locking signal;

[0019] A phase locking unit, when detecting the edge of the odor delivery control digital signal, determines the first respiration cycle according to the respiration cycle locking signal, and detects the zero-crossing point of the filtered digital respiration signal within the first respiration cycle through a zero-crossing detection unit, and takes the phase of the zero-crossing point as the target phase.

[0020] In a third aspect, an embodiment of the present application provides a computer storage medium storing multiple instructions suitable for being loaded and executed by a processor to perform the above method steps.

[0021] In a fourth aspect, an embodiment of the present application provides an electronic device, which may include: a processor and a memory; wherein, the memory stores a computer program suitable for being loaded and executed by the processor to perform the above method steps.

[0022] The beneficial effects brought by the technical solutions provided by some embodiments of the present application at least include:

[0023] By filtering the digital respiration signal generated by the analog-to-digital converter through a low-pass filtering unit, performing cycle locking on the filtered digital respiration signal to generate a respiration cycle locking signal, detecting the zero-crossing point of the digital respiration signal within the first respiration cycle determined according to the respiration cycle locking signal when detecting the edge of the odor delivery signal, and taking the phase of the zero-crossing point as the starting position of olfactory decoding, it realizes quickly positioning the respiration phase after odor delivery, making it possible for the subsequent real-time odor decoding of the olfactory decoding system. Each unit of the present application can adopt a proprietary hardware circuit system, thus laying a foundation for the design and implementation of an integrated, low-power, portable, and highly sensitive bioelectronic nose device. Description of the Drawings

[0024] To more clearly illustrate the technical solutions in the embodiments of the present application or the prior art, the following will briefly introduce the drawings required for use in the description of the embodiments or the prior art. Obviously, the drawings in the following description are only some embodiments of the present application. For those of ordinary skill in the art, without creative efforts, other drawings can also be obtained based on these drawings.

[0025] Figure 1 It is a schematic structural diagram of a real-time respiratory phase positioning system provided by an embodiment of the present application;

[0026] Figure 2 It is a schematic flowchart of a method for real-time respiratory phase positioning applied in an olfactory decoding system provided by an embodiment of the present application;

[0027] Figure 3 It is a schematic diagram of the waveform effect of digital low-pass filtering provided by an embodiment of the present application;

[0028] Figure 4 It is a schematic diagram of the principle for generating a respiratory cycle-locked signal provided by an embodiment of the present application;

[0029] Figure 5 It is a schematic diagram of phase locking provided by an embodiment of the present application;

[0030] Figure 6 It is a schematic structural diagram of an electronic device provided by the present application. Detailed implementation manners

[0031] To make the objectives, technical solutions, and advantages of the present application clearer, the following will further describe the embodiments of the present application in detail in conjunction with the drawings.

[0032] Please refer to Figure 1 , a schematic diagram of a network structure provided by an embodiment of the present application, including: a real-time respiratory phase positioning device (abbreviated as the real-time positioning device) applied in an olfactory decoding system and a computer device. The real-time positioning device includes: a pressure sensor, an amplifier, an analog-to-digital conversion unit, an odor delivery unit, a low-pass filtering unit, a respiratory cycle locking unit, a zero-crossing detection unit, a phase locking unit, and a communication interface.

[0033] Among them, a pressure sensor is used to monitor the pressure change amount during the breathing process, convert the pressure change amount into an analog breathing signal, an amplifier amplifies the analog breathing signal, and an odor delivery control unit is used to control the opening or closing of an odor valve through an analog switch signal. An analog-to-digital conversion unit converts the amplified analog breathing signal into a digital breathing signal and converts the analog switch signal into a digital switch signal. A low-pass filter unit is used to perform low-pass filtering on the digital breathing signal. A breathing cycle locking unit is used to perform cycle locking on the filtered digital breathing signal to generate a breathing cycle locking signal. A zero-crossing detection unit is used to detect the zero-crossing point of the filtered digital breathing signal, and a phase locking unit is used to determine the first breathing cycle according to the breathing cycle locking signal when detecting the edge of the odor delivery control digital signal, and detect the zero-crossing point of the filtered digital breathing signal within the first breathing cycle through the zero-crossing detection unit, and use the phase of the zero-crossing point as the target phase.

[0034] Further, the electronic device further includes a communication interface. The low-pass filter unit sends the filtered digital breathing signal to the computer device through the communication interface, the breathing cycle locking unit sends the breathing cycle locking signal to the computer device through the communication interface, the phase locking unit sends the locked target phase to the computer device, and the computer device displays and stores the received signal waveforms in real time on the display screen for subsequent offline analysis and verification.

[0035] In some embodiments, the breathing cycle locking unit performs cycle locking on the filtered digital breathing signal to generate a breathing cycle locking signal, including:

[0036] Obtain the amplitudes of each sampling point in the filtered digital breathing signal;

[0037] If the amplitude of a sampling point is greater than a first threshold, control the breathing cycle locking signal to remain at a high level; wherein, the first threshold is greater than zero;

[0038] If the amplitude of a sampling point is less than zero, control the breathing cycle locking signal to remain at a low level.

[0039] In some embodiments, the zero-crossing point is a negative zero-crossing point, and the negative zero-crossing point satisfies: y[n]<0 and y[n - 1]>0, where y[n] is the amplitude of the current sampling point in the filtered digital breathing signal, and y[n - 1] is the amplitude of the previous sampling point.

[0040] In some embodiments, the low-pass filter unit sends the filtered digital breathing signal to the breathing cycle locking unit for cycle locking to generate a breathing cycle locking signal, including:

[0041] Obtain the amplitudes of each sampling point in the filtered digital breathing signal;

[0042] If the amplitude of a sampling point is less than a second threshold, control the respiratory cycle locking signal to remain at a high level; wherein, the second threshold is less than zero.

[0043] If the amplitude of a sampling point is greater than zero, control the respiratory cycle locking signal to remain at a low level.

[0044] In some embodiments, the zero crossing is a positive zero crossing, and the positive zero crossing satisfies: y[n]>0 and y[n - 1]<0, where y[n] is the amplitude of the current sampling point in the filtered digital respiratory signal, and y[n - 1] is the amplitude of the previous sampling point.

[0045] In some embodiments, the low-pass filtering unit is a second-order IIR filter.

[0046] In some embodiments, it further includes: a register, which is used to receive a first threshold or a second threshold and filter parameters configured by a computer device.

[0047] It should be noted that when the above-mentioned real-time positioning device provided in the above embodiments executes the method for real-time positioning of the respiratory phase in the olfactory decoding system, only the above-mentioned division of each functional module is used for illustration. In actual applications, the above functions can be allocated to different functional modules according to needs, that is, the internal structure of the device is divided into different functional modules to complete all or part of the above functions. In addition, the device for real-time positioning of the respiratory phase in the olfactory decoding system provided in the above embodiments and the method embodiments for real-time positioning of the respiratory phase in the olfactory decoding system belong to the same concept, and the implementation process is shown in the following method embodiments.

[0048] Next, in conjunction with the attached Figure 2 drawings, the method for real-time positioning of the respiratory phase in the olfactory decoding system provided in the embodiments of the present application will be introduced in detail.

[0049] Please refer to Figure 2 drawings, which is a schematic flowchart of a method for real-time positioning of the respiratory phase in the olfactory decoding system provided in the embodiments of the present application. As Figure 2 shown, the method of the embodiments of the present application may include the following steps:

[0050] S201. Amplify the analog respiratory signal collected by the pressure sensor.

[0051] S202. Convert the amplified analog respiratory signal into a digital respiratory signal, and convert the analog switch signal of the odor delivery control system into an odor delivery control digital signal.

[0052] Among them, the pressure sensor monitors the pressure change of the respiratory airflow in real time, converts the pressure change into a voltage signal (i.e., an analog respiratory signal). The voltage signal is very weak, generally less than 1 millivolt. The amplifier amplifies the voltage signal (analog respiratory signal) to meet the voltage requirements of CMOS devices. Then, the analog-to-digital converter (ADC) converts the amplified analog respiratory signal into a digital respiratory signal. The odor delivery control unit is used to control the delivery or shutdown of odor molecules. The specific process is that the odor delivery control unit sends an analog switch signal to control the delivery or shutdown of odor molecules, so that the olfactory decoding system can identify the odor type according to the delivered odor molecules. The analog-to-digital converter converts the analog switch signal into an odor delivery control digital signal, and the odor delivery control digital signal is a digital signal. For example: Refer to Figure 1 As shown, the odor delivery control digital signal is a binary digital signal. When the odor delivery control digital signal is at a high level, it indicates that the odor valve is opened. When the odor delivery control digital signal is at a low level, the odor valve is closed.

[0053] S203. Perform low-pass filtering on the digital respiratory signal.

[0054] Among them, there are many high-frequency glitches in the recorded digital respiratory signal. After the low-pass filtering unit performs low-pass filtering on the digital respiratory signal, the waveform of the digital respiratory signal will become smooth. The cut-off frequency of the low-pass filtering unit can be configured to be less than 50 Hz. For example: Refer to Figure 3 As shown, there are many points (glitches) with large amplitude fluctuations in the digital respiratory signal before low-pass filtering. After low-pass filtering, the profile of the digital respiratory signal becomes very smooth.

[0055] In the embodiment of the present application, the type of the low-pass filtering unit can be a FIR (finite impulse response) filter or an IIR (infinite impulse response) filter.

[0056] Preferably, a second-order IIR filter can be used in this application to perform low-pass filtering on the digital breath signal. Compared with the FIR filter, the IIR filter requires more orders to achieve the same filtering effect. The more orders, the more time consumed by the calculation. Since this application needs to achieve real-time odor detection, the positioning time of the breath phase should be as fast as possible. The frequency of breathing is generally less than 20 Hz, and usually the sampling rate of the ADC is less than 1 KHz. Therefore, in the process of digital signal processing, the delay of one sampling point is about millisecond-level. In order to reduce the delay of the low-pass filtering unit in this application, a second-order IIR filter is used to complete the low-pass filtering process, which only produces a small amount of delay (the delay of 2 sampling points). The output formula of the second-order IIR filter is: y[n] = b0*sniff[n] + b1*sniff[n - 1] + b2*sniff[n - 2] - a1*y[n - 1] - a2*y[n - 2]

[0057] ; where, sniff[n] represents the current digital breath signal, y[n] represents the filtered output digital breath signal, and b0, b1, b2, a1, a2 are pre-configured filter parameters.

[0058] Furthermore, in order to provide flexibility in the application scenario, the filter parameters can be set to different values according to different requirements. For example: different filter parameters are configured according to different cut-off frequencies, and the configured filter parameters are stored in the register. The low-pass filtering unit reads the filter parameters in the register for configuration before filtering, and then completes the low-pass filtering process.

[0059] S204. Perform cycle locking on the filtered digital breath signal to generate a breath cycle locking signal.

[0060] Among them, the breathing process consists of two actions: inhalation and exhalation, so it has the characteristic of periodicity. For example: refer to Figure 3 the waveform diagram of the digital breath signal shown. The phase of the digital breath signal changes periodically. In this application, cycle locking is performed on the filtered digital breath signal to generate a breath cycle locking signal. The breath cycle locking signal consists of multiple breath cycles, and the length of each breath cycle may not be equal. Each breath cycle consists of a positive cycle and a negative cycle.

[0061] Furthermore, there may be multiple points with very small amplitudes in the filtered digital breath signal. These abnormal points generated by interference need to be removed. The process of generating the cycle-locked signal is as follows.

[0062] Method 1: Refer to Figure 4As shown, a respiratory cycle locking signal is generated by detecting the positive cycle. A first threshold value threshold1 is preconfigured in the register, and the first threshold value is greater than 0. The amplitudes of each sampling point in the digital respiratory signal are obtained. When the amplitude of a sampling point is greater than the first threshold value, the respiratory cycle locking signal is maintained at a high level; when the amplitude of the sampling point is less than 0, the respiratory cycle locking signal is maintained at a low level, and finally the Figure 4 respiratory cycle locking signal shown is generated.

[0063] Method 2: A respiratory cycle locking signal is generated by detecting the negative cycle. A second threshold value threshold2 is preconfigured in the register, and the second threshold value is less than 0. The amplitudes of each sampling point in the digital respiratory signal are obtained. When the amplitude of a sampling point is less than the second threshold value, the respiratory cycle locking signal is maintained at a high level; when the amplitude of the sampling point is greater than 0, the respiratory cycle locking signal is maintained at a low level.

[0064] The present application can lock the cycle of the digital respiratory signal using any one of the above methods, or use both methods simultaneously to reduce interference during the respiratory process and improve the accuracy of detecting the respiratory cycle.

[0065] S205: When the edge of the odor delivery control digital signal is detected, the first respiratory cycle is determined according to the respiratory cycle locking signal, and the zero-crossing point of the filtered digital respiratory signal is detected within the first respiratory cycle, and the phase of the zero-crossing point is used as the target phase.

[0066] Among them, the edge of the odor delivery control digital signal can be a rising edge or a falling edge. Taking the rising edge as an example, when the rising edge of the odor delivery control digital signal is detected, it means that the odor valve is opened at this time. The first respiratory cycle starting from the rising edge is determined according to the respiratory cycle locking signal generated in S204. The respiratory cycle consists of a high-level duration and a low-level duration. For example: Refer to Figure 5 As shown, when the rising edge of the odor delivery control digital signal is detected, the first respiratory cycle starting from this rising edge is determined as shown by the double arrow in Figure 5 . The zero-crossing point of the filtered digital respiratory signal is detected within the first respiratory cycle. The zero-crossing point can be a positive zero-crossing point or a negative zero-crossing point. When using Method 1 of S204 to generate the respiratory cycle locking signal, the negative zero-crossing point is detected; when using Method 2 of S204 to generate the respiratory cycle locking signal, the positive zero-crossing point is detected. The phase of this zero-crossing point is used as the target phase, and the olfactory decoding system decodes the odor within a preset time interval starting from this zero-crossing point to identify the odor type. The olfactory decoding system can be a pre-trained artificial neural network, and the preset time duration can be determined according to actual needs. Generally, the preset time duration is less than 100 milliseconds.

[0067] Due to the interference of noise, a digital respiratory signal may contain multiple zero-crossing points within one respiratory cycle. In this application, the zero-crossing point within the first respiratory cycle is determined by the edge trigger of the odor delivery signal. There will only be one positive zero-crossing point and one negative zero-crossing point within one respiratory cycle. The olfactory decoding system is triggered for olfactory decoding with the phase of this zero-crossing point as the boundary, avoiding the influence of interference on respiratory phase positioning.

[0068] Taking the output signal y[n] of the above IIR filter as an example, the zero-crossing detection process is described as follows:

[0069] The zero-crossing detection unit detects whether the filtered digital respiratory signal y[n] has a zero-crossing. In this application, the definition of the positive phase of respiration is: y[n]<0 and y[n - 1]>0 (negative zero-crossing point); the definition of the negative phase is: y[n]>0 and y[n - 1]<0 (positive zero-crossing point); and for an ideal smooth respiratory signal, there is only one positive phase and one negative phase within one respiratory cycle, or in other words, only two zero-crossing conditions are detected. For the detection of the respiratory phase, theoretically it is the detection of the zero-crossing point, and the detected positive or negative respiratory phase is output according to the type of the pressure sensor and the requirements of decoding. Zero-crossing detection is also relatively easy to implement in hardware, only need to judge the highest sign bit of the y[n] signal. However, simply using the zero-crossing detection unit to detect the respiratory phase cannot be achieved in actual experiments, because during the preparation process of stable respiration (such as before inhalation), due to the existence of noise, the respiratory signal y[n] will have a large number of fluctuations near the zero voltage, that is, the value of y[n] fluctuates slightly around the zero voltage (as Figure 5 shown), so simply detecting the zero-crossing point as the judgment standard for the respiratory phase will detect multiple zero-crossing points within the same respiratory cycle and cannot be used as a method for judging the respiratory phase, and it needs to cooperate with the respiratory cycle locking module to accurately locate the correct phase within the respiratory cycle.

[0070] In the embodiment of this application, the first threshold, the second threshold, filter parameters, etc. configured in the register can be configured and modified online by a computer device. See Figure 1 shown, the computer device communicates with the real-time positioning device of the respiratory phase of this application through a communication interface (for example: Uart / SPI). Further, the real-time positioning device of the respiratory phase can also transmit the original digital respiratory signal, the filtered numerical respiratory signal, the respiratory cycle locking signal, and the odor delivery control digital signal to the computer device through the communication interface for information display and storage for subsequent offline analysis and verification.

[0071] In this application, the digital respiration signal generated by the analog-to-digital converter is filtered by a low-pass filtering unit, and the filtered digital respiration signal is cycle-locked to generate a respiration cycle-locked signal. When the edge of the odor delivery signal is detected, the zero-crossing point of the digital respiration signal is detected within the first respiration cycle determined by the respiration cycle-locked signal, and the phase of the zero-crossing point is used as the starting position for olfactory decoding, realizing the rapid positioning of the respiration phase after odor delivery and making it possible for the subsequent real-time odor decoding of the olfactory decoding system. Each unit of this application can adopt a proprietary hardware circuit system, thus laying a foundation for the design and implementation of an integrated, low-power, portable, and highly sensitive bioelectronic nose device.

[0072] An embodiment of this application also provides a computer storage medium, which can store multiple instructions. The instructions are suitable for being loaded and executed by a processor to perform the method steps of the above Figure 2 illustrated embodiment. The specific execution process can refer to Figure 2 the specific description of the illustrated embodiment and will not be elaborated here.

[0073] This application also provides a computer program product. The computer program product stores at least one instruction, and the at least one instruction is loaded and executed by the processor to implement the method for real-time respiration phase positioning of the application in the olfactory decoding system as described in the above various embodiments.

[0074] Please refer to Figure 6 for a schematic structural diagram of an electronic device provided by an embodiment of this application. As Figure 6 shown, the electronic device 600 may include: at least one processor 601, at least one communication interface 604, a user interface 603, a memory 605, and at least one communication bus 602.

[0075] Among them, the communication bus 602 is used to realize the connection and communication between these components.

[0076] Among them, the user interface 603 may include a display screen (Display) and a camera (Camera). Optionally, the user interface 603 may further include a standard wired interface and a wireless interface.

[0077] Among them, the communication interface 604 may optionally include a standard wired interface and a wireless interface (such as a WI-FI interface).

[0078] Among them, the processor 601 may include one or more processing cores. The processor 601 uses various interfaces and circuits to connect various parts within the entire electronic device 600, and executes various functions of the electronic device 600 and processes data by running or executing instructions, programs, code sets, or instruction sets stored in the memory 605, and by invoking the data stored in the memory 605. Optionally, the processor 601 may be implemented in at least one hardware form of digital signal processing (DSP), field-programmable gate array (FPGA), or programmable logic array (PLA). The processor 601 may integrate one or a combination of several of a central processing unit (CPU), a graphics processing unit (GPU), and a modem, etc. Among them, the CPU mainly processes the operating system, user interface, application programs, etc.; the GPU is responsible for rendering and drawing the content to be displayed on the display screen; the modem is used to process wireless communication. It can be understood that the above-mentioned modem may not be integrated into the processor 601 and may be implemented separately by a single chip.

[0079] Among them, the memory 605 may include random access memory (RAM) and may also include read-only memory. Optionally, the memory 605 includes a non-transitory computer-readable storage medium. The memory 605 can be used to store instructions, programs, code, code sets, or instruction sets. The memory 605 may include a program storage area and a data storage area. Among them, the program storage area may store instructions for implementing the operating system, instructions for at least one function (such as touch function, sound playback function, image playback function, etc.), instructions for implementing the above-mentioned various method embodiments, etc.; the data storage area may store the data involved in the above-mentioned various method embodiments. Optionally, the memory 605 may also be at least one storage device located far from the aforementioned processor 601. As Figure 6 shown, the memory 605, as a computer storage medium, may include an operating system, a network communication module, a user interface module, and application programs.

[0080] In Figure 6In the electronic device 600 shown, the user interface 603 is mainly used to provide an interface for user input and obtain the data input by the user; while the processor 601 can be used to call the application programs stored in the memory 605 and specifically execute as Figure 2 shown in the method. For the specific process, reference can be made to Figure 2 shown, which will not be elaborated here.

[0081] Those of ordinary skill in the art can understand that all or part of the processes in the methods of the above embodiments can be completed by instructing relevant hardware through a computer program. The program can be stored in a computer-readable storage medium. When the program is executed, it can include the processes of the embodiments of the above methods. Among them, the storage medium can be a magnetic disk, an optical disk, a read-only memory or a random access memory, etc.

[0082] The above-disclosed are only the preferred embodiments of the present application. Of course, the scope of the rights of the present application cannot be limited thereby. Therefore, equivalent changes made according to the claims of the present application still fall within the scope covered by the present application.

Claims

1. A method for real-time positioning of respiratory phases in an olfactory decoding system, characterized in that, Including: Amplifying the analog respiration signal collected by the pressure sensor, and converting the amplified analog respiration signal into a digital respiration signal; Converting the analog switch signal of the odor delivery control unit into an odor delivery control digital signal; Performing low-pass filtering on the digital respiration signal; Performing cycle locking on the filtered digital respiration signal to generate a respiration cycle locking signal; wherein, performing cycle locking on the filtered digital respiration signal to generate a respiration cycle locking signal includes: obtaining the amplitude of each sampling point in the filtered digital respiration signal; if the amplitude of a sampling point is greater than a first threshold, controlling the respiration cycle locking signal to remain at a high level; wherein, the first threshold is greater than zero; if the amplitude of a sampling point is less than zero, controlling the respiration cycle locking signal to remain at a low level; or obtaining the amplitude of each sampling point in the filtered digital respiration signal; if the amplitude of a sampling point is less than a second threshold, controlling the respiration cycle locking signal to remain at a high level; wherein, the second threshold is less than zero; if the amplitude of a sampling point is greater than zero, controlling the respiration cycle locking signal to remain at a low level; When detecting the edge of the odor delivery control digital signal, determining the first respiration cycle according to the respiration cycle locking signal, and detecting the zero-crossing point of the filtered digital respiration signal within the first respiration cycle, and taking the phase of the zero-crossing point as the target phase.

2. The method according to claim 1, characterized in that, The zero-crossing point is a negative zero-crossing point, and the negative zero-crossing point satisfies: y[n]<0 and y[n-1]>0, where y[n] is the amplitude of the current sampling point in the filtered digital respiration signal, and y[n-1] is the amplitude of the previous sampling point.

3. The method according to claim 1, wherein The zero-crossing point is a positive zero-crossing point, and the positive zero-crossing point satisfies: y[n]>0 and y[n-1]<0, where y[n] is the amplitude of the current sampling point in the filtered digital respiration signal, and y[n-1] is the amplitude of the previous sampling point.

4. The method according to any one of claims 1 to 3, characterized in that Performing low-pass filtering on the digital respiration signal through a second-order IIR filter.

5. The method according to claim 1, wherein Also including: Receiving the first threshold or the second threshold and the filter parameters configured by the computer device.

6. A device for real-time positioning of respiratory phases in an olfactory decoding system, characterized in that, Including: An amplifier for amplifying the analog respiration signal collected by the pressure sensor; An analog-to-digital conversion unit for converting the amplified analog respiration signal into a digital respiration signal; The analog-to-digital conversion unit is also used for converting the analog switch signal of the odor delivery control unit into an odor delivery control digital signal; A low-pass filtering unit for performing low-pass filtering on the digital respiration signal; A respiratory cycle locking unit, configured to perform cycle locking on the filtered digital respiratory signal to generate a respiratory cycle locking signal; wherein, the performing cycle locking on the filtered digital respiratory signal to generate a respiratory cycle locking signal includes: obtaining the amplitudes of each sampling point in the filtered digital respiratory signal; if the amplitude of a sampling point is greater than a first threshold, controlling the respiratory cycle locking signal to remain at a high level; wherein, the first threshold is greater than zero; if the amplitude of a sampling point is less than zero, controlling the respiratory cycle locking signal to remain at a low level; or obtaining the amplitudes of each sampling point in the filtered digital respiratory signal; if the amplitude of a sampling point is less than a second threshold, controlling the respiratory cycle locking signal to remain at a high level; wherein, the second threshold is less than zero; if the amplitude of a sampling point is greater than zero, controlling the respiratory cycle locking signal to remain at a low level. A phase locking unit, configured to, when detecting an edge of the odor delivery control digital signal, determine a first respiratory cycle according to the respiratory cycle locking signal, and detect a zero crossing point of the filtered digital respiratory signal within the first respiratory cycle through a zero crossing detection unit, and use the phase of the zero crossing point as a target phase.

7. A computer storage medium, characterized in that, The computer storage medium stores a plurality of instructions, and the instructions are adapted to be loaded and executed by a processor to perform the method steps of any one of claims 1 to 5.

8. An electronic device, characterized in that, Comprising: A processor and a memory; wherein, the memory stores a computer program, and the computer program is adapted to be loaded and executed by the processor to perform the method steps of any one of claims 1 to 5.

Citation Information

Patent Citations

  • Method and device for respiratory monitoring

    CN110115583A

  • Taiji teaching assistance device based on respiration detection

    CN110353686A