Abstract

This study aimed to explore the application value of magnetic resonance imaging optimized by neural network segmentation algorithm in analyzing the relationship between cerebrospinal fluid changes after decompressive craniectomy and the occurrence of communicating hydrocephalus. 100 patients with craniocerebral injury undergoing decompressive craniectomy in hospital were selected as research subjects. The collected MRI images were processed using the OTSU algorithm, the cerebrospinal fluid flow rate was calculated based on the observation results, and the MRI based on the neural network segmentation algorithm was used to analyze the relationship between the occurrence of communicating hydrocephalus with the cerebrospinal fluid flow after decompressive craniectomy for craniocerebral injury. Additionally, the dynamics of the flow of cerebrospinal fluid in the midbrain aqueduct was analyzed. After decompressive craniectomy for craniocerebral injury, of the 24 cases of cerebrospinal fluid accumulation, 23 cases had hydrocephalus; of the 55 cases of cerebrospinal fluid flow disorder, hydrocephalus occurred in 47 cases; and of the 21 cases of normal cerebrospinal fluid, no patients had hydrocephalus. For patients with communicating hydrocephalus, the cerebrospinal fluid flow at the aqueduct was obviously accelerated and the flow was increased. From this, the differential diagnosis of cerebrospinal fluid and communicating hydrocephalus can be further confirmed. The results showed that the third ventricle of the study group was significantly reduced, and the flow of cerebrospinal fluid was similar to that of normal people. It suggested that decompressive craniectomy can relieve communicating hydrocephalus. In patients with communicating hydrocephalus, the cerebrospinal fluid flow at the aqueduct was significantly accelerated, the flow amount was increased, and the blocked flow of cerebrospinal fluid can also lead to hydrocephalus, which further clarified the relationship between the occurrence of communicating hydrocephalus with the flow of cerebrospinal fluid. In short, the neural network segmentation algorithm-based magnetic resonance imaging demonstrated a good value in the analysis of craniocerebral injury, from which the doctor observed that the cerebrospinal fluid flow at the aqueduct was significantly accelerated. Its detection of brain complications after decompressive craniectomy was also effective.

1. Introduction

Craniocerebral injury not only causes brain damage but also affects the whole body. Its mortality and disability rates are much higher than other diseases. Investigations have shown that the annual incidence of traumatic head and cervical spine injuries reaches 0.001% [1]. Since the last century, the mortality of patients with craniocerebral injury has been significantly reduced with the continuous improvement of medical technology, but the mortality rate is still high [2]. At present, surgical intervention is the main treatment for patients with craniocerebral injury [3]. For severely ill patients with acute intracranial hypertension, decompressive craniectomy can quickly relieve malignant intracerebral hypertension, reduce the incidence of brain pressure-induced, and improve the state of high cerebrospinal fluid flow [4]. However, surgical intervention can cause changes in intracranial blood, cerebral fluid circulation, and microvascular structure, resulting in complicated postoperative complications. There have been studies evaluating the effect of decompression craniectomy. The main content is to explore the relationship between the treatment effect and surgical complications [5].

Hydrocephalus is a common complication of craniocerebral injury. Additionally, brain infections and brain tumors can also cause hydrocephalus in fetuses, and it mostly manifests as malabsorption of cerebrospinal fluid. Clinically, hydrocephalus can be divided into two types: communicating hydrocephalus and obstructive hydrocephalus [6]. The communicating hydrocephalus arises from malabsorption of cerebrospinal fluid and communicating block [7]. The occlusive hydrocephalus is identified based on the location inside and outside the ventricle. During the formation of hydrocephalus, ventricular dilation blocks the flow of cerebrospinal fluid, resulting in irreversible hydrocephalus. As the disease progresses, intracranial pressure rises, blood flow is blocked, and the brain shrinks. It is very meaningful to evaluate the postoperative effect of hydrocephalus. Hydrocephalus is caused by abnormal accumulation of cerebrospinal fluid, which increases intracranial pressure. When hydrocephalus occurs, the patient’s systemic function is impaired, and the patient is unable to live and communicate normally. It will also cause permanent damage to the patient’s physical and mental health [8].

Hydrocephalus under normal circumstances disrupts the balance of cerebrospinal fluid, eventually leading to accumulation of cerebrospinal fluid and swelling of the ventricles. For congenital hydrocephalus, the patient’s head is significantly enlarged, and it can be identified by observing this external feature [9]. When hydrocephalus occurs in adults, the cranial volume does not change significantly, so doctors need to analyze medical images to diagnose hydrocephalus [10, 11]. During the process, the doctor needs to observe the structure of each layer of MRI images. With the advent of computer-aided diagnosis, it has assisted physicians in diagnosing many brain diseases, such as brain tumors and cerebral hemorrhage, stroke, and cerebral infarction [12]. The segmentation of contralateral ventricle is usually based on regional segmentation due to the obvious regional distribution of brain medical images. Affected by noise, the MR image shows that the ventricle appears to be connected to the cerebrospinal fluid. Nowadays, magnetic resonance imaging (MRI) analysis based on the neural network segmentation algorithm is applied to the diagnosis of hydrocephalus. Hydrocephalus can cause the patient’s ventricles to expand, but the volume of the cranial cavity does not change significantly, and thus the volume ratio of the ventricle to the cranial cavity may exceed the normal range in hydrocephalus patients [13]. Generally speaking, the diagnosis of hydrocephalus requires volume information of the ventricles and cranial cavity. The structure of the cranial cavity is relatively simple, and it is easy to disassemble, while the structure of the lateral ventricle is complicated. Therefore, the main task is to segment the lateral ventricle to diagnose hydrocephalus [1417].

In the past few years, the MRI has been developed to study the physiology of cerebrospinal fluid circulation and diagnose the hydrocephalus. In this study, neural network segmentation algorithm-based MRI was used to analyze the relationship between changes in cerebrospinal fluid and communicating hydrocephalus after decompressive craniectomy for craniocerebral injury.

2. Materials and Methods

2.1. Research Subjects

In the study, 100 patients with craniocerebral injury admitted to hospital from May 2019 to May 2021 were selected as research subjects. This study has been approved by the Medical Ethics Committee of Hospital, and the family members of the patients included in the study had signed an informed consent form.

Inclusion criteria are as follows: (I) hydrocephalus patients caused by craniocerebral injury, and no clear cerebrospinal fluid flow could be observed in the midbrain aqueduct area; (II) cerebrospinal fluid area could be observed by MRI brain imaging; (III) patients not less than 25 years old; and (IV) patients not accompanied by other brain diseases.

Exclusion criteria are as follows: (1) previous history of decompressive craniectomy, bilateral decompressive craniectomy, and posterior fossa decompression; (2) previous history of other neurological diseases, such as brain tumor, meningitis, and stroke; (3) patients with poor compliance; (4) patients suffering from other brain diseases or hydrocephalus removal complications (such as cerebral hemorrhage and encephalitis); (5) the first CT examination indicated previous hydrocephalus or cerebral hydrocephalus circulation obstruction; and (6) with open craniocerebral injury.

2.2. MRI Examination for Brain

MRI, CT, and ultrasound are widely used in clinical diagnosis of diseases. MRI, as one of the medical imaging technologies, uses magnetic fields, electric waves, and gradients to generate medical images of internal tissue in the body. The hydrogen nuclei in various tissue of the human body can be excited by atoms, electromagnetic waves, and so on, and the energy attenuation can be converted to computer signals to generate MRI images [18]. Figure 1 shows the magnetic resonance imaging system.

MR images can be divided into different types based on relaxation times. T1- and T2- weighted sequence images are commonly used. As shown in Figure 2, Figure 2(a) is the T1-weighted sequence image of the brain and Figure 2(b) is the T2-weighted sequence image of the brain.

T1 emphasizes the difference in the longitudinal relaxation of the tissue in the image. It is suitable for observing anatomical structures. The intracranial tissue in MRI images mainly includes cerebrospinal fluid, white matter, and gray matter. In the same tissue, the gray values of corresponding pixels on the image are not necessarily in the same range. There may exist artifacts, and the edges of the image are not clear, and the lesions are not obvious.

2.3. The Auxiliary Diagnosis of Hydrocephalus Based on Ventricle Segmentation

As shown in Figure 3, the auxiliary diagnosis process of hydrocephalus can be divided into three steps, namely, preprocessing, segmentation, and result generation. The existence of noise increases the difficulty of image segmentation and image analysis. Therefore, it is necessary to process the image first to improve the accuracy and precision. The auxiliary diagnosis of hydrocephalus needs to take the volume ratio of the ventricle and the cranial cavity as the reference value. Therefore, it is necessary to segment the ventricle and the cranial cavity.

2.4. Preprocessing

The quality of medical images is affected by many factors, such as the image capture device, the environment, and the subtle movements of the patient. Usually, most of the preprocessing includes noise removal, uneven field correction, registration, and skull anatomy. The main purpose of preprocessing is to reduce the influence of image noise. There are three main calculation methods using artificial intelligence algorithms: mean filtering, median filtering, and adaptive filtering. The study focuses on the mean filtering. The mean filtering is a single linear filter, and the average value is used to represent the surrounding pixels, as shown in the following:

Above, the average value of the mean filter can quickly get the result and remove the noise, but when it encounters the pixels with large differences, the details cannot be well preserved. However, it is efficient and fast and widely used. Figure 4 shows image processing results by the 3 methods.

2.5. Segmentation of MRI Images of Brain

Medical image segmentation is to segment the image into different areas according to the gray value, gray gradient, texture, and other characteristics of the image and extract the lesion area from the image. The segmentation of the ventricle and the cranial cavity is based on the gray contrast between the tissue. As shown in Figure 5, the lateral ventricle has a three-dimensional structure. In the figure, arrow 2 refers to the lower part of the lateral ventricle. The segmentation of lateral ventricle is prone to errors, and part of the lateral ventricular structure penetrates. This has brought about great difficulties recognizing images using naked eyes, but artificial intelligence is sensitive to subtle grayscale differences and can accurately recognize [19].

2.6. Auxiliary Diagnosis Results

After the brain image is segmented, the data structure can be read using software. Then, the cranial cavity volume can be calculated, and then the ratio of the ventricle to the cranial cavity volume can be calculated. For adults, cerebrospinal fluid accumulates, causing the ventricle to expand. Therefore, the volume ratio of ventricle to cranial cavity of hydrocephalus patients is relatively large, and the patient can be diagnosed based on the index.

2.7. OTSU Algorithm

The OTSU algorithm can obtain the threshold value through iterative calculation, and the binarization processing of the grayscale image is performed based on the threshold value [20]. The algorithm is to find the best threshold in the binarized image and obtain the smallest intraclass variance. The exhaustive search method based on the Otsu algorithm can obtain the minimum intraclass variance threshold, which is defined as the weighted sum of the variances of the two classes.

The weight is the probability of the two classes separated by the threshold t, but is the variance of the two classes, expressed as follows:

OTSU proves that minimizing the intraclass variance is equivalent to maximizing the between-class variance. The class probability and class mean represent the variance between the two classes, expressed as follows:

The mean value is calculated as the following equations:

The relationship between the probability of the class and the variance of the class is shown in the following equation:

2.8. Imaging Examination

The MRI routine scanning: head transverse axis and coronal SETIWI, TR is set to 360–450 ms, TE is 12 ms, FOV is 240–280mm, and matrix is 256×217. Head transverse axis TSE T2W1: TR is 4000 ms, TE is 100 ms, FOV is 250 mm, and matrix is 256×240. The layer thickness of all the above sequences is 6 mm, and the layer-to-layer spacing is 0.6 mm. The high-resolution sagittal SE T1W1: TR is 500 ms, TE is 12 ms, FOV is 180 rnm, the layer thickness of each sequence is 3 mm, the layer-to-layer spacing is 0.3 mm, and the matrix is 512 × 2560. All subjects had the phase-contrast MRI. First, the midsagittal film is collected. TR is 32.7 ms, TE is 10.0 ms, flip angle is 10°, FOV is 135 mm × 135 mm, the layer thickness of each sequence is 5 mm, the flow velocity is 12 cm/s, and the number of image phases collected in each cardiac cycle is 9 frames.

2.9. Data Analysis

The flow fluid analysis software was used to measure and analyze the CSF flow in the corresponding areas in the study group and the control group. First, the collected images are enlarged to 4 images per screen, and then the elliptical region of interest (ROI) was used to delineate the outline of corresponding areas in the study group and the control group. To avoid subjective differences, two doctors (different age and seniority) described the ROI independently. The maximum systolic velocity (MSV) and the maximum diastolic velocity (MDV) were recorded, and then the average flow velocity was calculated.

2.10. Statistical Methods

SPSS20.0 was used for analysis and statistics. Normally distributed measurement data were expressed as mean ± standard deviation. One-way analysis of variance was used for comparison between groups; independent t-test was used for general data, and paired sample t-test was used to compare LUS scores of the lungs.  < 0.05 was the threshold for significance.

3. Results

3.1. The Accuracy of Segmentation

The segmentation results of the neural network segmentation algorithm were compared with the doctor’s manual segmentation results, as shown in Figure 6. First, in order to show the accuracy of different segmentation methods, representative images of the upper, middle, and lower parts of the lateral ventricle were selected for comparison. The upper part is relatively simple, including two parts of the lateral ventricle, the middle part includes the third ventricle, and the lower part includes a large amount of nonlateral ventricle cerebrospinal fluid. The images from left to right were the original image, the image segmented by the physician, and the image segmented by the neural network. It was noted that for the upper, middle, and lower parts, the neural network segmentation results were close to the manual segmentation results. The image segmented by the neural network was clear, and the saturation was high.

3.2. Comparison of Image Gray Values

Three algorithms were used to denoise the brain image. The results are shown in Figure 7. Compared with the original image, the denoising image by median filtering was fuzzy, affecting the segmentation accuracy of the lateral ventricle. The denoising images by mean filtering and adaptive filtering were clear and close to the original grayscale image. The smooth mean filter curve indicated that the image quality was uniform.

3.3. Brain MRI Images and Cerebrospinal Fluid Flow

As shown in Figure 8, the preoperative MRI image of the study group showed that the lateral ventricle and the third ventricle were significantly enlarged, the midbrain aqueduct was narrowed or completely obstructed, the cerebrospinal fluid flow waveform was disordered (sometimes linear), and there was no obvious indication of partial or complete obstruction. The postoperative MRI image showed that the third ventricle was significantly reduced, and the flow of cerebrospinal fluid showed a bidirectional flow similar to that of normal people (Figure 9 and10).

3.4. The Relationship between Cerebrospinal Fluid Flow and Hydrocephalus

As shown in Figure 11, of the 24 cases of cerebrospinal fluid accumulation, 23 cases had hydrocephalus; of the 55 cases of cerebrospinal fluid flow disorder, hydrocephalus occurred in 47 cases; and of the 21 cases of normal cerebrospinal fluid, no patients had hydrocephalus ( < 0.05). The flow of cerebrospinal fluid at the aqueduct was significantly accelerated, and the flow amount was increased in patients with communicating hydrocephalus. It clarified the relationship between cerebrospinal fluid and communicating hydrocephalus.

4. Discussion

Hydrocephalus commonly arises from meningitis, brain trauma, subarachnoid hemorrhage, and intracranial lesions after surgery. It can also be caused by abnormal secretion of the choroid plexus and narrow or occlusion of the intracranial venous cavity. Clinically, it is divided into two types of communicative and obstructive hydrocephalus. The former is due to the cerebrospinal fluid disorder or the absorption of arachnoid particles in the cerebrospinal fluid, but there is no obstacle between the cerebrovascular and the subarachnoid space, and it remains unobstructed. The latter is due to occlusion (stenosis or occlusion) of part of the cerebrospinal fluid circulation, which is often accompanied by ventricular dilatation, in which it is difficult to diagnose [21]. Due to the small diameter of the brain, it is difficult to determine whether the water channel is narrow or not using general imaging images such as static CT or MRI [22]. However, MRI is highly sensitive to fluid flow and can dynamically show even slight flow in the cerebrospinal fluid circulation path. Therefore, MRI has a strong advantage in identifying whether the cerebrospinal fluid circulation path is blocked or the degree of failure. Occlusive hydrocephalus includes partially occlusive hydrocephalus and completely occlusive hydrocephalus. In patients with partially occlusive hydrocephalus, according to the phase image, the cerebrospinal fluid shows a high signal in the systolic phase and a low signal in the dilated phase. In patients with completely occlusive hydrocephalus, the flow rate and flow amount of the cerebrospinal fluid are reduced. At this time, MRI is not sensitive to tissue and fluids, and water pipes and peripheral brain tissue cannot be distinguished by phase images, and thus the flow of brain fluid cannot be observed [23]. In patients with communicating hydrocephalus, the phase image of midbrain shows that the flow rate is 10 times that of normal people. Therefore, MRI image is a good way to distinguish communicating hydrocephalus from noncommunicating hydrocephalus. Godenschweger et al. (2016) studied the dynamics of cerebrospinal fluid circulation using MRI technology [24]. They observed the changes of cerebrospinal fluid signal intensity in different cardiac cycles, but they did not further study the pathological physiology of cerebrospinal fluid circulation dynamics. After decompressive craniectomy for craniocerebral injury, of the 24 cases of cerebrospinal fluid accumulation, 23 cases had hydrocephalus; of the 55 cases of cerebrospinal fluid flow disorder, hydrocephalus occurred in 47 cases; and of the 21 cases of normal cerebrospinal fluid, no patients had hydrocephalus. For patients with communicating hydrocephalus, the cerebrospinal fluid flow at the aqueduct was obviously accelerated and the flow was increased. From this, the differential diagnosis of cerebrospinal fluid and communicating hydrocephalus can be further confirmed. Postoperative cerebrospinal fluid flow wave reached the peak at 100, and the lowest at about 220. After the surgery, MRI examination of cerebrospinal fluid was performed to explore the dynamics of cerebrospinal fluid flow in the midbrain aqueduct. The results showed that the third ventricle was significantly reduced, and the cerebrospinal fluid flow showed the normal bidirectional flow.

In the study, the characteristics of brain MRI images were analyzed first. Next, the basic steps of the auxiliary diagnosis of hydrocephalus were expounded. Then, the flow waveform of the cerebrospinal fluid in the hydrocephalus patients was studied, and the MRI image of the hydrocephalus was analyzed to provide help for the patient’s future treatment. Disadvantages of this study are as follows. Although the lateral ventricle segmentation scheme proposed in this study achieves relatively high segmentation accuracy compared with other algorithms, the morphological operation used in the segmentation scheme to improve the accuracy will inevitably lead to the omission of segmentation of some regions in the posterior or lower corner of the lateral ventricle in individual images. Therefore, statistical analysis can be used to further correct the segmentation results. For certain brain diseases, the corresponding tissue will change accordingly, so the automatic segmentation of different tissue has great significance for the diagnosis of brain diseases. However, the existing segmentation schemes are all aimed at the segmentation of a certain region, which is not suitable for the segmentation of other brain regions. Therefore, in the future, adaptive segmentation of different regions can be carried out according to the required regions in the process of lateral ventricle segmentation combined with the overall information of gray image.

5. Conclusion

The study focused on the relationship between changes in the flow of cerebrospinal fluid and communicating hydrocephalus after decompressive craniectomy for craniocerebral injury, and the dynamics of cerebrospinal fluid flow in the cerebral aqueducts was analyzed. The results showed that the third ventricle of the study group was significantly reduced, and the flow of cerebrospinal fluid was similar to that of normal people. It suggested that decompressive craniectomy can relieve communicating hydrocephalus, and the flow rate of cerebrospinal fluid is associated with the occurrence of hydrocephalus.

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 that there are no conflicts of interest.