Bile acid concentration estimation method, device, equipment and storage medium

Acquiring spectral data through an endoscopic detection device and using an evaluation model to estimate bile acid concentration solves the problem of quantitative analysis of bile acid concentration in the existing technology, enables bile acid concentration detection without collecting gastric mucus, and improves the real-time and real-time performance of detection. accuracy.

CN118794902APending Publication Date: 2024-10-18AEROSPACE CENT HOSPITAL
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202410819032.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-24
Publication Date
2024-10-18

AI Technical Summary

Technical Problem

Existing technology cannot perform quantitative analysis of bile acid concentration, and endoscopic detection methods require the collection of gastric mucus, which is complex and not real-time.

Method used

Target spectral data are acquired through an endoscopic detection device and input into a pre-trained bile acid concentration assessment model. The support vector regression function is used to estimate the bile acid concentration without the need to collect gastric mucus.

Benefits of technology

It achieves quantitative analysis of bile acid concentration, simplifies the detection process, and improves the real-time and accuracy of detection.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118794902A_ABST
    Figure CN118794902A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of data processing, and particularly provides a bile acid concentration estimation method, device and equipment and a storage medium, the method comprises the following steps: obtaining target spectral data of a detection area, the target spectral data being obtained after an endoscope detection device emits detection light to the detection area; inputting the target spectral data into a pre-trained bile acid concentration evaluation model to obtain a bile acid concentration estimation value in the detection area; wherein the bile acid concentration evaluation model is obtained by training sample spectral data and a sample bile acid concentration actual value. According to the embodiment of the invention, the concentration of the bile acid is estimated by using an endoscope detection technology, and quantitative analysis of the concentration of the bile acid can be realized without collecting gastric mucus.
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 bile acid concentration estimation method, device, equipment and storage medium. Background Art

[0002] Bile reflux gastritis (BRG) refers to the chronic inflammation, erosion and even ulcer of gastric mucosa caused by the reflux of bile and pancreatic juice from the duodenum into the stomach. It is also called alkaline reflux gastritis, gastritis with bile reflux, duodenal-gastric reflux, etc. Long-term bile reflux gastritis may lead to atrophic gastritis, intestinal metaplasia and even cancer. Bile refluxed into the stomach can mix with gastric mucus to form a yellow mucus pool, bile spots on the gastric mucosa, or duodenal fluid containing bile can be seen to reflux into the stomach from the pyloric orifice in the form of yellow foam or water, which are direct signs of bile reflux.

[0003] In the related art, an endoscopic examination system is used to obtain a mucus lake image in the stomach, and image processing technology is used to determine whether bile refluxes into the stomach in the mucus lake image to assist doctors in determining whether bile reflux gastritis occurs.

[0004] In the above-mentioned related technologies, only qualitative analysis can be performed, but quantitative evaluation cannot be performed. Summary of the invention

[0005] In order to solve the above technical problems, the present application provides a bile acid concentration estimation method, device, equipment and storage medium, which uses endoscopic detection technology to estimate bile acid concentration and can achieve quantitative analysis of bile acid concentration without collecting gastric mucus.

[0006] In a first aspect, the present application provides a method for estimating bile acid concentration, the method comprising: obtaining target spectral data of a detection area, wherein the target spectral data is obtained after an endoscopic detection device emits detection light to the detection area; inputting the target spectral data into a pre-trained bile acid concentration evaluation model to obtain an estimated value of the bile acid concentration in the detection area; wherein the sample set of the bile acid concentration evaluation model includes sample spectral data and actual values ​​of the sample bile acid concentration.

[0007] In a second aspect, the present application provides a bile acid concentration estimation device, which includes: a target spectral data acquisition module, used to acquire target spectral data of a detection area, wherein the target spectral data is obtained after an endoscopic detection device emits detection light to the detection area; a bile acid concentration estimation module, used to input the target spectral data into a pre-trained bile acid concentration evaluation model to obtain an estimated value of the bile acid concentration in the detection area; wherein the sample set of the bile acid concentration evaluation model includes sample spectral data and actual values ​​of sample bile acid concentrations.

[0008] In a third aspect, the present application provides an electronic device, comprising: one or more processors; a storage device for storing one or more programs; when the one or more programs are executed by the one or more processors, the one or more processors implement the bile acid concentration estimation method as described in the first aspect above.

[0009] In a fourth aspect, the present application provides a storage medium, which may be a computer-readable storage medium having a computer program stored thereon, and when the program is executed by a processor, the bile acid concentration estimation method in the first aspect described above is implemented.

[0010] In a fifth aspect, an embodiment of the present application provides a computer program product, which includes a computer program or instructions, and when the computer program or instructions are executed by a processor, the bile acid concentration estimation method as described in any one of the first aspects above is implemented.

[0011] Compared with the prior art, the technical solution provided by the embodiments of the present application has the following advantages:

[0012] The embodiment of the present application provides a method, device, equipment and storage medium for estimating bile acid concentration, the method comprising: obtaining target spectral data of a detection area, wherein the target spectral data is obtained after an endoscopic detection device emits detection light to the detection area; inputting the target spectral data into a pre-trained bile acid concentration evaluation model to obtain an estimated value of bile acid concentration in the detection area; wherein the bile acid concentration evaluation model is trained based on sample spectral data and actual values ​​of sample bile acid concentration. Since the bile acid concentration evaluation model is trained based on sample spectral data and actual values ​​of sample bile acid concentration, the bile acid concentration evaluation model can characterize the correlation between spectral data and bile acid concentration, and then after inputting the target spectral data into the bile acid concentration evaluation model, the bile acid concentration evaluation model can output the estimated value of bile acid concentration obtained by its evaluation, thereby realizing the estimation of bile acid concentration using endoscopic detection technology, and realizing quantitative analysis of bile acid concentration without collecting gastric mucus. BRIEF DESCRIPTION OF THE DRAWINGS

[0013] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.

[0014] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.

[0015] Figure 1A schematic diagram of a bile acid concentration estimation method provided in an embodiment of the present application;

[0016] Figure 2 A schematic diagram of a process for optimizing a bile acid concentration evaluation model provided in an embodiment of the present application;

[0017] Figure 3 A schematic diagram of a support vector regression function provided in an embodiment of the present application;

[0018] Figure 4 A schematic diagram of the structure of a bile acid concentration estimation device provided in an embodiment of the present application;

[0019] Figure 5 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0020] In order to more clearly understand the above-mentioned purposes, features and advantages of the present application, the scheme of the present application will be further described below. It should be noted that the embodiments of the present application and the features in the embodiments can be combined with each other without conflict.

[0021] In the following description, many specific details are set forth to facilitate a full understanding of the present application, but the present application may also be implemented in other ways different from those described herein; obviously, the embodiments in the specification are only part of the embodiments of the present application, rather than all of the embodiments.

[0022] The term "including" and its variations used herein are open inclusions, i.e., "including but not limited to". The term "based on" means "based at least in part on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments". The relevant definitions of other terms will be given in the following description.

[0023] It should be noted that the concepts such as "first" and "second" mentioned in this application are only used to distinguish different devices, modules or units, and are not used to limit the order or interdependence of the functions performed by these devices, modules or units.

[0024] It should be noted that the modifications of "one" and "plurality" mentioned in the present application are illustrative rather than restrictive, and those skilled in the art should understand that unless otherwise clearly indicated in the context, it should be understood as "one or more".

[0025] Bile reflux gastritis (BRG) refers to the chronic inflammation, erosion and even ulcer of gastric mucosa caused by the reflux of bile and pancreatic juice from the duodenum into the stomach. It is also called alkaline reflux gastritis, gastritis with bile reflux, duodenal-gastric reflux, etc. Long-term bile reflux gastritis may lead to atrophic gastritis, intestinal metaplasia and even cancer. Bile refluxed into the stomach can mix with gastric mucus to form a yellow mucus pool, bile spots on the gastric mucosa, or duodenal fluid containing bile can be seen to reflux into the stomach from the pyloric orifice in the form of yellow foam or water, which are direct signs of bile reflux.

[0026] In the related art, auxiliary detection methods for bile reflux mainly include invasive and non-invasive detection methods.

[0027] Invasive testing refers to the use of a gastric tube or cannula inserted through the esophagus into the patient's stomach for auxiliary testing.

[0028] Invasive detection methods include bile acid detection and image recognition detection. Bile acid detection refers to the use of a gastric tube to extract mucus from the patient's stomach, detect the concentration of bile acid and / or the acid-base (pondushydrogeni, pH) value in the mucus, and use the concentration and / or pH value of bile acid to assist doctors in diagnosing bile reflux gastritis. Image recognition detection refers to the use of a cannula inserted into the duodenum, injecting barium sulfate into the duodenum, obtaining an X-ray image of the stomach through X-ray technology, and identifying whether there is an image area corresponding to barium sulfate in the X-ray image to assist doctors in diagnosing bile reflux gastritis. Alternatively, an image of the mucus lake in the stomach is obtained through an endoscopic examination system, and image processing technology is used to determine whether there are bile spots in the mucus image and whether bile flows back into the stomach to assist doctors in diagnosing bile reflux gastritis.

[0029] Noninvasive monitoring, using intravenous hepatobiliary imaging agents, monitors bile acid concentrations by scintigraphy of radioactive markers of hepatobiliary excretion.

[0030] The above-mentioned bile acid test requires the collection of gastric juice for 1 hour, and samples are taken every 15 minutes. The gastric juice collection process requires precise operation, which increases the complexity of the operation, and certain foods may affect the composition of gastric juice, thereby affecting the accuracy of the test results. The above-mentioned image detection can only perform qualitative analysis, and quantitative evaluation cannot be performed. The above-mentioned non-invasive monitoring requires about 24 hours of detection, and it is impossible to detect the bile acid concentration in gastritis in real time. Due to individual differences, some patients may be allergic to hepatobiliary imaging agents.

[0031] To solve the above technical problems, an embodiment of the present application provides a method for estimating bile acid concentration, which includes: obtaining target spectral data of a detection area, wherein the target spectral data is obtained after an endoscopic detection device emits detection light to the detection area; inputting the target spectral data into a pre-trained bile acid concentration evaluation model to obtain an estimated value of the bile acid concentration in the detection area; wherein the bile acid concentration evaluation model is trained by sample spectral data and actual values ​​of the sample bile acid concentration.

[0032] Since the bile acid concentration evaluation model is trained based on sample spectral data and actual values ​​of sample bile acid concentration, the bile acid concentration evaluation model can characterize the correlation between spectral data and bile acid concentration. After inputting the target spectral data into the bile acid concentration evaluation model, the bile acid concentration evaluation model can output the estimated value of bile acid concentration obtained by its evaluation, thereby realizing the estimation of bile acid concentration using endoscopic detection technology, and achieving quantitative analysis of bile acid concentration without collecting gastric mucus.

[0033] The bile acid concentration estimation method provided by the present application is described in detail below in conjunction with the accompanying drawings and specific implementation examples.

[0034] Figure 1 This is a flow chart of a bile acid concentration estimation method in an embodiment of the present application. This embodiment can be applied to estimating the bile acid concentration of a specified part. The method can be executed by a bile acid concentration estimation device. The bile acid concentration estimation device can be implemented in software and / or hardware. The bile acid concentration estimation device can be configured in an energy storage inverter.

[0035] like Figure 1 As shown, the bile acid concentration estimation method provided in the embodiment of the present application mainly includes steps S101-S102.

[0036] S101, acquiring target spectrum data of a detection area, wherein the target spectrum data is obtained after an endoscopic detection device emits detection light to the detection area.

[0037] The detection area may refer to a certain part of the human body, such as the stomach, esophagus, etc. In the embodiment of the present application, the detection area is taken as an example of the stomach. An endoscopic detection device refers to a device for observing the condition of the internal organs of the human body by using an endoscope. When the detection area is the stomach, the endoscopic detection device is a gastroscope.

[0038] The above-mentioned spectral data includes bilirubin spectral data, which refers to the measurement results of the absorbance or fluorescence intensity of bilirubin molecules at different wavelengths. Bilirubin spectral data can reflect the light absorption or emission characteristics of bilirubin molecules at specific wavelengths. After the endoscope detection device emits detection light to the detection area, the bilirubin spectral data is collected.

[0039] The main component of bile that flows back into the stomach is bile acid, which can account for about 50%, which is convenient for inspection and detection. Other components include inorganic salts, bile pigments and various enzymes. Bilirubin in bile pigments is the main pigment in bile, which is yellow-green in color. Since bilirubin has an absorption peak characteristic, the spectral data of bilirubin is used to estimate the bile acid concentration value in the embodiment of the present application.

[0040] In one possible implementation, obtaining target spectral data of a detection area includes: obtaining a plurality of original spectral data of the detection area under detection light within a set wavelength band; processing the plurality of original spectral data in a set manner to obtain target spectral data; wherein the set manner includes at least one of the following: mean calculation, standard deviation calculation, and mean square value calculation.

[0041] There are three main processing methods for calculating target spectral data based on multiple original spectral data:

[0042] First, the average value of multiple original spectral data is used as the target spectral data.

[0043] Second, the standard deviation of multiple original spectral data is used as the target spectral data.

[0044] Third, the mean square value of multiple original spectral data is used as the target spectral data.

[0045] It should be noted that the above processing method is consistent with the processing method of the sample spectral data of the bile acid concentration evaluation model.

[0046] In one possible implementation, a plurality of original spectral data of a detection area under detection light within a set band range is obtained, including: dividing the set band range into a plurality of band intervals; and obtaining original spectral data corresponding to each band interval; wherein the set band range is determined by the spectral characteristics of bilirubin, and the reflux bile includes the bilirubin.

[0047] Wherein, the set band range is determined by the absorption peak characteristics of bilirubin. Optionally, the set band range includes a range between a wavelength of 400nm and a wavelength of 550nm. Multiple original spectral data can be understood as broadcast data at set intervals within the set band. The set interval can be set according to actual conditions. Exemplarily, the set interval is 10nm. In other words, within the range of 400nm to 550nm, a spectral data is obtained as the original spectral data at intervals of 10nm, so that 15 spectral data can be collected.

[0048] Since the above-mentioned set interval is 10 nm, the set interval is set relatively large, and the corresponding collected original spectral data is relatively small, and the data volume is relatively small, and the collected spectral data can be directly used as the original spectral data.

[0049] When the above-mentioned setting interval is small, for example, the setting interval is 1 nm or less monochromatic light wavelength interval, the amount of spectral data is very large, and it is necessary to filter the bands to perform data dimension reduction to obtain multiple original spectral data.

[0050] S102, inputting the target spectral data into a pre-trained bile acid concentration evaluation model to obtain an estimated value of the bile acid concentration in the detection area; wherein the bile acid concentration evaluation model is trained by the sample spectral data and the actual value of the sample bile acid concentration.

[0051] Since the bile acid concentration evaluation model is trained by sample spectral data and actual values ​​of sample bile acid concentration, the bile acid concentration evaluation model can characterize the mathematical relationship between spectral data and bile acid concentration. Then, the target spectral data is input into the bile acid concentration evaluation model, and the bile acid concentration evaluation model can predict the estimated value of bile acid concentration corresponding to the target spectral data based on the target spectral data.

[0052] In a possible implementation, the bile acid concentration estimation model includes a support vector regression function, which is represented by formula (1):

[0053] f(x)=ω T φ(x)+b(1)

[0054] Wherein, x represents spectral data, φ(x) represents a function that maps the spectral data x to a high-dimensional space, f(x) represents an estimated value of bile acid concentration corresponding to the spectral data x, ω represents a weight vector of the support vector regression function, and b represents a bias term of the support vector regression function.

[0055] After the bile acid concentration assessment model is trained and put into use, the weight vector ω and the bias term b in the above support vector regression function are both optimized constants.

[0056] φ(x) is a kernel function in the support vector regression function, which maps the spectral data x to a high-dimensional space so that the training sample set is linear in the high-dimensional space, thereby realizing a linear regression relationship. Since linear processing is to be performed in the embodiment of the present application, the kernel function φ(x) uses a linear kernel function.

[0057] The target spectrum data calculated in S101 is substituted into the above formula (1) for calculation, and the obtained f(x) is the estimated value of bile acid concentration.

[0058] In a possible implementation, the above-mentioned bile acid concentration estimation method also includes: obtaining a detection level corresponding to the target spectral data; selecting a target bile acid concentration evaluation model from multiple bile acid concentration evaluation models based on the detection level; inputting the target spectral data into a pre-trained bile acid concentration evaluation model to obtain an estimated value of the bile acid concentration in the detection area, including: inputting the target spectral data into the target bile acid concentration evaluation model to obtain an estimated value of the bile acid concentration in the detection area.

[0059] The above detection level can be determined by the above target spectral data, and multiple spectral data ranges are pre-set. Based on the spectral data range to which the target spectral data belongs, the detection level corresponding to the target spectral data is determined. For example: when the spectral data is fluorescence intensity, multiple fluorescence intensity ranges are pre-set, each fluorescence intensity range corresponds to a detection level, and each detection level corresponds to a bile acid concentration evaluation model. All sample bilirubin spectral data in the training sample set of the bile acid concentration evaluation model corresponding to the detection level are within the spectral data range corresponding to the detection level. After determining the detection level corresponding to the target spectral data, the bile acid concentration evaluation model corresponding to the detection level is used as the target bile acid concentration evaluation model.

[0060] Since the corresponding bile acid concentration evaluation model is trained for the spectral data in each range, the parameters in the bile acid concentration evaluation model are more accurate, and thus the calculated bile acid concentration estimate is closer to the true value.

[0061] The embodiment of the present application provides a method for estimating bile acid concentration, which includes: obtaining target spectral data of a detection area, wherein the target spectral data is obtained by emitting detection light to the detection area by an endoscopic detection device; inputting the target spectral data into a pre-trained bile acid concentration evaluation model to obtain an estimated value of bile acid concentration in the detection area; wherein the bile acid concentration evaluation model is trained based on sample spectral data and actual values ​​of sample bile acid concentration. Since the bile acid concentration evaluation model is trained based on sample spectral data and actual values ​​of sample bile acid concentration, the bile acid concentration evaluation model can characterize the correlation between spectral data and bile acid concentration, and then after inputting the target spectral data into the bile acid concentration evaluation model, the bile acid concentration evaluation model can output the estimated value of bile acid concentration obtained by its evaluation, thereby realizing the estimation of bile acid concentration using endoscopic detection technology, and realizing quantitative analysis of bile acid concentration without collecting gastric mucus.

[0062] The following is an explanation of the training method of the bile acid concentration evaluation model. The training method of the bile acid concentration evaluation model is to optimize the weight vector ω and the bias term b and process.

[0063] Specifically, Figure 2As shown, the training process of the bile acid concentration evaluation model provided in the embodiment of the present application mainly includes the following steps:

[0064] S201. Obtain a sample set, where the sample set includes sample spectral data and actual values ​​of sample bile acid concentrations.

[0065] The sample spectrum data and the target spectrum data provided in the above embodiment are obtained in the same manner, and the specific description can be referred to in the above embodiment, which will not be repeated in the present application. The actual value of the sample bile acid concentration corresponds to the sample spectrum data one by one.

[0066] The sample set D can be expressed by formula (2):

[0067] D={(x1,y1),(x2,y2),…,(x n ,y n )}(2)

[0068] Where i is the sample number collected at different times. i represents the spectral data of the i-th sample, y i represents the actual value of bile acid concentration of the ith sample, and n represents the total number of samples.

[0069] Specifically, for each patient, after obtaining the corresponding sample spectral data, about 5 ml of gastric juice of the patient is extracted using a gastroscopic forceps catheter, and the bile acid concentration value in the gastric juice is measured as the actual value of the sample bile acid concentration.

[0070] In a possible implementation, all sample sets are optimized for a support vector regression function to obtain a bile acid concentration assessment model.

[0071] In another possible implementation, all sample sets are divided into multiple subsets, and the support vector regression function is optimized for each subset to obtain multiple bile acid concentration evaluation models, that is, each subset corresponds to a bile acid concentration evaluation model.

[0072] A plurality of bile acid concentration ranges are divided, each of which includes one or more actual bile acid concentration values, and the actual bile acid concentration values ​​within the bile acid concentration range and the sample spectral data corresponding to the actual bile acid concentration values ​​are taken as a training subset.

[0073] A plurality of spectral data ranges are divided, each spectral data range includes one or more sample spectral data, and the sample spectral data within the spectral data range and the actual value of the sample bile acid concentration corresponding to the sample spectral data are taken as a training subset.

[0074] S202 , inputting the sample spectral data into a support vector regression function to obtain an estimated value of bile acid concentration corresponding to the sample spectral data.

[0075] In the embodiment of the present application, the bile acid concentration evaluation model adopts a support vector regression function, and its model function is shown in formula (1).

[0076] Among them, the kernel function φ(x) is the mapping of sample data from low dimension to high dimension, which maps the original sample data to high-dimensional space and makes the sample linear in high-dimensional space, thereby realizing the linear regression relationship.

[0077] S203, constructing a loss function and constraint conditions for a bile acid concentration assessment model, wherein the loss function is composed of a tolerance deviation and a slack variable, and the constraint conditions include: when the error between the estimated value of the bile acid concentration corresponding to the sample spectral data and the actual value of the sample bile acid concentration exceeds the tolerance deviation, penalizing the slack variable.

[0078] In the support vector regression method, a tolerance deviation with a spacing of ε is created on both sides of the linear function of the support vector regression. Errors within this range are not calculated for loss. Only samples that fall outside the insensitive area participate in the loss calculation. The model optimization process tends to make the errors of all sample points fall within the tolerance deviation. And the slack variable is introduced to allow the error to increase to a certain extent.

[0079] Further, such as Figure 3 As shown in FIG. 1 , the linear function f(x) of support vector regression can create a tolerance deviation with a spacing of ε on both sides of the linear function as shown in straight line 1, that is, the range between the dotted line 1 represented by f(x)-ε and the dotted line 2 represented by f(x)+ε is the allowable error range. The sample data falling within the allowable error range is not calculated for loss, and only the sample data falling outside the allowable error range (insensitive area) is involved in the loss calculation.

[0080] In one possible implementation, the loss function is expressed by formula (3):

[0081]

[0082] Among them, C represents the regularization parameter, f(x i ) represents the estimated value of bile acid concentration corresponding to the spectral data of the i-th sample, y i Indicates the actual value of the sample bile acid concentration; l ε represents the insensitive error function;

[0083] The insensitive error function is expressed by formula (4):

[0084]

[0085] Among them, ε represents the tolerance deviation, x i Represents the spectral data of the i-th sample.

[0086] The meaning of the insensitive error function is: if the sample spectral data is less than the tolerance deviation ε, then the insensitive error function l ε The value of is 0. If the sample spectral data is greater than or equal to the tolerance deviation ε, the insensitive error function l ε The value is the difference between the absolute value of the sample spectrum data and the tolerance deviation.

[0087] S204, converting the loss function and the constraint conditions into an equation.

[0088] The above problem is converted into the calculation of optimizing the weight vector and bias term to make the sample error fall within the tolerance deviation ε as much as possible and minimize the overall error. The converted equation can be expressed by formula (5).

[0089]

[0090] The corresponding constraint condition can be expressed by formula (6):

[0091]

[0092] Among them, ξ i and is a slack variable.

[0093] S205. Solve the equation using the Lagrange multiplier method to obtain the optimal Lagrange multiplier.

[0094] Introducing the Lagrange multiplier α i and To construct the Lagrangian function, the Lagrangian function can be expressed by formula (7):

[0095]

[0096] The optimal solution is found by solving the Lagrangian dual problem. * Calculate the partial derivatives and set them to zero, then convert them to dual variables α i and The problem of solving.

[0097] The dual problem is usually a convex quadratic programming problem, which can be solved by related optimization software (such as SMO algorithm, interior point method, gradient descent method, etc.).

[0098] After solving the dual problem, we can get the optimal Lagrange multiplier α i and

[0099] S206. Calculate the weight vector and the bias term based on the optimal Lagrange multiplier.

[0100] Get the optimal Lagrange multiplier α i and After that, according to the KKT condition (Karush-Kuhn-Tucker condition), we can determine which training samples are support vectors, that is, those corresponding α i Samples with >0 are support vectors.

[0101] Finally, the weight vector can be calculated by formula (8).

[0102]

[0103] The bias term is calculated using formula (9).

[0104] b=y j -φ(x j )-ε(9)

[0105] Where j is an arbitrary support vector.

[0106] After the above process, the weight vector ω and the bias term b can be calculated. That is, the constant parameters in the above formula (1) are calculated. Since the weight vector ω and the bias term b are calculated by the sample spectral data and the actual value of the sample bile acid concentration. Therefore, the support vector regression function of formula (1) can represent the mathematical relationship between the bilirubin spectral data and the actual value of the bile acid concentration. After the target spectral data is input into the bile acid concentration evaluation model, the bile acid concentration evaluation model can output the estimated value of the bile acid concentration obtained by its evaluation, realizing the estimation of bile acid concentration using endoscopic detection technology, and realizing the quantitative analysis of bile acid concentration without collecting gastric mucus.

[0107] Figure 4 Schematic diagram of the structure of a bile acid concentration estimation device in an embodiment of the present application, such as Figure 4 As shown, the bile acid concentration estimation device 40 provided in the embodiment of the present application includes: a target spectrum data acquisition module 41 and a bile acid concentration estimation module 42.

[0108] Among them, the target spectral data acquisition module 41 is used to obtain the target spectral data of the detection area, wherein the target spectral data is obtained after the endoscopic detection device emits detection light to the detection area; the bile acid concentration estimation module 42 is used to input the target spectral data into a pre-trained bile acid concentration evaluation model to obtain the estimated value of the bile acid concentration in the detection area; wherein the sample set of the bile acid concentration evaluation model includes sample spectral data and actual values ​​of sample bile acid concentrations.

[0109] An embodiment of the present application provides a bile acid concentration estimation device, which is used to perform the following steps: obtaining target spectral data of a detection area, wherein the target spectral data is obtained after an endoscopic detection device emits detection light to the detection area; inputting the target spectral data into a pre-trained bile acid concentration estimation model to obtain an estimated value of the bile acid concentration in the detection area; wherein the bile acid concentration estimation model is trained by sample spectral data and actual values ​​of the sample bile acid concentration.

[0110] Since the bile acid concentration evaluation model is trained based on sample spectral data and actual values ​​of sample bile acid concentration, the bile acid concentration evaluation model can characterize the correlation between spectral data and bile acid concentration. After inputting the target spectral data into the bile acid concentration evaluation model, the bile acid concentration evaluation model can output the estimated value of bile acid concentration obtained by its evaluation, thereby realizing the estimation of bile acid concentration using endoscopic detection technology, and achieving quantitative analysis of bile acid concentration without collecting gastric mucus.

[0111] In one possible implementation, the target spectral data acquisition module 41 is used to acquire the target spectral data of the detection area, and is specifically used to acquire multiple original spectral data of the detection area under the detection light within a set band range; the multiple original spectral data are processed according to a set method to obtain the target spectral data; wherein the set method includes at least one of the following: mean calculation, standard deviation calculation, and mean square value calculation.

[0112] In one possible implementation, the target spectral data acquisition module 41 is used to obtain multiple original spectral data of the detection area under the detection light within a set band range, and is specifically used to divide the set band range into multiple band intervals; obtain the original spectral data corresponding to each band interval; wherein the set band range is determined by the spectral characteristics of bilirubin, and the reflux bile includes the bilirubin.

[0113] In a possible implementation, it also includes: a target model determination module, used to obtain the detection level corresponding to the target spectral data; select a target bile acid concentration evaluation model from the multiple bile acid concentration evaluation models based on the detection level; a bile acid concentration estimation module 42, specifically used to input the target spectral data into the target bile acid concentration evaluation model to obtain an estimated value of the bile acid concentration in the detection area.

[0114] In a possible implementation, the bile acid concentration estimation model includes a support vector regression function, and the support vector regression function is expressed by the following formula:

[0115] f(x)=ω T φ(x)+b

[0116] Wherein, x represents spectral data, φ(x) represents a function that maps the spectral data x to a high-dimensional space, f(x) represents an estimated value of bile acid concentration corresponding to the spectral data x, ω represents a weight vector of the support vector regression function, and b represents a bias term of the support vector regression function.

[0117] In one possible implementation, a model optimization module is used to obtain a sample set, which includes sample spectral data and actual values ​​of sample bile acid concentration; input the sample spectral data into the support vector regression function to obtain an estimated value of bile acid concentration corresponding to the sample spectral data; construct a loss function and constraints of the bile acid concentration assessment model, wherein the loss function consists of a tolerance deviation and a slack variable, and the constraints include: when the error between the estimated value of bile acid concentration corresponding to the sample spectral data and the actual value of the sample bile acid concentration exceeds the tolerance deviation, penalizing the slack variable; converting the loss function and the constraints into an equation; solving the equation using a Lagrangian multiplier method to obtain an optimal Lagrangian multiplier; and calculating a weight vector and a bias term based on the optimal Lagrangian multiplier.

[0118] In a possible implementation, the loss function is expressed by the following formula:

[0119]

[0120] Among them, C represents the regularization parameter, f(x i ) represents the estimated value of bile acid concentration corresponding to the spectral data of the i-th sample, y i Indicates the actual value of the sample bile acid concentration; l ε represents the insensitive error function;

[0121] Among them, the insensitive error function is expressed by the following formula:

[0122]

[0123] Among them, ε represents the tolerance deviation, x i Represents the spectral data of the i-th sample.

[0124] The bile acid concentration estimation device provided in the embodiment of the present application can execute the bile acid concentration estimation method provided in any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the execution method.

[0125] Figure 5 is a schematic diagram of the structure of an electronic device provided in this embodiment. The electronic device may include a bile acid concentration estimation device, such as Figure 5As shown, the electronic device 500 includes a processor 510, a memory 520, an input device 530, and an output device 540; the number of the processor 510 in the electronic device can be one or more. Figure 5 A processor 510 is taken as an example; the processor 510, the memory 520, the input device 530 and the output device 540 in the electronic device can be connected via a bus or other means. Figure 5 The example of connecting through bus is taken in the following.

[0126] The memory 520, as a computer-readable storage medium, can be used to store software programs, computer executable programs and modules, such as program instructions / modules corresponding to the bile acid concentration estimation method in the embodiment of the present invention. The processor 510 executes various functional applications and data processing of the electronic device by running the software programs, instructions and modules stored in the memory 520, that is, implements the bile acid concentration estimation method provided in the embodiment of the present invention.

[0127] The memory 520 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system and at least one application required for a function; the data storage area may store data created according to the use of the terminal, etc. In addition, the memory 520 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other non-volatile solid-state storage device. In some instances, the memory 520 may further include a memory remotely arranged relative to the processor 510, and these remote memories may be connected to the electronic device via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0128] The input device 530 may be used to receive input digital or character information and generate key signal input related to user settings and function control of the electronic device, and may include a keyboard, a mouse, etc. The output device 540 may include a display device such as a display screen.

[0129] This embodiment also provides a storage medium containing computer executable instructions, which, when executed by a computer processor, are used to implement the bile acid concentration estimation method provided by the embodiment of the present invention.

[0130] Of course, the computer executable instructions of a storage medium including computer executable instructions provided in an embodiment of the present invention are not limited to the operations of the method described above, and can also execute related operations in the bile acid concentration estimation method provided in any embodiment of the present invention.

[0131] Through the above description of the implementation methods, the technicians in the relevant field can clearly understand that the present invention can be implemented by means of software and necessary general hardware, and of course it can also be implemented by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as a computer floppy disk, read-only memory (ROM), random access memory (RAM), flash memory (FLASH), hard disk or optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, server, or network device, etc.) to execute the methods described in each embodiment of the present invention.

[0132] It is worth noting that in the embodiment of the above-mentioned search device, the various units and modules included are only divided according to functional logic, but are not limited to the above-mentioned division, as long as the corresponding functions can be achieved; in addition, the specific names of the functional units are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of the present invention.

[0133] It should be noted that, in this article, relational terms such as "first" and "second" are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.

[0134] The above description is only a specific implementation of the present application, so that those skilled in the art can understand or implement the present application. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein can be implemented in other embodiments without departing from the spirit or scope of the present application. Therefore, the present application will not be limited to the embodiments described herein, but will conform to the widest scope consistent with the principles and novel features disclosed herein.

Claims

1. A method for estimating bile acid concentration, characterized in that: The method comprises: Acquiring target spectrum data of the detection area, wherein the target spectrum data is obtained after the endoscope detection device emits detection light to the detection area; Inputting the target spectral data into a pre-trained bile acid concentration assessment model to obtain an estimated value of the bile acid concentration in the detection area; The bile acid concentration evaluation model is trained by sample spectral data and actual values ​​of sample bile acid concentration.

2. The method according to claim 1, characterized in that The step of acquiring target spectrum data of the detection area includes: Acquire multiple original spectral data of the detection area under the detection light within the set wavelength band; Processing a plurality of original spectral data according to a set method to obtain target spectral data; The setting method includes at least one of the following: mean value calculation, standard deviation calculation, and mean square value calculation.

3. The method according to claim 2, characterized in that The step of acquiring a plurality of original spectral data of the detection area under the detection light within the set wavelength range includes: Dividing the set band range into a plurality of band intervals; Obtain the original spectral data corresponding to each band interval; The set wavelength range is determined by the spectrum characteristics of bilirubin, and the reflux bile includes the bilirubin.

4. The method according to claim 1, characterized in that: Also includes: Obtaining a detection level corresponding to the target spectral data; selecting a target bile acid concentration evaluation model from the plurality of bile acid concentration evaluation models based on the detection level; Inputting the target spectral data into a pre-trained bile acid concentration assessment model to obtain an estimated value of the bile acid concentration in the detection area includes: The target spectral data is input into the target bile acid concentration evaluation model to obtain an estimated value of the bile acid concentration in the detection area.

5. The method according to claim 4, characterized in that The bile acid concentration evaluation model includes a support vector regression function, which is expressed by the following formula: f(x)=ω T φ(x)+b Wherein, x represents spectral data, φ(x) represents a function that maps the spectral data x to a high-dimensional space, f(x) represents an estimated value of bile acid concentration corresponding to the spectral data x, ω represents a weight vector of the support vector regression function, and b represents a bias term of the support vector regression function.

6. The method according to claim 5, characterized in that The step of determining the weight vector and the bias term of the bile acid concentration assessment model comprises: Acquire a sample set, wherein the sample set includes sample spectral data and actual values ​​of sample bile acid concentrations; Inputting the sample spectral data into the support vector regression function to obtain an estimated value of bile acid concentration corresponding to the sample spectral data; Constructing a loss function and constraint conditions of the bile acid concentration evaluation model, wherein the loss function is composed of a tolerance deviation and a slack variable, and the constraint conditions include: when the error between the estimated value of the bile acid concentration corresponding to the sample spectral data and the actual value of the sample bile acid concentration exceeds the tolerance deviation, penalizing the slack variable; Converting the loss function and the constraints into an equation; Solving the equation using the Lagrange multiplier method to obtain the optimal Lagrange multiplier; A weight vector and a bias term are calculated based on the optimal Lagrangian multiplier.

7. The method according to claim 6, characterized in that The loss function is expressed by the following formula: Among them, C represents the regularization parameter, f(x i ) represents the estimated value of bile acid concentration corresponding to the spectral data of the i-th sample, y i Indicates the actual value of the sample bile acid concentration; l ε represents the insensitive error function; Among them, the insensitive error function is expressed by the following formula: Among them, ε represents the tolerance deviation, x i Represents the spectral data of the i-th sample.

8. A bile acid concentration estimation device, characterized in that: The device comprises: A target spectrum data acquisition module, used to acquire target spectrum data of the detection area, wherein the target spectrum data is obtained after the endoscope detection device emits detection light to the detection area; A bile acid concentration estimation module, used for inputting the target spectrum data into a pre-trained bile acid concentration assessment model to obtain an estimated value of the bile acid concentration in the detection area; The sample set of the bile acid concentration evaluation model includes sample spectral data and actual values ​​of sample bile acid concentrations.

9. An electronic device, characterized in that: The electronic device comprises: one or more processors; A storage device for storing one or more programs; When the one or more programs are executed by the one or more processors, the one or more processors implement the bile acid concentration estimation method according to any one of claims 1 to 7.

10. A storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the bile acid concentration estimation method according to any one of claims 1 to 7 is implemented.

Citation Information

Cited By

  • Spinal malformation orthopedic prediction method based on artificial intelligence

    CN119905277A