Trigger signal processing method and trigger signal processing system
By introducing trigger signal processing methods and systems into the physiological data acquisition system, trigger signals are automatically identified and processed, and problems of low data accuracy and time-consuming and labor-consuming caused by user manual operations are solved, and more accurate data correspondence and higher user experience are achieved.
Patent Information
- Application Number
- CN202411958456.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-27
- Publication Date
- 2025-04-18
AI Technical Summary
When collecting physiological data of biological organisms, users need to manually operate to correspond to the data collection operation with physiological data, resulting in low data accuracy and time-consuming and labor-consuming, affecting the user experience.
A trigger signal processing method and system is designed to automatically identify and process the trigger signal through the coordinated work of the trigger circuit, sampling module, control module and the host computer, and calculate the corresponding sampling point information so as to accurately correspond to the trigger signal and physiological data.
It realizes automatic and more accurate correspondence between trigger signals and physiological data, improves the accuracy of data processing and analysis, and improves the user experience.
Smart Images

Figure CN119851842A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of signal processing, and more specifically to a trigger signal processing method and a trigger signal processing system. Background Art
[0002] With the development of science and technology, real-time monitoring and analysis of physiological data has become increasingly important. Physiological signals are increasingly used in clinical diagnosis, telemedicine, home care and other scenarios. Physiological data such as electrocardiogram data, electroencephalogram data, electromyography data, neural data, etc. are of great significance for diagnosing diseases, evaluating treatment effects and studying human physiological functions.
[0003] When collecting the physiological data of an organism, the organism may be photographed, stimulated, and other operations may be performed as needed. For example, in some application scenarios, when collecting the physiological data of an organism, the organism needs to be stimulated, thereby collecting the physiological data of the organism under a specific stimulus. In other application scenarios, while collecting the physiological data of an organism, the organism is photographed to obtain its image for subsequent behavioral analysis. However, in related technologies, users are usually required to manually operate to match the above-mentioned operations on the organism with the collected physiological data. On the one hand, manual operations by users have time errors, and it is difficult to ensure data accuracy; on the other hand, it consumes a lot of time and energy of users, giving them a bad experience. Summary of the invention
[0004] The present invention has been made in view of the above-mentioned problems.
[0005] According to one aspect of the present invention, a trigger signal processing method is provided. The trigger signal processing method is performed by a trigger signal processing system. The trigger signal processing system includes a trigger circuit, a sampling module, a control module and a host computer. The trigger signal processing method includes:
[0006] The trigger circuit generates a first trigger signal according to a first trigger operation, and sends the first trigger signal to the control module; the control module takes the moment of receiving the first trigger signal as the first trigger moment, sends the first trigger moment to the back-end processor of the host computer, and sends the physiological data corresponding to the sampling point sampled by the sampling module and the sampling start time to the back-end processor of the host computer; the back-end processor of the host computer calculates the sampling point information corresponding to the first trigger moment according to the sampling start time, the first trigger moment and the sampling rate of the sampling module, so as to obtain the sampling point information corresponding to the first trigger moment and the physiological data corresponding to the sampling point.
[0007] Exemplarily, the first trigger moment includes a first trigger start moment and a first trigger end moment; the back-end processor of the host computer calculates the sampling point information corresponding to the first trigger moment according to the sampling start moment, the first trigger moment and the sampling rate of the sampling module, including: the back-end processor of the host computer calculates the sampling point information corresponding to the first trigger start moment according to the sampling start moment, the first trigger start moment and the sampling rate of the target sampling module; the back-end processor of the host computer calculates the sampling point information corresponding to the first trigger end moment according to the sampling start moment, the first trigger end moment and the sampling rate of the target sampling module.
[0008] Exemplarily, the sampling module includes multiple sampling modules, and the multiple sampling modules perform data sampling simultaneously. The control module sends the physiological data corresponding to the sampling points sampled by the sampling modules and the sampling start time to the back-end processor of the host computer, including: the control module sequentially obtains the physiological data of each of the multiple sampling modules that meets the preset sampling quantity as sampling data packets, takes the time when the first sampling data packet is obtained as the sampling start time, and sends the sampling data packet and the sampling start time to the back-end processor of the host computer.
[0009] Exemplarily, the first trigger moment includes a first trigger start moment and a first trigger end moment; the back-end processor of the host computer calculates the sampling point information corresponding to the first trigger moment according to the sampling start moment, the first trigger moment and the sampling rate of the sampling module, including: calculating the first difference between the first trigger start moment or the first trigger end moment and the sampling start moment; using the first difference as the first dividend and the sampling time corresponding to the preset sampling number as the divisor, performing a division operation to obtain a first quotient and a first remainder; determining the first sampling point number according to the first quotient and the sampling rate of the target sampling module, and determining the second sampling point number according to the first remainder; determining the sampling point information corresponding to the first trigger start moment or the first trigger end moment according to the first sampling point number and the second sampling point number.
[0010] Exemplarily, the trigger signal processing method also includes: the front-end processor of the host computer generates a second trigger signal according to the second trigger operation, and sends the second trigger signal to the back-end processor of the host computer; the back-end processor of the host computer takes the moment of receiving the second trigger signal as the second trigger moment, and calculates the sampling point number information corresponding to the second trigger moment according to the sampling start time of the sampling module, the second trigger moment and the sampling rate.
[0011] Exemplarily, the second trigger moment includes a second trigger start moment and a second trigger end moment; the back-end processor of the host computer calculates the sampling point number information corresponding to the second trigger moment according to the sampling start moment, the second trigger moment and the sampling rate of the sampling module, including: calculating the second difference between the second trigger start moment or the second trigger end moment and the sampling start moment; using the second difference as the second dividend and the sampling time corresponding to the preset sampling number as the divisor, performing a division operation to obtain a second quotient and a second remainder; determining a third sampling point number according to the second quotient and the sampling rate of the target sampling module, and determining a fourth sampling point number according to the second remainder; determining the sampling point information corresponding to the second trigger start moment or the second trigger end moment according to the third sampling point number and the fourth sampling point number.
[0012] Exemplarily, the method further specifically includes: the control module sends the physiological data corresponding to the sampling points sampled by the sampling module to the back-end processor of the host computer in real time; the back-end processor of the host computer determines the sampling point information of the target trigger signal and the physiological data corresponding to the sampling point in real time, and sends them to the front-end processor of the host computer; the target trigger signal includes a first trigger signal or a second trigger signal; the front-end processor of the host computer displays the physiological data waveform according to the physiological data corresponding to the sampling point in real time, and displays the target trigger time on the physiological data waveform according to the sampling point information of the target trigger time, and the target trigger time includes the first trigger time or the second trigger time.
[0013] Exemplarily, the front-end processor of the host computer displays the physiological data waveform in real time according to the physiological data corresponding to the sampling point, and displays the target trigger time on the physiological data waveform according to the sampling point information of the target trigger time, including: the front-end processor of the host computer highlights the physiological data waveform of each sampling module from the physiological data corresponding to the sampling point at the start time of the first trigger or the start time of the second trigger until the physiological data corresponding to the sampling point at the end time of the first trigger or the end time of the second trigger.
[0014] Exemplarily, the sampling rates of the multiple sampling modules are the same.
[0015] According to another aspect of the present invention, a trigger signal processing system is also provided, comprising: a trigger circuit, a sampling module, a control module and a host computer. The trigger circuit is used to generate a first trigger signal according to a first trigger operation, and send the first trigger signal to the control module; the control module is used to use the moment of receiving the first trigger signal as the first trigger moment, send the first trigger moment to the back-end processor of the host computer, and send the physiological data corresponding to the sampling point sampled by the sampling module and the sampling start moment to the back-end processor of the host computer; the back-end processor of the host computer is used to calculate the sampling point information corresponding to the first trigger moment according to the sampling start moment, the first trigger moment and the sampling rate of the sampling module, and obtain the sampling point information corresponding to the first trigger moment and the physiological data corresponding to the sampling point.
[0016] Exemplarily, the trigger circuit is a transistor-transistor logic circuit.
[0017] The above technical solution receives the first trigger signal generated by the trigger circuit according to the first trigger operation through the control module and determines the first trigger moment. The back-end processor of the host computer determines the sampling point information corresponding to the first trigger moment and the physiological data corresponding to the sampling point according to the sampling start time, the first trigger time and the sampling rate. In this way, the first trigger signal corresponding to the first trigger operation can be automatically and more accurately matched with the physiological data, thereby facilitating the user to process and analyze the data, improving the accuracy of processing and analysis, and improving the user experience.
[0018] The above description is only an overview of the technical solution of the present invention. In order to more clearly understand the technical means of the present invention, it can be implemented according to the contents of the specification. In order to make the above and other purposes, features and advantages of the present invention more obvious and easy to understand, the specific implementation methods of the present invention are listed below. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] The above and other purposes, features and advantages of the present invention will become more apparent by describing the embodiments of the present invention in more detail in conjunction with the accompanying drawings. The accompanying drawings are used to provide a further understanding of the embodiments of the present invention and constitute a part of the specification. Together with the embodiments of the present invention, they are used to explain the present invention and do not constitute a limitation of the present invention.
[0020] Figure 1 A schematic flow chart of a trigger signal processing method according to an embodiment of the present invention is shown;
[0021] Figure 2 A schematic flow chart of a trigger signal processing method according to another embodiment of the present invention is shown;
[0022] Figure 3 A schematic flow chart of a trigger signal processing method according to another embodiment of the present invention is shown;
[0023] Figure 4 A schematic block diagram of a trigger signal processing system according to an embodiment of the present invention is shown. DETAILED DESCRIPTION
[0024] In order to make the purpose, technical solution and advantages of the present invention more obvious, exemplary embodiments according to the present invention will be described in detail with reference to the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present invention.
[0025] In order to at least solve the above technical problems, an embodiment of the present invention provides a trigger signal processing method. The trigger signal processing method is executed by a trigger signal processing system. The trigger signal processing system includes a trigger circuit, a sampling module, a control module and a host computer.
[0026] Figure 1 FIG. 2 shows a schematic flow chart of a trigger signal processing method according to an embodiment of the present invention. Figure 1 As shown, the trigger signal processing method includes: step S1100, step S1200 and step S1300.
[0027] In step S1100 , the trigger circuit generates a first trigger signal according to a first trigger operation, and sends the first trigger signal to the control module.
[0028] The trigger circuit can convert an external first trigger operation into a first trigger signal that can be recognized and processed by the trigger signal processing system. The first trigger operation may include a user pressing a button, an automatic trigger of a device, a trigger under a specific condition, etc. For example, the first trigger operation may be each time a camera performs a shooting operation. The trigger circuit may be implemented by electronic components and logic circuits. The first trigger signal may be a level signal generated by the trigger circuit. For example, when the trigger circuit is triggered by the first trigger operation, it may generate a high level signal as the first trigger signal. After the trigger circuit generates the first trigger signal, the first trigger signal may be sent to the control module.
[0029] In step S1200, the control module takes the moment of receiving the first trigger signal as the first trigger moment, sends the first trigger moment to the back-end processor of the host computer, and sends the physiological data corresponding to the sampling point sampled by the sampling module and the sampling start time to the back-end processor of the host computer.
[0030] Physiological data may include electrocardiogram data, electroencephalogram data, electromyography data, neural data, etc. A collection device may be set at a suitable position of the organism to obtain the physiological data of the organism. The collection device may include electrodes, sensors, etc. The sampling module may be connected to at least one collection device. The physiological data collected by the collection device may be in the form of an electrical signal, and the sampling module may sample the physiological data in the form of an electrical signal to obtain physiological data in the form of a digital signal corresponding to each sampling point. The control module may send the physiological data to the back-end processor of the host computer. The control module may use the moment when the physiological data is first obtained as the sampling start moment. The control module may send the sampling start moment to the back-end processor of the host computer. The control module may use the moment when each first trigger signal is received as the first trigger moment. The control module may send the first trigger moment to the back-end processor of the host computer. It can be understood that the control module can receive both the physiological data corresponding to the sampling point sampled by the sampling module and the first trigger signal sent by the trigger circuit. The control module may include an ARM processor and may have an embedded system to implement the above functions.
[0031] In step S1300, the back-end processor of the host computer calculates the sampling point information corresponding to the first triggering moment according to the sampling start moment, the first triggering moment and the sampling rate of the sampling module to obtain the sampling point information corresponding to the first triggering moment and the physiological data corresponding to the sampling point. The host computer can be a personal computer, a workstation, a server, etc. The back-end processor of the host computer can be a central processing unit (CPU). It can be understood that the first triggering moment is usually after the sampling start moment. After the sampling start moment, the back-end processor of the host computer can accumulate the physiological data corresponding to the sampling points sampled by the sampling module. In some embodiments, the time length from the first triggering moment to the sampling start moment can be determined by the difference between the first triggering moment and the sampling start moment. Further, the number of sampling points accumulated from the sampling start moment to the first triggering moment, that is, the sampling point information, can be determined according to the sampling rate of the sampling module. For example, the sampling start moment can be 0 milliseconds, the first triggering moment is 10 milliseconds, and the sampling rate of the sampling module is 30000 Hz. Thus, it can be determined that the number of sampling points accumulated from the sampling start time to the first trigger time is 300, and the sampling point information corresponding to the first trigger time can be 300. The physiological data of the sampling point corresponding to the first trigger time can be determined according to the sampling point information corresponding to the first trigger time. For example, the sampling point information corresponding to the first trigger time is 300, and it can be determined that among the physiological data of the sampled sampling points, the physiological data corresponding to the 300th sampling point is the physiological data of the sampling point corresponding to the first trigger time. In other embodiments, when determining the number of sampling points accumulated from the sampling start time to the first trigger time, a value in the number of sampling points corresponding to the minimum time unit corresponding to the sampling start time and the first trigger time can be added. For example, the sampling start time can be 0 milliseconds, the first trigger time is 10 milliseconds, and the sampling rate of the sampling module is 30000 Hz. The minimum time unit of the sampling start time and the first trigger time is 1 millisecond, and the corresponding number of sampling points is 30. The number of sampling points accumulated from the sampling start time to the first trigger time, 300, can be increased by any value from 0 to 30 on the basis of 300. In other words, the number of sampling points accumulated from the sampling start time to the first trigger time can be any one of 300 to 330. For example, the sampling point information corresponding to the first trigger time can be 315. It can be determined that among the physiological data of the sampled sampling points, the physiological data corresponding to the 315th sampling point is the physiological data of the sampling point corresponding to the first trigger time. Alternatively, the physiological data of the sampling point corresponding to the first trigger time can be labeled in the physiological data to mark the position of the first trigger time of the first trigger signal in the physiological data.
[0032] The trigger circuit may have multiple trigger channels, and each trigger channel may generate a first trigger signal according to a first trigger operation. The first trigger operation of each trigger channel may be different. For example, the first trigger operation of trigger channel No. 1 may be camera shooting, and the first trigger operation of trigger channel No. 2 may be pressing a specific key on a keyboard, etc. There may be multiple first trigger operations, and multiple first trigger signals may be generated. The sampling point information corresponding to the first trigger moment of each first trigger signal of each trigger channel may be determined to obtain the sampling point information corresponding to each first trigger moment and the physiological data corresponding to the sampling point.
[0033] The above technical solution receives the first trigger signal generated by the trigger circuit according to the first trigger operation through the control module and determines the first trigger moment. The back-end processor of the host computer determines the sampling point information corresponding to the first trigger moment and the physiological data corresponding to the sampling point according to the sampling start time, the first trigger time and the sampling rate. In this way, the first trigger signal corresponding to the first trigger operation can be automatically and more accurately matched with the physiological data, thereby facilitating the user to process and analyze the data, improving the accuracy of processing and analysis, and improving the user experience.
[0034] Exemplarily, the first trigger moment includes a first trigger start moment and a first trigger end moment. The first trigger operation may last for a period of time, and therefore, the first trigger signal generated by the trigger circuit may also last for a period of time. In some embodiments, the trigger circuit may enter a trigger state according to the first trigger operation, and the generated first trigger signal may be a high level that lasts for a period of time, that is, valid information. When the trigger circuit is in a non-trigger state, it may be a low level, that is, invalid information. The first trigger start moment may be the moment when the control module receives the first trigger signal, that is, the start moment of the first trigger signal. The first trigger end moment may be the stop moment when the control module receives the first trigger signal, that is, the end moment of the first trigger signal.
[0035] The backend processor of the host computer calculates the sampling point information corresponding to the first triggering time according to the sampling start time, the first triggering time and the sampling rate of the sampling module, including step S1310 and step S1320.
[0036] In step S1310, the backend processor of the host computer calculates the sampling point information corresponding to the first trigger start time according to the sampling start time, the first trigger start time and the sampling rate of the target sampling module. It can be understood that the first trigger start time is usually after the sampling start time. In some embodiments, the time length from the first trigger start time to the sampling start time can be determined by the difference between the first trigger start time and the sampling start time. There can be at least one sampling module sampling physiological data. A sampling module can be selected as a target sampling module. According to the time length from the first trigger start time to the sampling start time and the sampling rate of the target sampling module, the number of sampling points accumulated from the sampling start time to the first trigger start time, that is, the sampling point information, is determined. For example, the sampling start time can be 0 milliseconds, the first trigger start time is 10 milliseconds, and the sampling rate of the target sampling module is 30000 Hz. Therefore, it can be determined that the number of sampling points accumulated from the sampling start time to the first trigger start time is 300, and the sampling point information corresponding to the first trigger start time can be 300. In other embodiments, when determining the number of sampling points accumulated from the sampling start time to the first trigger start time, a value of the number of sampling points corresponding to the minimum time unit corresponding to the sampling start time and the first trigger start time can be added. For example, the sampling start time can be 0 milliseconds, the first trigger start time is 10 milliseconds, and the sampling rate of the sampling module is 30000 Hz. The minimum time unit of the sampling start time and the first trigger start time is 1 millisecond, and the corresponding number of sampling points is 30. The number of sampling points accumulated from the sampling start time to the first trigger start time is 300, and any value between 0 and 30 can be added to 300. In other words, the number of sampling points accumulated from the sampling start time to the first trigger start time can be any one of 300 to 330. For example, the sampling point information corresponding to the first trigger start time can be 315.
[0037] In step S1320, the backend processor of the host computer calculates the sampling point information corresponding to the first trigger end time according to the sampling start time, the first trigger end time and the sampling rate of the target sampling module. It can be understood that the first trigger end time is later than the corresponding first trigger start time. In some embodiments, the time length from the first trigger end time to the sampling start time can be determined by the difference between the first trigger end time and the sampling start time. There can be at least one sampling module sampling physiological data. A sampling module can be selected as a target sampling module. According to the time length from the first trigger end time to the sampling start time and the sampling rate of the target sampling module, the number of sampling points accumulated from the sampling start time to the first trigger end time, that is, the sampling point information, is determined. For example, the sampling start time can be 0 milliseconds, the first trigger end time is 20 milliseconds, and the sampling rate of the target sampling module is 30000 Hz. Thus, it can be determined that the number of sampling points accumulated from the sampling start time to the first trigger end time is 600, and the sampling point information corresponding to the first trigger end time can be 600. In other embodiments, the duration of the first trigger signal can be determined according to the difference between the first trigger end time and the first trigger start time. Then determine the number of sampling points corresponding to the duration of the first trigger signal. On the basis of the number of sampling points at the start time of the first trigger, increase the number of sampling points corresponding to the duration of the first trigger signal to determine the sampling point information corresponding to the end time of the first trigger. For example, the sampling start time can be 0 milliseconds, the first trigger start time is 10 milliseconds, the corresponding sampling point information can be 300, the first trigger end time is 20 milliseconds, and the sampling rate of the target sampling module is 30000 Hz. Therefore, the duration of the first trigger signal is 10 (20-10) milliseconds, and the corresponding number of sampling points is 300. Therefore, it can be determined that the sampling point information corresponding to the end time of the first trigger can be 600 (300+300). Optionally, the sampling point information corresponding to the end time of the first trigger can be any one of 600 to 630.
[0038] The above technical solution, by respectively determining the sampling point information of the first trigger start time and the first trigger end time, can automatically and more accurately match the time period of the first trigger signal corresponding to the first trigger operation with the physiological data, thereby facilitating the user to process and analyze the data, improving the accuracy of processing and analysis, and improving the user experience.
[0039] Exemplarily, the sampling module includes multiple sampling modules, and the multiple sampling modules perform data sampling at the same time. In some embodiments, the sampling rates of the multiple sampling modules may be different. In other embodiments, the sampling rates of the multiple sampling modules may be the same. The same sampling rate can ensure the synchronization of the multiple sampling modules in sampling physiological data, and more accurately align the first trigger signal with the physiological data of each sampling module. It can be understood that the host computer can obtain the physiological data of the sampling points sampled by multiple sampling modules at the same time. The control module sends the physiological data corresponding to the sampling points sampled by the sampling modules and the sampling start time to the back-end processor of the host computer, including: step S1210 The control module sequentially obtains the physiological data of each of the multiple sampling modules that meets the preset sampling quantity as a sampling data packet, and uses the moment when the first sampling data packet is obtained as the sampling start time, and sends the sampling data packet and the sampling start time to the back-end processor of the host computer. The control module can use the physiological data of each sampling module that meets the preset quantity each time as a sampling data packet, and send the sampling data packet to the back-end processor of the host computer. For example, the preset number can be 120, that is, the physiological data of every 120 sampling points is used as a sampling data packet. The sampling rate of the sampling module can be 30,000 Hz. In other words, the preset number of 120 corresponds to a sampling time of 4 milliseconds. The control module can sequentially obtain the sampling data packets of each sampling module. The moment when the first sampling data packet is obtained can be used as the sampling start moment, and the control module can send the sampling start moment to the back-end processor of the host computer. The control module can send the sampling data packet to the back-end processor of the host computer every time it obtains the sampling data packet.
[0040] The above technical solution uses the moment when the first sampling data packet is obtained as the sampling start moment to more accurately determine the sampling start moment, thereby improving the accuracy of the correspondence between the first trigger signal and the physiological data, and improving the accuracy of processing and analysis.
[0041] Exemplarily, the first triggering moment includes a first triggering start moment and a first triggering end moment. As described above, the first triggering start moment may be the moment when the control module receives the first triggering signal, that is, the start moment of the first triggering signal. The first triggering end moment may be the moment when the control module stops receiving the first triggering signal, that is, the end moment of the first triggering signal.
[0042] The backend processor of the host computer calculates the sampling point information corresponding to the first trigger time according to the sampling start time, the first trigger time and the sampling rate of the sampling module, including: step S1330, step S1340, step S1350 and step S1360.
[0043] In step S1330, the first difference between the first trigger start time or the first trigger end time and the sampling start time is calculated. For the first trigger start time, the first difference between the first trigger start time and the sampling start time can be calculated. For example, the sampling start time can be 0, and the first trigger start time can be 10 milliseconds. Therefore, the first difference between the first trigger start time and the sampling start time is 10 (10-0) milliseconds. For the first trigger end time, the first difference between the first trigger end time and the sampling start time can be calculated. For example, the sampling start time can be 0, and the first trigger end time can be 20 milliseconds. Therefore, the first difference between the first trigger end time and the sampling start time is 20 (20-0) milliseconds.
[0044] In step S1340, a division operation is performed with the first difference as the first dividend and the sampling time corresponding to the preset sampling number as the divisor to obtain a first quotient and a first remainder. The corresponding sampling time can be determined according to the preset sampling number and the sampling rate of the target sampling module. For example, the preset sampling number can be 120, and the sampling rate of the target sampling module can be 30,000 Hz. Therefore, the sampling time corresponding to the preset sampling number is 4 milliseconds. The physiological data of the preset sampling data volume is the physiological data in a sampling data packet. For example, the first difference between the first trigger start time and the sampling start time is 10 milliseconds, and the sampling time corresponding to the preset sampling number is 4 milliseconds, then the division operation performed is 10 milliseconds divided by 4 milliseconds, and the first quotient is 2, and the first remainder is 2. The first difference between the first trigger end time and the sampling start time is 20 milliseconds, then the corresponding first quotient is 5, and the first remainder is 0.
[0045] In step S1350, the first number of sampling points is determined according to the first quotient and the sampling rate of the target sampling module, and the second number of sampling points is determined according to the first remainder. The target sampling module can be any one of the multiple sampling modules. For example, the sampling rate of the target sampling module can be 30000 Hz, the corresponding preset number of samples is 120, the first quotient is 2, and the first remainder is 2, thereby determining that the first number of sampling points is 240 and the second number of sampling points is 60. Optionally, the second number of sampling points can be any one from 60 to 90. The first quotient is 5, the first remainder is 0, and the corresponding first number of sampling points is 600, and the second number of sampling points is 0. Optionally, the second number of sampling points can be any one from 0 to 30.
[0046] In step S1360, the sampling point information corresponding to the first trigger start time or the first trigger end time is determined according to the first sampling point number and the second sampling point number. For the first trigger start time, the first sampling point number and the second sampling point number can be added to determine the sampling point information corresponding to the first trigger start time. For example, the first sampling point number corresponding to the first trigger start time is 240, and the second sampling point number is 60, then the sampling point information corresponding to the first trigger start time is 300 (240+60). Optionally, the sampling point information corresponding to the first trigger start time is any one of 300 to 330. For the first trigger end time, the first sampling point number and the second sampling point number can be added to determine the sampling point information corresponding to the first trigger end time. For example, the first sampling point number corresponding to the first trigger end time is 600, and the second sampling point number is 0, then the sampling point information corresponding to the first trigger end time is 600 (600+0). Optionally, the sampling point information corresponding to the first trigger end time is any one of 600 to 630.
[0047] The above technical solution determines the first sampling point number and the second sampling point number by dividing the first difference between the first trigger start time or the first trigger end time and the sampling start time by the sampling time corresponding to the preset sampling quantity, and then determines the sampling point information corresponding to the first trigger start time or the first trigger end time. Thus, the first trigger start time or the first trigger end time can be automatically matched with the physiological data, and can be matched with the sampling data packet, further improving the accuracy of the correspondence.
[0048] For example, Figure 2 FIG. 2 shows a schematic flow chart of a trigger signal processing method according to another embodiment of the present invention. Figure 2 As shown, the trigger signal processing method includes step S2100 and step S2200.
[0049] In step S2100, the front-end processor of the host computer generates a second trigger signal according to the second trigger operation, and sends the second trigger signal to the back-end processor of the host computer. The front-end processor of the host computer can respond to the second trigger operation of the user and generate a second trigger signal. The second trigger signal can control the trigger circuit to generate a response signal to control other devices. For example, the front-end processor of the host computer can periodically generate a second trigger signal according to the second trigger operation of the user on the front end of the host computer using a mouse, keyboard, etc. For example, a second trigger signal can be generated at intervals of 10 milliseconds, and the trigger circuit can control the stimulation device based on the second trigger signal to stimulate the organism whose physiological data is collected. The front-end processor of the host computer can send the second trigger signal to the back-end processor of the host computer.
[0050] In step S2200, the back-end processor of the host computer takes the moment of receiving the second trigger signal as the second trigger moment, and calculates the sampling point number information corresponding to the second trigger moment according to the sampling start moment, the second trigger moment and the sampling rate of the sampling module. The host computer back-end can take the moment of receiving each second trigger signal as the second trigger moment. It can be understood that the second trigger moment is usually after the sampling start moment. The back-end processor of the host computer can accumulate the physiological data corresponding to the sampling points sampled by the sampling module after the sampling start moment. In some embodiments, the duration of the second trigger moment from the sampling start moment can be determined by the difference between the second trigger moment and the sampling start moment. Further, the number of sampling points accumulated from the sampling start moment to the second trigger moment, that is, the sampling point information, can be determined according to the sampling rate of the sampling module. For example, the sampling start moment can be 0 milliseconds, the second trigger moment is 50 milliseconds, and the sampling rate of the sampling module is 30000 Hz. Therefore, it can be determined that the number of sampling points accumulated from the sampling start moment to the second trigger moment is 1500, and the sampling point information corresponding to the second trigger moment can be 1500. In other embodiments, when determining the number of sampling points accumulated from the sampling start time to the second trigger time, a value of the number of sampling points corresponding to the minimum time unit corresponding to the sampling start time and the second trigger time can be added. For example, the sampling start time can be 0 milliseconds, the second trigger time is 50 milliseconds, and the sampling rate of the sampling module is 30000 Hz. The minimum time unit of the sampling start time and the second trigger time is 1 millisecond, and the corresponding number of sampling points is 30. The number of sampling points accumulated from the sampling start time to the second trigger time is 1500, and any value between 0 and 30 can be added to 1500. In other words, the number of sampling points accumulated from the sampling start time to the second trigger time can be any one of 1500 to 1530. For example, the sampling point information corresponding to the second trigger time can be 1515.
[0051] In the above technical solution, the front-end processor of the host computer generates a second trigger signal according to the second trigger operation, and the back-end processor of the host computer takes the moment when the second trigger signal is received as the second trigger moment, and determines the sampling point information corresponding to the second trigger moment. Thus, the device can be controlled by the second trigger signal, and the second trigger signal can be matched with the physiological data, which is convenient for the user to analyze and improve the user experience.
[0052] Exemplarily, the second trigger moment includes a second trigger start moment and a second trigger end moment. The second trigger signal may also last for a period of time. In some embodiments, the second trigger signal may be generated periodically. In other words, after the second trigger signal lasting for a period of time is generated, a second trigger signal lasting for a period of time is generated again after an interval of time. The generated second trigger signal can control the trigger circuit to be a high level that lasts for a period of time, that is, valid information. In the non-trigger state where the second trigger signal is not generated, the trigger circuit can be a low level, that is, invalid information. The trigger circuit may include multiple trigger channels, and the second trigger signal may control one or more specific trigger channels in the trigger circuit. The second trigger start moment may be the moment when the front-end processor of the host computer generates the second trigger signal, that is, the start moment of the second trigger signal, and the second trigger end moment may be the moment when the front-end processor of the host computer does not generate the second trigger signal, that is, the end moment of the second trigger signal.
[0053] The backend processor of the host computer calculates the sampling point number information corresponding to the second trigger time according to the sampling start time, the second trigger time and the sampling rate of the sampling module, including steps S2210, S2220, S2230 and S2240.
[0054] In step S2210, the second difference between the second trigger start time or the second trigger end time and the sampling start time is calculated. For the second trigger start time, the second difference between the second trigger start time and the sampling start time can be calculated. For example, the sampling start time can be 0, and the second trigger start time can be 50 milliseconds. Therefore, the second difference between the second trigger start time and the sampling start time is 50 (50-0) milliseconds. For the second trigger end time, the second difference between the second trigger end time and the sampling start time can be calculated. For example, the sampling start time can be 0, and the second trigger end time can be 70 milliseconds. Therefore, the second difference between the second trigger end time and the sampling start time is 70 (70-0) milliseconds.
[0055] In step S2220, a division operation is performed with the second difference as the second dividend and the sampling time corresponding to the preset sampling number as the divisor to obtain a second quotient and a second remainder. The corresponding sampling time can be determined according to the preset sampling number and the sampling rate of the target sampling module. For example, the preset sampling number can be 120, and the sampling rate of the target sampling module can be 30,000 Hz. Therefore, the sampling time corresponding to the preset sampling number is 4 milliseconds. The physiological data of the preset sampling data volume is the physiological data in a sampling data packet. For example, the second difference between the second trigger start time and the sampling start time is 50 milliseconds, and the sampling time corresponding to the preset sampling number is 4 milliseconds, then the division operation is 50 milliseconds divided by 4 milliseconds, and the second quotient is 12, and the second remainder is 2. The second difference between the second trigger end time and the sampling start time is 70 milliseconds, then the corresponding second quotient is 17, and the second remainder is 2.
[0056] In step S2230, the third number of sampling points is determined according to the second quotient and the sampling rate of the target sampling module, and the fourth number of sampling points is determined according to the second remainder. The target sampling module can be any one of the multiple sampling modules. For example, the sampling rate of the target sampling module can be 30,000 Hz, the corresponding preset number of samples is 120, the second quotient is 12, and the second remainder is 2. Therefore, it can be determined that the third number of sampling points is 1440 and the fourth number of sampling points is 60. Optionally, the fourth number of sampling points can be any one from 60 to 90. The second quotient is 17, the second remainder is 2, and the corresponding third number of sampling points is 2040, and the second number of sampling points is 60. Optionally, the second number of sampling points can be any one from 60 to 90
[0057] In step S2240, the sampling point information corresponding to the second trigger start time or the second trigger end time is determined according to the third sampling point number and the fourth sampling point number.
[0058] For the second trigger start time, the third sampling point number and the fourth sampling point number can be added to determine the sampling point information corresponding to the second trigger start time. For example, the third sampling point number corresponding to the second trigger start time is 1440, and the fourth sampling point number is 60, then the sampling point information corresponding to the second trigger start time is 1500 (1440+60). Optionally, the sampling point information corresponding to the second trigger start time is any one from 1500 to 1530. For the second trigger end time, the third sampling point number and the fourth sampling point number can be added to determine the sampling point information corresponding to the second trigger end time. For example, the third sampling point number corresponding to the second trigger end time is 2040, and the fourth sampling point number is 60, then the sampling point information corresponding to the first trigger end time is 2100 (2040+60). Optionally, the sampling point information corresponding to the first trigger end time is any one from 2100 to 2130.
[0059] The above technical solution determines the third sampling point number and the fourth sampling point number by dividing the second difference between the second trigger start time or the second trigger end time and the sampling start time by the sampling time corresponding to the preset sampling quantity, and then determines the sampling point information corresponding to the second trigger start time or the second trigger end time. Thus, the second trigger start time or the second trigger end time can be automatically matched with the physiological data, and can be matched with the sampling data packet, further improving the accuracy of the correspondence.
[0060] For example, Figure 3 FIG. 4 is a schematic flow chart of a trigger signal processing method according to another embodiment of the present invention. Figure 3 As shown, the trigger signal processing method further includes: step S310, step S320 and step S330.
[0061] In step S310, the control module sends the physiological data corresponding to the sampling points sampled by the sampling module to the back-end processor of the host computer in real time. The control module can send the acquired sampling data packets of each sampling module to the back-end processor of the host computer in real time. The sampling data packets store the physiological data corresponding to the sampling points sampled by the sampling modules that meet the preset number. Whenever the control module acquires a sampling data packet, it can send the sampling data packet to the back-end processor of the host computer.
[0062] In step S320, the back-end processor of the host computer determines the sampling point information of the target trigger signal and the physiological data corresponding to the sampling point in real time, and sends it to the front-end processor of the host computer; the target trigger signal includes the first trigger signal or the second trigger signal. The back-end processor of the host computer determines the sampling point information and the corresponding physiological data corresponding to each first trigger signal or the second trigger signal in real time. The sampling point information corresponding to each first trigger signal or the second trigger signal can be sent to the front-end processor of the host computer together with the corresponding sampling data packet. For example, the sampling point information corresponding to the first trigger signal is 300, corresponding to the third sampling data packet. Therefore, the sampling point information corresponding to the first trigger signal can be sent together with the third sampling data packet to the front-end processor of the host computer.
[0063] In step S330, the front-end processor of the host computer displays the physiological data waveform in real time according to the physiological data corresponding to the sampling point, and displays the target trigger moment on the physiological data waveform according to the sampling point information of the target trigger moment, and the target trigger moment includes the first trigger moment or the second trigger moment. The front-end processor of the host computer can render the physiological data in real time to display the physiological data waveform in the display device of the morning machine. The physiological data waveform of each sampling module can be displayed. The first trigger moment or the second trigger moment can be displayed in the physiological data waveform according to the sampling point information of the first trigger moment or the second trigger moment. For example, the sampling point information of the first trigger moment corresponds to the physiological data of the 300th sampling point. Therefore, when displaying the physiological data waveform of the 300th sampling point, it can be highlighted and marked to display the first trigger moment on the physiological data waveform. Similarly, the second trigger moment corresponding to the second trigger signal can also be displayed on the physiological data waveform.
[0064] The above technical solution displays the physiological data waveform in real time according to the physiological data corresponding to the sampling point, and displays the first trigger moment or the second trigger moment on the physiological data waveform according to the sampling point information. By visualizing the physiological data and displaying the corresponding first trigger moment or the second trigger moment, the physiological data can be better processed and analyzed to improve the user experience.
[0065] Exemplarily, the front-end processor of the host computer displays the physiological data waveform in real time according to the physiological data corresponding to the sampling point, and displays the target trigger time on the physiological data waveform according to the sampling point information of the target trigger time, including: step S331, the front-end processor of the host computer starts to highlight the physiological data waveform of each sampling module from the physiological data corresponding to the sampling point at the first trigger start time or the second trigger start time until the physiological data corresponding to the sampling point at the first trigger end time or the second trigger end time. For the first trigger time, it can include the first trigger start time and the first trigger end time. The front-end processor of the host computer can highlight the physiological data waveform of each sampling module in the waveform of the physiological data from the physiological data corresponding to the sampling point at the first trigger start time until the physiological data of the sampling point corresponding to the first trigger end time stops highlighting. Similarly, for the second trigger time, it can include the second trigger start time and the second trigger end time. The front-end processor of the host computer can highlight the physiological data waveform of each sampling module in the waveform of the physiological data from the physiological data corresponding to the sampling point at the second trigger start time until the physiological data of the sampling point corresponding to the second trigger end time stops highlighting.
[0066] The above technical solution starts highlighting the physiological data waveform of each sampling module from the physiological data corresponding to the sampling point at the start time of the first trigger or the start time of the second trigger until the physiological data corresponding to the sampling point at the end time of the first trigger or the end time of the second trigger stops highlighting. In a visual form, the time period corresponding to the first trigger signal or the second trigger signal is highlighted in the physiological data waveform, which is convenient for users to analyze.
[0067] For example, Figure 4 FIG. 2 shows a schematic block diagram of a trigger signal processing system according to an embodiment of the present invention. Figure 4 As shown, the trigger signal processing system includes a trigger circuit 410 , a sampling module 420 , a control module 430 and a host computer 440 .
[0068] The trigger circuit 410 is used to generate a first trigger signal according to a first trigger operation, and send the first trigger signal to the control module. The trigger circuit can be implemented by electronic components and logic circuits. The control module 420 is used to take the moment of receiving the first trigger signal as the first trigger moment, send the first trigger moment to the back-end processor of the host computer, and send the physiological data corresponding to the sampling point sampled by the sampling module and the sampling start time to the back-end processor of the host computer; the control module may include an ARM processor and may have an embedded system. The back-end processor of the host computer is used to calculate the sampling point information corresponding to the first trigger moment according to the sampling start time, the first trigger moment and the sampling rate of the sampling module, and obtain the sampling point information corresponding to the first trigger moment and the physiological data corresponding to the sampling point. The host computer can be a personal computer, a workstation, a server, etc. The back-end processor of the host computer can be a central processing unit (CPU).
[0069] A person skilled in the art may understand the specific implementation scheme and beneficial effects of the trigger signal processing system by reading the above description of the trigger signal processing method, which will not be described in detail here for the sake of brevity.
[0070] Exemplarily, the trigger circuit is a transistor-transistor logic circuit (TTL). The transistor-transistor logic circuit has a high-speed characteristic, a fast response speed, and can achieve high-frequency operation. The fast response to the first trigger operation can better meet the requirement of matching the first trigger signal with the physiological data.
[0071] Although example embodiments have been described herein with reference to the accompanying drawings, it should be understood that the above example embodiments are merely exemplary and are not intended to limit the scope of the present application to this. Those of ordinary skill in the art may make various changes and modifications therein without departing from the scope and spirit of the present application. All these changes and modifications are intended to be included within the scope of the present application as required by the appended claims.
[0072] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.
[0073] In the several embodiments provided in this application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic, for example, the division of the units is only a logical function division, and there may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another device, or some features can be ignored or not executed.
[0074] In the description provided herein, a large number of specific details are described. However, it is understood that the embodiments of the present application can be practiced without these specific details. In some instances, well-known methods, structures and techniques are not shown in detail so as not to obscure the understanding of this description.
[0075] Similarly, it should be understood that in order to streamline the present application and help understand one or more of the various inventive aspects, in the description of the exemplary embodiments of the present application, the various features of the present application are sometimes grouped together into a single embodiment, figure, or description thereof. However, the method of the present application should not be interpreted as reflecting the following intention: the claimed application requires more features than the features clearly stated in each claim. More specifically, as reflected in the corresponding claims, the inventive point is that the corresponding technical problem can be solved with features less than all the features of a single disclosed embodiment. Therefore, the claims following the specific embodiment are hereby explicitly incorporated into the specific embodiment, wherein each claim itself serves as a separate embodiment of the present application.
[0076] It will be understood by those skilled in the art that, except for mutually exclusive features, all features disclosed in this specification (including the accompanying claims, abstracts and drawings) and all processes or units of any method or device disclosed in this specification may be combined in any combination. Unless otherwise expressly stated, each feature disclosed in this specification (including the accompanying claims, abstracts and drawings) may be replaced by an alternative feature that provides the same, equivalent or similar purpose.
[0077] In addition, those skilled in the art will appreciate that, although some embodiments described herein include certain features included in other embodiments but not other features, the combination of features of different embodiments is meant to be within the scope of the present application and form different embodiments. For example, in the claims, any one of the claimed embodiments can be used in any combination.
[0078] The various component embodiments of the present application can be implemented in hardware, or in software modules running on one or more processors, or in a combination thereof. It should be understood by those skilled in the art that a microprocessor or a digital signal processor (DSP) can be used in practice to implement some or all functions of some modules in the trigger signal processing system according to an embodiment of the present application. The present application can also be implemented as a device program (e.g., a computer program and a computer program product) for executing part or all of the methods described herein. Such a program implementing the present application can be stored on a computer-readable medium, or can have the form of one or more signals. Such a signal can be downloaded from an Internet website, or provided on a carrier signal, or provided in any other form.
[0079] It should be noted that the above embodiments illustrate the present application rather than limit the present application, and that those skilled in the art may design alternative embodiments without departing from the scope of the appended claims. In the claims, any reference symbol between brackets should not be constructed as a limitation to the claims. The word "comprising" does not exclude the presence of elements or steps not listed in the claims. The word "one" or "an" preceding an element does not exclude the presence of multiple such elements. The present application may be implemented by means of hardware including several different elements and by means of a suitably programmed computer. In a unit claim that lists several devices, several of these devices may be embodied by the same hardware item. The use of the words first, second, and third, etc. does not indicate any order. These words may be interpreted as names.
[0080] The above is only a specific implementation or description of a specific implementation of the present application, and the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. The protection scope of the present application shall be based on the protection scope of the claims.
Claims
1. A trigger signal processing method, characterized in that: The trigger signal processing method is executed by a trigger signal processing system, the trigger signal processing system includes a trigger circuit, a sampling module, a control module and a host computer, and the trigger signal processing method includes: The trigger circuit generates a first trigger signal according to a first trigger operation, and sends the first trigger signal to the control module; The control module uses the moment of receiving the first trigger signal as the first trigger moment, sends the first trigger moment to the back-end processor of the host computer, and sends the physiological data corresponding to the sampling point sampled by the sampling module and the sampling start moment to the back-end processor of the host computer; The backend processor of the host computer calculates the sampling point information corresponding to the first trigger time according to the sampling start time, the first trigger time and the sampling rate of the sampling module to obtain the sampling point information corresponding to the first trigger time and the physiological data corresponding to the sampling point.
2. The trigger signal processing method according to claim 1, characterized in that: The first triggering moment includes a first triggering start moment and a first triggering end moment; The back-end processor of the host computer calculates the sampling point information corresponding to the first triggering time according to the sampling start time, the first triggering time and the sampling rate of the sampling module, including: The back-end processor of the host computer calculates the sampling point information corresponding to the first trigger start time according to the sampling start time, the first trigger start time and the sampling rate of the target sampling module; The backend processor of the host computer calculates the sampling point information corresponding to the first trigger end time according to the sampling start time, the first trigger end time and the sampling rate of the target sampling module.
3. The trigger signal processing method according to claim 1, characterized in that: The sampling modules include multiple sampling modules, and the multiple sampling modules perform data sampling simultaneously. The control module sends the physiological data corresponding to the sampling points sampled by the sampling module and the sampling start time to the back-end processor of the host computer, including: The control module sequentially obtains physiological data of each of the multiple sampling modules that meets the preset sampling quantity as sampling data packets, takes the time when the first sampling data packet is obtained as the sampling start time, and sends the sampling data packet and the sampling start time to the back-end processor of the host computer.
4. The trigger signal processing method according to claim 3, characterized in that: The first triggering moment includes a first triggering start moment and a first triggering end moment; The backend processor of the host computer calculates the sampling point information corresponding to the first triggering time according to the sampling start time, the first triggering time and the sampling rate of the sampling module, including: Calculate a first difference between the first trigger start time or the first trigger end time and the sampling start time; Using the first difference as a first dividend and the sampling time corresponding to the preset sampling number as a divisor, a division operation is performed to obtain a first quotient and a first remainder; Determine a first number of sampling points according to the first quotient and a sampling rate of a target sampling module, and determine a second number of sampling points according to the first remainder; The sampling point information corresponding to the first trigger start time or the first trigger end time is determined according to the first sampling point number and the second sampling point number.
5. The trigger signal processing method according to claim 3, characterized in that: The trigger signal processing method further includes: The front-end processor of the host computer generates a second trigger signal according to the second trigger operation, and sends the second trigger signal to the back-end processor of the host computer; The backend processor of the host computer takes the moment of receiving the second trigger signal as the second trigger moment, and calculates the sampling point number information corresponding to the second trigger moment according to the sampling start moment of the sampling module, the second trigger moment and the sampling rate.
6. The trigger signal processing method according to claim 5, characterized in that: The second triggering moment includes a second triggering start moment and a second triggering end moment; The back-end processor of the host computer calculates the sampling point number information corresponding to the second triggering time according to the sampling start time of the sampling module, the second triggering time and the sampling rate, including: Calculate a second difference between the second trigger start time or the second trigger end time and the sampling start time; Using the second difference as a second dividend and the sampling time corresponding to the preset sampling number as a divisor, a division operation is performed to obtain a second quotient and a second remainder; Determine a third number of sampling points according to the second quotient and the sampling rate of the target sampling module, and determine a fourth number of sampling points according to the second remainder; The sampling point information corresponding to the second trigger start time or the second trigger end time is determined according to the third sampling point number and the fourth sampling point number.
7. The trigger signal processing method according to claim 4 or 6, characterized in that: The method further specifically comprises: The control module sends the physiological data corresponding to the sampling points sampled by the sampling module to the back-end processor of the host computer in real time; The back-end processor of the host computer determines the sampling point information of the target trigger signal and the physiological data corresponding to the sampling point in real time, and sends them to the front-end processor of the host computer; the target trigger signal includes the first trigger signal or the second trigger signal; The front-end processor of the host computer displays the physiological data waveform in real time according to the physiological data corresponding to the sampling point, and displays the target trigger time on the physiological data waveform according to the sampling point information of the target trigger time, wherein the target trigger time includes the first trigger time or the second trigger time.
8. The trigger signal processing method according to claim 7, characterized in that: The front-end processor of the host computer displays the physiological data waveform in real time according to the physiological data corresponding to the sampling point, and displays the target trigger time on the physiological data waveform according to the sampling point information of the target trigger time, including: The front-end processor of the host computer highlights the physiological data waveform of each sampling module from the physiological data corresponding to the sampling point at the start time of the first trigger or the start time of the second trigger until the physiological data corresponding to the sampling point at the end time of the first trigger or the end time of the second trigger.
9. The trigger signal processing method according to any one of claims 3 to 7, characterized in that: The sampling rates of the multiple sampling modules are the same.
10. A trigger signal processing system, characterized in that: include: Trigger circuit, sampling module, control module and host computer; The trigger circuit is used to generate a first trigger signal according to a first trigger operation, and send the first trigger signal to the control module; The control module is used to take the moment of receiving the first trigger signal as the first trigger moment, send the first trigger moment to the back-end processor of the host computer, and send the physiological data corresponding to the sampling point sampled by the sampling module and the sampling start moment to the back-end processor of the host computer; The backend processor of the host computer is used to calculate the sampling point information corresponding to the first trigger time according to the sampling start time, the first trigger time and the sampling rate of the sampling module, and obtain the sampling point information corresponding to the first trigger time and the physiological data corresponding to the sampling point.
11. The trigger signal processing system according to claim 10, characterized in that: The trigger circuit is a transistor-transistor logic circuit.