A safety management system for hydrotherapy equipment used for rehabilitation treatment

By designing a security management system based on Nodejs microservice architecture in the spa equipment, integrating sign detection, image processing and drowning prevention treatment functions, the problem that the spa equipment cannot adjust and monitor the patient's status in real time is solved, real-time monitoring and management of drowning safety and other safety hazards is achieved, and the safety and management efficiency of the spa equipment is improved.

CN119274744BInactive Publication Date: 2025-03-11GUANGZHOU J&J SANITARY WARE
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202411333866.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-09-24
Publication Date
2025-03-11
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

The existing spa equipment cannot adjust parameters according to the patient's status in real time during rehabilitation treatment, and there is a safety hazard and drowning risk, and there is a lack of a timely treatment mechanism.

Method used

A spa equipment safety management system based on Nodejs microservice architecture is designed, including microservice units such as sign detection, spa information release, emergency call, equipment maintenance, image processing and safety management. Through the integrated spa image processing, safety management and drowning prevention treatment subunit, real-time monitoring and automatic adjustment are achieved.

Benefits of technology

Real-time monitoring and rapid management of patients' drowning safety and other safety hazards during the spa process are achieved, reducing drowning risks and the occurrence of safety accidents, and improving the safety and management efficiency of spa equipment.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119274744B_ABST
    Figure CN119274744B_ABST
Patent Text Reader

Abstract

The present invention discloses a safety management system for spa equipment for rehabilitation treatment, comprising a microservice business module, a spa cloud platform module, a data storage module, an operation and maintenance management module and a user interface module, wherein: the service application business module adopts a microservice architecture developed based on Nodejs, and is subdivided into different microservice units for safety management and control of spa equipment, and a plurality of microservice processing units provided in the spa cloud platform module correspond one to one with each microservice unit of the service application business module; the present invention integrates a spa image processing microservice unit, a spa safety management microservice unit and an anti-drowning processing sub-unit through a microservice architecture based on a cloud platform, and can monitor the drowning safety of patients and other safety hazards in the patient's spa process in real time, and quickly perform safety management, and at the same time, each microservice is independent of each other, and can be quickly built and optimized, saving development costs and efficiency.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention belongs to the field of hydrotherapy equipment safety management, and specifically refers to a hydrotherapy equipment safety management system for rehabilitation treatment. Background Art

[0002] With the advancement of the concept of big health, hydrotherapy as a rehabilitation method has been generally recognized by patients in rehabilitation medical institutions, which has promoted the technological progress and innovation of hydrotherapy equipment. It has become a trend to place hydrotherapy pool equipment in the hydrotherapy room for a patient to undergo independent rehabilitation treatment.

[0003] At present, there are widespread safety management issues in this type of hydrotherapy rehabilitation treatment, such as the inability of the hydrotherapy equipment to adjust the parameters of the hydrotherapy equipment in real time according to the patient's condition during use, the safety hazards of the patient during the hydrotherapy process are not predicted in advance, the patient's safety problems during the hydrotherapy process are not treated in time and die, and the patient is in danger of drowning during the hydrotherapy process. Summary of the invention

[0004] In order to solve the problems in the above-mentioned prior art that the spa equipment cannot adjust the parameters of the spa equipment according to the patient's condition in real time, the safety hazards of the patient during the spa are not predicted in advance, the patient's safety problems during the spa are not treated in time and die, and the patient is in danger of drowning during the spa, the present invention proposes a spa equipment safety management system for rehabilitation treatment to improve the above-mentioned problems.

[0005] The specific application is as follows:

[0006] A hydrotherapy equipment safety management system for rehabilitation treatment, comprising a microservice business module, a hydrotherapy cloud platform module, a data storage module, an operation and maintenance management module, and a user interface module;

[0007] The microservice business module adopts a microservice architecture developed based on Nodejs, which includes a vital sign detection microservice unit, a spa information release microservice unit, a spa emergency call microservice unit, a spa equipment maintenance microservice unit, a spa image processing microservice unit and a spa safety management microservice unit;

[0008] The spa cloud platform module adopts a microservice architecture developed based on Nodejs. The spa cloud platform module is configured to include several microservice processing units and a system security management unit; each microservice unit of the microservice business module is connected to each microservice processing unit of the spa cloud platform module through the application processing center service in a one-to-one correspondence; each microservice processing unit is provided with an external API interface; all connected devices are sent to each microservice processing unit of the spa cloud platform module for processing after being verified by the system security management unit, and each microservice processing unit provides an open API data interface for a third party;

[0009] The data storage module is used to store data of the spa equipment safety management system; the data storage module includes a Redis database for caching image data and a MySQL database for storing persistent log monitoring data. The MySQL database is deployed in a master-slave redundant mode. The master MySQL database and the backup MySQL database are divided according to the content into an object database cluster for storing images and videos collected by the camera, a business database cluster for storing the status of monitoring spa equipment, a business database cluster for recording the user's use of the spa equipment, a business database cluster for recording the maintenance and repair records of the equipment, and a business database cluster for recording the user's feedback on the use of the spa equipment. The status of the spa equipment includes the operating status of the equipment and the fault status of the equipment;

[0010] The operation and maintenance management module is used to facilitate the operation of the operation and maintenance team;

[0011] A camera, an emergency call dialogue device and a display screen are arranged in the spa room, wherein the camera is connected to a spa image processing microservice unit, the emergency call dialogue device is connected to a spa safety management microservice unit; the display screen is connected to a spa information publishing microservice unit; and a spa image processing microservice unit is arranged in the spa room.

[0012] Furthermore, the vital sign detection microservice unit is used to monitor the patient's vital sign data of heart rate, blood pressure and body temperature in real time. The vital sign data is uploaded to the data storage module. The vital sign detection microservice unit includes 3 sensors, which correspond to the monitoring needs of heart rate, blood pressure and body temperature respectively.

[0013] Further, the hydrotherapy safety management microservice unit includes an anti-drowning processing subunit and a second safety processing subunit;

[0014] The process of the drowning prevention processing subunit includes the following steps:

[0015] S1: First, several images of patients in the hydrotherapy room are collected to perform visual training on the anti-drowning treatment subunit. When the recognition accuracy of the anti-drowning treatment subunit reaches 92%, the visual training is stopped;

[0016] S2: When the patient enters the hydrotherapy room, a picture is taken from the video stream captured by the camera in the hydrotherapy room every 40ms according to the Rtsp protocol and transmitted to the drowning prevention processing subunit. The drowning prevention processing subunit identifies the patient's safety hazards, sends warning instructions and warning sounds to the patient and medical staff, and the pictures captured by the camera are saved in the MySQL database and the shooting date is recorded;

[0017] S3: Classify the potential safety hazards into levels of minor, medium, severe and drowning;

[0018] S31: When the patient is at a serious level, the hydrotherapy equipment immediately stops running, notifies the hydrotherapy emergency call microservice unit to take emergency measures and calm the patient;

[0019] S32: When the patient is at a medium level, the hydrotherapy equipment immediately stops running and notifies the hydrotherapy emergency call microservice unit to take ordinary rescue measures to calm the patient's emotions;

[0020] S33: When the patient is at a mild level, the hydrotherapy equipment adjusts the outlet water temperature and the outlet water flow rate of the hydrotherapy equipment, and the camera in the hydrotherapy room transmits the picture to the hydrotherapy safety management microservice unit every 20 ms. The drowning prevention processing subunit does not identify the patient's safety hazard at time T, and issues a warning cancellation instruction to the patient and medical staff;

[0021] S34: When the patient is at the drowning level, the spa equipment immediately stops the water intake operation and starts the water discharge operation, notifying the spa emergency call microservice unit to take ordinary rescue measures. When the water depth of the spa equipment is lower than the threshold, a warning release instruction is issued to the patient and medical staff.

[0022] Furthermore, the process of visual training performed by the drowning prevention processing subunit in step S1 is as follows:

[0023] L1: Collect 5,000 pictures of common equipment in the hydrotherapy room, different patients, patients undergoing hydrotherapy, and the depth of the water in the hydrotherapy room;

[0024] L2: Divide 5000 images into training set, test set and validation set in the ratio of 4:0.5:0.5; the images in the training set are all images containing the water depth height of the patient in the hydrotherapy, the images in the test set are images containing the water depth height of the patient in the hydrotherapy and images not containing the water depth height of the patient in the hydrotherapy, and the images in the validation set are images containing the water depth height of the patient in the hydrotherapy and images not containing the water depth height of the patient in the hydrotherapy;

[0025] L3: Use annotation tools to annotate the images of the training set with the patients and the water level where the patients are located, and generate an XML file;

[0026] L4: After extracting features using the convolutional neural network visual algorithm, the anti-drowning processing subunit trains the images in the training set one by one;

[0027] L5: The drowning prevention processing subunit identifies the images in the test set one by one and obtains the accuracy and error rate;

[0028] L6: If the accuracy and error rate do not meet the requirements, proceed to step L7; if the accuracy and error rate meet the requirements, the drowning prevention processing subunit recognizes the pictures in the verification set one by one. If the accuracy and error rate meet the requirements, the training ends. If the accuracy and error rate do not meet the requirements, proceed to step L7;

[0029] L7: After manually adjusting the recognition weight coefficient of the anti-drowning processing subunit, identify the pictures in the verification set one by one. If the recognition accuracy and error rate meet the requirements, the training ends. If not, adjust the recognition weight coefficient again and identify the pictures in the verification set one by one again. Delete the recognition record after each recognition of a picture in the verification set until the recognition accuracy and error rate meet the requirements and the training ends.

[0030] Furthermore, a ground sensing circuit is provided at the entrance of the spa pool in each spa room, and the ground sensing circuit is electrically connected to the spa image processing microservice unit and the spa safety management microservice unit. When the ground sensing circuit detects that a patient enters the spa pool entrance, a start recognition signal is sent to the spa image processing microservice unit and the spa safety management microservice unit. The spa image processing microservice unit captures the picture in the video stream taken by the camera within 50 seconds after this time point for recognition.

[0031] Furthermore, the hydrotherapy image processing microservice unit includes an image acquisition subunit, an image preprocessing subunit, an image feature extraction subunit and a healthy expression state training subunit;

[0032] The image acquisition subunit is used to acquire the patient's facial image through a camera, and the facial image includes historical acquisition data and real-time acquisition data;

[0033] The image preprocessing subunit is used to perform image preprocessing on the face image to obtain a preprocessed image;

[0034] The image feature extraction subunit is used to perform image recognition on the preprocessed image, perform image segmentation based on the recognition result to obtain a plurality of local area images, perform facial feature extraction on the local area images, and use part of the extracted results for a training set and part for a test set;

[0035] The facial features include face color features and lip color features;

[0036] The complexion characteristics include white complexion, pale complexion, dark red complexion, red complexion, yellow complexion, black complexion and reddish-yellow complexion;

[0037] The lip color characteristics include white lip color, dark red lip color, light lip color, red lip color, bluish purple lip color, purple lip color and purple-black lip color;

[0038] The health expression state training subunit is used to build a health state neural network model. The health expression state neural network model is trained by using the data of the training set. When the accuracy rate of the health expression state neural network model in judging that the patient's health expression state has changed reaches 90%, the training is stopped. The training set data also includes the vital sign data generated by the vital sign detection microservice unit.

[0039] Furthermore, the second safety processing subunit is used to automatically adjust the working parameters of the hydrotherapy equipment according to the data processing result of the hydrotherapy image processing microservice unit to adapt to the real-time physical sign changes of the patient, and the working parameters of the hydrotherapy equipment include water temperature and water flow intensity;

[0040] The specific processing flow of the second security processing subunit is as follows:

[0041] M1: Set the threshold value of the change in the patient's healthy expression state to Q, set the water temperature and water flow intensity initial values ​​to standard values, and if the data processing result of the hydrotherapy image processing microservice unit is greater than the threshold value Q, the hydrotherapy image processing microservice unit issues an instruction to stop the water supply of the hydrotherapy equipment;

[0042] M2: The spa image processing microservice unit continuously tracks the patient, and the time for continuous tracking of the patient is set to T2. During the T2 time, the camera in the spa room transmits the image to the spa image processing microservice unit every 20ms. If the average result of data processing by the spa image processing microservice unit is less than the threshold Q, the water supply to the spa equipment is restored, and the water supply reaches the standard value, the camera in the spa room is changed to transmit the image to the spa image processing microservice unit every 50ms.

[0043] Further, the spa equipment maintenance microservice unit includes an equipment registration subunit, an equipment monitoring subunit and a safety prediction maintenance subunit;

[0044] The device registration subunit is used to enter detailed information about the device type, model, manufacturer, and production date for each device, and the detailed information is stored in the data storage module;

[0045] The equipment monitoring subunit obtains the temperature, flow rate and water pressure data of the hydrotherapy equipment respectively based on the temperature sensor, the flow rate sensor and the water pressure sensor;

[0046] The safety predictive maintenance subunit adopts a neural network prediction model for training, takes historical data as input and safety fault conditions as targets, and establishes a fault prediction model; based on real-time monitoring data, the trained model is used to predict faults, evaluate the health status of the equipment, predict possible faults and the time when they occur, and perform safety maintenance.

[0047] Furthermore, the operation and maintenance management module includes a transaction management unit for managing daily spa affairs, a device management unit for managing spa equipment, and a system management unit for maintaining the system; the operation and maintenance management module is connected to the microservice business module through an interface opened by the cloud platform;

[0048] The user interface module is developed based on Html5 and is accessed through a web page. It is used to display monitoring data and safety prompts, allowing operators or patients to view real-time information and make settings adjustments. The user interface is touch screen operated, providing an intuitive user interaction experience.

[0049] A computer-readable medium having a computer program stored thereon, wherein the program, when executed by a processor, is used to implement the functions of any one of the safety management systems for hydrotherapy equipment used for rehabilitation treatment.

[0050] The beneficial effects of the hydrotherapy equipment safety management system for rehabilitation treatment of the present invention are as follows:

[0051] The present invention adopts a microservice architecture developed based on Nodejs to construct a vital sign detection microservice unit, a spa information release microservice unit, a spa emergency call microservice unit, a spa equipment maintenance microservice unit, a spa image processing microservice unit and a spa safety management microservice unit, which are subdivided into different microservice units for the safety of spa and related equipment management and control. The several microservice processing units provided in the spa cloud platform module correspond one to one with the microservice units of the service application business module. The present invention integrates the spa image processing microservice unit, the spa safety management microservice unit and the anti-drowning processing sub-unit through a microservice architecture based on a cloud platform, which can monitor the patient's drowning safety and other safety hazards in the patient's spa process in real time, and quickly perform safety management of spa equipment. At the same time, each microservice is independent of each other and can be quickly built and packaged for deployment, saving development costs and efficiency. BRIEF DESCRIPTION OF THE DRAWINGS

[0052] Figure 1 This is a system architecture diagram of a hydrotherapy equipment safety management system for rehabilitation treatment according to the present invention;

[0053] Figure 2 A microservice business module diagram of a hydrotherapy equipment safety management system for rehabilitation treatment according to the present invention;

[0054] Figure 3 A hydrotherapy safety management microservice unit diagram of a hydrotherapy equipment safety management system for rehabilitation treatment according to the present invention;

[0055] Figure 4 A hydrotherapy image processing microservice unit diagram of a hydrotherapy equipment safety management system for rehabilitation treatment according to the present invention;

[0056] Figure 5 A hydrotherapy equipment maintenance microservice unit diagram of a hydrotherapy equipment safety management system for rehabilitation treatment of the present invention;

[0057] Figure 6 This is a diagram of the operation and maintenance management module of a hydrotherapy equipment safety management system for rehabilitation treatment according to the present invention.

[0058] Among them, 1-microservice business module, 11-vital sign detection microservice unit, 12-spa information release microservice unit, 13-spa emergency call microservice unit, 14-spa equipment maintenance microservice unit, 141-equipment registration subunit, 142-equipment monitoring subunit, 143-safety prediction maintenance subunit, 15-spa image processing microservice unit, 151-image acquisition subunit, 152-image preprocessing subunit, 153-image feature extraction subunit, 154-healthy expression state training subunit, 16-spa safety management microservice unit, 161-anti-drowning processing subunit, 162-second safety processing subunit, 2-spa cloud platform module, 3-data storage module, 4-operation and maintenance management module, 41-transaction management unit, 42-equipment management unit, 43-system management unit, 5-user interface module. DETAILED DESCRIPTION

[0059] The technical solution of the present invention will be described clearly and completely below in conjunction with the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of them. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0060] Example 1

[0061] First, the technical terms involved in the embodiments of the present application are explained.

[0062] (1) Nodejs microservices

[0063] Nodejs microservice is a microservice architecture implementation based on the Nodejs platform. Microservice architecture is an architectural style that decomposes an application into a set of small, loosely coupled services. Each service is built around a specific business function and can be independently deployed, expanded, and updated.

[0064] Figure 1 This is a system architecture diagram of a hydrotherapy equipment safety management system for rehabilitation treatment according to the present invention.

[0065] The system includes a microservice business module 1, a spa cloud platform module 2, a data storage module 3, an operation and maintenance management module 4 and a user interface module 5;

[0066] The microservice business module 1 adopts a microservice architecture developed based on Nodejs, which includes a vital sign detection microservice unit 11, a spa information release microservice unit 12, a spa emergency call microservice unit 13, a spa equipment maintenance microservice unit 14, a spa image processing microservice unit 15 and a spa safety management microservice unit 16;

[0067] The spa cloud platform module 2 adopts a microservice architecture developed based on Nodejs. The spa cloud platform module is configured to include several microservice processing units and a system security management unit; each microservice unit of the microservice business module is connected to each microservice processing unit of the spa cloud platform module through the application processing center service in a one-to-one correspondence; each microservice processing unit is provided with an external API interface; all connected devices are sent to each microservice processing unit of the spa cloud platform module for processing after being verified by the system security management unit, and each microservice processing unit provides an open API data interface for a third party;

[0068] The data storage module 3 is used to store data of the spa equipment safety management system; the data storage module 3 includes a Redis database for caching image data and a MySQL database for storing persistent log monitoring data. The MySQL database is deployed in a master-slave redundant mode. The master MySQL database and the backup MySQL database are divided according to the content into an object database cluster for storing images and videos collected by the camera, a business database cluster for storing the status of monitoring spa equipment, a business database cluster for recording the user's use of the spa equipment, a business database cluster for recording the maintenance and repair records of the equipment, and a business database cluster for recording the user's feedback on the use of the spa equipment. The status of the spa equipment includes the operating status of the equipment and the fault status of the equipment;

[0069] The operation and maintenance management module 4 is used to facilitate the operation of the operation and maintenance team;

[0070] A camera, an emergency call dialogue device and a display screen are arranged in the spa room, wherein the camera is connected to the spa image processing microservice unit 15, and the emergency call dialogue device is connected to the spa safety management microservice unit 16; the display screen is connected to the spa information publishing microservice unit 12; and a spa image processing microservice unit 15 is arranged in the spa room.

[0071] Example 2, this example is based on the above example, please refer to Figure 2 , Figure 3 , Figure 4 , Figure 5 and Figure 6 The vital sign detection microservice unit 11 is used to monitor the patient's vital sign data of heart rate, blood pressure and body temperature in real time. The vital sign data is uploaded to the data storage module 3. The vital sign detection microservice unit 11 includes 3 sensors, which correspond to the monitoring requirements of heart rate, blood pressure and body temperature respectively.

[0072] Further, the hydrotherapy safety management microservice unit 16 includes an anti-drowning processing subunit 161 and a second safety processing subunit 162;

[0073] The process of the drowning prevention processing subunit 161 includes the following steps:

[0074] S1: first collect a number of images containing patients in the hydrotherapy room to perform visual training on the drowning prevention processing subunit 161, and stop the visual training when the recognition accuracy of the drowning prevention processing subunit 161 reaches 92%;

[0075] S2: When the patient enters the hydrotherapy room, a picture is taken from the video stream captured by the camera in the hydrotherapy room every 40ms according to the Rtsp protocol and transmitted to the drowning prevention processing subunit. The drowning prevention processing subunit identifies the patient's safety hazards, sends warning instructions and warning sounds to the patient and medical staff, and the pictures captured by the camera are saved in the MySQL database and the shooting date is recorded;

[0076] S3: Classify the potential safety hazards into levels of minor, medium, severe and drowning;

[0077] S31: When the patient is at a serious level, the hydrotherapy equipment immediately stops running and notifies the hydrotherapy emergency call microservice unit 13 to take emergency measures to calm the patient;

[0078] S32: When the patient is at a medium level, the hydrotherapy equipment immediately stops running and notifies the hydrotherapy emergency call microservice unit 13 to take ordinary rescue measures to calm the patient's emotions;

[0079] S33: When the patient is at a mild level, the hydrotherapy equipment adjusts the outlet water temperature and the outlet water flow rate of the hydrotherapy equipment, and the camera in the hydrotherapy room transmits the image to the hydrotherapy safety management microservice unit every 20 ms. The drowning prevention processing subunit 161 does not identify the patient's safety hazard at time T, and issues a warning cancellation instruction to the patient and medical staff;

[0080] S34: When the patient is at the drowning level, the hydrotherapy equipment immediately stops the water intake operation and starts the water discharge operation, notifying the hydrotherapy emergency call microservice unit 13 to take ordinary rescue measures. When the water depth of the hydrotherapy equipment is lower than the threshold, a warning release instruction is issued to the patient and medical staff.

[0081] Furthermore, the process of visual training performed by the drowning prevention processing subunit 161 in step S1 is as follows:

[0082] L1: Collect 5,000 pictures of common equipment in the hydrotherapy room, different patients, patients undergoing hydrotherapy, and the depth of the water in the hydrotherapy room;

[0083] L2: Divide 5000 images into training set, test set and validation set in the ratio of 4:0.5:0.5; the images in the training set are all images containing the water depth height of the patient in the hydrotherapy, the images in the test set are images containing the water depth height of the patient in the hydrotherapy and images not containing the water depth height of the patient in the hydrotherapy, and the images in the validation set are images containing the water depth height of the patient in the hydrotherapy and images not containing the water depth height of the patient in the hydrotherapy;

[0084] L3: Use annotation tools to annotate the images of the training set with the patients and the water level where the patients are located, and generate an XML file;

[0085] L4: After extracting features using the convolutional neural network visual algorithm, the anti-drowning processing subunit trains the images in the training set one by one;

[0086] L5: The drowning prevention processing subunit 161 recognizes the pictures in the test set one by one and obtains the accuracy and error rate;

[0087] L6: If the accuracy and error rate do not meet the requirements, proceed to step L7; if the accuracy and error rate meet the requirements, the drowning prevention processing subunit 161 recognizes the pictures in the verification set one by one, and if the accuracy and error rate meet the requirements, the training ends; if the accuracy and error rate do not meet the requirements, proceed to step L7;

[0088] L7: After manually adjusting the recognition weight coefficient of the anti-drowning processing subunit 161, identify the pictures in the verification set one by one. If the recognition accuracy and error rate meet the requirements, the training ends. If not, adjust the recognition weight coefficient again and identify the pictures in the verification set one by one again. Delete the recognition record after each picture in the verification set is identified until the recognition accuracy and error rate meet the requirements and the training ends.

[0089] Furthermore, a ground sensing circuit is provided at the entrance of the spa pool in each spa room, and the ground sensing circuit is electrically connected to the spa image processing microservice unit and the spa safety management microservice unit. When the ground sensing circuit detects that a patient enters the spa pool entrance, a start recognition signal is sent to the spa image processing microservice unit and the spa safety management microservice unit. The spa image processing microservice unit captures the picture in the video stream taken by the camera within 50 seconds after this time point for recognition.

[0090] Further, the hydrotherapy image processing microservice unit 15 includes an image acquisition subunit 151, an image preprocessing subunit 152, an image feature extraction subunit 153 and a healthy expression state training subunit 154;

[0091] The image acquisition subunit 151 is used to acquire the patient's facial image through a camera, and the facial image includes historical acquisition data and real-time acquisition data;

[0092] The image preprocessing subunit 152 is used to perform image preprocessing on the face image to obtain a preprocessed image;

[0093] The image feature extraction subunit 153 is used to perform image recognition on the preprocessed image, perform image segmentation based on the recognition result, obtain a number of local area images, perform facial feature extraction on the local area images, and use part of the extracted results for the training set and part for the test set;

[0094] The facial features include face color features and lip color features;

[0095] The complexion characteristics include white complexion, pale complexion, dark red complexion, red complexion, yellow complexion, black complexion and reddish-yellow complexion;

[0096] The lip color characteristics include white lip color, dark red lip color, light lip color, red lip color, bluish purple lip color, purple lip color and purple-black lip color;

[0097] The health expression status training subunit 154 is used to construct a health status neural network model. The health expression status neural network model is trained by using the data of the training set. When the accuracy of the health expression status neural network model in judging that the patient's health expression status has changed reaches 90%, the training is stopped. The training set data also includes the vital sign data generated by the vital sign detection microservice unit 11.

[0098] Furthermore, the second safety processing subunit 162 is used to automatically adjust the working parameters of the hydrotherapy equipment according to the data processing result of the hydrotherapy image processing microservice unit 15 to adapt to the real-time physical sign changes of the patient, and the working parameters of the hydrotherapy equipment include water temperature and water flow intensity;

[0099] The specific processing flow of the second security processing subunit 162 is as follows:

[0100] M1: Set the threshold value of the change in the patient's healthy expression state to Q, set the water temperature and water flow intensity initial values ​​to standard values, and if the data processing result of the hydrotherapy image processing microservice unit 15 is greater than the threshold value Q, the hydrotherapy image processing microservice unit 15 issues an instruction to stop the water supply of the hydrotherapy equipment;

[0101] M2: The spa image processing microservice unit 15 continuously tracks the patient, and the time for continuous tracking of the patient is set to T2. During the T2 time, the camera in the spa room transmits the image to the spa image processing microservice unit every 20 ms. If the average result of data processing by the spa image processing microservice unit 15 is less than the threshold value Q, the water supply to the spa equipment is restored and reaches the standard value, and the camera in the spa room is changed to transmit the image to the spa image processing microservice unit 15 every 50 ms.

[0102] Further, the spa equipment maintenance microservice unit 14 includes an equipment registration subunit 141, an equipment monitoring subunit 142 and a safety prediction maintenance subunit 143;

[0103] The device registration subunit 141 is used to enter the detailed information of the device type, model, manufacturer, and production date for each device, and the detailed information is stored in the data storage module 3;

[0104] The equipment monitoring subunit 142 obtains the temperature, flow rate and water pressure data of the hydrotherapy equipment respectively based on the temperature sensor, the flow rate sensor and the water pressure sensor;

[0105] The safety prediction and maintenance subunit 143 adopts a neural network prediction model for training, takes historical data as input, and safety fault conditions as targets to establish a fault prediction model; based on real-time monitoring data, the trained model is used to predict faults, evaluate the health status of the equipment, predict possible faults and the time when the faults will occur, and perform safety maintenance.

[0106] Furthermore, the operation and maintenance management module 4 includes a transaction management unit 41 for managing daily spa affairs, a device management unit 42 for managing spa equipment, and a system management unit 43 for maintaining the system; the operation and maintenance management module 4 is connected to the microservice business module 1 through an interface opened by the cloud platform;

[0107] The user interface module 5 is developed based on Html5 and is accessed through a web page. It is used to display monitoring data and safety prompts, allowing operators or patients to view real-time information and make settings adjustments. The user interface is touch screen operated to provide an intuitive user interaction experience.

[0108] The beneficial effects of the hydrotherapy equipment safety management system for rehabilitation treatment of the present invention are as follows:

[0109] The present invention adopts a microservice architecture developed based on Nodejs to construct a vital sign detection microservice unit, a spa information release microservice unit, a spa emergency call microservice unit, a spa equipment maintenance microservice unit, a spa image processing microservice unit and a spa safety management microservice unit, which are subdivided into different microservice units for the safety of spa and related equipment management and control. The several microservice processing units provided in the spa cloud platform module correspond one to one with the microservice units of the service application business module. The present invention integrates the spa image processing microservice unit, the spa safety management microservice unit and the anti-drowning processing sub-unit through a microservice architecture based on a cloud platform, which can monitor the patient's drowning safety and other safety hazards in the patient's spa process in real time, and quickly perform safety management of spa equipment. At the same time, each microservice is independent of each other and can be quickly built and packaged for deployment, saving development costs and efficiency.

[0110] The present invention and its embodiments are described above, which is not restrictive. What is shown in the accompanying drawings is only one of the embodiments of the present invention, and the actual content is not limited to this. In short, if ordinary technicians in this field are inspired by it and do not deviate from the purpose of the invention, they can creatively design structural methods and embodiments similar to the technical scheme, which should all fall within the scope of protection of the present invention.

Claims

1. A hydrotherapy equipment safety management system for rehabilitation treatment, characterized in that: It includes a microservice business module (1), a hydrotherapy cloud platform module (2), a data storage module (3), an operation and maintenance management module (4) and a user interface module (5); The microservice business module (1) adopts a microservice architecture developed based on Nodejs, which includes a vital sign detection microservice unit (11), a spa information release microservice unit (12), a spa emergency call microservice unit (13), a spa equipment maintenance microservice unit (14), a spa image processing microservice unit (15) and a spa safety management microservice unit (16); The hydrotherapy cloud platform module (2) adopts a microservice architecture developed based on Nodejs, and the hydrotherapy cloud platform module is provided with a plurality of microservice processing units and a system security management unit; each microservice unit of the microservice business module is connected to each microservice processing unit of the hydrotherapy cloud platform module in a one-to-one correspondence through an application processing center service; each microservice processing unit is provided with an external API interface; all connected devices are sent to each microservice processing unit of the hydrotherapy cloud platform module for processing after being verified by the system security management unit, and each microservice processing unit provides an open API data interface for a third party; The data storage module (3) is used to store data of the spa equipment safety management system; the data storage module (3) includes a Redis database for caching image data and a MySQL database for storing persistent log monitoring data, the MySQL database is deployed in a master-slave redundant mode, and the master MySQL database and the backup MySQL database are divided into an object database cluster for storing images and videos collected by a camera, a business database cluster for storing the status of monitoring spa equipment, a business database cluster for recording the user's use of the spa equipment, a business database cluster for recording the maintenance and repair records of the equipment, and a business database cluster for recording the user's feedback on the use of the spa equipment, and the status of the spa equipment includes the running status of the equipment and the fault status of the equipment; The operation and maintenance management module (4) is used to facilitate the operation of the operation and maintenance team; A camera, an emergency call dialogue device and a display screen are arranged in a spa room, wherein the camera is connected to a spa image processing microservice unit (15), and the emergency call dialogue device is connected to a spa safety management microservice unit (16); the display screen is connected to a spa information publishing microservice unit (12); and a spa image processing microservice unit (15) is arranged in the spa room.

2. A hydrotherapy equipment safety management system for rehabilitation treatment according to claim 1, characterized in that: The vital sign detection microservice unit (11) is used to monitor the patient's vital sign data of heart rate, blood pressure and body temperature in real time. The vital sign data is uploaded to the data storage module (3). The vital sign detection microservice unit (11) includes three sensors corresponding to the monitoring requirements of heart rate, blood pressure and body temperature respectively.

3. A hydrotherapy equipment safety management system for rehabilitation treatment according to claim 2, characterized in that: The hydrotherapy safety management microservice unit (16) comprises an anti-drowning processing subunit (161) and a second safety processing subunit (162); The process of the drowning prevention processing subunit (161) comprises the following steps: S1: first collect a number of images of a patient in a hydrotherapy room to perform visual training on the drowning prevention treatment subunit (161), and stop the visual training when the recognition accuracy of the drowning prevention treatment subunit (161) reaches 92%; S2: When the patient enters the hydrotherapy room, a picture is taken from the video stream captured by the camera in the hydrotherapy room every 40ms according to the Rtsp protocol and transmitted to the drowning prevention processing subunit. The drowning prevention processing subunit identifies the patient's safety hazards, sends warning instructions and warning sounds to the patient and medical staff, and the pictures captured by the camera are saved in the MySQL database and the shooting date is recorded; S3: Classify the potential safety hazards into levels of minor, medium, severe and drowning; S31: When the patient is at a serious level, the hydrotherapy equipment immediately stops running and notifies the hydrotherapy emergency call microservice unit (13) to take emergency measures and calm the patient; S32: When the patient is at a medium level, the hydrotherapy equipment immediately stops running and notifies the hydrotherapy emergency rescue microservice unit (13) to take ordinary rescue measures to calm the patient; S33: When the patient is at a mild level, the hydrotherapy equipment adjusts the outlet water temperature and the outlet water flow rate of the hydrotherapy equipment, and the camera in the hydrotherapy room transmits the image to the hydrotherapy safety management microservice unit every 20 ms. The drowning prevention processing subunit (161) does not identify the patient's safety hazard at time T, and issues a warning cancellation instruction to the patient and medical staff; S34: When the patient is at the drowning level, the hydrotherapy equipment immediately stops the water intake operation and starts the water discharge operation, notifying the hydrotherapy emergency call microservice unit (13) to take ordinary rescue measures. When the water depth of the hydrotherapy equipment is lower than the threshold, a warning release instruction is issued to the patient and medical staff.

4. A safety management system for hydrotherapy equipment for rehabilitation treatment according to claim 3, characterized in that: The process of the anti-drowning processing subunit (161) performing visual training in step S1 is as follows: L1: Collect 5,000 pictures of common equipment in the hydrotherapy room, different patients, patients undergoing hydrotherapy, and the depth of the water in the hydrotherapy room; L2: Divide 5000 images into training set, test set and validation set in the ratio of 4:0.5:0.5; the images in the training set are all images containing the water depth height of the patient in the hydrotherapy, the images in the test set are images containing the water depth height of the patient in the hydrotherapy and images not containing the water depth height of the patient in the hydrotherapy, and the images in the validation set are images containing the water depth height of the patient in the hydrotherapy and images not containing the water depth height of the patient in the hydrotherapy; L3: Use annotation tools to annotate the images of the training set with the patients and the water level where the patients are located, and generate an XML file; L4: After extracting features using the convolutional neural network visual algorithm, the anti-drowning processing subunit trains the images in the training set one by one; L5: The drowning prevention processing subunit (161) recognizes the images in the test set one by one and obtains the accuracy and error rate; L6: If the accuracy and error rate do not meet the requirements, then proceed to step L7; if the accuracy and error rate meet the requirements, then the drowning prevention processing subunit (161) recognizes the pictures in the verification set one by one, and if the accuracy and error rate meet the requirements, then the training ends; if the accuracy and error rate do not meet the requirements, then proceed to step L7; L7: After manually adjusting the recognition weight coefficient of the anti-drowning processing subunit (161), the pictures in the verification set are recognized one by one. If the recognition accuracy and error rate meet the requirements, the training ends. If not, the recognition weight coefficient is adjusted again and the pictures in the verification set are recognized one by one again. After each recognition of a picture in the verification set, the recognition record is deleted until the recognition accuracy and error rate meet the requirements and the training ends.

5. A safety management system for hydrotherapy equipment for rehabilitation treatment according to claim 4, characterized in that: A ground sensing circuit is set at the entrance of the spa pool in each spa room, and the ground sensing circuit is electrically connected to the spa image processing microservice unit and the spa safety management microservice unit. When the ground sensing circuit detects that a patient enters the spa pool entrance, it sends a start recognition signal to the spa image processing microservice unit and the spa safety management microservice unit. The spa image processing microservice unit captures the picture in the video stream taken by the camera within 50 seconds after this time point for recognition.

6. A safety management system for hydrotherapy equipment for rehabilitation treatment according to claim 5, characterized in that: The hydrotherapy image processing microservice unit (15) comprises an image acquisition subunit (151), an image preprocessing subunit (152), an image feature extraction subunit (153) and a healthy expression state training subunit (154); The image acquisition subunit (151) is used to acquire a facial image of a patient through a camera, wherein the facial image includes historical acquisition data and real-time acquisition data; The image preprocessing subunit (152) is used to perform image preprocessing on the face image to obtain a preprocessed image; The image feature extraction subunit (153) is used to perform image recognition on the preprocessed image, perform image segmentation based on the recognition result, obtain a plurality of local area images, perform facial feature extraction on the local area images, and use part of the extracted results for a training set and part for a test set; The facial features include face color features and lip color features; The complexion characteristics include white complexion, pale complexion, dark red complexion, red complexion, yellow complexion, black complexion and reddish-yellow complexion; The lip color characteristics include white lip color, dark red lip color, light lip color, red lip color, bluish purple lip color, purple lip color and purple-black lip color; The health expression state training subunit (154) is used to construct a health state neural network model. The health expression state neural network model is trained by using the data of the training set. When the accuracy rate of the health expression state neural network model in judging whether the health expression state of the patient has changed reaches 90%, the training is stopped. The training set data also includes vital sign data generated by the vital sign detection microservice unit (11).

7. A safety management system for hydrotherapy equipment for rehabilitation treatment according to claim 6, characterized in that: The second safety processing subunit (162) is used to automatically adjust the working parameters of the hydrotherapy equipment according to the data processing result of the hydrotherapy image processing microservice unit (15) to adapt to the real-time changes in the patient's vital signs, wherein the working parameters of the hydrotherapy equipment include water temperature and water flow intensity; The specific processing flow of the second security processing subunit (162) is as follows: M1: setting the threshold value of the change in the patient's healthy expression state to Q, setting the initial values ​​of the water temperature and water flow intensity to standard values, and if the data processing result of the hydrotherapy image processing microservice unit (15) is greater than the threshold value Q, the hydrotherapy image processing microservice unit (15) issues an instruction to stop the water supply of the hydrotherapy equipment; M2: The hydrotherapy image processing microservice unit (15) continuously tracks the patient, and the time for continuously tracking the patient is set to T2. During the T2 time, the camera in the hydrotherapy room transmits the image to the hydrotherapy image processing microservice unit every 20 ms. If the average result of the data processing of the hydrotherapy image processing microservice unit (15) is less than the threshold value Q, the water supply of the hydrotherapy equipment is restored, and the water supply reaches the standard value, the camera in the hydrotherapy room is changed to transmit the image to the hydrotherapy image processing microservice unit (15) every 50 ms.

8. A safety management system for hydrotherapy equipment for rehabilitation treatment according to claim 7, characterized in that: The hydrotherapy equipment maintenance microservice unit (14) comprises an equipment registration subunit (141), an equipment monitoring subunit (142) and a safety prediction maintenance subunit (143); The device registration subunit (141) is used to input detailed information of device type, model, manufacturer and production date for each device, and the detailed information is stored in the data storage module (3); The equipment monitoring subunit (142) obtains the temperature, flow rate and water pressure data of the hydrotherapy equipment respectively based on the temperature sensor, flow rate sensor and water pressure sensor; The safety prediction and maintenance subunit (143) adopts a neural network prediction model for training, takes historical data as input and safety fault conditions as targets, and establishes a fault prediction model; based on real-time monitoring data, the trained model is used to predict faults, evaluate the health status of the equipment, predict possible faults and the time when the faults will occur, and perform safety maintenance.

9. A safety management system for hydrotherapy equipment for rehabilitation treatment according to claim 8, characterized in that: The operation and maintenance management module (4) comprises an event management unit (41) for managing daily hydrotherapy events, an equipment management unit (42) for managing hydrotherapy equipment, and a system management unit (43) for maintaining the system; the operation and maintenance management module (4) is connected to the microservice business module (1) via an interface opened by the cloud platform; The user interface module (5) is developed based on Html5 and is accessed through a web page. It is used to display monitoring data and safety prompts, allowing operators or patients to view real-time information and make settings adjustments. The user interface is touch screen operated, providing an intuitive user interaction experience.

10. A computer readable medium having a computer program stored thereon, wherein: When the program is executed by a processor, it is used to implement the functions of a safety management system for hydrotherapy equipment for rehabilitation treatment as described in any one of claims 1 to 9.

Citation Information

Patent Citations

  • Multi-center medical equipment big data cloud platform based on cloud-side-end architecture

    CN112349404A

  • Industrial internet platform based on micro service

    CN118118500A