Operation duration prediction method and electronic equipment

The operation stage is identified through video files and neural networks, and the operation duration is predicted by combining historical information and user characteristics, which solves the problem of inaccurate prediction of operation duration and improves the utilization rate of the operating room and the rationality of emergency surgery arrangements.

CN118735015APending Publication Date: 2024-10-01QINGDAO HISENSE MEDICAL EQUIP
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202310317181.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-03-29
Publication Date
2024-10-01

AI Technical Summary

Technical Problem

It is difficult to accurately predict the duration of surgery with existing technology, resulting in low operating room utilization, and improper arrangements for emergency surgeries may lead to insufficient or overuse of spare operating rooms.

Method used

By obtaining video files of the surgical process, the neural network is used to identify the surgical stages, and the duration of each surgical stage is predicted based on historical surgical information and user characteristics, and the predicted duration is updated in real time to improve the accuracy of surgical duration prediction.

Benefits of technology

It improves the accuracy of prediction of operation duration, optimizes the utilization rate of operating rooms, reduces the situation of empty or improperly occupied operating rooms, and ensures reasonable arrangements for emergency operations.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118735015A_ABST
    Figure CN118735015A_ABST
Patent Text Reader

Abstract

The invention discloses an operation duration prediction method and electronic equipment, and the method comprises the steps: obtaining a video file of a current operation process, and determining a target operation stage to which the current operation process belongs according to the video file; determining the predicted duration of the target operation stage according to the predicted duration of each operation stage; and according to the obtained actual duration of the target operation stage, updating the predicted duration of the target operation stage and the total duration of the operation type to which the target operation stage belongs. The accuracy of predicting the operation duration is improved, and then the utilization rate between operations is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of data processing technology, and in particular to a method and electronic device for predicting operation duration. Background Art

[0002] "Elective surgery" refers to surgery that is scheduled in advance. The scheduling process for this type of surgery is that when surgery is needed, the doctor informs the operating room manager in advance of the possible duration of the surgery and the approximate time period for the surgery. The operating room manager will then sort out all reported surgeries based on the duration and approximate time period, and arrange a corresponding operating room arrangement plan.

[0003] However, since the actual surgical situation is unpredictable, "elective surgeries" often end early or late, and the nurses or doctors performing the surgery are unable to inform the operating room managers of the early or delayed end of the surgery and the exact end time, resulting in the operating room being vacant or occupied.

[0004] In the related art, the actual usage of the operating room is generally determined by on-duty inspection by personnel. However, the manual inspection method will cause time delays on the one hand; on the other hand, once the operation in the operating room is delayed, the subsequent affected elective operations can only be performed in the spare operating room.

[0005] In addition, in some cases, some emergency patients in the hospital need surgery. Such emergency surgeries and the above-mentioned occupied operating rooms are elective surgeries and will be arranged to be performed in the hospital's spare operating rooms. However, in actual situations, there should be neither too many nor too few spare operating rooms, and there will often be a problem of insufficient spare operating rooms. Therefore, it is very important to accurately predict the duration. Summary of the invention

[0006] In an exemplary embodiment of the present application, a method and electronic device for predicting the duration of an operation are provided to improve the accuracy of predicting the duration of an operation, thereby improving the utilization rate of an operating room.

[0007] According to a first aspect of an exemplary embodiment, a method for predicting operation duration is provided, comprising:

[0008] Obtaining a video file of the current surgical process, and determining the target surgical stage to which the current surgical process belongs based on the video file;

[0009] Determine the predicted duration of the target surgical phase according to the predicted duration of each surgical phase;

[0010] According to the acquired actual duration of the target surgical stage, the predicted duration of the target surgical stage and the total duration of the surgical type to which the target surgical stage belongs are updated.

[0011] According to a second aspect of an exemplary embodiment, there is provided a device for predicting operation duration, comprising:

[0012] An acquisition module is used to acquire a video file of the current surgical process and determine the target surgical stage to which the current surgical process belongs based on the video file;

[0013] A prediction module, used to determine the predicted duration of the target surgical stage according to the predicted durations of each surgical stage;

[0014] The updating module is used to update the predicted duration of the target surgery stage and the total duration of the surgery type to which the target surgery stage belongs according to the actual duration of the target surgery stage obtained.

[0015] According to a third aspect of the exemplary implementation, there is provided an electronic device, including a processor and a data transmission unit;

[0016] The data transfer unit is configured to perform:

[0017] Obtain the video file of the current surgical process;

[0018] The processor is configured to execute:

[0019] Determine the target surgical stage to which the current surgical process belongs according to the video file;

[0020] Determine the predicted duration of the target surgical phase according to the predicted duration of each surgical phase;

[0021] According to the acquired actual duration of the target surgical stage, the predicted duration of the target surgical stage and the total duration of the surgical type to which the target surgical stage belongs are updated.

[0022] According to a fourth aspect of an exemplary embodiment, a computer storage medium is provided, in which computer program instructions are stored. When the instructions are executed on a computer, the computer executes the method for predicting the duration of surgery as described in the first aspect.

[0023] In the embodiment of the present application, the electronic device first obtains the video file of the current surgical process, and determines the target surgical stage to which the current surgical process belongs based on the video file. Different surgical stages have different predicted durations, and the electronic device can determine the predicted duration of the target surgical stage based on the predicted durations of each surgical stage. The electronic device then updates the predicted duration of the target surgical stage and the total duration of the surgical type to which the target surgical stage belongs based on the actual duration of the acquired target surgical stage. Such a design improves the accuracy of the surgical duration prediction, thereby improving the utilization rate of the operating room. BRIEF DESCRIPTION OF THE DRAWINGS

[0024] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.

[0025] Figure 1 A flowchart of a method for predicting surgical duration provided by an embodiment of the present application is exemplarily shown;

[0026] Figure 2 A flowchart for determining a target surgical stage to which a current surgical procedure belongs provided by an embodiment of the present application is exemplarily shown;

[0027] Figure 3 A schematic diagram of determining a target surgical stage to which a current surgical procedure belongs according to a video file provided by an embodiment of the present application is exemplarily shown;

[0028] Figure 4 A flowchart for determining the predicted duration of each surgical stage included in each type of surgery provided by an embodiment of the present application is exemplarily shown;

[0029] Figure 5 A schematic diagram of determining the predicted duration of each surgical stage provided by an embodiment of the present application is exemplarily shown;

[0030] Figure 6 A display schematic diagram of a display screen provided in an embodiment of the present application is exemplarily shown;

[0031] Figure 7 The complete flowchart of a method for predicting the duration of an operation provided by an embodiment of the present application is exemplified;

[0032] Figure 8 A complete schematic diagram of a method for predicting operation duration provided by an embodiment of the present application is exemplarily shown;

[0033] Fig. 9The schematic diagram of the structure of a device for predicting the duration of an operation provided by an embodiment of the present application is exemplarily shown;

[0034] Fig.10 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application is exemplarily shown. DETAILED DESCRIPTION

[0035] In order to make the purpose, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application.

[0036] Generally, hospitals have multiple operating rooms. When surgery is needed, there are "elective surgery" and "emergency surgery". "Elective surgery" refers to surgery that is scheduled in advance. The arrangement process of this type of surgery is that when surgery is needed, the doctor informs the operating room manager in advance of the possible duration of the surgery and the approximate time period for the surgery. The operating room manager will then sort out all reported surgeries according to the duration and approximate time period, and compile a corresponding operating room arrangement plan.

[0037] However, since the actual surgical situation is unpredictable, "elective surgeries" often end early or late, and the nurses or doctors performing the surgery are unable to inform the operating room managers of the early or delayed end of the surgery and the exact end time, resulting in the operating room being vacant or occupied.

[0038] In the related art, the actual usage of the operating room is generally determined by on-duty inspection by personnel. However, the manual inspection method will cause time delays on the one hand; on the other hand, once the operation in the operating room is delayed, the subsequent affected elective operations can only be performed in the spare operating room.

[0039] In addition, in some cases, some emergency patients in the hospital need surgery. Such emergency surgeries and the above-mentioned occupied operating rooms are elective surgeries and will be arranged to be performed in the hospital's spare operating rooms. However, in actual situations, there should be neither too many nor too few spare operating rooms, and there will often be a problem of insufficient spare operating rooms. Therefore, it is very important to accurately predict the duration.

[0040] To this end, the embodiments of the present application provide a solution for more accurately predicting the duration of an operation by dividing the operation into stages, thereby improving the utilization rate of the operating room.

[0041] To further illustrate the technical solution provided by the embodiment of the present application, this is described in detail below in conjunction with the accompanying drawings and specific implementation methods. Although the embodiment of the present application provides the method operation steps shown in the following embodiments or drawings, more or fewer operation steps may be included in the method based on routine or no creative labor. In the steps where there is no necessary causal relationship logically, the execution order of these steps is not limited to the execution order provided in the embodiment of the present application.

[0042] Figure 1 This is a flowchart of a method for predicting surgical duration provided in an embodiment of the present application, which illustrates the technical solution provided in an embodiment of the present application.

[0043] S101: Acquire a video file of a current surgical procedure, and determine a target surgical stage to which the current surgical procedure belongs based on the video file.

[0044] S102: Determine the predicted duration of the target surgical stage according to the predicted durations of each surgical stage.

[0045] S103: According to the acquired actual duration of the target surgical stage, the predicted duration of the target surgical stage and the total duration of the surgical type to which the target surgical stage belongs are updated.

[0046] In the embodiment of the present application, the electronic device first obtains the video file of the current surgical process, and determines the target surgical stage to which the current surgical process belongs based on the video file. Different surgical stages have different predicted durations, and the electronic device can determine the predicted duration of the target surgical stage based on the predicted durations of each surgical stage. The electronic device then updates the predicted duration of the target surgical stage and the total duration of the surgical type to which the target surgical stage belongs based on the actual duration of the acquired target surgical stage. Such a design improves the accuracy of the surgical duration prediction, thereby improving the utilization rate of the operating room.

[0047] In S101, usually, a camera or other shooting device is installed in the operating room, and the camera can record the entire surgical process to obtain a video file of the surgical process. The camera can send the captured video file to an electronic device in real time, and the electronic device obtains the video file of the current surgical process. In one example, the video file of the current surgical process can be limited by the video length, such as a 10-second surgical video.

[0048] Electronic equipment through Figure 2 The following steps S201-S203 are used to determine the target surgical stage to which the current surgical process belongs according to the video file:

[0049] S201: The electronic device processes a video file into a plurality of image frames.

[0050] The electronic device may decode the video file and process the video file into a plurality of image frames according to a set frame rate.

[0051] S202: The electronic device performs the following operations for each image frame in the multiple image frames to determine the surgical stage corresponding to each image frame: the electronic device applies a pre-trained first neural network and a pre-trained second neural network to perform image feature extraction on the first image frame to obtain a first output result; applies a pre-trained third neural network to perform time series feature extraction on the first image frame to obtain a second output result; fuses the first output result and the second output result to obtain a third output result; and classifies the third output result using a classifier to determine the surgical stage corresponding to the first image frame.

[0052] Among them, the first neural network is connected in series with the second neural network and in parallel with the third neural network. In the actual application process, in order to improve the accuracy of recognition and judgment, the first image frame can be sampled and preprocessed before the image feature extraction and time series feature extraction are performed on the first image frame. Among them, the sampling and preprocessing operations are such as frame reduction and cropping operations. Such a design can make full use of the characteristics of surgical images. For example, in laparoscopic surgery, there will be a black frame around it, which is useless information and will also affect the accuracy of feature recognition and judgment, so preprocessing and cropping are performed.

[0053] The first neural network may be a residual neural network (ResNet), the second neural network may be a long short-term memory network (LSTM), and the third neural network may be a temporal convolutional network (TCN). Figure 3 A schematic diagram of an embodiment of the present application for determining the target surgical stage to which the current surgical process belongs based on a video file, wherein ResNet+LSTM can be used to extract image features to obtain a first output result. Taking into account the particularity of surgical videos, which are long in duration and strongly dependent on the operations between stages, the electronic device can construct a feature enhancement module through a TCN network to enhance the features of the video timing and obtain a second output result. The electronic device fuses the outputs of the two sets of neural networks, and uses a classifier to classify and identify the fused information to determine the surgical stage to which the current image frame belongs.

[0054] In addition, the electronic device uses the classified training set surgical videos to train the convolutional neural network and classifier, evaluates the recognition effect of the surgical video process stage, and determines the relevant parameters. A smoothing processing module is added to process and smooth the stage burr phenomenon to improve the accuracy. In this way, the time characteristics are increased, the accuracy is improved, and the surgical process is automatically recognized. According to the above classification, the stage dictionary is matched to determine the current surgical stage.

[0055] Therefore, based on the ResNet+LSTM feature extraction and TCN temporal feature enhancement module, the surgical stage recognition is roughly classified based on the features of the current frame of the video and the short-time video features before and after the frame as important parameters. Then, an auxiliary temporal feature dependency module is further added to assist the timing feature information. At the same time, a smoothing module is added to correct abnormal information such as glitches, further improve the accuracy of stage recognition, and then combine the features of the video frame for accurate classification.

[0056] S203: If more than a preset number of image frames corresponding to the surgery stages of the plurality of image frames are the same, the electronic device determines the same surgery stage as the target surgery stage of the current surgery process.

[0057] In step S202, the electronic device determines the surgical stage to which an image frame belongs. When more than a preset number of image frames corresponding to the surgical stages are the same, the electronic device can determine that the same surgical stage is the target surgical stage to which the current surgical procedure belongs. For example, if there are 20 image frames, and 18 of them correspond to the gallbladder packing stage, the current surgical stage can be determined to be the gallbladder packing stage.

[0058] In S102, the electronic device determines the predicted duration of the target surgical stage according to the predicted durations of the various surgical stages.

[0059] Among them, electronic devices can be Figure 4 The following steps S401-S402 in the process determine the predicted duration of each surgical stage included in each type of surgery.

[0060] S401: The electronic device obtains historical surgery information.

[0061] Among them, the historical surgical information includes surgical feature information and user feature information of different types of surgeries. In a possible design, different types of surgeries may be cholecystectomy, right parapharyngeal lesion resection, etc. The surgical feature information may include the type of surgery, start time, end time, etc. The user feature information may include information such as the patient's gender, weight, age, whether there is a basic disease, and whether there are intraoperative complications. In order to improve accuracy, the historical surgical information can be screened to filter out data with intraoperative complications or intraoperative cancellations.

[0062] S402: The electronic device performs the following operations A1-A2 for each type of surgery information of the multiple types to determine the predicted duration of each surgical stage included in each type of surgery:

[0063] A1: The electronic device determines a first average duration of a first type of surgery based on first surgery feature information of the first type of surgery.

[0064] The first type of surgery is any one of multiple types of surgery. The first type of surgery is exemplified by cholecystectomy. For example, if the historical surgery information includes information about 10 cholecystectomies, the average duration of the cholecystectomies can be obtained by taking the average of the durations of the 10 cholecystectomies. In this example, the first average duration of the first type of surgery is obtained.

[0065] A2: The electronic device determines the predicted duration of the first surgical stage according to the first average duration, the duration ratio of each surgical stage included in the first type of surgery, and the influencing factor of the first surgical duration.

[0066] The first operation stage is any one of the operation stages included in the first type of operation; the first operation duration influencing factor is determined according to user characteristic information. Specifically, the electronic device can determine the first operation duration influencing factor through the following steps B1-B3:

[0067] B1: The electronic device determines the gender, weight, age and underlying disease information of the user participating in the first stage of the operation from the user characteristic information.

[0068] Among them, there is a lot of user characteristic information. The electronic device will screen out the gender, weight, age and underlying disease information of the users participating in the first stage of the operation from the plurality of user characteristic information.

[0069] B2: The electronic device converts gender into the first parameter, weight into the second parameter, age into the third parameter, and underlying disease information into the fourth parameter.

[0070] In order to quantify the influence of gender, weight, age and underlying disease information on the duration of the operation, the electronic device converts the gender, weight, age and underlying disease information into their respective corresponding parameters according to the set conversion relationship. For example, the electronic device converts gender into the first parameter, weight into the second parameter, age into the third parameter, and underlying disease information into the fourth parameter.

[0071] B3: The electronic device determines that the product of the first parameter, the second parameter, the third parameter and the fourth parameter is the first operation duration influencing factor.

[0072] In a possible implementation, the electronic device may multiply the first parameter, the second parameter, the third parameter, and the fourth parameter as the first operation duration influencing factor. The electronic device may also assign different weights to the first parameter, the second parameter, the third parameter, and the fourth parameter, and use the weighted result as the first operation duration influencing factor.

[0073] The electronic device may determine the predicted duration of the first surgical stage through the following steps A2-1 to A2-3.

[0074] A2-1: The electronic device determines a first duration ratio of a first surgical stage according to respective duration ratios of various surgical stages included in the first type of surgery.

[0075] For example, cholecystectomy includes a preoperative preparation stage, a cholecystectomy triangulation stage, a separation and ligation stage, a cholecystectomy stage, a cholecystectomy packing stage, a hemostasis and cleaning stage, and a cholecystectomy recovery stage. The electronic device can determine the duration ratio of the first surgical stage (such as cholecystectomy) according to the respective duration ratios of the pre-set surgical stages.

[0076] A2-2: The electronic device determines the product of the first average duration and the first duration ratio as the first initial predicted duration.

[0077] The electronic device determines the ratio of the average duration of cholecystectomy to the duration of cholecystectomy to determine the first initial predicted duration of cholecystectomy.

[0078] A2-3: The electronic device determines the predicted duration of the first surgical stage according to the first initial predicted duration and the first surgical duration influencing factor.

[0079] The electronic device determines that the product of the first initial predicted duration and the first operation duration influencing factor is the predicted duration of the first operation stage.

[0080] Figure 5A schematic diagram of determining the predicted duration of each surgical stage provided in an embodiment of the present application. Taking cholecystectomy as an example, the various surgical stages included are described; and taking the cholecystectomy triangulation stage as an example, the average duration of this stage, the duration ratio, and the influencing factors of the surgical type are described. In this example, the influencing factors are the product of the gender influencing factor, the weight influencing factor, the age influencing factor, and the influencing factor of the presence or absence of underlying diseases.

[0081] Take cholecystectomy as an example: the entire cholecystectomy operation takes 30 minutes, of which the cholecystectomy triangle incision accounts for 1 / 3, which takes 10 minutes. 30 minutes is the average duration of the entire cholecystectomy operation, and the proportion of the cholecystectomy triangle incision is 1 / 3, which is a pre-set value, usually based on experience.

[0082] The patient is male, 60 years old, and weighs 85 kg. The influencing factors can be mapped in the first-stage dictionary data, α patient gender (Example 1), β weight (Example 1.2), γ age (Example 1.4), then the total prediction duration and the prediction stage duration are all updated synchronously. Total duration = 30*1*1.2*1.4 Stage duration = 10*1*1.2*1.4 (16.8 minutes).

[0083] The operation continues, but the actual duration of the cholecystotomy stage is not equal to the predicted stage duration, for example, if the actual duration is 20 minutes, the predicted total duration will be updated synchronously. In this way, the actual duration of the operation will be obtained after each stage of the operation, and the predicted total duration will be updated at the same time.

[0084] If the operation is successfully completed, the total operation time will continue to be added to the model to calculate the average time, and the same is true for the duration of each stage. If other risks occur during the operation and the patient dies, this data will be invalid.

[0085] For example, there will be a difference between the duration of the cholecystotomy operation and the predicted duration, which is related to the inaccuracy of the image factor coefficient. Therefore, a more accurate image factor can be obtained to improve accuracy.

[0086] In one possible design, after the electronic device updates the predicted duration of the target surgical stage and the total duration of the surgical type to which the target surgical stage belongs based on the acquired actual duration of the target surgical stage, it can also determine the remaining duration of the current surgery based on the total duration of the surgical type to which the target surgical stage belongs and display the remaining time.

[0087] The electronic device subtracts the predicted duration of the first surgical stage from the total duration of the surgery to which the target surgical stage belongs to obtain the remaining duration of the current surgery. In order to show the remaining duration to the operating room manager or the patient's family, the electronic device can display the remaining duration on a display screen at the nurse station or on a display screen in the clean corridor area.

[0088] In addition, electronic equipment can also perform intelligent identification of surgical stages based on real-time intraoperative images, and update surgical stage and duration information in real time in combination with the surgical stage duration prediction model, continuously improve the surgical stage duration prediction model, and correct the average surgical stage duration, total duration, influencing factors, etc.

[0089] Figure 6 A display diagram of a display screen provided in an embodiment of the present application. Figure 6 You can see the surgical stage of each operation and the estimated remaining time.

[0090] Figure 7 A complete flowchart of a method for predicting surgical duration provided in an embodiment of the present application. Figure 7 At least the following steps are included:

[0091] S701: The electronic device obtains historical surgery information.

[0092] The implementation method of this step may refer to step S401 and will not be described in detail here.

[0093] S702: The electronic device performs the following operations for each type of surgery information of the multiple types to determine the predicted duration of each surgery stage included in each type of surgery:

[0094] S702-1: The electronic device determines a first average duration of a first type of surgery according to first surgery feature information of a first type of surgery;

[0095] The implementation method of this step can refer to step A1 and will not be repeated here.

[0096] S702-2: The electronic device determines a first duration ratio of the first surgical stage according to respective duration ratios of the surgical stages included in the first type of surgery;

[0097] The implementation method of this step can refer to step A2-1 and will not be repeated here.

[0098] S702-3: The electronic device determines the product of the first average duration and the first duration ratio as the first initial predicted duration;

[0099] The implementation method of this step can refer to step A2-2 and will not be repeated here.

[0100] S702-4: The electronic device determines a predicted duration of the first operation stage according to the first initial predicted duration and the first operation duration influencing factor.

[0101] The implementation method of this step can refer to step A2-3, which will not be repeated here.

[0102] S703: The electronic device obtains a video file of the current surgical process.

[0103] The implementation method of this step may refer to step S101 and will not be described in detail here.

[0104] S704: The electronic device processes the video file into multiple image frames.

[0105] The implementation method of this step can refer to step s201 and will not be repeated here.

[0106] S705: The electronic device performs the following operations on each of the multiple image frames to determine the surgical stage corresponding to each image frame:

[0107] S705-0: The electronic device crops the first image frame according to the operation target included in the first image frame.

[0108] The implementation method of this step can refer to step S201 and will not be repeated here.

[0109] S705-1: The electronic device applies a pre-trained first neural network and a pre-trained second neural network to extract image features from the first image frame to obtain a first output result;

[0110] The implementation method of this step can refer to step S201 and will not be repeated here.

[0111] S705-2: The electronic device applies a pre-trained third neural network to extract time series features from the first image frame to obtain a second output result;

[0112] The implementation method of this step can refer to step S201 and will not be repeated here.

[0113] S705-3: The electronic device fuses the first output result and the second output result to obtain a third output result; and classifies the third output result using a classifier to determine the surgical stage corresponding to the first image frame;

[0114] The implementation method of this step can refer to step S201 and will not be repeated here.

[0115] S705-4: If more than a preset number of image frames corresponding to the surgery stages of the plurality of image frames are the same, the electronic device determines the same surgery stage as the target surgery stage of the current surgery process.

[0116] The implementation method of this step can refer to step S201 and will not be repeated here.

[0117] S706: The electronic device determines the predicted duration of the target surgical stage according to the predicted durations of each surgical stage.

[0118] The implementation method of this step may refer to step S101 and will not be described in detail here.

[0119] S707: The electronic device updates the predicted duration of the target surgery stage and the total duration of the surgery type to which the target surgery stage belongs according to the acquired actual duration of the target surgery stage.

[0120] The implementation method of this step may refer to step S103 and will not be described in detail here.

[0121] S708: The electronic device determines the remaining duration of the current surgery according to the total duration of the surgery type to which the target surgery stage belongs.

[0122] The implementation method of this step can refer to the relevant description of the above embodiment and will not be repeated here.

[0123] S709: The electronic device displays the remaining time.

[0124] The implementation method of this step can refer to the relevant description of the above embodiment and will not be repeated here.

[0125] It should be noted that S701-S702 is a process in which the electronic device determines the predicted duration of each surgical stage, which may occur in various time periods before applying the predicted duration of each surgical stage. Figure 7 This is just an example and does not constitute a specific limitation.

[0126] Figure 8 A complete schematic diagram of a method for predicting the duration of an operation provided in an embodiment of the present application. Among them, cholecystectomy is used as an example for explanation. The electronic device loads the data model and imports information (type of operation, patient gender, weight, age, etc.) to predict the total duration of the operation and the duration of the operation in stages, and the total duration of the operation and the duration of the operation in stages can be displayed. In addition, the electronic device obtains the video (image) during the operation, and through intelligent surgical stage recognition, determines which stage it belongs to, namely, the preoperative preparation stage, the cholecystotomy stage, the separation and ligation stage, the cholecystectomy stage, the cholecystectomy packing stage, the hemostasis and cleaning stage, and the cholecystotomy recovery stage. If it is determined that the current operation belongs to a certain stage and the stage is over, the stage data optimization model can be imported to calculate the remaining duration of the operation and display the remaining duration of the operation.

[0127] like Fig. 9 As shown, based on the same inventive concept, an embodiment of the present application provides a surgery duration prediction device, including an acquisition module 91, a prediction module 92 and an update module 93.

[0128] Among them, the acquisition module 91 is used to obtain the video file of the current surgical process and determine the target surgical stage to which the current surgical process belongs based on the video file; the prediction module 92 is used to determine the predicted duration of the target surgical stage based on the predicted duration of each surgical stage; the update module 93 is used to update the predicted duration of the target surgical stage and the total duration of the surgical type to which the target surgical stage belongs based on the actual duration of the acquired target surgical stage.

[0129] In one possible design, the device further includes a processing module, wherein the processing module is configured to:

[0130] Acquire historical surgery information; wherein the historical surgery information includes surgery characteristic information and user characteristic information of different types of surgeries;

[0131] For each type of surgery information of the multiple types, the following operations are performed to determine the predicted duration of each surgical stage included in each type of surgery:

[0132] Determining a first average duration of a first type of surgery according to first surgery characteristic information of the first type of surgery; wherein the first type of surgery is any one of multiple types of surgery;

[0133] The predicted duration of the first surgical stage is determined based on the first average duration, the duration proportion of each surgical stage included in the first type of surgery, and the first surgical duration influencing factor; wherein the first surgical stage is any one of the surgical stages included in the first type of surgery; the first surgical duration influencing factor is determined based on user characteristic information.

[0134] In a possible design, the processing module is specifically used for:

[0135] Determine a first duration ratio of the first surgical stage according to the duration ratios of the respective surgical stages included in the first type of surgery;

[0136] Determine the product of the first average duration and the first duration ratio as the first initial predicted duration;

[0137] The predicted duration of the first surgical stage is determined according to the first initial predicted duration and the first surgical duration influencing factor.

[0138] In a possible design, the device further includes an impact factor determination module, and the impact factor determination module is used to:

[0139] In the user characteristic information, the gender, weight, age and underlying disease information of the user participating in the first surgical stage are determined;

[0140] Convert gender into the first parameter, convert weight into the second parameter, convert age into the third parameter, and convert underlying disease information into the fourth parameter;

[0141] The product of the first parameter, the second parameter, the third parameter and the fourth parameter is determined as the first operation duration influencing factor.

[0142] In a possible design, the acquisition module 91 is specifically used for:

[0143] Processing a video file into multiple image frames;

[0144] For each of the multiple image frames, perform the following operations to determine the surgical stage corresponding to each image frame:

[0145] Using a pre-trained first neural network and a pre-trained second neural network to extract image features from a first image frame to obtain a first output result; using a pre-trained third neural network to extract temporal features from the first image frame to obtain a second output result; fusing the first output result and the second output result to obtain a third output result; using a classifier to classify the third output result to determine the surgical stage corresponding to the first image frame; wherein the first neural network is connected in series with the second neural network and in parallel with the third neural network;

[0146] If more than a preset number of image frames corresponding to the surgery stages of the plurality of image frames are the same, the same surgery stage is determined as the target surgery stage of the current surgery process.

[0147] In one possible design, a preprocessing module is also included to crop the first image frame according to an operation target included in the first image frame before applying a pre-trained first neural network and a pre-trained second neural network to extract image features from the first image frame.

[0148] In a possible design, a display module is also included, which is used to determine the remaining duration of the current operation according to the total duration of the operation type to which the target operation stage belongs, after updating the predicted duration of the target operation stage and the total duration of the operation type to which the target operation stage belongs based on the acquired actual duration of the target operation stage; and display the remaining time.

[0149] Since the device is the device in the method in the embodiment of the present application, and the principle of solving the problem by the device is similar to that of the method, the implementation of the device can refer to the implementation of the method, and the repeated parts will not be repeated.

[0150] like Fig.10 As shown, based on the same inventive concept, an embodiment of the present application provides a terminal, which includes: a processor 1001 and a data transmission unit 1002.

[0151] The data transfer unit is configured to perform:

[0152] Obtain the video file of the current surgical process;

[0153] The processor 1001 is configured to execute:

[0154] Determine the target surgical stage to which the current surgical process belongs according to the video file;

[0155] Determine the predicted duration of the target surgical phase according to the predicted duration of each surgical phase;

[0156] According to the acquired actual duration of the target surgical stage, the predicted duration of the target surgical stage and the total duration of the surgical type to which the target surgical stage belongs are updated.

[0157] In one possible design, the processor 1001 is further configured to execute:

[0158] Acquire historical surgery information; wherein the historical surgery information includes surgery characteristic information and user characteristic information of different types of surgeries;

[0159] For each type of surgery information of the multiple types, the following operations are performed to determine the predicted duration of each surgical stage included in each type of surgery:

[0160] Determining a first average duration of a first type of surgery according to first surgery characteristic information of the first type of surgery; wherein the first type of surgery is any one of multiple types of surgery;

[0161] The predicted duration of the first surgical stage is determined based on the first average duration, the duration proportion of each surgical stage included in the first type of surgery, and the first surgical duration influencing factor; wherein the first surgical stage is any one of the surgical stages included in the first type of surgery; the first surgical duration influencing factor is determined based on user characteristic information.

[0162] In one possible design, the processor 1001 is specifically configured to execute:

[0163] Determine a first duration ratio of the first surgical stage according to the duration ratios of the respective surgical stages included in the first type of surgery;

[0164] Determine the product of the first average duration and the first duration ratio as the first initial predicted duration;

[0165] The predicted duration of the first surgical stage is determined according to the first initial predicted duration and the first surgical duration influencing factor.

[0166] In one possible design, the processor 1001 is further configured to execute:

[0167] In the user characteristic information, the gender, weight, age and underlying disease information of the user participating in the first surgical stage are determined;

[0168] Convert gender into the first parameter, convert weight into the second parameter, convert age into the third parameter, and convert underlying disease information into the fourth parameter;

[0169] The product of the first parameter, the second parameter, the third parameter and the fourth parameter is determined as the first operation duration influencing factor.

[0170] In one possible design, the processor 1001 is specifically configured to execute:

[0171] Processing a video file into multiple image frames;

[0172] For each of the multiple image frames, perform the following operations to determine the surgical stage corresponding to each image frame:

[0173] Using a pre-trained first neural network and a pre-trained second neural network to extract image features from a first image frame to obtain a first output result; using a pre-trained third neural network to extract temporal features from the first image frame to obtain a second output result; fusing the first output result and the second output result to obtain a third output result; using a classifier to classify the third output result to determine the surgical stage corresponding to the first image frame; wherein the first neural network is connected in series with the second neural network and in parallel with the third neural network;

[0174] If more than a preset number of image frames corresponding to the surgery stages of the plurality of image frames are the same, the same surgery stage is determined as the target surgery stage of the current surgery process.

[0175] In one possible design, before applying the pre-trained first neural network and the pre-trained second neural network to extract image features from the first image frame, the processor 1001 is further configured to execute:

[0176] The first image frame is cropped according to the operation target included in the first image frame.

[0177] In one possible design, after updating the predicted duration of the target surgical stage and the total duration of the surgical type to which the target surgical stage belongs based on the acquired actual duration of the target surgical stage, the processor 1001 is further configured to execute: determining the remaining duration of the current surgery based on the total duration of the surgical type to which the target surgical stage belongs; and displaying the remaining time.

[0178] An embodiment of the present application further provides a computer storage medium, in which computer program instructions are stored. When the instructions are executed on a computer, the computer executes the steps of the above-mentioned method for predicting the duration of an operation.

[0179] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented in one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that include computer-usable program code.

[0180] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0181] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0182] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 A step that specifies a function in one or more boxes.

[0183] Obviously, those skilled in the art can make various changes and modifications to the present application without departing from the scope of the present application. Thus, if these modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is also intended to include these modifications and variations.

Claims

1. A method for predicting surgical duration, It is characterized in that include: Acquire a video file of a current surgical procedure, and determine a target surgical stage to which the current surgical procedure belongs according to the video file; Determining the predicted duration of the target surgical stage according to the predicted durations of each surgical stage; According to the acquired actual duration of the target surgical stage, the predicted duration of the target surgical stage and the total duration of the surgical type to which the target surgical stage belongs are updated.

2. The method according to claim 1, It is characterized in that The method further comprises: Acquiring historical surgery information; wherein the historical surgery information includes surgery characteristic information and user characteristic information of different types of surgeries; For each type of surgery information of the multiple types, the following operations are performed to determine the predicted duration of each surgical stage included in each type of surgery: Determining a first average duration of a first type of surgery according to first surgery characteristic information of the first type of surgery; wherein the first type of surgery is any one of the multiple types of surgery; Determine the predicted duration of the first surgical stage based on the first average duration, the duration proportion of each surgical stage included in the first type of surgery, and the first surgical duration influencing factor; wherein the first surgical stage is any one of the surgical stages included in the first type of surgery; and the first surgical duration influencing factor is determined based on the user characteristic information.

3. The method according to claim 2, It is characterized in that Determining the predicted duration of the first surgical stage according to the first average duration, the duration ratio of each surgical stage included in the first type of surgery, and the first surgical duration influencing factor includes: Determining a first duration ratio of the first surgical stage according to the duration ratios of the respective surgical stages included in the first type of surgery; Determine a product of the first average duration and the first duration ratio as a first initial predicted duration; The predicted duration of the first surgical stage is determined according to the first initial predicted duration and the first surgical duration influencing factor.

4. The method according to claim 2 or 3, It is characterized in that The method further comprises: Determine the gender, weight, age and underlying disease information of the user participating in the first surgical stage from the user characteristic information; Convert the gender into a first parameter, convert the weight into a second parameter, convert the age into a third parameter, and convert the underlying disease information into a fourth parameter; Determine the product of the first parameter, the second parameter, the third parameter and the fourth parameter as the first operation duration influencing factor.

5. The method according to claim 1, It is characterized in that Determining the target surgical stage to which the current surgical procedure belongs according to the video file includes: Processing the video file into a plurality of image frames; For each of the multiple image frames, the following operations are performed to determine the surgical stage corresponding to each image frame: Applying a pre-trained first neural network and a pre-trained second neural network to extract image features from a first image frame to obtain a first output result; applying a pre-trained third neural network to extract temporal features from the first image frame to obtain a second output result; fusing the first output result and the second output result to obtain a third output result; using a classifier to classify the third output result to determine the surgical stage corresponding to the first image frame; wherein the first neural network is connected in series with the second neural network and in parallel with the third neural network; If more than a preset number of image frames corresponding to the surgical stages corresponding to the plurality of image frames are the same, the same surgical stage is determined as the target surgical stage to which the current surgical procedure belongs.

6. The method according to claim 5, It is characterized in that Before applying the pre-trained first neural network and the pre-trained second neural network to extract image features from the first image frame, the method further includes: The first image frame is cropped according to an operation target included in the first image frame.

7. The method according to any one of claims 1 to 3 and 5 to 6, It is characterized in that After updating the predicted duration of the target surgical stage and the total duration of the surgical type to which the target surgical stage belongs according to the acquired actual duration of the target surgical stage, the method further includes: Determine the remaining duration of the current surgery according to the total duration of the surgery type to which the target surgery stage belongs; The remaining time is displayed.

8. An electronic device, It is characterized in that including a processor and a data transmission unit; The data transmission unit is configured to perform: Obtain the video file of the current surgical process; The processor is configured to perform: Determining the target surgical stage to which the current surgical procedure belongs according to the video file; Determining the predicted duration of the target surgical stage according to the predicted durations of each surgical stage; According to the acquired actual duration of the target surgical stage, the predicted duration of the target surgical stage and the total duration of the surgical type to which the target surgical stage belongs are updated.

9. The electronic device according to claim 8, It is characterized in that The processor is further configured to perform: Acquiring historical surgery information; wherein the historical surgery information includes surgery characteristic information and user characteristic information of different types of surgeries; For each type of surgery information of the multiple types, the following operations are performed to determine the predicted duration of each surgical stage included in each type of surgery: Determining a first average duration of a first type of surgery according to first surgery characteristic information of the first type of surgery; wherein the first type of surgery is any one of the multiple types of surgery; Determine the predicted duration of the first surgical stage based on the first average duration, the duration proportion of each surgical stage included in the first type of surgery, and the first surgical duration influencing factor; wherein the first surgical stage is any one of the surgical stages included in the first type of surgery; and the first surgical duration influencing factor is determined based on the user characteristic information.

10. The electronic device according to claim 9, It is characterized in that The processor is specifically configured to execute: Determining a first duration ratio of the first surgical stage according to the duration ratios of the respective surgical stages included in the first type of surgery; Determine a product of the first average duration and the first duration ratio as a first initial predicted duration; The predicted duration of the first surgical stage is determined according to the first initial predicted duration and the first surgical duration influencing factor.

Citation Information

Cited By

  • Operation time real-time prediction model based on preoperative and intraoperative information and artificial neural network

    CN120636727A