Therapeutic Effect of Cervical Cerclage on Cervical Insufficiency during Pregnancy Analyzed by Magnetic Resonance Image under Neural Network Algorithm

Objective. .is research was developed to investigate the effect of magnetic resonance imaging (MRI) analysis based on neural network algorithm for cervical ligation in the treatment of cervical insufficiency. Methods. 44 patients who were suspected to be pregnant with cervical insufficiency and needed cervical ligation were selected. MR imaging analysis was performed before cervical ligation. MR images were analyzed based on the back propagation neural network (BPNN) algorithm, and patients were randomly divided into experimental group and control group. Preoperative MRI analysis was performed in the experimental group, while simple transvaginal ultrasonography was used to diagnose cervical insufficiency in the control group. .en, postoperative fetal preservation time, vaginal bleeding rate, and infection rate within one week after surgery were compared between the two groups. Results. Based on experience and experimental testing, the relevant parameters were set as follows. .e number of particles n� 50, the inertia weight ω� 0.9, and c1� c2� 2. .e weight range of the output layer of the neural network was [−1, 1], the target error e� 10, and the maximum number of iteration steps was 3,000. Compared with the control group, the experimental group’s postoperative bleeding rate and infection probability were substantially reduced, while the normal delivery rate was substantially increased (P< 0.05).Conclusion. MR image analysis based on neural network algorithm played an important role in cervical cerclage surgery..e image map showed the local anatomy clearly, increasing the success rate of the operation and improving the prognosis of the patient.


Introduction
Cervical insufficiency is also known as cervical atresia and cervical relaxation. Patients with cervical insufficiency have reduced cervical fibrous tissue, elastic fiber, smooth muscle, and other tissues. Or, the function of the isthmic sphincter may decline due to the fracture of cervical fibrous tissue, causing pathological dilation or relaxation of the cervical opening [1][2][3]. In patients with cervical insufficiency, the clinical condition of painless cervical dilation observed before the first full month after pregnancy is most likely to cause miscarriage in 0.1-2% [4]. 20-25% of pregnancy interruptions are due to cervical insufficiency. erefore, the treatment of cervical cancer has received more and more attention [5]. Prior to cervical ligation, the treatment of cervical insufficiency was mainly through the formation of cervical scar tissue or the placement of mechanical support around it to strengthen the cervix [6]. Cervical ligation is currently the only method and effective means for the treatment of cervical cancer uterine [7]. e cervical cerclage is to strengthen the tension of the cervical canal as much as possible to prevent the extension of the lower uterine segment and the dilatation of the cervical orifice, so as to assist the cervical orifice in bearing the gravity of the fetus and fetal appendages in late pregnancy. Laparotomy cervical ligation is only applicable to patients who need cervical ligation in the second trimester. In recent years, laparoscopic cervical ligation is becoming more and more popular, and laparoscopic surgical techniques are replacing traditional gynecological laparotomy. Cervical cerclage has achieved remarkable results in the treatment of cervical incompetence and has become the best choice for patients with cervical incompetence.
MRI is an examination method for cervical insufficiency during pregnancy, which is usually used in complex cases and limited ultrasound examination and plays an important complementary role in preoperative evaluation [8]. With the rapid development of artificial intelligence, algorithms are gradually applied to the field of MR images. In recent years, BPNN algorithm and support vector machine (SVM) algorithm are combined with MR image feature analysis. SVM is a new machine learning method proposed by Vapnik et al. [9]. Due to its excellent learning performance, it has become a research hotspot in the field of machine learning and has been successfully applied in many fields such as face recognition, face recognition, handwriting number recognition, and text automatic classification [10,11]. In summary, the characteristics of traditional MR images of cervical insufficiency during pregnancy are not typical, and there are difficulties in the diagnosis and treatment of the disease [12]. Moreover, misdiagnosis and missed diagnosis will occur in the diagnosis and treatment process. With the continuous development of artificial intelligence and neural network algorithms, new methods have been developed for the analysis of cervical insufficiency in pregnancy [13].
Based on the above reasons, this study was developed based on the neural network algorithm MR image analysis of cervical insufficiency in pregnancy, which aimed to improve the success rate of diagnosis and treatment of cervical insufficiency in pregnancy. It was hoped to provide evidence for imaging analysis and automatic diagnosis of cervical insufficiency.

General Information.
A total of 44 patients with cervical insufficiency in the hospital from December 2018 to April 2020 were selected. ere were 28 primiparas and 16 puerpera aged between 24 and 38 years. Gestation was 12 +4 to 26 +3 weeks. All subjects were randomly rolled into experimental group and control group, with 22 people in each group. Patients in the experimental group were confirmed by B ultrasound diagnosis, who received the cervical circumcision after pelvic MRI examination. Patients in the control group were confirmed by B ultrasound, and cervical circumcision was performed directly. is study had been approved by the Ethics Committee of the hospital, and all patients had signed the informed consent.

Inclusion and Exclusion Criteria.
e inclusion criteria were as follows: patients who aged over 18 years old and were diagnosed with cervical insufficiency according to the diagnostic criteria and the patients who signed the informed consent, and this study was approved by the Committee of Ethics and Management of hospital. e exclusion criteria were as follows: patients younger than 18 years old, patients with other reproductive systems or unable to receive cervical ligation, patients who did not cooperate with the examiner, and patients with incomplete data. Insufficiency. (a) In the second trimester, when there were no obvious contractions, the width of the fallopian tube as measured by transvaginal ultrasound was greater than 0.6 cm. (b) e width of the internal opening of the cervix was greater than 1.5 cm. (c) e length of the cervix was less than 2.5 cm, and the length of the cervix more than 3 cm was normal. A length of less than 2 cm indicated a substantially shortened cervix, indicating possible miscarriage or preterm labor. (d) Whether there was a visible amniotic sac in the blood vessels of the cervix, with or without embryos, was diagnosed based on the above two standards.

Inspection
Methods. 3.0 T MRI equipment was employed. ere was no need to clean the colon, and no objects can be placed in the rectum or vagina during the examination. e patient was supine, and the area from the inlet of the pelvis to the symphysis pubis was scanned. Sequential images were generated using the Turbo Spin-Echo (TSE), T1WI, and T2WI. e imaging azimuthal included horizontal, sagittal, and coronal positions. Horizontal axis point TSE-T1WI fat parameters were TR/TE � 500MS/ 21MS, reconstruction matrix of 320 × 256, FOV of 220 × 220 mm, thickness of 3 mm, layer interval of 0.6 mm, layer number of 30, and NEX1. TSE-T1WI sequence parameters of the horizontal axis were TR/TE � 500MS/21MS, reconstruction matrix of 320 × 256, FOV of 220 × 220 mm, thickness of 3 mm, layer spacing of 0.6 mm, layer number of 30, and Nex1. Oblique axis position TSE-T2WI sequence parameters were TR/TE � 5000MS/91MS, reconstruction matrix of 320 × 256, FOV of 220 × 220 mm, layer thickness of 3 mm, layer spacing of 0.6 mm, layer number of 30, and NEX 1. TSE-T2WI serial parameters were TR/TE � 4270MS/ 97MS, reconstruction matrix of 448 × 358, FOV of 200 × 200 mm, layer thickness of 3 mm, layer spacing of 0.6 mm, layer number of 25, and NEX 1.

MR Image Analysis Based on Neural Network Algorithm.
e MR image analysis based on the BP neural network algorithm is as follows. For the evaluation of MR images based on neural network algorithms, the neural network algorithm has to go through the following steps. e first is initializing the network. e input and output of the neural network are composed of a series of input nodes designated as (X, Y). According to the number of these input nodes, the number of nodes in the input layer, hidden layer, and output layer of the network is determined. en, the continuous value and the threshold are initialized, and the continuous weight ω ij between the input layer and the neural layer is established in the hidden layer, which are the thresholds of the hidden layer and output layer of A and B, respectively. Finally, the exciting neuron function f(x) and learning speed η of the neural network are calculated.
According to the input variable X in the neural network, the continuous weight ω ij between the input layer and the hidden layer, and the threshold α of the hidden layer, the output H of the hidden layer is obtained. (1) In the above equation, f is the activation function of the hidden layer and l is the number of nodes in the hidden layer.
ere are many forms to express the excitation function, including the following one. (2) According to the output H in the hidden layer calculated in the previous step, the hidden layer is bound to the output value of the continuous weight ω jk and the threshold b, and the prediction of the output of the O 32 neural network is obtained.
e output value Y in the neural network and the network output value O obtained in the previous step are used to calculate the prediction error e.
e connection weights ω ij and ω jk of the neural network are calculated according to the predicted value e of the neural network.
It is judged whether the end condition of the algorithm iteration is satisfied, if not, return to step two.
SVM is a feedforward neural network, which can make the longest distance between the two samples on both sides of the plane with the shortest distance from the plane. Versatility, robustness, and simple calculation are all the advantages of support vector machines, and they also have the characteristics of theoretical perfection and effectiveness. e key to constructing the support vector machine neural network algorithm is the inner product kernel between the "support vector" x(i) and the vector x extracted from the input space. e types of kernel functions included are as follows: e C-SVC model is a relatively common two-category support vector machine model, and its specific manifestations are as follows.
e appropriate kernel function K(x, x i ) and the appropriate parameter C are selected to construct and solve the optimization problem.

Operations.
After a series of preoperative preparations, prophylactic cervical ligation was carried out. Diagnosis required before or during pregnancy was incomplete, and there was no obvious cervical dilation or abortion warning during pregnancy. In an evaluation of the patient's preoperative general condition, the circular cervical ligation in the lower abdomen was appropriate for those who cannot be ligated through the vagina. It was because they had not had a salpingectomy (such as cervical shortening, extensive cervical excision, and cervical scarring). Of these, 27 patients underwent transvaginal cervical circumcision, and 15 patients underwent transabdominal cervical circumcision. After a vaginal vasectomy, a classic neck bandage was performed. Lumbar anesthesia combined with epidural anesthesia was applied. e body part was bladder surgery part. Iodophor was used to fully disinfect the vulva, vagina, and cervix. e vaginal hook was used to completely expose the cervix and the posterior dome. When the bladder meridian tissue was torn, the cervix and bladder were torn in reverse. A double strand of thread (number 10) was taken, starting at the 11 o'clock point of the cervix and going through about two-thirds of the muscle layer. e thickness was about 0.5 cm-0.8 cm wide, and the mucous membrane should be avoided. A 0.2 cm-0.3 cm rubber tube was put on it after the needle was released, and the cervix was sutured at 1, 5, and 8 o'clock. en, the needle went out in the cervix 1 o'clock direction, and the tightness was adjusted in the cervix 11 o'clock direction, knotting in the anterior fornix of the vagina. e anesthesia used in laparoscopic cervical ligation was general anesthesia. e patient was supine on the operating table during the operation. Four trocars were placed on the lower abdomen and on either side of the navel and then operated through a laparoscope and an operating device. First, the retroflexion of the bladder was opened, the bladder was gently pushed, and the suture was straightened with the Mersilene band.
ere were needles at each end of the Mersilene belt, and the needles at each end passed from the posterior side of the uterus in front of the broad ligament and passed at the junction of the cervical and sacral ligaments, where there were no blood vessels. Given that the uterus was relatively large in the second trimester, the patient tilted to the other side when the procedure was performed on one side. In this way, the surgical field of vision and operation range were expanded, and some unnecessary Scientific Programming injuries were avoided. At the end of the procedure, it was checked if the Mersilene band was in the right place that was the internal opening of the cervical canal.
en, it was necessary to check whether there were fallopian tubes, ovaries, and other tissues in the ring tie band. After confirmation, the ring tie was adjusted to the front of the uterus and tied firmly more than four times.

Observation
Indexes. Postoperative conditions were observed, including postoperative fetal preservation time, vaginal bleeding rate within one week after surgery, premature rupture of membranes, and infection rate. It was checked whether miscarriage occurred after surgery and the number of weeks of delivery for those who had not miscarried. e newborn's weight was measured at one minute after birth.

Statistical Analysis.
In this study, SPSS 22.0 was used for data processing. Measurement data were expressed as mean ± standard deviation, and counting data were expressed as %. e general data of the two groups of patients were comparable, and there was no significant difference, P > 0.05. P < 0.05 indicated that the difference was statistically considerable.

MR Image Analysis Results Based on BPNN Algorithm.
e middle layer of the BPNN structure with a single hidden layer uses the sigmoid function as the transfer function and the linear transfer function as the output layer. If it is the number of neurons in a single hidden layer, the automatic adjustment method is usually selected, such as the hidden layer of the short axis network with the number of neurons between two to eight and the long axis of two to five neuron hidden layer. Because the BP algorithm was used and it had convergence speed, the local fitting method was usually selected to complete the experiment in the training of neural networks. Since the time of global fitting required more than seven hours, it was seldom used. e image of cervical insufficiency during pregnancy is illustrated in Figure 1.
Four algorithms BPNN, PSO-BPNN, APSO-BPNN, and PIPSO-BPNN were used to carry out a series of classification simulations in MATLAB7.0 environment. Based on experience and experimental testing, the relevant parameters were set as follows: the number of particles n � 50, the inertia weight ω � 0.9, and c1 � c2 � 2. e weight range of the output layer of the neural network was [−1, 1], the target error e � 10 −5 , and the maximum number of iteration steps was 3,000. A threefold cross-validation method was used to select training samples and test samples. Before classification, the signal-to-noise ratio was used to reduce the dimensionality of the attributes of the data set. e relationship between dimension and classification error rate is illustrated in Figure 2.
e average classification accuracy of the four algorithms on the three types of datasets pima, wdbc, and balance is illustrated in Table 1, and the number of iterations of PSO and BP on the three types of datasets of the four algorithms is illustrated in Table 2.

MR Image Analysis Based on SVM Neural Network
Algorithm.
e forward test data of time nodes t � 6, 8, 9, 12, and 17 generated by the LV simulator were used for comparison experiments. e time nodes of sampling time included 6 and 12. e rest were non-sampling time. e image of cervical insufficiency during pregnancy is illustrated in Figure 3. e global displacement field fitting method with C � 4 and c � 0.2 without edge points was selected as the fitting method. When the conditions were set for stopping Newton iteration, the difference between the results of the two iterations was smaller than the threshold ε, usually, ε � 10 −4 . After three Newton iterations, the stop condition was generally reached, which indicated that the designed calculation model had good convergence. e experimental results using SVM are shown in Table 3.
Obviously, regardless of the mean square error (mse-x, mse-y, and mse-z) or the maximum predicted displacement error (err-x, err-y, and err-z), good experimental results were obtained by using SVW. e mean square error was below 0.08 cm, and some mean square error was even on the order of 10 −3 . erefore, it was successful, feasible, and satisfactory to use the SVM method to calculate the cervical insufficiency during pregnancy. Compared with some foreign deformation calculation methods, the error was generally 0.06-0.09 cm, so the SVW-based method proposed was still effective.

Preservation Time after Cervical Cerclage.
In the two groups of patients after transvaginal cervical cerclage or laparoscopic cervical ligation, the experimental group had an average postoperative fetal preservation time of (8.9 ± 3.8) days, and the control group had an average postoperative fetal preservation time of (7.8 ± 5.1) days. e postoperative fetal preservation time of the two groups of patients was compared, and the difference was statistically considerable, P < 0.05 (Figure 4).

Vaginal Bleeding Rate within One Week after Surgery.
ere were 22 patients in the experimental group, 7 patients were with postoperative bleeding, and the bleeding rate was 31.8%. ere were 22 patients in the control group, and 9 patients (40.9%) were with postoperative bleeding. e vaginal bleeding rate within one week after the operation of the two groups of patients was compared, and the difference was statistically considerable, P < 0.05 ( Figure 5(a)). Among the seven patients with bleeding in the experimental group, four patients had a bleeding volume of no more than 300 mL, two patients had a bleeding volume of 500 mL, and one patient had a bleeding volume of 800 mL. In the control group, five patients had a bleeding volume of less than 300 mL, three patients had a bleeding volume of 500 mL, and one patient had a bleeding volume of more than 800 mL, as illustrated in Figure 5

Incidence of Infection.
After the two groups of patients underwent vaginal cervical cerclage or laparoscopic cervical ligation, six patients in the experimental group developed infections after the operation, and the incidence of premature rupture of membranes was 27.3%. A total of seven patients in the control group had premature rupture of membranes, and the rate of premature rupture of membranes was 31.2%. e difference was statistically considerable, P < 0.05, as illustrated in Figure 6.

Postoperative Pregnancy Outcome.
ere were a total of 22 patients in the experimental group, the number of weeks of delivery was 32.4 ± 4.3 gestational weeks, and 2 cases had late abortion at 15 +4 -21 +2 gestational weeks. Two patients were delivered prematurely at 29 +4 and 31 +6 gestational weeks, respectively, and 18 patients were delivered at 37 +2 -38 +6 gestational weeks. In the control group, the number of weeks of delivery was 31.9 ± 5.7 gestational weeks, and 4 patients had late miscarriage at 15 +5 -22 +5 gestational weeks. ree cases had preterm births at 31 +4 , 29 +6 , and 30 +4 gestational weeks, respectively, and 13 patients had normal delivery at 37 +2 -38 +5 gestational weeks, as illustrated in Figure 7. e normal delivery rate of the experimental group was 81.2%, and that of the control group was 59.1%. e postoperative pregnancy outcomes of the two groups were compared, and the difference was statistically considerable, P < 0.05. e postoperative pregnancy outcome of the two groups of patients is illustrated in Figure 7

Discussion
Cervical insufficiency is one of the causes of recurrent abortion and premature delivery in late pregnancy, accounting for about 15% of recurrent abortion in the second trimester [14]. Because of this huge data, people gradually pay attention to these diseases of cervical insufficiency. Although the pathologic mechanism of this disease is not  clear, the recognized causes include congenital uterine abnormalities, acquired labor induction history, gynecological inflammation, and history of cervical surgery. All these will lead to the gradual loss of sphincter function in the cervical isthmus, which eventually become pathological cervical relaxation [8]. e mechanism of cervical ligation is mainly increasing the tension of the cervical canal to prevent the dilation of the cervix and the extension of the lower part of the uterus, and the operation can help the cervix to share some pressure load brought by the fetus [15].
In this study, BPNN was innovatively applied to the MRI imaging detection of cervical function before cervical ligation, and the effectiveness of the MRI image based on BPNN algorithm in the treatment of cervical incompetence was analyzed. First, the initialization network, the neural network, and the output were formed into a sequence. After initialization of the continuous weights and thresholds, the neuron excitation function f(x) and the learning rate η of the neural network were given [16]. en, the SVM neural network algorithm was employed to analyze the MR images, and the inner product kernel between the support vector x(i) and the vector x extracted from the input space was constructed. After the kernel function, the appropriate kernel function K(x, x i ) and the appropriate parameter C were selected to construct and solve the optimization problem. From the experiment of neural network fitting results, it was found that there were no edge points in the training data, and the top and bottom test points were not included in the test data. Generally, a small mean square error was obtained. BPNN, PSO-BPNN, APSO-BPNN, and PIPSO-BPNN were adopted to carry out a series of classification simulations in the MATLAB 7.0 environment. Based on experience and experimental testing, the relevant parameters were set as follows: the number of particles n � 50, the inertia weight ω � 0.9, and c1 � c2 � 2. e weight range of the output layer of the neural network was [−1, 1], the target error was e � 10-5, and the maximum number of iteration steps was 3,000 [17]. BPNN algorithm overcomes the problems of local minima and slow convergence of traditional algorithms, but there is no unified theoretical guidance for the selection of BPNN structure, which can only rely on experience. If the network structure is too large, the training efficiency is not high, and there may be an overfitting phenomenon, resulting in low network performance and reduced fault tolerance. If the structure is too small, the network may not converge. e structure of the network directly affects the approximation ability and generalization of the network. erefore, how to choose the appropriate network structure in application is an important problem. In a word, the MRI based on the BPNN algorithm in this study clearly showed the local anatomical structure, which improved the success rate of surgery and the prognosis of patients.
Cervical ligation is mainly implemented through strengthening the tension of the cervical tube to inhibit the extension of the lower uterine segment and the expansion of the cervical mouth. Cervical ligation can also help the cervix to bear the load of fetal growth in the third trimester to a certain extent [18]. Although cervical ligation is one of the most effective methods recognized by most clinicians for the treatment of cervical insufficiency, there is no unified standard for cervical ligation in the treatment of cervical insufficiency [19,20]. e results showed that cervical ligation during pregnancy can effectively treat cervical insufficiency. Brown et al. [21] showed that, for pregnant women with typical symptoms of cervical insufficiency, the therapeutic effect of emergency cervical ligation was better than the traditional conservative treatment. is is in line with the results of this study. Our results showed that both prophylactic and emergency cervical ligation can prolong gestational age and improve pregnancy outcomes.

Conclusion
In this study, BPNN algorithm and PSO-SVM algorithm were used to analyze the MRI image characteristics of patients with cervical insufficiency during pregnancy. en, the two neural algorithms were compared to evaluate the therapeutic effect of MRI image features. e algorithm proposed had high continuity and reliability, which also had good segmentation performance, and the diagnosis accuracy of cervical insufficiency during pregnancy was improved.
is algorithm not only greatly improved the segmentation efficiency and reduced a large number of manual repetitive operations but also can assist clinicians in the clinical auxiliary diagnosis of other uterine diseases, so it was of high theoretical and practical significance. e shortcoming of this study is that it is found that the training data do not contain edge points and the test data do not contain the top and bottom test points from the comparative experiment of neural network fitting results, and generally, small mean square error is obtained. It may be due to the shortcomings of the neural network algorithm itself, which often cannot get the global optimal solution but can only get the local optimal solution. erefore, it is recommended to exclude edge points when neural network is used for local fitting in subsequent studies. e problems existing in this study need to be further improved in the follow-up work.

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