Patient ward environment monitoring system and method based on intelligent medical treatment
Technical Field
The invention relates to the technical field of intelligent medical treatment, in particular to a patient ward environment monitoring system and method based on intelligent medical treatment.
Background
With the continuous development of science and technology, the medical level is also continuously improved, and various difficult and complicated diseases can be treated by an operation mode, however, although the operation can achieve a good treatment effect, the rehabilitation after the operation also plays a crucial role, if no good environment is available for rest nursing after the operation, the postoperative complications are increased, the rehabilitation period of a patient is prolonged, and the patient is painful;
today of the current human situation society, when the patient stays in a hospital for observation after an operation, relatives and friends can go to the hospital to visit the state of an illness, but with the increase of the number of visitors, the environment inside a ward is worsened, various germs are brought into the ward, and the air environment in the ward is worsened, so that the recovery of the patient is seriously affected, in the prior art, the bacteria content inside the ward is detected by using detection equipment, when the detected bacteria content is greater than an equipment threshold value, a window is automatically controlled to be opened, so that the ventilation treatment is performed on the ward, on one hand, the detection on the bacteria only can detect a small range in the ward, the whole ward cannot be represented, the discomfort is also brought to the patient by random window opening ventilation, on the other hand, when the number of visitors in the ward is increased, the bacteria are not necessarily increased, and then the gas breathed by people is discharged in the air, the air environment of a room is deteriorated, and at the moment, the detection device cannot well control the window to be automatically opened for ventilation, so that people urgently need a patient ward environment monitoring system and method based on intelligent medical treatment to solve the problems.
Disclosure of Invention
The invention aims to provide a patient ward environment monitoring system and method based on intelligent medical treatment, and aims to solve the problems in the prior art.
In order to achieve the purpose, the invention provides the following technical scheme: a patient ward environment monitoring system based on intelligent medical treatment comprises a data acquisition module for acquiring internal and external environment data of a patient ward, a model establishment module for establishing a two-dimensional model and a coordinate system for the patient ward, a data processing module for calculating and processing the data acquired by the data acquisition module and an operation execution module for executing relevant operations according to the patient ward environment monitoring result;
the output end of the data acquisition module is electrically connected with the input end of the data processing module, the output end of the model establishing module is electrically connected with the input end of the data processing module, and the output end of the data processing module is electrically connected with the input end of the operation execution module.
As a preferred technical scheme, the model establishing module comprises a two-dimensional modeling unit and a coordinate system establishing unit;
the output end of the coordinate system establishing unit is electrically connected with the input end of the two-dimensional modeling unit, and the output end of the two-dimensional modeling unit is electrically connected with the input end of the data processing module;
the two-dimensional modeling unit is used for establishing a two-dimensional model for a ward where a patient is located, the two-dimensional model is established by inputting parameters of the ward where the patient is located into a system, so that each parameter in the patient ward can be known in detail, the coordinate system establishing unit is used for establishing a two-dimensional coordinate system on the established two-dimensional model, the two-dimensional coordinate system is used for confirming the moving track of a person entering the patient ward in the ward, so as to judge whether the person expecting the patient leaves the ward, the data operation amount of the system is reduced by establishing the two-dimensional model and the two-dimensional coordinate system instead of the three-dimensional model and the three-dimensional coordinate system, so that the whole system is more energy-saving and consumption-reducing, and after the two-dimensional model and the two-dimensional coordinate system are established, the data processing module is used for processing and calculating data.
As a preferred technical scheme, the data acquisition module comprises a first camera, a second camera, a distance sensor, a noise sensor, a temperature sensor and a pyroelectric sensor;
the output ends of the first camera, the second camera, the distance sensor, the noise sensor, the temperature sensor and the pyroelectric sensor are electrically connected with the input end of the data processing module;
the first camera is arranged in a corridor outside a patient ward and used for collecting face images on the corridor and calling and comparing face characteristics in the later period so as to count the number of persons visiting the patient in a hospital every day, the second camera is arranged in the patient ward and used for collecting face image data of persons entering the ward and comparing the face image data collected by the first camera, after the comparison and matching, the face image data collected by the second camera covers the face image data collected by the first camera, the second camera refreshes the collected face image data every T time and is used for confirming the moving track of the persons in the ward, the distance sensor is arranged on the ceiling of the ward, a distance sensor is arranged every L distance and is used for positioning the positions of the persons in the ward, make and to mark the personnel in the ward on two-dimensional coordinate system, noise sensor is used for detecting the noise value in the patient ward, judges whether the noise value in the patient ward exceeds and sets for the threshold value, temperature sensor is used for detecting the indoor outer temperature in patient ward, judges whether the indoor outer temperature difference in patient ward is greater than and sets for the threshold value to this comes as whether the standard of windowing the ventilation, pyroelectric sensor installs in patient ward indoor door frame top for whether the inside personnel that detects patient ward leave the ward, and cooperation distance sensor realizes dual location, makes more accurate to the personnel location in the patient ward.
As a preferred technical scheme, the data processing module comprises a processor, a data comparison unit, a digital coding unit and a database;
the processor is electrically connected with the database, the data comparison unit is electrically connected with the second camera, the digital coding unit is electrically connected with the second camera, and the processor is electrically connected with the data acquisition module;
the system comprises a processor, a data comparison unit, a data coding unit and a data coding unit, wherein the processor is used for calculating and processing various data acquired by a data acquisition module and extracting characteristic data of face image data acquired by a first camera and a second camera, the database is used for storing and recording various data processed by the processor, the data comparison unit is used for comparing the characteristic data of the face image data acquired by the second camera with the characteristic data of the face image data acquired by the first camera stored in the database and searching the same face characteristic data acquired by the first camera, the digital coding unit is used for digitally coding the characteristic data of the face image data acquired by the second camera after comparison, the ith person enters a patient ward in one day, and the data number is fixed as i.
As a preferred technical scheme, the operation execution module comprises a voice reminding unit and a ventilation execution mechanism;
the output end of the processor is electrically connected with the input end of the voice reminding unit, and the output end of the processor is electrically connected with the input end of the ventilation executing mechanism;
the voice reminding unit is used for carrying out voice reminding when the environment of the patient ward is abnormal, so that the workload of nursing doctors and nurses is reduced;
the ventilation actuating mechanism is used for opening and closing a window of a patient ward, the ventilation actuating mechanism comprises a motor and a lead screw, an output shaft of the motor is in key connection with the lead screw, the lead screw is in threaded sliding connection with the window, the lead screw is driven to rotate by the rotation of the motor, and the lead screw rotates to open and close the window.
As an optimal technical scheme, the patient ward environment monitoring method based on intelligent medical treatment comprises the following steps:
s1, carrying out face recognition by using a camera;
s2, establishing a patient ward model and a coordinate system;
s3, encoding and positioning the personnel entering and leaving the ward;
s4, confirming the activity track of the personnel in the ward;
s5, detecting the indoor and outdoor environment of the patient;
and S6, executing the instruction operation of the processor.
As a preferred technical solution, in the steps S1-S2, the camera includes a first camera and a second camera, the first camera collects face image data of persons in a corridor outside a patient 'S ward, and transmits the collected face image data to a processor, the processor extracts face feature data from the face image data collected by the first camera, the processor stores the extracted face feature data into a database, the second camera collects face image data of persons entering the patient' S ward, and transmits the collected face image data to the processor, the processor extracts face feature data from the face image data collected by the second camera, and the processor compares the face feature data collected and extracted by the second camera with the face feature data collected by the first camera stored in the database by using a data comparison unit, when the comparison is matched, the second camera collects the face feature data processed by the processor, and the face feature data collected by the first camera in the database and processed by the processor are covered;
the establishment of the ward model and the coordinate system is performed by a two-dimensional modeling unit and a coordinate system establishment unit, the two-dimensional modeling unit establishes the two-dimensional model according to the construction data of the patient ward of the input system and by a processor, and the coordinate system establishment unit establishes a two-dimensional coordinate system in the established two-dimensional model by taking the door frame of the patient ward as an origin, so as to perform positioning processing of the two-dimensional coordinate system on each point of the patient ward.
As a preferred technical solution, in the steps S3-S4, the encoding and positioning of the persons are performed by using a digital encoding unit, a distance sensor and a pyroelectric sensor, the digital encoding unit numbers the face feature data collected by the second camera and processed by the processor, the number is i, the number is the number of persons entering the patient room in one day, the number does not include the persons repeatedly entering the patient room, that is, only one person enters the patient room in one day, the distance sensor is installed on the ceiling of the patient room, one distance sensor is installed at intervals of L, in the absence of persons, the data measured by the distance sensor is (L-k, L) m, and the distance sensor completes L-to-ground L2The area m is measured, when the data detected by the distance sensor does not belong to (l-k, l), the processor positions the position of a person according to the position of the distance sensor, the positioning coordinates are (X, Y), the second camera acquires face image data of the person, the processor extracts face feature data of the acquired face image data, the data comparison unit compares the face feature data with the face feature data which is stored in the database and acquired by the second camera and processed by the processor, and the motion coordinate set of the person with the corresponding number i and the number i in the ward is searched to be Pi={(X1,Y1),(X2,Y2),(X3,Y3),…,(Xn,Yn) According to a coordinate set PiDetermining the activity track of the person with the number i in the ward, and determining whether the person with the number i leaves the ward according to the activity track so as to deduce the number Z of the persons in the ward;
according to the formula:
;
when Q is larger than or equal to N, the moving track is longer, the rest of the patient can be influenced, and the voice reminding unit reminds people in the ward to keep quiet.
As a preferred technical solution, in step S5, the monitoring of the indoor and outdoor environment of the patient' S ward includes detecting the noise in the ward by the noise sensor and detecting the indoor and outdoor temperature by the temperature sensor;
the noise decibel value detected by the noise sensor is D, and the outdoor temperature detected by the temperature sensor at the same time is TOuter coverIndoor temperature of TInner part;
When D is larger than or equal to M, the voice reminding unit reminds people in the patient ward to keep the patient ward quiet.
In the step S6, twelve nights per day, the pyroelectric sensor counts the total number of people in the patient room by using an infrared sensing technology, wherein the number of people is a, the number of people entering the patient room in a certain time period is b, and the number of people leaving the patient room is c;
z = a + b-c is the total number of patients in the ward;
when Z = a + b-c ≧ G, and TInner part-TOuter coverWhen the time is less than T, the processor sends an instruction to the motor, the motor drives the lead screw to rotate, the lead screw drives the window to open, and ventilation treatment is carried out on the interior of the patient ward;
when Z = a + b-c ≧ G, and TInner part-TOuter coverWhen the window is not less than T, the window is not opened;
when Z = a + b-c < G, the window is not opened;
and opening the window once every C time to perform ventilation treatment.
Compared with the prior art, the invention has the beneficial effects that:
1. utilize two-dimensional modeling unit and coordinate system to establish unit and distance sensor, pyroelectric sensor and second camera, can make statistics of the original total number of personnel in the patient ward, can make statistics of the number of people who enters into or exits the ward, and look over the personnel activity orbit in the patient ward, and then realize the statistics to the inside total number of people in patient ward, total number in a certain period of time patient ward increases, and, when the activity orbit is frequent, control ward window that can be timely is opened, can ventilate the processing to the ward internal environment, can effectually improve the air circumstance in ward, can be under the condition that numerous people visited, provide a good recovered environment for the patient.
2. The first camera is used for collecting the face image data of the corridor personnel, the second camera is used for collecting the face image of the personnel in the ward, the data comparison unit is used for collecting the face image data collected by the first camera and the second camera and the face image data of the second camera and the second camera, and numbering the personnel entering the ward, can effectively realize the accurate control of the personnel inside the ward, avoid the personnel maliciously hindering the rehabilitation of the patient from entering the patient ward, can effectively avoid the occurrence of accidents, simultaneously can provide strong data support, provides a foundation for later personnel investigation, people who disturb a patient ward and influence the rest and recovery of the patient can timely know, and when relevant face image data is detected again, medical personnel are timely informed to warn and take care of the face image data.
3. The two-dimensional modeling unit and the two-dimensional coordinate system are used for establishing the two-dimensional model for the interior of the ward, so that the data processing amount of the system can be reduced, the operation load of the system is reduced, and the energy is saved and the consumption is reduced.
Drawings
FIG. 1 is a schematic diagram of a modular configuration of a patient room environment monitoring system based on smart medical treatment according to the present invention;
FIG. 2 is a schematic diagram of a modular connection structure of a patient room environment monitoring system based on smart medical treatment according to the present invention;
FIG. 3 is a schematic diagram of the distribution of a model and a coordinate system of a patient room environment monitoring system and method based on smart medical treatment according to the present invention;
FIG. 4 is a schematic diagram illustrating steps of a method for monitoring an environment in a patient room based on smart medical care according to the present invention;
fig. 5 is a schematic flow chart of a patient room environment monitoring method based on smart medical treatment according to the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
As shown in fig. 1 to 3, a patient ward environment monitoring system based on smart medical treatment includes a data acquisition module for acquiring internal and external environmental data of a patient ward, a model establishment module for establishing a two-dimensional model and a coordinate system for the patient ward, a data processing module for calculating and processing the data acquired by the data acquisition module, and an operation execution module for executing relevant operations according to the patient ward environment monitoring result;
the output end of the data acquisition module is electrically connected with the input end of the data processing module, the output end of the model establishing module is electrically connected with the input end of the data processing module, and the output end of the data processing module is electrically connected with the input end of the operation execution module.
The model building module comprises a two-dimensional modeling unit and a coordinate system building unit;
the output end of the coordinate system establishing unit is electrically connected with the input end of the two-dimensional modeling unit, and the output end of the two-dimensional modeling unit is electrically connected with the input end of the data processing module;
a two-dimensional modeling unit: the system is used for establishing a two-dimensional model of a ward where a patient is located, and the two-dimensional model is established by inputting parameters of the ward where the patient is located into the system, so that the parameters in the ward of the patient can be known in detail;
a coordinate system establishing unit: the two-dimensional coordinate system is used for establishing the two-dimensional coordinate system on the established two-dimensional model, the two-dimensional coordinate system is used for confirming the moving track of a person entering a patient ward in the patient ward, so that whether the person exploring the patient leaves the patient ward is judged, the data calculation amount of the system is reduced by establishing the two-dimensional model and the two-dimensional coordinate system instead of the three-dimensional model and the three-dimensional coordinate system, the energy conservation and consumption reduction of the whole system are better, and after the establishment of the two-dimensional model and the two-dimensional coordinate system is finished, the data processing module is used for processing and calculating the data.
The data acquisition module comprises a first camera, a second camera, a distance sensor, a noise sensor, a temperature sensor and a pyroelectric sensor;
the output ends of the first camera, the second camera, the distance sensor, the noise sensor, the temperature sensor and the pyroelectric sensor are electrically connected with the input end of the data processing module;
a first camera: the corridor is arranged outside a patient ward and used for collecting face images on the corridor and calling and comparing face features in the later period so as to count the number of personnel visiting patients in a hospital every day;
a second camera: the system is installed in a patient ward, and is used for acquiring face image data of people entering the ward, comparing the face image data acquired by the first camera, after the face image data is compared and matched, covering the face image data acquired by the first camera by the face image data acquired by the second camera, and refreshing the acquired face image data by the second camera at intervals of T time to confirm the movement track of the people in the ward;
a distance sensor: the device is arranged on the ceiling of a ward, and a distance sensor is arranged at intervals of L distance and used for positioning the position of personnel in the ward, so that the personnel in the ward can be marked on a two-dimensional coordinate system;
a noise sensor: the device is used for detecting the noise value in the patient ward and judging whether the noise value in the patient ward exceeds a set threshold value or not;
a temperature sensor: the device is used for detecting the indoor and outdoor temperature of the patient ward, judging whether the difference value of the indoor and outdoor temperatures of the patient ward is greater than a set threshold value or not, and using the difference value as a standard for performing windowing and ventilation;
a pyroelectric sensor: install in the indoor door frame top of patient ward for whether the inside personnel of detection patient ward leave the ward, the cooperation distance sensor realizes dual location, makes more accurate to the personnel location in the patient ward.
The data processing module comprises a processor, a data comparison unit, a digital coding unit and a database;
the processor is electrically connected with the database, the data comparison unit is electrically connected with the second camera, the digital coding unit is electrically connected with the second camera, and the processor is electrically connected with the data acquisition module;
a processor: the system comprises a data acquisition module, a first camera, a second camera, a data acquisition module and a data processing module, wherein the data acquisition module is used for acquiring various data of a human face;
a database: the data processing device is used for storing and recording various data processed by the processor;
a data comparison unit: the system comprises a database, a first camera, a second camera, a third camera and a fourth camera, wherein the database is used for storing face image data collected by the first camera and the second camera;
a digital encoding unit: and the characteristic data of the face image data acquired by the second camera after comparison is digitally encoded, wherein the ith person enters a patient ward in one day, and the serial number of the data is fixed as i.
The operation execution module comprises a voice reminding unit and a ventilation execution mechanism;
the output end of the processor is electrically connected with the input end of the voice reminding unit, and the output end of the processor is electrically connected with the input end of the ventilation executing mechanism;
the voice reminding unit: the voice prompt is used for voice prompt when the environment of the patient ward is abnormal, so that the workload of nursing doctors and nurses is reduced;
the ventilation executing mechanism comprises: the window opening and closing device is used for opening and closing a window of a patient ward, the ventilation executing mechanism comprises a motor and a lead screw, an output shaft of the motor is in key connection with the lead screw, the lead screw is connected with the window in a sliding mode through threads, the lead screw is driven to rotate by the rotation of the motor, and the lead screw rotates to open and close the window.
Referring to fig. 3 to 5, a patient ward environment monitoring method based on smart medical treatment includes the following steps:
s1, carrying out face recognition by using a camera;
s2, establishing a patient ward model and a coordinate system;
s3, encoding and positioning the personnel entering and leaving the ward;
s4, confirming the activity track of the personnel in the ward;
s5, detecting the indoor and outdoor environment of the patient;
and S6, executing the instruction operation of the processor.
In the steps S1-S2, the camera comprises a first camera and a second camera, the first camera collects the face image data of the person outside the patient room, and transmits the collected face image data to the processor, the processor extracts the face feature data from the face image data collected by the first camera, the processor stores the extracted face feature data into the database, the second camera collects the face image data of the person entering the patient room, and transmits the collected face image data to the processor, the processor extracts the face feature data from the face image data collected by the second camera, the processor compares the face feature data collected and extracted by the second camera with the face feature data collected by the first camera stored in the database by using the data comparison unit, when the comparison is matched, the second camera collects the face feature data processed by the processor, and the face feature data collected by the first camera in the database and processed by the processor are covered;
the establishment of the ward model and the coordinate system is carried out by a two-dimensional modeling unit and a coordinate system establishment unit, the two-dimensional modeling unit establishes the two-dimensional model according to the construction data of the patient ward of the input system and by a processor, and the coordinate system establishment unit establishes a two-dimensional coordinate system in the established two-dimensional model by taking the door frame of the patient ward as an original point, so as to carry out positioning processing of the two-dimensional coordinate system on each point of the patient ward.
In the steps S3-S4, the personnel are coded and positioned by adopting a digital coding unit, a distance sensor and a pyroelectric sensor, the digital coding unit numbers the face characteristic data acquired by the second camera and processed by the processor, the number is i, i is the number of personnel entering a patient ward in one day, the personnel repeatedly entering the patient ward are not included, namely only one personnel enters the ward in one day, the distance sensor is arranged on the ceiling of the patient ward, the distance sensor is arranged at intervals of L, in the absence of people, the data measured by the distance sensor is (L-k, L) m, and the distance sensor finishes the positioning on the ground L2m area measurement, when the data detected by the distance sensor does not belong to (l-k, l), the processor positions the position of the person according to the position of the distance sensor, the positioning coordinates are (X, Y), the second camera acquires face image data of the person, the processor extracts the face characteristic data of the acquired face image data, the data comparison unit compares the face characteristic data with the face characteristic data which is stored in the database and acquired by the second camera and processed by the processor, the corresponding serial number i is searched, and the motion coordinate set of the person with the serial number i in the ward is Pi={(X1,Y1),(X2,Y2),(X3,Y3),…,(Xn,Yn) According to a coordinate set PiDeterminingThe person with the number i moves in the ward, and whether the person with the number i leaves the ward is determined according to the moving track, so that the number Z of the persons in the ward is deduced;
according to the formula:
;
when Q is larger than or equal to N, the moving track is longer, the rest of the patient can be influenced, and the voice reminding unit reminds people in the ward to keep quiet.
In step S5, the monitoring of the indoor and outdoor environment of the patient' S ward comprises the detection of the noise sensor to the noise in the ward and the detection of the indoor and outdoor temperature by the temperature sensor;
the noise decibel value detected by the noise sensor is D, and the outdoor temperature detected by the temperature sensor at the same time is TOuter coverIndoor temperature of TInner part;
When D is larger than or equal to M, the voice reminding unit reminds people in the patient ward to keep the patient ward quiet.
In step S6, twelve o' clock every day, the pyroelectric sensor utilizes the infrared sensing technology to count the total number of people in the patient ward, the number of people is a, the number of people entering the patient ward in a certain time period is b, and the number of people leaving the patient ward is c;
z = a + b-c is the total number of patients in the ward;
when Z = a + b-c ≧ G, and TInner part-TOuter coverWhen the time is less than T, the processor sends an instruction to the motor, the motor drives the lead screw to rotate, the lead screw drives the window to open, and ventilation treatment is carried out on the interior of the patient ward;
when Z = a + b-c ≧ G, and TInner part-TOuter coverWhen the temperature is more than or equal to T, the window is not opened;
when Z = a + b-c < G, the window is not opened;
the window is opened once every C time for ventilation treatment.
The first embodiment is as follows:
the monitoring of the indoor and outdoor environment of the sick room of the patient comprises the detection of the noise in the sick room by a noise sensor and the detection of the indoor and outdoor temperature by a temperature sensor;
the noise decibel value detected by the noise sensor is D =75dB, and the outdoor temperature detected by the temperature sensor at the same time is TOuter cover=12 ℃ and room temperature TInner part=27℃;
D =75DB is larger than or equal to M =60dB, and the voice reminding unit reminds the personnel in the patient room to pay attention to keeping the patient room quiet.
Twelve o' clock evening, the pyroelectric sensor utilizes the infrared sensing technology to count the total number of people in the patient ward, the number of people is a =6, the number of people entering the patient ward in a certain time period is b =12, and the number of people leaving the patient ward is c = 2;
z = a + b-c =6+12-2=16 for the total number of persons currently in the patient's room;
z = a + b-c =16 ≧ G =12, and TInner part-TOuter coverT =6 is not less than 17, and the window is not opened;
the window was opened once every C =2 hours for ventilation treatment.
Example two:
the monitoring of the indoor and outdoor environment of the sick room of the patient comprises the detection of the noise in the sick room by a noise sensor and the detection of the indoor and outdoor temperature by a temperature sensor;
the noise decibel value detected by the noise sensor is D =50dB, and the outdoor temperature detected by the temperature sensor at the same time is TOuter cover=25 ℃ and room temperature TInner part=28℃;
D =50dB < M =60dB, the voice reminding unit does not sound.
Twelve o' clock evening, the pyroelectric sensor utilizes the infrared sensing technology to count the total number of people in the patient ward, the number of people is a =6, the number of people entering the patient ward in a certain time period is b =12, and the number of people leaving the patient ward is c = 2;
z = a + b-c =16 person is the total number of patients in the current patient room;
z = a + b-c =16 ≧ G =12, and TInner part-TOuter coverT6 is greater than 3, the processor sends an instruction to the motor, the motor drives the lead screw to rotate, the lead screw drives the window to open, and ventilation treatment is performed on the interior of the patient ward;
the window was opened once every C =2 hours for ventilation treatment.
It will be evident to those skilled in the art that the invention is not limited to the details of the foregoing illustrative embodiments, and that the present invention may be embodied in other specific forms without departing from the spirit or essential attributes thereof. The present embodiments are therefore to be considered in all respects as illustrative and not restrictive, the scope of the invention being indicated by the appended claims rather than by the foregoing description, and all changes which come within the meaning and range of equivalency of the claims are therefore intended to be embraced therein.