Detailed Description
The invention is further described with reference to the following figures and examples.
It is to be understood that the following detailed description is exemplary and is intended to provide further explanation of the invention as claimed. Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs.
It is noted that the terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of exemplary embodiments according to the invention. As used herein, the singular forms "a", "an" and "the" are intended to include the plural forms as well, and it should be understood that when the terms "comprises" and/or "comprising" are used in this specification, they specify the presence of stated features, steps, operations, devices, components, and/or combinations thereof, unless the context clearly indicates otherwise.
Example one
The embodiment provides a psychological evaluation and electrocardiographic data combined acquisition and processing system, which needs to operate an electrocardiographic acquisition control system, start a Bluetooth router, start an electrocardiograph patch and attach the electrocardiograph patch to a part capable of effectively acquiring electrocardiograph.
As shown in fig. 1-2, a psychological assessment and electrocardiographic data combined acquisition and processing system is characterized by comprising a psychological electrocardiographic acquisition and management system and a bluetooth gateway connected with the psychological electrocardiographic acquisition and management system, wherein the bluetooth gateway is connected with an electrocardiographic patch, and the psychological electrocardiographic acquisition and management system is connected with a database; the psychological electrocardio acquisition management system comprises an electrocardio acquisition control module, wherein the electrocardio acquisition control module comprises a control unit, a connection electrocardio patch unit, a disconnection electrocardio patch unit, a starting data acquisition unit, a closing data acquisition unit and a binding user unit, wherein the connection electrocardio patch unit, the disconnection electrocardio patch unit, the starting data acquisition unit, the closing data acquisition unit and the binding user unit are connected with the control unit;
the electrocardio acquisition control module starts or closes psychological electrocardio acquisition through the instruction of a user, so that each fused psychological evaluation result and electrocardio data acquired by the electrocardio patch are stored in a database.
The psychological electrocardio acquisition management system further comprises a Bluetooth gateway information module, an electrocardio patch equipment information module, an electrocardio playback module and a real-time electrocardio module, wherein the Bluetooth gateway information module, the electrocardio patch equipment information module and the electrocardio playback module are all connected with a database, and the real-time electrocardio module is connected with the electrocardio acquisition control module.
The electrocardio-patch equipment module is used for managing electrocardio-patch data, and a user manually inputs data electrocardio-patch information comprising name, ID, MAC and other information and stores the information in a database. The Bluetooth gateway information module is used for managing Bluetooth gateway data, and a user manually inputs Bluetooth gateway information including information such as IP, MAC and name and stores the Bluetooth gateway information in a database. The electrocardio playback module can acquire the data acquired by the electrocardio sticker from the database after acquisition and then display the data on a page.
The specific test procedure is as follows:
and a step a) recording fields of test id, test starting time and test ending time in a psychological evaluation result table. The original data of the user electrocardio comprises fields of an electrocardio patch id, a binding user id, original data of the electrocardio, acquisition time and the like. These fields play a role in the correlation of electrocardiographic data with psychological test data.
And b) forming an interval by using the [ test starting time and the test ending time ], and inquiring data belonging to the interval from the user electrocardiogram original data by using the electrocardiogram sticker id and the bound user id as conditions. And calculating various indexes mentioned in the following advanced machining, and storing the indexes into an advanced machining data table.
And c) clicking a button for checking the psychological electrocardio comprehensive analysis report by the user at the front end, and taking the psychological test data from the psychological test record table and the correlation table of the database by the program. And then, extracting the electrocardio advanced processing data from the database according to the user id and the electrocardio sticker id. And converting the two types of data into json format and transmitting the json format to the front end.
And d) analyzing the json of the psychological test data and the electrocardio test data, and filling the json into an html template.
And e) processing the advanced processing data in the electrocardio test data by echarts, and visually displaying the data as the image mentioned in the advanced processing and displaying the image on a page.
As shown in fig. 3, each gateway corresponds to a plurality of electrocardio patches, so that simultaneous acquisition of data of the plurality of electrocardio patches is realized, and the data acquisition efficiency is improved.
In the embodiment, the control unit, the connection electrocardio patch unit, the disconnection electrocardio patch unit, the opening data acquisition unit, the closing data acquisition unit and the binding user unit which are arranged in the electrocardio acquisition control module refine the data acquisition operation of the electrocardio patch, and can perform low-granularity operation interventions such as opening data acquisition, closing data acquisition, disconnection, associated user information and the like on the electrocardio patch.
Example two
The embodiment provides a psychological evaluation and electrocardio data combined acquisition and processing method, and the acquisition method is based on a software system and a plurality of electrocardio acquisition hardware. The software system includes: the device comprises an electrocardio acquisition control module, an electrocardio patch device information module, a Bluetooth device information module and a database. The hardware comprises: server, bluetooth gateway or bluetooth router, electrocardio subsides. The data collected by the electrocardio patch comprises electrocardio original data, falling detection data and the like.
As shown in fig. 4, a psychological assessment and electrocardiographic data combined collecting and processing method, according to a first embodiment of the present invention, comprises:
step (1): receiving an electrocardio patch connecting request for connecting an electrocardio patch unit, sending a scanning request to a Bluetooth gateway by the electrocardio acquisition control module, filtering electrocardio patches which are not recorded in a database by the Bluetooth gateway, establishing connection with the electrocardio patches recorded in the database, and displaying 'connected' by the electrocardio acquisition control module if the connection is successful;
step (2): and the electrocardio acquisition control module receives a 'start data acquisition' instruction, starts a start data acquisition unit, enters an electrocardio data and psychological assessment data acquisition stage, and stores each fused psychological assessment result and electrocardio data acquired by the electrocardio sticker in a database.
The psychological evaluation data in the application are stored in a plurality of tables, and the user electrocardio data are stored in other tables. The two data have no intersection, and need to produce association to data processing, and the process of data storage includes:
step a) determines the fields that play a role in the data processing. The field names of the title table include title id, start time, and end time. The user electrocardio original data comprises electrocardio original data and an acquisition time field. These fields may play a role in association.
And step b) obtaining the starting time and the ending time through the topic id to form a time interval. And inquiring data of the acquisition time in the [ start time, end time ] interval in the user electrocardio original data table by using the start time and the end time as conditions.
And c) performing primary processing on the extracted original data, wherein the processing result is an index mentioned in the primary processing in the following step (1), and the index data is converted into a json format.
And d) generating a primary processing record for the question, wherein the record consists of a test record id, a question id and json data of the electrocardio primary processing result.
As one or more embodiments, the ecg acquisition control module indicates "not connected" if the connection fails and the two retries are unsuccessful.
As one or more embodiments, if the electrocardiographic acquisition control module receives a command of "closing data acquisition", the electrocardiographic acquisition control module starts the data acquisition closing unit, stops electrocardiographic data acquisition, and stops psychological evaluation.
As one or more embodiments, a disconnection request of disconnecting the electrocardiogram plaster unit is received, the electrocardiogram collection control module sends the disconnection request to the bluetooth gateway, and the bluetooth gateway disconnects the electrocardiogram plaster.
In a specific use process, the method comprises the following steps:
step S101: the user pastes the electrocardio patch at the correct position where the electrocardio data can be collected, and turns on a switch of the electrocardio patch;
wherein, the electrocardio-paster can adopt flexible electrocardio-paster, and the number of electrocardio-paster is equipped with a plurality ofly. And is not particularly limited herein.
Step S1011: recording electrocardio sticker information and Bluetooth gateway information in the system in advance;
wherein, electrocardio pastes information, includes: the electrocardio sticker can be uniquely identified by the information such as the MAC address, the serial number, the name of the electrocardio sticker and the like. Bluetooth gateway information, including: the Bluetooth electrocardio sticker comprises information such as an MAC address, a serial number and a Bluetooth gateway name, wherein the information can uniquely identify a Bluetooth electrocardio sticker. One Bluetooth gateway can correspond to a plurality of electrocardio patches, so that the data of the electrocardio patches can be acquired simultaneously, and the data acquisition efficiency is improved.
The method for inputting the information of the electrocardio sticker and the Bluetooth gateway has two modes, one mode is manual input, and the other mode is label information input of the picture identification equipment. The picture identification method can input a plurality of pieces of equipment information at one time.
The method for identifying the label of the equipment by the picture comprises the following steps:
the label at the bottom of the equipment shot by the camera in the step a) can be shot by one or more than one camera at the same time and is temporarily stored on a computer.
And b) reading the photos from the computer by the program in the step b), wherein batch reading can be realized.
And c) distinguishing the electrocardio labeling labels and the Bluetooth gateway labels by the trained machine learning image recognition model.
And d) a machine learning model, converting the image information on the label into character information. Therefore, the information such as the serial number and the model of the electrocardio sticker or the information such as the serial number and the model of the Bluetooth gateway can be acquired, and the information is displayed on a page.
Step e) the user supplements new information or modifies the read data on the page. And clicking a storage button to store the information into the database, and successfully inputting the information.
Step S1012: a user logs in a psychological evaluation page of the psychological electrocardio acquisition management system through a personal account to prepare evaluation;
step S1013: the user pastes the electrocardio patch at the correct position where the electrocardio data can be collected, and presses a switch of the electrocardio patch.
Step S102: starting a Bluetooth gateway, establishing connection between the Bluetooth gateway and the electrocardio sticker, and inputting personal information of a user on a psychological electrocardio acquisition management system;
step S1021: as shown in fig. 2, the bluetooth gateway is opened, the "connect electrocardiogram paste" button on the page is clicked, an instruction is sent to the electrocardiogram collection control module, the electrocardiogram collection control module sends an instruction to the bluetooth router, the electrocardiogram paste connected with the bluetooth router is determined, and the states of the electrocardiogram pastes are modified to be "on-line".
As shown in fig. 5, when the "connect to the ecg strip" button is clicked, the ecg acquisition control module scans the recorded information of the bluetooth router, and invokes the "acquire bluetooth device list" interface, so as to acquire the scanned bluetooth device list from the bluetooth router. The interface is a long connection interface, and data flow can be returned after connection is successful. The state is set to be 'on-line' when the data stream returned by the interface is acquired; acquisition is unsuccessful and retries are unsuccessful twice, set to "offline". When the 'obtaining of the Bluetooth device list' is called successfully, scanning of one Bluetooth device is started, and when a data stream with Bluetooth electrocardio patch data is returned, the following operations are carried out:
step S1021 a: starting a thread;
step S1021 b: in the thread, analyzing the Bluetooth electrocardio-sticker data, inquiring whether the Bluetooth electrocardio-sticker data is recorded in a Bluetooth electrocardio-sticker information table of the database or not from the database, and if the Bluetooth electrocardio-sticker data exists, acquiring the data from the data table.
Step S1021 c: the electrocardio sticker information (MAC address) and the Bluetooth router information (MAC address) are used as parameters, and a connection electrocardio sticker interface is called to connect the electrocardio sticker.
Step S1021 d: if the connection is successful, the use status in the electrocardio-patch information in the database is set as connected, and if the connection is unsuccessful, the status is set as unconnected if the retry is still unsuccessful twice.
Step S1022: clicking a 'bind user' button of a page, selecting user information, binding the user information with the electrocardio sticker, and recording the association relation between the user and the electrocardio sticker in a database.
Step S1022 a: selecting an electrocardiogram paste record on a page, clicking a user binding button, popping up a user list, selecting a user, and clicking for confirmation;
step S1022 b: the electrocardio acquisition control module stores the user id and the electrocardio sticker id into an association table;
step S1022 c: and if the binding is released, selecting the electrocardio-sticker data, clicking a binding releasing button to complete the binding release, and clearing the associated data of the user id and the electrocardio-sticker id in the association table in the database.
Step S103: after clicking a 'start data acquisition' button on a psychological electrocardio acquisition management system, clicking a 'start psychological assessment' button by a user, and entering an electrocardio data and psychological assessment data acquisition stage;
in the electrocardiographic data and psychological evaluation data acquisition stage, the psychological electrocardiographic acquisition management system records psychological evaluation information (id, user id, start time, end time and the like), information (id, start time, end time and the like) of each subject in psychological evaluation, electrocardiographic raw data (electrocardiographic data, time) and user information (user id) in a database.
Step S1031: clicking the 'open data acquisition' button calls the 'open data acquisition' interface, and the interface returns to two states of 'success' and 'unsuccessful'.
Step 1032: if the data acquisition is successfully started, the state of the electrocardiogram plaster is set to be 'in use', and the electrocardiogram plaster starts to acquire data and transmits the data back to the electrocardiogram data processing function of the electrocardiogram acquisition control module.
The processing function of the electrocardiographic data is a callback class, and in the class, a plurality of methods are used for processing original electrocardiographic data, and the original electrocardiographic data is processed into data mentioned in the following 'primary processing' and 'advanced processing'.
(1) Primary processing: after the collected data is transmitted back to the system, the Bluetooth router triggers a call-back interface, and a plurality of methods in the interface can further analyze the original data and further process the data into the following types:
the heart rate indexes comprise total heart rate, highest heart rate, lowest heart rate, average heart rate, longest RR period, tachycardia, arrhythmia, bradycardia, escape, asystole and the number of times of 2 seconds in the RR period.
Second, supraventricular rhythm, where each index includes total number of atria, single-shot atria, paired atria, bigeminal, triple, and supraventricular rate.
And ventricular rhythm, including ventricular premature sum, single ventricular premature, paired ventricular premature, bigeminal rhythm, trigeminal rhythm, ventricular pace, atrial fibrillation/atrial flutter.
(2) Advanced processing: the system will further process the data to generate a visual image.
The heart rate measuring method includes three data images including a highest heart rate, a lowest heart rate and a longest RR period.
② time domain analysis images including MEAN, SDNN, SDANN, SDNN (index), RMSSD, PNN50 (%), HRV triangle index.
And thirdly, analyzing images in frequency domains including TP, VLF, LF, HF, LFnu, HFnu and LF/HF.
Fourthly, scatter diagram.
(3) Advanced processing: the system performs combined analysis on the electrocardiogram data and the psychological test data to generate a psychological and electrocardiogram comprehensive analysis report.
Correlating the passing time of each question of the psychological test with the electrocardiogram data of the user to obtain the electrocardiogram characteristics of each question of the user, generating an electrocardiogram analysis record for each question, and storing a database.
Secondly, the passing time of the whole psychological test process is associated with the user electrocardio data, and the electrocardio characteristics of the user in the whole process are counted. And generating an electrocardio analysis report for the whole test process, and storing the electrocardio analysis report into a database.
Step 104: after the user finishes the test of psychological assessment, clicking 'submit', closing data acquisition and finishing the test.
Step 1041: the user clicks a button for closing data acquisition, the interface returns to a successful state or an unsuccessful state, and if the successful state is successful, the electrocardio-patch state is set to be in use;
step 1042: the user clicks a disconnection button or manually closes the electrocardio patch, the disconnection Bluetooth connection interface is called, the electrocardio patch is disconnected from the psychological electrocardio acquisition and management system, and the electrocardio patch state is set to be offline.
According to the method for collecting and processing the psychological evaluation data and the electrocardio data in a combined mode, the psychological evaluation data and the electrocardio data are subjected to combined analysis by taking the time information and the user information as a combination point in a mode of collecting the psychological evaluation data and the electrocardio data at the same time. Meanwhile, the user can realize effective control on the electrocardio acquisition module and intervene in the acquisition process with fine granularity by operations of connecting the electrocardio patch, starting data acquisition, closing data acquisition, disconnecting, binding user information and the like in the test process.
EXAMPLE III
The present embodiment provides a computer-readable storage medium, on which a computer program is stored, which when executed by a processor implements the steps of the method for collecting and processing the psychological assessment and electrocardiographic data according to the second embodiment.
Example four
The embodiment provides a computer device, which includes a memory, a processor and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the steps of the method for collecting and processing psychological assessment and electrocardiographic data as described in the second embodiment.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of a hardware embodiment, a software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by a computer program, which can be stored in a computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. The storage medium may be a magnetic disk, an optical disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), or the like.
The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.