Abstract

This study focused on the segmentation effects of an artificial intelligence-based algorithm of CT images, to detect the bile duct injury (BDI) after laparoscopic cholecystectomy (LC) under dezocine anesthesia. This study was based on the maximum between-class variance (Otsu) algorithm; it introduced the image grayscale mapping method to increase the accuracy of the target area segmentation within the CT image and compare the segmentation effect with the threshold segmentation and the regional growth segmentation algorithm. 46 patients treated with laparoscopic cholecystectomy (LC) were used as research objects, and all patients were inspected in the abdominal CT examination. According to the anesthetic drug selection, patients were divided into control group (conventional anesthesia) and dezocine group (conventional anesthesia + dezocine), with 23 cases in each group. And it compared the difference between the respiratory recovery time, the wake time, the tube time, and the postoperative 3, 6, 12, and 24 h after surgery, and complication after LC evaluation of bile duct injury (BDI). It was found that the algorithm in this study can segment the target area in CT image accurately. Compared with the threshold segmentation and region growing segmentation algorithms, its Dice similarity coefficient (DSC) and Jaccard similarity coefficient (JSC) were higher (). There was no statistically significant difference in postoperative spontaneous breathing recovery time, wake-up time, and extubation time between the dezocine group and the control group (), but in the dezocine group, the visual analogue scale (VAS) scores at 3, 6, 12, and 24 hours after the surgery were lower (). 27 patients developed BDI after the surgery, and they were classified as per the Strasberg classification standard. It was found that 6 cases were evaluated as type A, 4 cases were type B, 2 cases were type C, 6 cases were type D, and 9 cases were type E. It was concluded that the algorithm in this study can segment the target area of the CT image accurately, assisting the doctor in diagnosis. The use of dezocine before LC can effectively relieve patients’ postoperative pain. This study provides a basis for the diagnosis and treatment of gallbladder disease and the detection of complications.

1. Introduction

Hepatobiliary diseases are common, especially cholelithiasis. With the improvement of living standards, the incidence of cholelithiasis still increases resulting from the changes in eating habits [1]. The incidence increases with age, and females are predominantly affected. Gallstones were mainly pigment stones in the liver and bile ducts, but now they are mainly cholesterol stones, which are also the main components of gallbladder stones [2]. In recent years, laparoscopy technology is constantly developing. It minimizes the hospital stay, reduces trauma, and increases the surgical field of view. Additionally, it allows simultaneous observations from multiple angles and multiple fields of view [3]. Clinically, laparoscopic cholecystectomy (LC) has gradually replaced open cholecystectomy (OC) and open mini-cholecystectomy (OM), becoming the best surgical method for clinical treatment of benign gallbladder diseases [4]. Statistics have shown that the incidence of complications after the LC surgery is approximately 9% to 17%, and bile duct injury (BDI) is one of the most serious complications. The incidence of BDI after the LC surgery is 0.4% to 1.3%, higher than 0.1% and 0.2% after the OC surgery [5]. Minor BDI will prolong the recovery time of the patient. In severe cases, multiple operations are required, which will seriously reduce the quality of life of the patient after surgery and even lead to death [6]. Dezocine is a mixed opioid receptor agonist-antagonist used in clinical anesthesia and postoperative analgesia.

Computer tomography (CT) is a rapidly developed imaging technology, and doctors read CT images to diagnose gallbladder diseases and evaluate postoperative complications [7]. However, the gallbladder is located in the gallbladder fossa of the liver and only occupies a small part of the abdominal CT image, and thus it is necessary to segment the gallbladder for easier observation [8]. In the past, the doctor manually segmented the gallbladder boundary in the CT image and finally merged the segmentation results to obtain the three-dimensional results. This method requires strong professional knowledge, and it is time-consuming [9]. Therefore, image segmenting algorithm assists doctors in clinical diagnosis and treatment. Currently threshold segmentation, regional growth, split merge segments, and cluster-based segmentation methods are commonly used for CT image segmentation. Threshold segmentation is a common method, but the CT image of the target and background grayscale gap is poor [10]. Regional growth and split merge segmentation method is simple to separately apply to small structures, which are not ideal for complex picture segmentation, which is easy to generate segmentation [11]. Cluster-based segmentation methods cannot be evaluated between image samples [12]. Maximum between-class variance (Otsu) algorithm can convert CT images to a binary image, which is better to divide the CT image, but the target area within the class cannot be distinguished [13], so it is needed for optimization.

In this study, an image segmentation algorithm was used to process CT images. With the segmentation of inferior vena cava (IVC) in abdominal CT as an example, the image segmentation ability of the improved Otsu algorithm was verified. Then, the analgesia effects of dezocine in LC the BDI after the LC surgery were evaluated, expected to provide reference for the treatment of hepatobiliary diseases.

2. Materials and Methods

2.1. Research Subjects

In this study, 46 patients admitted to the hospital from June 2019 to September 2020 undergoing LC surgery were selected, including 19 males and 27 females, aged 21–67 years. They were randomly divided into observation group and reference group, with 23 cases in each group. There was no statistically significant difference in the general data such as gender and age between the two groups (), and they were comparable. This study has been approved by the ethic committee of the hospital. All patients and their families understood the study and had signed an informed consent form.

The subjects were selected as the following inclusion criteria: (I) patients without mental disorder; (II) patients with normal organ function; (III) patients without concurrent malignant disease; and (IV) patients who had not taken opioid analgesics.

Exclusion criteria were as follows: (I) patients with a history of mental illness; (II) patients with severe cardiovascular and cerebrovascular diseases; (III) patients who had taken opioid analgesics for a long time; and (IV) patients with liver and kidney dysfunction.

At the same time, the general data and postoperative follow-up data of 27 patients admitted to the Affiliated Hospital of Jianghan University from September 2015 to September 2020, who had BDI after undergoing LC surgery, were collected, to evaluate the role of CT images in diagnosing BDI after the LC surgery.

2.2. CT Examination

In this study, a 16-slice spiral CT scanner from Siemens, Germany, is used to scan the patient’s upper abdomen. For double-slice spiral CT tomography, the scanning parameters are set as follows: the tube voltage is 180 kV, tube current is 45 mAs, slice thickness is 5.0 mm, and screw pitch is 1.5 mm. 2 experienced physicians independently read the CT images in a blind manner.

2.3. Segmentation Algorithm of CT Images

The Otsu algorithm is widely used because of its fast speed, good segmentation effects, and strong scalability.

Because the gray value of the image collected by the device has a large difference, it is mapped to [0, 255] first.where X represents the original image, Y represents the output image, (a, b) is the coordinate on the map, min(X) is the minimum gray value of the original image, and max(X) is the maximum gray value.

Suppose the image has N gray levels, mi is the number of pixels contained in the gray level, and M is the total number of pixels. Then, the equation below is obtained:

Piis the probability of the i-th gray level, expressed as , and then, there is . A threshold t is set, and the image is divided into two classes of F0 and F1 according to the gray level, where. p0 and p1 represent the probability of F0 and F1, respectively.

The mean gray values of F0 and F1 classes are expressed as follows:where

The variances of classes and are expressed as follows:

In order to find the optimal threshold, three evaluation functions are set:where , , and represent the variance between the classes, the variance within the classes, and the total variance, expressed as follows:

At this time, the problem is converted into how to find an optimal t, so that the three discriminant functions are the largest. Because , the relationship between x, y, and z can be converted to

It is noted that the three discriminant functions have the same monotonicity. Because can be calculated quickly, and are independent of t, it is the simplest to use as the analysis object. Also, , the analysis function is further simplified; that is, is used as the classification discriminant function.where , , .

Suppose there is a formula that is proportional to the mean distance difference between various classes and inversely proportional to the distance sum between various classes. When the maximum is taken, t at this time is the optimal threshold.where P0(t) and PB(t) are the targets and δ0(t) and δ1(t) are the target and background average variance, respectively.

The optimal threshold t is the t value when X(t) takes the maximum value, and the optimal threshold t satisfies the following equation:

2.4. Anesthesia Methods

The patients were randomly divided into dezocine group and control group according to the order of visits. Before the surgery, 0.1 g phenobarbital and 0.5 g atropine 0.5 g were intramuscularly injected. After the venous access was opened, the blood pressure, heart rate, and pulse oxygen saturation were routinely monitored. In both groups, patients were injected with 0.003 mg/kg fentanyl, 0.08 mg/kg atracurium, and 2 mg/kg propofol for induction intubation. During the operation, isoflurane was continuously given and Kasining was administered depending on the circumstances. In the dezocine group, 0.1 mg/kg dezocine was given during the induction. After the patient’s breathing was restored, the tracheal tube was removed if the extubation indications were met, and then they were sent back to the ward after being fully awake.

2.5. Evaluation of the Segmentation Effects

In order to evaluate the segmentation effects of the algorithm in this study, threshold segmentation and region growing segmentation algorithms are introduced to compare with the algorithm in this study. The segmentation effects were evaluated factoring into the Dice similarity coefficient (DSC) and Jaccard similarity coefficient (JSC).where A is the manual segmentation results and B is the segmentation results by the algorithm in the study. is the intersection of A and B, and is the union of A and B. If the DSC and JSC indicators are closer to 1, it means that the two images are more similar, indicating better segmentation effects.

2.6. Observation Index of Anesthesia Effects of Dezocine

Relevant indexes were recorded, including spontaneous breathing recovery time, wake-up time, and extubation time, and the analgesic effects were evaluated at 3, 6, 12, and 24 hours after surgery. The visual analogue (VAS) score was used to evaluate the analgesic effects: 0 meant no pain, and 10 meant pain was intolerable.

2.7. Evaluation of BDI

Usually, BDI occurs 1 to 2 weeks after the surgery. The patient has one or more symptoms of abdominal pain, peritonitis, cholangitis, and sudden high fever. In this study, as per the Strasberg classification, BDI was classified into types A to E: type A: there was bile leakage from the small bile duct, but the continuity of the extrahepatic bile duct was not destroyed, such as the vagal bile duct leak in the gallbladder bed; type B: the obstruction of the branches of the biliary tree, and the more common was the accidental clipping of the right accessory hepatic duct; type C: the open bile leakage caused by the cut injury to the right accessory hepatic duct; type D: the bile leakage caused by the side wall injury of the extrahepatic bile duct; and type E: injury related to the common bile duct.

2.8. Statistical Methods

SPSS 20.0 was used to process the data. The measurement data were expressed as mean ± standard deviation ( ± s), and t-test was used. The count data adopted chi-square test. was the threshold for significance.

3. Results

3.1. Image Processing Results

All patients accepted CT examinations, and the collected CT images were standardized and normalized. The improved Otsu algorithm was used to segment the IVC, and the expert manual segmentation results were used as the standard. Figure 1 shows the CT segmentation results of two patients. The target area and expert manual segmentation of the Otsu algorithm were most closely related, and the division of the threshold segmentation method was the largest. It showed that the improved Otsu algorithm used in this study could be divided more accurately.

3.2. Image Segmentation Results

After the original image was segmented using the algorithm, the DSC values were compared with those of the manually segmented image by the expert, DSC values of different algorithms are shown in Figure 2, the DSC values of improved Otsu, threshold, and region growing were (0.85 ± 0.092), (0.59 ± 0.042), and (0.63 ± 0.071), the DSC values of the improved Otsu were higher than the threshold segmentation and region growth segmentation, and the difference was statistically significant ().

After the original image was segmented using the algorithm, the JSC values were compared with those of the manually segmented image by the expert; JSC values of different algorithms are shown in Figure 3. The JSC values of improved Otsu, threshold, and region growing were (0.81 ± 0.089), (0.55 ± 0.048), and (0.58 ± 0.053), the JSC values of the improved Otsu were higher than the threshold segmentation and region growth segmentation, and the difference was statistically significant ().

3.3. Anesthesia Effects of Dezocine

Figure 4 shows the postoperative spontaneous breathing recovery time; Figure 5 shows the wake-up time; Figure 6 shows the extubation time; and Figure 7 shows the postoperative analgesic effects. There was no significant difference in spontaneous breathing recovery time, wake-up time, and extubation time between the dezocine group and the control group, , indicating that the use of dezocine before the LC surgery had no effects on the patient’s recovery.

The VAS scores of the two groups were compared, and the VAS scores at 3 h, 6 h, 12 h, and 24 h after surgery in the control group were (3.27 ± 0.29), (5.12 ± 0.51), (5.48 ± 0.51), and (4.92 ± 0.47), and the VAS scores at 3 h, 6 h, 12 h, and 24 h after surgery in the dezocine group were (1.23 ± 0.18), (2.30 ± 0.25), (2.62 ± 0.19), and (1.81 ± 0.16); it can be concluded that the postoperative 3 h, 6 h, 12 h, and 24 h VAS scores were lower than the control group ().

3.4. Evaluation of BDI after the LC Surgery

After the surgery, 27 patients developed BDI. They were classified as per the Strasberg classification standard. Of them, 6 cases were evaluated as type A, 4 cases were type B, 2 cases were type C, 6 cases were type D, and 9 cases were type E (Figure 8).

4. Discussion

Compared with OC, LC has become the first choice for gallstones and benign gallbladder diseases due to less trauma, less pain, faster healing, and shorter hospital stay [14]. However, the postoperative complications reduce the quality of life, especially the BDI. In some areas where LC is not yet mature, the incidence of BDI is higher [15]. BDI can cause bile duct stenosis, bile duct obstruction, bile duct infection, and long-term complications, such as liver cirrhosis and liver atrophy [16]. The causes of BDI are complicated, including surgical factors, such as conventional cholecystectomy, mainly LC, and other interventions, and nonsurgical factors, such as interventional or endoscopic treatment [1719]. During the LC surgery, BDI may be caused by LC which may be caused by subjective factors, such as the lack of operating skills and experience of the doctor, the insufficient standardization of the operation, the failure of the surgeon to accurately assess the difficulty of the operation, and the insufficient skills of the assistant in mirror support. It can also arise from objective reasons. For example, laparoscopy technology itself has certain limitations; when operations are performed on the screen, it is sometimes difficult to determine the accurate anatomical position, because the surgeon cannot directly touch the operation area; and obese patients will also affect the surgical field of vision to a certain extent [2022]. In addition, changes in the shape and position of the gallbladder will increase the risk of BDI [23].

LC requires general anesthesia, and patients will suffer from pain after the LC surgery. Post-LC pain mainly occurs 24 hours after surgery, manifesting as incision pain, visceral pain, and involved shoulder pain [24]. Pain may be caused by excessive traction on the patient’s peritoneum during the operation, or incomplete gas release of the pneumoperitoneum after the operation, which seriously affects the recovery of the patient after the operation and increases the occurrence of postoperative complications [25]. Dezocine is an analgesic that has agonistic effects on K receptor u. u receptor plays an important role in sedation and alleviating labor pain and mild respiratory depression. It is often used for postoperative analgesia and cancer pain. However, adverse reactions will occur at a large dose. Dezocine is an opioid receptor agonist-antagonist. On the one hand, the drug can be used in spinal analgesia, and on the other hand, it is safe to use. Studies have pointed out that, when the drug is used alone for postoperative analgesia, it requires a large dosage, which may cause adverse reactions, such as drowsiness and dizziness after the operation. It is recommended to use it in combination with other analgesics to reduce the incidence of adverse reactions [26, 27].

Artificial intelligence algorithms have been widely used in the medical field. For example, Guo et al. used ELM and other technologies to identify errors in the uneven distribution report and achieved excellent results [28]. In this study, the Otsu algorithm was optimized, and the improved Otsu algorithm was found to be accurate in segmenting the target area of CT images with the manual segmentation results by the expert as the standard. Compared with the threshold segmentation and region growing segmentation algorithms, its DSC and JSC values were higher, indicating that the improved algorithm had good segmentation effects, which can be used in clinics for the diagnosis and treatment of gallbladder diseases and the detection of BDI. After the LC surgery, 27 patients developed BDI. They were classified as per the Strasberg classification standard. It was found that 6 cases were evaluated as type A, 4 cases were type B, 2 cases were type C, 6 cases were type D, and 9 cases were type E. There was no significant difference in the postoperative spontaneous breathing recovery time, wake-up time, and extubation time between the dezocine group and the control group (), which proved that the use of dezocine did not have an impact on the patient’s recovery. It is believed that the effects of analgesia treatment after the pain occurs are often not good. Preventive analgesia is to take measures in advance to prevent the pain being transmitted to the central nervous system, thereby eliminating or reducing postoperative pain. It not only has obvious analgesia effects, but also requires a low dosage. What is more, the incidence of complications is low. In this study, the VAS scores of the dezocine group at 3, 6, 12, and 24 hours after surgery were lower than those of the control group, proving that dezocine was safe and effective for preoperative anesthesia to relieve pain in patients.

5. Conclusion

In this study, the Otsu algorithm was optimized and the improved algorithm was used to segment the target area in CT images. It was found to be accurate in segmenting CT images and the results were close to the manual segmentation results, proving that it can assist doctors in the diagnosis and treatment of gallbladder diseases. Moreover, the use of dezocine anesthesia before LC can alleviate the postoperative pain of patients. However, some limitations in the study should be noted. The subjects are form 1 hospital, and the sample size is small, which may reduce the power of the study. In the follow-up, an expanded sample size is required to strengthen the findings of the study. In conclusion, this study provides a basis for the diagnosis and treatment of gallbladder disease and the detection of complications.

Data Availability

The data used to support the findings of this study are available from the corresponding author upon request.

Conflicts of Interest

The authors declare no conflicts of interest.