Internal medicine clinical nursing potential safety hazard analysis method and system
By combining the autoencoder and the isolation forest, the problem of the monitoring system's dependence on experience and lack of in-depth data processing in internal medicine clinical nursing is solved, and the automatic identification of potential safety hazards is realized, which improves the safety and quality of nursing and reduces the dependence on professional knowledge. .
Patent Information
- Application Number
- CN202410714927.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-04
- Publication Date
- 2024-08-23
AI Technical Summary
The existing internal medicine clinical nursing monitoring system relies on medical experience and lacks in-depth data processing and intelligent risk assessment, resulting in insufficient timeliness and accuracy of risk warnings. Moreover, traditional anomaly detection methods require a large amount of annotated data, making it difficult to effectively identify potential safety hazards in practical applications. Hidden danger.
Combining autoencoders and isolation forests, through standardized processing and low-dimensional feature representation of multi-parameter physiological signals, an isolation forest model is constructed for anomaly detection to automatically identify potential clinical nursing safety hazards.
It improves the safety and quality of internal medicine clinical care, reduces reliance on professional knowledge, can efficiently process complex clinical data, and promptly discovers potential safety hazards without the need to label data.
Smart Images

Figure CN118538384A
Abstract
Description
Technical Field
[0001] The present invention relates to the field of medical technology, and in particular to a method and system for analyzing safety hazards in clinical nursing of internal medicine. Background Art
[0002] With the advancement of medical technology, internal medicine clinical nursing, as an important part of the medical system, plays a vital role in ensuring the health and safety of patients. In modern medical practice, multi-parameter physiological monitoring systems are widely used in wards and intensive care units to monitor the physiological status of patients in real time so that medical staff can promptly detect and deal with various emergencies.
[0003] However, there are some shortcomings in the existing technology. First, due to the complexity and diversity of physiological signals, traditional monitoring systems often rely on the experience and judgment of medical staff for safety hazards in clinical care, which to a certain extent limits the timeliness and accuracy of risk warnings. Secondly, existing physiological monitoring equipment usually only provides raw physiological signals and basic analysis, lacking in-depth data processing and intelligent risk assessment capabilities. In addition, the high dimensionality of medical data and the differences between individuals make it particularly difficult to accurately identify potential risk points from a large amount of physiological data.
[0004] For these problems, even with the introduction of advanced technologies such as machine learning, existing methods still face problems such as low data processing efficiency, inaccurate feature extraction, and weak model generalization ability. In addition, traditional anomaly detection methods often require a large amount of labeled data for supervised learning, which is unrealistic in practical applications because it is difficult and costly to obtain a large amount of accurately labeled medical data. Therefore, there is an urgent need for an intelligent system that can automatically and accurately identify potential safety hazards in internal medicine clinical care. Summary of the invention
[0005] In view of the shortcomings of the existing technology, the present invention provides a method and system for analyzing safety hazards in clinical nursing in internal medicine. By combining autoencoders and isolation forests, it can efficiently process and analyze complex clinical data, timely discover potential clinical nursing safety hazards, and improve the safety and quality of clinical nursing in internal medicine.
[0006] To achieve the above objectives, the present invention is implemented through the following technical solutions: a method for analyzing safety hazards in clinical nursing of internal medicine, comprising the following steps:
[0007] By standardizing the multi-parameter physiological signals in internal medicine clinical nursing, standardized data can be obtained;
[0008] The obtained standardized data is used to train an autoencoder, which includes an encoder part and a decoder part, and is used to learn the low-dimensional feature representation of the data;
[0009] Using the trained autoencoder encoder part to encode new clinical care data to obtain low-dimensional feature representation;
[0010] Build an isolation forest model, use the obtained low-dimensional feature representation as input, and train the isolation forest model;
[0011] The anomaly score calculated by the isolation forest model is compared with the preset threshold to determine whether there are clinical care safety risks;
[0012] The training of the encoder consists in minimizing the reconstruction error, which is calculated by the following formula:
[0013]
[0014] Where X is the input normalized data, X′ is the data reconstructed by the autoencoder, and n is the total number of data points.
[0015] Preferably, the step of obtaining standardized data by standardizing multi-parameter physiological signals in internal medicine clinical nursing includes:
[0016] Continuous physiological parameters were normalized using Z-score;
[0017] Encoding non-continuous data, including but not limited to One-Hot encoding.
[0018] Preferably, the autoencoder comprises:
[0019] Multi-layer neural networks using non-linear activation functions;
[0020] The weights and biases of the autoencoder are optimized by the gradient descent algorithm to minimize the reconstruction error.
[0021] Preferably, the step of constructing the isolation forest model and taking the obtained low-dimensional feature representation as input and training the isolation forest model comprises:
[0022] Determine the parameters of the isolation forest, including the number of trees and sample subset size;
[0023] Based on the low-dimensional feature representation, the isolation forest model is trained.
[0024] Preferably, the calculation formula of the anomaly score is:
[0025]
[0026] Among them, E(nh(x)) is the average path length of samples in the isolation forest, c(n) is the normalization factor, and H(n-1) is the harmonic number.
[0027] Preferably, the step of comparing the anomaly score calculated by the isolation forest model with a preset threshold to determine whether there is a clinical nursing safety hazard also includes:
[0028] Determine a threshold for anomaly scores on the training dataset;
[0029] Using the determined threshold, new data points are tested for anomalies.
[0030] The present invention also provides a system for analyzing safety hazards of clinical nursing in internal medicine, comprising:
[0031] Data acquisition module, used to obtain multi-parameter physiological signals in internal medicine clinical nursing;
[0032] A standardization processing module is used to perform standardization processing on the acquired multi-parameter physiological signals to obtain standardized data;
[0033] An autoencoder training module is used to train the autoencoder on the obtained standardized data, including an encoder part and a decoder part, and is used to learn the low-dimensional feature representation of the data;
[0034] An encoder application module, used to encode new clinical care data using the trained autoencoder encoder part to obtain a low-dimensional feature representation;
[0035] An isolation forest model building module is used to build an isolation forest model, and the obtained low-dimensional feature representation is used as input to train the isolation forest model;
[0036] A safety hazard detection module is used to compare the anomaly score calculated by the isolation forest model with a preset threshold to determine whether there are clinical nursing safety hazards;
[0037] The output module is used to output the detection results of clinical nursing safety hazards.
[0038] The present invention also provides a computer device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the above method is implemented.
[0039] The present invention also provides a storage medium on which a computer program is stored. When the computer program is executed by a processor, the method described above is implemented.
[0040] The present invention provides a method and system for analyzing safety hazards in clinical nursing of internal medicine. It has the following beneficial effects:
[0041] By combining autoencoders and isolation forests, this method can efficiently process and analyze complex clinical data, timely discover potential clinical nursing safety hazards, and improve the safety and quality of internal medicine clinical nursing. In addition, the implementation of this method does not require labeled data, reduces dependence on professional knowledge, and has high practical value. BRIEF DESCRIPTION OF THE DRAWINGS
[0042] Figure 1 It is a schematic diagram of the method flow of the present invention;
[0043] Figure 2 It is a schematic diagram of the structure of the device of the present invention;
[0044] Figure 3 It is a schematic diagram of the computer device structure of the present invention.
[0045] Among them, 100, data acquisition module; 200, standardization processing module; 300, autoencoder training module; 400, encoder application module; 500, isolation forest model construction module; 600, safety hazard detection module; 700, output module; 40, computer equipment; 41, processor; 42, memory; 43, storage medium. DETAILED DESCRIPTION
[0046] The following will be combined with the drawings in the specification of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. 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.
[0047] Please refer to the attached Figure 1 The embodiment of the present invention provides a method for analyzing safety hazards of clinical nursing in internal medicine, including steps S1 to S5, which are specifically as follows:
[0048] Wherein, step S1, obtaining standardized data by standardizing multi-parameter physiological signals in internal medicine clinical nursing;
[0049] In step S1, the multi-parameter physiological signals collected in the clinical nursing of internal medicine are standardized. These signals include heart rate, blood pressure, body temperature, respiratory rate, etc. The purpose of standardization is to convert data of different dimensions and magnitudes to the same standard for subsequent processing.
[0050] In this embodiment, two types of processing are performed on multi-parameter physiological signals collected in internal medicine clinical nursing: Z-score standardization of continuous physiological parameters and encoding processing of non-continuous data.
[0051] Z-score normalization of continuous physiological parameters:
[0052] For continuous physiological parameters, such as heart rate, blood pressure, body temperature, blood sugar, etc., Z-score standardization is used to eliminate differences in data units and dimensions and improve the generalization ability of the model. The calculation formula for Z-score standardization is as follows:
[0053]
[0054] Among them, X is the original data, μ is the mean value of the parameter, and σ is the standard deviation. The standardized data will have zero mean and unit variance, which makes it easier to compare different parameters and helps to speed up the convergence of model training.
[0055] Coding of non-continuous data:
[0056] Non-continuous data, such as categorical variables such as drug type, surgery type, patient gender, etc., usually need to be converted into numerical data that the model can handle. One of the commonly used methods is One-Hot encoding. One-Hot encoding converts a categorical variable into a binary matrix with only one bit being 1 and the other bits being 0, each bit corresponding to a category of the categorical variable. For example, if there is a variable representing blood type, it has four values: A, B, AB, O. One-Hot encoding converts it into four bits of binary, one bit being 1 and the rest being 0, as shown below:
[0057] Blood type A: [1,0,0,0]
[0058] Blood type B: [0,1,0,0]
[0059] AB blood type: [0,0,1,0]
[0060] Blood type O: [0,0,0,1]
[0061] The encoded data can be directly used as input for autoencoder training and isolation forest models to ensure that the model can correctly understand and process the data.
[0062] By performing Z-score standardization on continuous physiological parameters and One-Hot encoding on non-continuous data, this embodiment enables the model to better understand and process various types of clinical data while ensuring data quality. This data preprocessing strategy provides a solid foundation for subsequent feature learning and anomaly detection, helps to improve the accuracy and reliability of the model, and thus more effectively identify safety hazards in actual clinical care. In addition, this method can be extended to other medical data analysis tasks, and has strong universality and practical value.
[0063] Wherein, step S2, performing autoencoder training on the obtained standardized data, the autoencoder includes an encoder part and a decoder part, and is used to learn the low-dimensional feature representation of the data;
[0064] In step S2, the obtained standardized data is used to train the autoencoder. An autoencoder is an unsupervised neural network that learns a compressed data representation (encoding) and then tries to reconstruct the original input (decoding) in order to capture the most important features of the data. The structure of an autoencoder usually consists of two parts:
[0065] Encoder: It compresses the input data and maps the high-dimensional data into a low-dimensional latent space. The encoder can be implemented by a multi-layer neural network, where each layer uses a nonlinear activation function to increase the complexity and learning ability of the model;
[0066] H=f(W encoder ·X std +b encoder )
[0067] Decoder: It reconstructs the data from the low-dimensional latent space, trying to restore the dimensions and distribution of the original data. The structure of the decoder usually mirrors the structure of the encoder and also uses a non-linear activation function.
[0068] Nonlinear activation functions are an important part of neural networks, allowing the model to capture complex patterns in the input data. Commonly used nonlinear activation functions include ReLU (Rectified Linear Unit), Sigmoid, Tanh, etc.
[0069] X′=g(W decoder ·H+b decoder )
[0070] Here, f and g represent the activation functions of the encoder and decoder, respectively, and W and b represent the weights and biases, respectively. The goal of training an autoencoder is to minimize the difference between the original data and the reconstructed data, usually using the mean squared error (MSE) as the loss function:
[0071]
[0072] Among them, X is the original input data, and X′ is the data reconstructed by the autoencoder.
[0073] In order to minimize this loss function, the gradient descent algorithm is used to update the weights and biases. In the gradient descent algorithm, the gradient of the loss function with respect to each parameter is calculated, and then the parameter value is adjusted in the opposite direction of the gradient to reduce the loss. The optimization process can use various variants of gradient descent, such as batch gradient descent (BGD), stochastic gradient descent (SGD), mini-batch gradient descent (Mini-batch GD), etc. Some advanced optimization algorithms such as Adam are also widely used.
[0074] By using multi-layer nonlinear neural networks and gradient descent optimization algorithms, the autoencoder can effectively learn the compressed representation of the data and reconstruct the original data through nonlinear transformation. This method allows the autoencoder to capture the complex structure and patterns in the data, providing high-quality feature representation for subsequent anomaly detection. In addition, the training process of this autoencoder does not rely on labeled data, making it particularly useful in unsupervised learning tasks and suitable for medical data analysis scenarios where labels are scarce.
[0075] Wherein, step S3, using the trained autoencoder encoder part to encode the new clinical nursing data to obtain a low-dimensional feature representation;
[0076] In step S3, the encoder part of the trained autoencoder is applied to new clinical care data. These data are converted into low-dimensional feature representations through the encoder, which capture the key information of the data and facilitate efficient anomaly detection.
[0077] Wherein, step S4, constructing an isolation forest model, taking the obtained low-dimensional feature representation as input, and training the isolation forest model;
[0078] In step S4, the low-dimensional feature representation obtained in step S3 is used as input to construct an isolation forest model. Isolation forest is an efficient anomaly detection algorithm that uses an isolation mechanism to identify anomalies based on the principle of random forest. The isolation forest model constructs multiple isolation trees, each of which isolates observations by randomly selecting features and split values. Anomalies are usually those points that are easy to isolate, that is, points with short paths in the isolation tree.
[0079] In this embodiment, Isolation Forest is a tree-based ensemble learning method suitable for unsupervised anomaly detection. Isolation Forest constructs multiple isolation trees by randomly selecting features and randomly selecting split values to "isolate" observations. Anomalies are usually few and very different from other data points, so they will be isolated faster, which means that the path required to reach the leaf node in the isolation tree will be shorter.
[0080] The key parameters of the Isolation Forest model include:
[0081] Number of trees (n_estimators): The number of trees in the ensemble. Increasing the number of trees can improve the stability of the model, but it will also increase the computational cost.
[0082] Sample subset size (max_samples): The size of the sample subset used to train each isolation tree. When the sample subset size is close to the total number of samples, the performance of isolation forests is generally better; however, larger sample subsets also increase the construction cost of each tree.
[0083] These parameters need to be adjusted according to the specific problem and the characteristics of the dataset. Usually, the choice of parameters can be optimized by methods such as cross-validation.
[0084] After obtaining the low-dimensional feature representation of the autoencoder, these features are used to train the isolation forest model. The training process includes the following steps:
[0085] Randomly select sample subsets: Randomly extract small sample subsets from the data, the size of which is determined by the parameter max_samples.
[0086] Construct an isolation tree: For each sample subset, randomly select a feature and randomly select a split value between the maximum and minimum values of the feature to split the data. Repeat this process until each sample is "isolated" to a separate leaf node, or a certain condition (such as the maximum depth of the tree) is reached.
[0087] Repeat tree building: Repeat the above steps until the number of trees specified by the parameter n_estimators has been built.
[0088] Evaluate the anomaly score of a sample: Once all isolation trees are constructed, the anomaly score of each sample can be determined by calculating the average path length it takes to reach a leaf node in all trees. A shorter average path length means that the sample is more anomaly.
[0089] The Isolation Forest model does not require any prior knowledge about anomalies because it is a method based on data distribution. By training the Isolation Forest on the low-dimensional feature representation learned by the autoencoder, it can effectively detect abnormal patterns that are not easy to find in the original high-dimensional space. In addition, due to its randomness, the Isolation Forest has good robustness to different types of anomalies. In medical data analysis, this can help detect abnormal physiological states of patients early, so as to carry out timely intervention.
[0090] Among them, step S5, the anomaly score calculated by the isolation forest model is compared with a preset threshold to determine whether there is a clinical nursing safety hazard;
[0091] Finally, in step S5, the anomaly score calculated by the isolation forest model is compared with a preset threshold. If the anomaly score of a data point is higher than this threshold, it is considered an anomaly, representing a clinical care safety hazard. The threshold can be set based on the anomaly score distribution of historical data, usually with a confidence level of 95% or 99%.
[0092] In this embodiment, the calculation of the anomaly score is the core part of the isolation forest algorithm, which is used to evaluate the degree of anomaly of a data point. Given a sample point x, its anomaly score s(x,n) is calculated based on the average path length E(nh(x)) of the sample in all isolation trees. The higher this score, the greater the probability that the sample point x is considered anomaly.
[0093] The calculation formula for the anomaly score is:
[0094]
[0095] Where E(nh(x)) is the average path length of sample x on all trees in the forest. Path length h(x) refers to the number of edges from the root node to the leaf node containing sample x. Outliers usually have shorter path lengths.
[0096] c(n) is a normalization factor that adjusts the average path length so that the anomaly score is in the range of 0 to 1, where 1 is very abnormal. The calculation formula for c(n) is:
[0097]
[0098] Where H(n-1) is the harmonic number and n is the number of samples used to train a single isolation tree.
[0099] Frequent points are more easily isolated in the isolation tree due to their rarity and characteristics different from normal points, and they are usually closer to the root of the tree. Therefore, the average path length E(h(x)) of anomalies will be shorter than that of normal points, and the score obtained by this anomaly score formula will be higher.
[0100] By combining autoencoders and isolation forests, this method can efficiently process and analyze complex clinical data, timely discover potential clinical nursing safety hazards, and improve the safety and quality of internal medicine clinical nursing. In addition, the implementation of this method does not require labeled data, reduces dependence on professional knowledge, and has high practical value.
[0101] As an implementation mode of the present invention, step S5 further includes:
[0102] S51, determining a threshold of anomaly score on the training data set;
[0103] This step is crucial in the anomaly detection process. The threshold setting will determine which data points are considered anomalies. This threshold can be determined in a number of ways:
[0104] Statistical methods: For example, setting the threshold to the 95th or 99th percentile of the anomaly score of all data points in the training dataset means that data points exceeding this threshold will be considered anomalies.
[0105] Validation set-based: If additional labeled data is available, the threshold can be chosen by maximizing a specific performance metric (e.g., precision, recall, F1 score, etc.) on a validation set.
[0106] Expert knowledge: In some fields, there are industry standards or expert consensus that indicate the boundaries of anomalies. This knowledge can be used to set thresholds.
[0107] Adaptive methods: In some cases, the threshold can be adjusted dynamically based on the characteristics of the data, for example, using window-based methods to capture the time-varying nature of the data.
[0108] S52, using the determined threshold value to perform anomaly detection on new data points;
[0109] Once you determine the threshold for the anomaly score, you can use this threshold to perform anomaly detection on new data points:
[0110] Real-time detection: For real-time data streams, the anomaly score of each new data point can be continuously monitored and marked as anomaly once the score exceeds the threshold.
[0111] Batch detection: For an already collected dataset, the anomaly scores of all data points can be calculated at once and those points exceeding the threshold are marked as anomalies.
[0112] Feedback mechanism: Anomaly detection can set a feedback mechanism to allow users to confirm the detection results so as to further optimize the threshold setting in the future.
[0113] In this way, the Isolation Forest algorithm is able to identify anomalies not only on the training dataset, but can also be applied to new data points, providing continuous anomaly monitoring and detection capabilities for practical applications.
[0114] The internal medicine clinical nursing safety hazard analysis system described below and the internal medicine clinical nursing safety hazard analysis method described above can be referenced to each other.
[0115] Please refer to the attached Figure 2 The present invention also provides a system for analyzing safety hazards of clinical nursing in internal medicine, comprising:
[0116] The data acquisition module 100 is used to acquire multi-parameter physiological signals in internal medicine clinical nursing;
[0117] The responsibility of this module is to collect multi-parameter physiological signals in internal medicine clinical care. These signals include important vital signs such as electrocardiogram (ECG), blood pressure, body temperature, and respiratory rate.
[0118] The standardization processing module 200 is used to perform standardization processing on the acquired multi-parameter physiological signals to obtain standardized data;
[0119] Physiological signals are collected by different devices and have different ranges and formats. The function of this module is to standardize these signals, ensure data quality and consistency, and provide standardized data for subsequent analysis.
[0120] An autoencoder training module 300 is used to perform autoencoder training on the obtained standardized data, including an encoder part and a decoder part, for learning a low-dimensional feature representation of the data;
[0121] An autoencoder is an unsupervised neural network used to learn low-dimensional feature representations of data. This module automatically learns the key features in the data through the training of the autoencoder, which can represent the main information of the original data.
[0122] The encoder application module 400 is used to encode new clinical nursing data using the trained autoencoder encoder part to obtain a low-dimensional feature representation;
[0123] Once the autoencoder is trained, its encoder part can be used to process new clinical care data. This module converts the new data into a low-dimensional feature representation, which helps the isolation forest model to detect anomalies more effectively.
[0124] An isolation forest model construction module 500 is used to construct an isolation forest model, and use the obtained low-dimensional feature representation as input to train the isolation forest model;
[0125] Using the low-dimensional features extracted by the autoencoder, this module builds an isolation forest model. Isolation forest is an effective anomaly detection algorithm that identifies anomalies in data through an isolation mechanism.
[0126] A safety hazard detection module 600 is used to compare the anomaly score calculated by the isolation forest model with a preset threshold to determine whether there is a clinical nursing safety hazard;
[0127] This module uses the anomaly score calculated by the isolation forest model and compares it with the preset threshold. If the anomaly score exceeds the threshold, the system will determine that there is a potential clinical care safety hazard.
[0128] An output module 700 is used to output the detection results of clinical nursing safety hazards;
[0129] Finally, the test results will be displayed to medical staff through the output module 700. These results can be used to remind the staff to take preventive measures or further analyze the medical problems.
[0130] Through the collaborative work of these modules, the system of the present invention can effectively analyze physiological signals in clinical care, timely discover potential safety hazards, and provide a scientific basis for medical staff to make decisions. The application of this system is expected to significantly improve the safety and quality of clinical care and reduce medical errors and patient risks.
[0131] The system of this embodiment can be used to execute the above method embodiments, and its principles and technical effects are similar, which will not be repeated here.
[0132] Please refer to the attached Figure 3 The present invention further provides a computer device 40, comprising: a processor 41 and a memory 42, wherein the memory 42 stores a computer program executable by the processor, and when the computer program is executed by the processor, the above method is executed.
[0133] The present invention further provides a storage medium 43 on which a computer program is stored. When the computer program is run by the processor 41, the above method is executed.
[0134] Among them, the storage medium 43 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable red-only memory (PROM), read-only memory (ROM), magnetic storage, flash memory, disk or optical disk.
[0135] Although embodiments of the present invention have been shown and described, it will be appreciated by those skilled in the art that various changes, modifications, substitutions and variations may be made to the embodiments without departing from the principles and spirit of the present invention, and that the scope of the present invention is defined by the appended claims and their equivalents.
Claims
1. A method for analyzing safety hazards in clinical nursing of internal medicine, characterized in that: The following steps are involved: By standardizing the multi-parameter physiological signals in internal medicine clinical nursing, standardized data can be obtained; The obtained standardized data is used to train an autoencoder, which includes an encoder part and a decoder part, and is used to learn the low-dimensional feature representation of the data; Using the trained autoencoder encoder part to encode new clinical care data to obtain low-dimensional feature representation; Build an isolation forest model, use the obtained low-dimensional feature representation as input, and train the isolation forest model; The anomaly score calculated by the isolation forest model is compared with the preset threshold to determine whether there are clinical care safety risks; The training of the encoder consists in minimizing the reconstruction error, which is calculated by the following formula: Where X is the input normalized data, X′ is the data reconstructed by the autoencoder, and n is the total number of data points.
2. A method for analyzing safety hazards in clinical nursing of internal medicine according to claim 1, characterized in that: The step of obtaining standardized data by standardizing the multi-parameter physiological signals in internal medicine clinical nursing includes: Continuous physiological parameters were normalized using Z-score; Encoding non-continuous data, including but not limited to One-Hot encoding.
3. A method for analyzing safety hazards in clinical nursing of internal medicine according to claim 1, characterized in that: The autoencoder comprises: Multi-layer neural networks using non-linear activation functions; The weights and biases of the autoencoder are optimized by the gradient descent algorithm to minimize the reconstruction error.
4. A method for analyzing safety hazards in clinical nursing of internal medicine according to claim 1, characterized in that: The isolation forest model is constructed, and the obtained low-dimensional feature representation is used as input. The steps of training the isolation forest model include: Determine the parameters of the isolation forest, including the number of trees and sample subset size; Based on the low-dimensional feature representation, the isolation forest model is trained.
5. The method for analyzing safety hazards of clinical nursing in internal medicine according to claim 1, characterized in that: The calculation formula of the anomaly score is: Among them, E(nh(x)) is the average path length of samples in the isolation forest, c(n) is the normalization factor, and H(n-1) is the harmonic number.
6. A method for analyzing safety hazards in clinical nursing of internal medicine according to claim 1, characterized in that: The step of comparing the anomaly score calculated by the isolation forest model with a preset threshold to determine whether there is a clinical nursing safety hazard also includes: Determine a threshold for anomaly scores on the training dataset; Using the determined threshold, new data points are tested for anomalies.
7. A system for analyzing safety hazards in clinical nursing of internal medicine, used to implement the method according to any one of claims 1 to 6, characterized in that: include: Data acquisition module, used to obtain multi-parameter physiological signals in internal medicine clinical nursing; A standardization processing module is used to perform standardization processing on the acquired multi-parameter physiological signals to obtain standardized data; An autoencoder training module is used to train the autoencoder on the obtained standardized data, including an encoder part and a decoder part, and is used to learn the low-dimensional feature representation of the data; An encoder application module, used to encode new clinical care data using the trained autoencoder encoder part to obtain a low-dimensional feature representation; An isolation forest model building module is used to build an isolation forest model, and the obtained low-dimensional feature representation is used as input to train the isolation forest model; A safety hazard detection module is used to compare the anomaly score calculated by the isolation forest model with a preset threshold to determine whether there are clinical nursing safety hazards; The output module is used to output the detection results of clinical nursing safety hazards.
8. A storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the method according to any one of claims 1 to 6 is implemented.
