Cell membrane image segmentation model training method and device, equipment and storage medium

By constructing a triangular network and image conversion model, a training data set is automatically generated, which solves the problem of low manual annotation efficiency in cell membrane image segmentation model training, and achieves efficient and low-cost model training.

CN118570220APending Publication Date: 2024-08-30XIAN JIAOTONG LIVERPOOL UNIV
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410596073.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-14
Publication Date
2024-08-30

AI Technical Summary

Technical Problem

In the existing technology, the training data set of the cell membrane image segmentation model needs to be manually annotated, resulting in low efficiency and high labor cost, making it difficult to meet the needs of high-quality model training.

Method used

By randomly generating target generation points, constructing a triangular network, generating connection curve structure images, and using image conversion model processing to obtain forged images, forming a paired data set, automatically training the initial cell membrane image segmentation model, reducing dependence on manual annotation.

Benefits of technology

It improves the training efficiency of the cell membrane image segmentation model and reduces labor costs. The generated curve structure images and forged images do not require manual annotation, which greatly improves the training efficiency and reduces manual participation.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118570220A
    Figure CN118570220A
Patent Text Reader

Abstract

The invention relates to the technical field of image processing, in particular to a cell membrane image segmentation model training method and device, equipment and a storage medium, and the method comprises the steps: randomly generating a preset number of target generation points to obtain a target point set, and generating a triangular network based on the target point set; generating a connection curve based on the triangular network, and adjusting the connection curve to generate a curve structure image; processing the curve structure image based on a preset image conversion model to obtain a forged image; generating a pairing data set based on the curve structure image and the forged image, and training a preset initial cell membrane image segmentation model based on the pairing data set to obtain a target cell membrane image segmentation model; the efficiency of training the cell membrane image segmentation model is improved, and the labor cost is reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of image processing technology, and in particular to a cell membrane image segmentation model training method, device, equipment and storage medium. Background Art

[0002] In the process of immunohistochemistry (IHC) image analysis, a cell membrane image segmentation model is required to segment multiple cell membranes in the cell membrane image. As quantitative assessment of cell membrane activity in IHC images becomes standard practice, the demand for trained high-quality cell membrane image segmentation models is increasing.

[0003] At present, the method for training the cell membrane image segmentation model is: personnel with professional knowledge in the field of cell membrane image segmentation manually and accurately annotate a large number of cell membrane images to obtain a segmentation model training data set, and then train the initial cell membrane image segmentation model with the segmentation model training data set to obtain a trained cell membrane image segmentation model.

[0004] However, since the output of the segmentation model training data set is obtained by manually and accurately annotating a large number of cell membrane images by personnel with professional knowledge in the field of cell membrane image segmentation, the efficiency of obtaining the segmentation model training data set is low and the labor cost is high, which leads to low efficiency and high labor cost in training the cell membrane image segmentation model. Summary of the invention

[0005] In order to improve the efficiency of training a cell membrane image segmentation model and reduce labor costs, the embodiments of the present application provide a cell membrane image segmentation model training method, device, equipment and storage medium.

[0006] In a first aspect, an embodiment of the present application provides a cell membrane image segmentation model training method, comprising:

[0007] Randomly generate a preset number of target generation points to obtain a target point set, and generate a triangulated network based on the target point set;

[0008] Generate a connection curve based on the triangulated network, and adjust the connection curve to generate a curve structure image;

[0009] Processing the curve structure image based on a preset image conversion model to obtain a forged image;

[0010] A paired data set is generated based on the curve structure image and the forged image, and a preset initial cell membrane image segmentation model is trained based on the paired data set to obtain a target cell membrane image segmentation model.

[0011] In a second aspect, an embodiment of the present application provides a cell membrane image segmentation model training device, comprising:

[0012] A triangulated network generation module, used for randomly generating a preset number of target generation points to obtain a target point set, and generating a triangulated network based on the target point set;

[0013] A cell membrane structure image generation module, used to generate a connection curve based on the triangular network, and adjust the connection curve to generate a curve structure image;

[0014] A cell membrane forged image generation module, used for processing the curve structure image based on a preset image conversion model to obtain a forged image;

[0015] The cell membrane image segmentation model training module is used to generate a paired data set based on the curve structure image and the forged image, and train a preset initial cell membrane image segmentation model based on the paired data set to obtain a target cell membrane image segmentation model.

[0016] In a third aspect, an embodiment of the present application provides a computer device, the computer device comprising a memory and a processor, the memory storing a computer program, and the processor implementing the steps in the above method when executing the computer program.

[0017] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium having a computer program stored thereon, which implements the steps in the above-mentioned method when executed by a processor.

[0018] In a fifth aspect, the embodiments of the present application further provide a computer program product, wherein the computer program product includes a computer program, and when the computer program is executed by a processor, the steps in any of the above method embodiments are implemented.

[0019] The embodiments of the above-mentioned cell membrane image segmentation model training method, device, equipment and storage medium randomly generate a preset number of target generation points to obtain a target point set, and generate a triangular network based on the target point set; generate a connection curve based on the triangular network, and adjust the connection curve to generate a curve structure image; process the curve structure image based on a preset image conversion model to obtain a forged image; generate a paired data set based on the curve structure image and the forged image, and train a preset initial cell membrane image segmentation model based on the paired data set to obtain a target cell membrane image segmentation model; through the implementation of the above-mentioned embodiments, the generated curve structure image and the forged image can be used as a training set for training the initial cell membrane image segmentation model, and the process of generating the curve structure image and the forged image does not require personnel with professional knowledge in the field of cell membrane image segmentation to manually and accurately annotate a large number of cell membrane images, which greatly reduces the components of manual participation and has higher generation efficiency, thereby facilitating improving the efficiency of training the cell membrane image segmentation model and reducing labor costs.

[0020] It should be understood that the content described in this section is not intended to identify the key or important features of the embodiments of the present application, nor is it intended to limit the scope of the present application. Other features of the present application will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS

[0021] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for use in the embodiments are briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present invention and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without creative work.

[0022] Figure 1 This is a diagram of the application environment of the cell membrane image segmentation model training method in one embodiment of the present application;

[0023] Figure 2 A flow chart of a cell membrane image segmentation model training method provided in Example 1 of the present application;

[0024] Figure 3 This is a schematic diagram of the distribution of initial generation points on a plane area in Example 1 of the present application;

[0025] Figure 4 This is a schematic diagram of a triangular network in Example 1 of the present application;

[0026] Figure 5 It is a schematic diagram of multiple connection curves in Example 1 of the present application;

[0027] Figure 6 A schematic diagram of a curve structure image in Example 1 of the present application;

[0028] Figure 7 This is a schematic diagram of a forged image in Example 1 of the present application;

[0029] Figure 8 A flow chart of a cell membrane image segmentation model training method provided in Example 2 of the present application;

[0030] Fig. 9 A flow chart of a cell membrane image segmentation model training method provided in Example 3 of the present application;

[0031] Fig.10 A flow chart of a cell membrane image segmentation model training method provided in Example 4 of the present application;

[0032] Fig.11 A flow chart of a cell membrane image segmentation model training method provided in Example 5 of the present application;

[0033] Fig.12A flow chart of a cell membrane image segmentation model training method provided in Example 6 of the present application;

[0034] Fig.13 A schematic diagram of the structure of a cell membrane image segmentation model training device provided in one embodiment of the present application;

[0035] Fig.14 A schematic diagram of the structure of a computer device provided in one embodiment of the present application;

[0036] Fig.15 An internal structure diagram of a computer-readable storage medium provided in one embodiment of the present application. DETAILED DESCRIPTION

[0037] In order to make the purpose, technical solution and advantages of the present disclosure more clear, the present disclosure is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present disclosure and are not used to limit the present disclosure.

[0038] It should be noted that the terms "first", "second", etc. in the specification and claims of this article and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of this article described here can be implemented in an order other than those illustrated or described here. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, device, product or equipment that includes a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or equipment.

[0039] In this article, the term "and / or" is only a description of the association relationship between related objects, indicating that there can be three relationships. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character " / " in this article generally indicates that the related objects before and after are in an "or" relationship.

[0040] To solve the above problems, the present disclosure provides a cell membrane image segmentation model training method, which can be applied to Figure 1In the application environment shown. Among them, the terminal 102 communicates with the server 104 through the network. The data storage system can store the data that the server 104 needs to process. The data storage system can be integrated on the server 104, or it can be placed on the cloud or other network servers. Among them, the terminal 102 can be but is not limited to various personal computers, laptops, smart phones, tablets, Internet of Things devices and portable wearable devices. The Internet of Things devices can be smart speakers, smart TVs, smart air conditioners, smart car-mounted devices, etc. Portable wearable devices can be smart watches, smart bracelets, head-mounted devices, etc. The server 104 can be implemented with an independent server or a server cluster consisting of multiple servers.

[0041] Embodiment 1

[0042] Figure 2 A flow chart of a cell membrane image segmentation model training method provided in Example 1 of the present application, refer to Figure 2 The method may be performed by a device for performing the method, and the device may be implemented by software and / or hardware. The method includes:

[0043] S110 , randomly generating a preset number of target generation points to obtain a target point set, and generating a triangulated network based on the target point set.

[0044] The target generation points are generated based on a preset plane area division model, and the plane area division model is used to receive a preset number of inputs, and then generate a preset number of target generation points in the preset plane area, and the coordinates of each target generation point are random; the target point set is a set of coordinates of the preset number of target generation points, such as Figure 3 As shown; each generating point and two other adjacent generating points can form three corner points of a triangle, and the lines between the three corner points can form a triangle. In this way, multiple triangles can be formed in the plane area. The triangular network is composed of multiple triangles, such as Figure 4 shown.

[0045] Specifically, a preset number is input into the preset plane area division model, and illustratively, the preset number is an arbitrary integer between 90 and 120; the plane area division model generates a preset number of target generation points in the preset plane area, and the preset number of target generation points constitute a target point set, such as Figure 3 As shown; further, each target generating point in the target point set is determined, and taking one of the target generating points as an example, two other target generating points adjacent to the target generating point are further determined as the three corner points of the triangle, and then the three corner points are interconnected in pairs to form a triangle corresponding to the target generating point; each target generating point in the target point set generates a corresponding triangle, thereby obtaining multiple triangles, and the multiple triangles together constitute a triangular network, as shown Figure 4 shown.

[0046] S120 , generating a connection curve based on the triangulated network, and adjusting the connection curve to generate a curve structure image.

[0047] The triangular network includes multiple triangles, each of which has its corresponding circumcenter; two circumcenters are connected by a smooth curve, and the smooth curve can be determined by the two circumcenters connected by them; it should be noted that the purpose of using the smooth curve is to facilitate the simulation of part of the edge of the real cell membrane through the smooth curve; in this embodiment, the above-mentioned smooth curve is recorded as a connecting curve; multiple connecting curves are connected end to end in sequence to enclose the entire simulated edge of the cell membrane, such as Figure 5 As shown; it should be noted that the membrane thickness at different positions of the real cell membrane is different. On the same cell membrane, the membrane is slightly thicker at some positions and slightly thinner at some positions. In order to simulate the membrane thickness of the real cell membrane through the connection curve, the thickness of the connection curve needs to be randomly adjusted, such as Figure 6 shown.

[0048] Specifically, the circumcenter of each triangle in the triangular network is determined. Taking two triangles as an example, a connection curve for connecting the two circumcenters is determined according to the coordinates of the circumcenters of the two triangles. Then, the corresponding two circumcenters are connected through the connection curve. Through the above steps, multiple connection curves can be generated. The corresponding image is as follows: Figure 5 As shown, Figure 5 The image shown can preliminarily simulate the cell membrane edge image; further, by adjusting the thickness of each connecting curve, a curve structure image can be obtained, and the curve structure image can simulate a more realistic cell membrane edge image, such as Figure 6 shown.

[0049] S130 , processing the curve structure image based on a preset image conversion model to obtain a forged image.

[0050] The image conversion model is a preset model, which is used to process the curve structure image into a cell membrane image close to that observed by the human eye, such as Figure 7 As shown in FIG. 1 , the forged image is a cell membrane image close to that observed by the human eye generated by the image conversion model after processing the curve structure image. Exemplarily, the image conversion model may be CycleGAN, Pix2Pix, etc.

[0051] Specifically, the curve structure image is input into the image conversion model for processing, and the image conversion model outputs a forged image corresponding to the curve structure image.

[0052] S140, generating a paired data set based on the curve structure image and the forged image, and training a preset initial cell membrane image segmentation model based on the paired data set to obtain a target cell membrane image segmentation model.

[0053] Among them, the curve structure image and the forged image generated based on the curve structure image are a set of corresponding paired data; multiple sets of paired data can be obtained by repeating the above steps; the paired data set is a collection of multiple sets of paired data, and the paired data set can be used as a training set for a preset initial cell membrane image segmentation model. The initial cell membrane image segmentation model is a preset untrained cell membrane image segmentation model, which can be trained by the paired data set to generate a trained cell membrane image segmentation model, and the target cell membrane image segmentation model is also a trained cell membrane image segmentation model.

[0054] Specifically, multiple groups of paired data are obtained by repeating steps S110-S130, wherein each group of paired data includes a curve structure image and a forged image corresponding to the curve structure image, and then the multiple groups of paired data are combined to obtain a paired data set. Furthermore, a preset initial cell membrane image segmentation model is trained according to the paired data set to obtain a target cell membrane image segmentation model.

[0055] It should be noted that, through the implementation of this embodiment, the generated curved structure images and forged images can be used as training sets for training the initial cell membrane image segmentation model. The process of generating curved structure images and forged images does not require personnel with professional knowledge in the field of cell membrane image segmentation to manually and accurately annotate a large number of cell membrane images, which greatly reduces the component of manual participation and has higher generation efficiency. This makes it easy to improve the efficiency of training the cell membrane image segmentation model and reduce labor costs.

[0056] Embodiment 2

[0057] Figure 8 A flow chart of a cell membrane image segmentation model training method provided in Example 2 of this application, refer to Figure 8 The method optimizes the “generating a connection curve based on the triangular network” in the first embodiment, wherein the triangular network includes a plurality of triangles, each of which has a common side triangle with a common side; the method includes:

[0058] S210 , randomly generating a preset number of target generation points to obtain a target point set, and generating a triangulated network based on the target point set.

[0059] S221. Obtain the circumcenter of the triangle to obtain a first circumcenter, and also obtain the circumcenter of the colateral triangle to obtain a second circumcenter.

[0060] Among them, taking a triangle in a triangular network as an example, there is at least one colateral triangle with a common side in the triangular network. Taking the triangle and one of the colateral triangles of the triangle as an example; the circumcenter of the triangle is recorded as the first circumcenter p1 (x1, y1), and the circumcenter of the colateral triangle is recorded as the second circumcenter p2 (x2, y2).

[0061] Specifically, this embodiment takes one of the triangles in a triangular network and one of the colateral triangles of the triangle as an example; first, a triangle is determined from the triangular network, and then the circumcenter of the triangle is determined to be the first circumcenter p1 (x1, y1), and then one of the colateral triangles of the triangle is further determined, and the circumcenter of the colateral triangle is determined to be the second circumcenter p2 (x2, y2).

[0062] S222. Calculate a connection curve equation based on the first circumcenter and the second circumcenter.

[0063] The curve equation is established based on the second circumcenter and the second circumcenter, and the curve corresponding to the curve equation is used to connect the first circumcenter and the second circumcenter; in this embodiment, the curve equation is preferably a quadratic curve equation, and the expression of the quadratic curve equation is: y=ax 2 +bx+c; the parameters a, b, c in the quadratic curve equation are determined based on the second circumcenter and the second circumcenter.

[0064] Specifically,

[0065] The steps to determine the quadratic term parameter a are: determine whether x1 and x2 are equal; if they are equal, then a = 0; if they are not equal, then

[0066] The steps to determine the parameter b of the quadratic term are: b = -2ax1;

[0067] The steps to determine the constant term parameter c are: c = y1-ax1 2 -bx1;

[0068] Further, the quadratic term parameter a, the quadratic term parameter b, and the constant term parameter c are substituted into the quadratic curve equation y=ax 2 +bx+c, and thus the equation of the connecting curve is calculated.

[0069] S223: Generate a connection curve connecting the first circumcenter and the second circumcenter based on the connection curve equation.

[0070] The equation curve corresponding to the connection curve equation passes through the first circumcenter and the second circumcenter, and the connection curve is the portion of the equation curve that is only between the first circumcenter and the second circumcenter.

[0071] Specifically, a curve equation is first generated to generate an equation curve passing through the first circumcenter and the second circumcenter, and then only the portion of the equation curve between the first circumcenter and the second circumcenter is taken as a connecting curve, with one end of the connecting curve located at the first circumcenter and the other end located at the second circumcenter.

[0072] It should be noted that the purpose of generating the connection curve is to use the connection curve to simulate the edge of the cell membrane in the curved structure image. Since the connection curve has smoothness and continuity, it fits the shape characteristics of the cell membrane edge very well. Therefore, the connection curve can simulate a more realistic cell membrane edge in the curved structure image.

[0073] S224: Adjust the connection curve to generate a curve structure image.

[0074] S230 , processing the curve structure image based on a preset image conversion model to obtain a forged image.

[0075] S240, generating a paired data set based on the curve structure image and the forged image, and training a preset initial cell membrane image segmentation model based on the paired data set to obtain a target cell membrane image segmentation model.

[0076] Embodiment 3

[0077] Fig. 9 A flow chart of a cell membrane image segmentation model training method provided in Example 3 of this application, refer to Fig. 9 The method optimizes "adjusting the connection curve to generate a curve structure image" in the first embodiment, and the method includes:

[0078] S310. Randomly generate a preset number of target generation points to obtain a target point set, and generate a triangulated network based on the target point set.

[0079] S321. Generate a connection curve based on the triangulated network.

[0080] S322: Randomly select a curve width of the connecting curve based on a preset curve width range.

[0081] Among them, the curve width range is a preset range, which is used to provide a setting basis for setting the curve width of the connecting curve. In this embodiment, the curve width range is preferably 1Pixel-5Pixel; it should be noted that the connecting curve is used to simulate the edge of the cell membrane in the curve structure image. The thickness of the actual cell membrane surface is different. By randomly setting the curve width of the connecting curve, it is convenient to simulate the state of different thickness of the cell membrane surface, thereby making it easier to make the subsequently generated curve structure image closer to the image of the actual cell membrane edge.

[0082] Specifically, a corresponding curve width is randomly selected from the curve width range for each connecting curve, so that the randomly selected curve width is subsequently used as the curve width of the corresponding connecting curve.

[0083] S323. Set the edge retention rate of the cell membrane edge curve composed of the connected curves.

[0084] Among them, multiple connecting curves can be combined end to end in sequence to form a cell membrane edge curve; it should be noted that when the cell membrane is manually detected and observed, a colored reagent is generally used to stain the cells, so that the cell membrane is colored, so as to facilitate the detection and observation of the cell membrane; however, during staining, there may be some areas of the cell membrane that are not successfully stained, and the cell membrane edge corresponding to the unsuccessful stained area is difficult to detect and observe. In order to simulate the real display characteristics of the cell membrane edge, this embodiment can set the edge retention rate of the cell membrane edge curve composed of the connecting curves; the edge retention rate represents the edge retention rate of the corresponding cell membrane edge curve on the curve structure image; in this embodiment, the edge retention rate is preferably 80%; illustratively, taking one of the cell membrane edge curves as an example, assuming that the edge retention rate of the cell membrane edge curve is set to 80%, then in the subsequent curve structure image, the cell membrane edge curve only retains 80% of its curve portion, and the remaining 20% ​​of the curve portion is eliminated, thereby achieving a realistic simulation of the real display characteristics of the cell membrane edge.

[0085] Specifically, the edge retention rate of the cell membrane edge curve is set; preferably, the edge retention rate of the cell membrane edge curve is set to 80%.

[0086] S324: Adjust the connection curve based on the curve width and the edge retention rate to obtain a curve structure image.

[0087] S330 , processing the curve structure image based on a preset image conversion model to obtain a forged image.

[0088] S340, generating a paired data set based on the curve structure image and the forged image, and training a preset initial cell membrane image segmentation model based on the paired data set to obtain a target cell membrane image segmentation model.

[0089] Embodiment 4

[0090] Fig.10 A flow chart of a cell membrane image segmentation model training method provided in Example 4 of the present application, refer to Fig.10 The method optimizes the "adjusting the connection curve based on the curve width and the edge retention rate to obtain a curve structure image" in the third embodiment, and the method includes:

[0091] S410 , randomly generating a preset number of target generation points to obtain a target point set, and generating a triangulated network based on the target point set.

[0092] S421. Generate a connection curve based on the triangulated network.

[0093] S422: Randomly select a curve width of the connecting curve based on a preset curve width range.

[0094] S423. Set the edge retention rate of the cell membrane edge curve formed by connecting the curves.

[0095] S424A: adjusting the curve width of the corresponding connecting curve based on the curve width to obtain a width-adjusted curve.

[0096] The width-adjusted curve is a connection curve whose curve width is set to a randomly selected curve width.

[0097] Specifically, the curve width of the corresponding connection curve is adjusted according to the curve width randomly selected from the curve width range to obtain the width-adjusted curve.

[0098] S424B, the combined width-adjusted curves form the cell membrane edge curve.

[0099] Among them, the cell membrane edge curve is used to simulate the cell membrane edge.

[0100] Specifically, the first positions of multiple width-adjusted curves are sequentially combined and connected to obtain a cell membrane edge curve.

[0101] S424C, adjusting the cell membrane edge curve based on the edge retention rate to obtain a curve structure image.

[0102] Specifically, each cell membrane edge curve is partially eliminated and adjusted based on the set edge retention rate, and the multiple cell membrane edge curves after the partial elimination and adjustment constitute a curve structure image.

[0103] S430: Processing the curve structure image based on a preset image conversion model to obtain a forged image.

[0104] S440, generating a paired data set based on the curve structure image and the forged image, and training a preset initial cell membrane image segmentation model based on the paired data set to obtain a target cell membrane image segmentation model.

[0105] Embodiment 5

[0106] Fig.11 A flow chart of a cell membrane image segmentation model training method provided in Example 5 of the present application, refer to Fig.11The method optimizes the “processing the curve structure image based on a preset image conversion model to obtain a forged image” in the first embodiment. In this embodiment, the image conversion model is CycleGAN; the method includes:

[0107] S510. Randomly generate a preset number of target generation points to obtain a target point set, and generate a triangulated network based on the target point set.

[0108] S520: Generate a connection curve based on the triangulated network, and adjust the connection curve to generate a curve structure image.

[0109] S530 , processing the curve structure image based on CycleGAN to obtain a forged image.

[0110] Among them, in this embodiment, the image conversion model is preferably CycleGAN, wherein the forged image is the image output after CycleGAN processes the curve structure image, and the forged image has a color and texture similar to the real cell membrane image, which is very close to the real cell membrane image.

[0111] Specifically, the curve structure image is input into CycleGAN for processing, and then CycleGAN outputs a forged image.

[0112] It should be noted that a curve structure image and an image based on the curve structure have a pairing relationship, which is a group of corresponding paired images; by generating a group of paired images, it is convenient to subsequently train a preset initial cell membrane image segmentation model.

[0113] S540: Generate a paired data set based on the curve structure image and the forged image, and train a preset initial cell membrane image segmentation model based on the paired data set to obtain a target cell membrane image segmentation model.

[0114] Embodiment 6

[0115] Fig.12 A flow chart of a cell membrane image segmentation model training method provided in Example 6 of the present application, refer to Fig.12 The method optimizes the "randomly generating a preset number of target generation points to obtain a target point set" in the first embodiment, and the method includes:

[0116] S611, obtaining a preset number of initial generation points randomly generated by the Voronoi diagram algorithm model based on a preset number of inputs.

[0117] The Voronoi diagram algorithm model is a preset algorithm model, and the Voronoi diagram algorithm model is used to generate a preset number of initial generation points according to a preset number of inputs therein.

[0118] Specifically, a preset number is input into the Voronoi diagram algorithm model. In this embodiment, the preset number is preferably a value between 90 and 120; the Voronoi diagram algorithm model outputs a preset number of initial generation points in a preset plane area, and the positions of the initial generation points are randomly generated.

[0119] S612. Randomly add Gaussian noise to each initial generation point to obtain a corresponding target generation point, and combine the target generation points to obtain a target point set.

[0120] Among them, since the initial generation points are randomly generated, that is, there may be two initial generation points with the same position in the plane area, which will cause the number of initial generation points to be less than the preset number; to solve this problem, random Gaussian noise can be added to each initial generation point, thereby greatly reducing the probability of the initial generation points appearing in the same position; the target generation point is the initial generation point after randomly adding Gaussian noise, and the target point set is the set of each target generation point.

[0121] Specifically, this embodiment presets a set of Gaussian noise data {n1, n2, ..., n i}, where i represents the i-th Gaussian noise data; taking one of the initial generation points as an example, assuming that the coordinates of the initial generation point are (x0, y0), the target generation point obtained by adding Gaussian noise to the coordinates of the initial generation point is (x0+n x ,y0+n y ), where n x 、n y are all random values ​​in the above-mentioned set of Gaussian noise data; based on the above steps, a preset number of target generation points are obtained, and the target generation points are collected to obtain a target point set.

[0122] It should be noted that by randomly adding Gaussian noise to the initial generation points, the probability of the initial generation points appearing at the same position can be greatly reduced, and the natural disturbance of the cell membrane can be simulated.

[0123] S613: Generate a triangulated network based on the target point set.

[0124] S620: Generate a connection curve based on the triangulated network, and adjust the connection curve to generate a curve structure image.

[0125] S630: Process the curve structure image based on a preset image conversion model to obtain a forged image.

[0126] S640: Generate a paired data set based on the curve structure image and the forged image, and train a preset initial cell membrane image segmentation model based on the paired data set to obtain a target cell membrane image segmentation model.

[0127] It should be understood that, although the various steps in the flowcharts involved in the above-mentioned embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps does not have a strict order restriction, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above-mentioned embodiments can include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.

[0128] Based on the same inventive concept, the disclosed embodiment also provides a cell membrane image segmentation model training device for implementing the cell membrane image segmentation model training method involved above. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme recorded in the above method, so the specific limitations in one or more cell membrane image segmentation model training device embodiments provided below can refer to the limitations of the cell membrane image segmentation model training method above, and will not be repeated here.

[0129] In one embodiment, Fig.13 As shown, a cell membrane image segmentation model training device is provided, comprising:

[0130] A triangulated network generation module, used for randomly generating a preset number of target generation points to obtain a target point set, and generating a triangulated network based on the target point set;

[0131] A cell membrane structure image generation module, used to generate a connection curve based on the triangular network, and adjust the connection curve to generate a curve structure image;

[0132] A cell membrane forged image generation module, used for processing the curve structure image based on a preset image conversion model to obtain a forged image;

[0133] The cell membrane image segmentation model training module is used to generate a paired data set based on the curve structure image and the forged image, and train a preset initial cell membrane image segmentation model based on the paired data set to obtain a target cell membrane image segmentation model.

[0134] It should be noted that, through the implementation of this embodiment, the generated curved structure images and forged images can be used as training sets for training the initial cell membrane image segmentation model. The process of generating curved structure images and forged images does not require personnel with professional knowledge in the field of cell membrane image segmentation to manually and accurately annotate a large number of cell membrane images, which greatly reduces the component of manual participation and has higher generation efficiency. This makes it easy to improve the efficiency of training the cell membrane image segmentation model and reduce labor costs.

[0135] Each module in the above-mentioned cell membrane image segmentation model training device can be implemented in whole or in part by software, hardware and a combination thereof. The above-mentioned modules can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory in the computer device in the form of software, so that the processor can call and execute the operations corresponding to the above modules.

[0136] In one embodiment, a computer device is provided. The computer device may be a server, and its internal structure diagram may be as follows: Fig.14 As shown. The computer device includes a processor, a memory and a network interface connected through a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store data. The network interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, a cell membrane image segmentation model training method is implemented.

[0137] Those skilled in the art will understand that Fig.14 The structure shown in the figure is only a block diagram of a part of the structure related to the scheme of the present disclosure, and does not constitute a limitation on the computer device to which the scheme of the present disclosure is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.

[0138] In one embodiment, a computer device is provided, including a memory and a processor, wherein a computer program is stored in the memory, and the processor implements the steps in the above-mentioned method embodiments when executing the computer program.

[0139] In one embodiment, a computer readable storage medium is provided. Fig.15 As shown, a computer program is stored thereon, and when the computer program is executed by a processor, the steps in the above-mentioned method embodiments are implemented.

[0140] In one embodiment, a computer program product is provided, including a computer program, which implements the steps in the above method embodiments when executed by a processor.

[0141] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this disclosure are all information and data authorized by the user or fully authorized by all parties.

[0142] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided by the present disclosure can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetoresistive random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided by the present disclosure may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited thereto. The processor involved in each embodiment provided by the present disclosure may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, etc., but are not limited thereto.

[0143] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0144] The above-described embodiments only express several implementation methods of the present disclosure, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present invention. It should be pointed out that, for a person of ordinary skill in the art, several modifications and improvements can be made without departing from the concept of the present disclosure, and these all belong to the protection scope of the present disclosure. Therefore, the protection scope of the present disclosure shall be subject to the attached claims.

Claims

1. A cell membrane image segmentation model training method, It is characterized in that include: Randomly generate a preset number of target generation points to obtain a target point set, and generate a triangulated network based on the target point set; Generate a connection curve based on the triangulated network, and adjust the connection curve to generate a curve structure image; Processing the curve structure image based on a preset image conversion model to obtain a forged image; A paired data set is generated based on the curve structure image and the forged image, and a preset initial cell membrane image segmentation model is trained based on the paired data set to obtain a target cell membrane image segmentation model.

2. The method according to claim 1, It is characterized in that The triangulated network includes a plurality of triangles, each of the triangles having a common side. The generating of the connection curve based on the triangulated network comprises: Get the circumcenter of the triangle to get the first circumcenter, and also get the circumcenter of the colateral triangle to get the second circumcenter; Calculate the connection curve equation based on the first circumcenter and the second circumcenter; A connection curve connecting the first circumcenter and the second circumcenter is generated based on the connection curve equation.

3. The method according to claim 1, It is characterized in that The step of adjusting the connection curve to generate a curve structure image includes: Randomly select the curve width of the connecting curve based on a preset curve width range; Set the edge retention rate of the cell membrane edge curve composed of connected curves; The connection curve is adjusted based on the curve width and the edge retention rate to obtain a curve structure image.

4. The method according to claim 3, It is characterized in that The step of adjusting the connection curve based on the curve width and the edge retention rate to obtain a curve structure image includes: Adjusting the curve width of the corresponding connecting curve based on the curve width to obtain a width-adjusted curve; The combined width-adjusted curves form the cell membrane edge curve; The cell membrane edge curve is adjusted based on the edge retention rate to obtain a curve structure image.

5. The method according to claim 1, It is characterized in that The image conversion model is CycleGAN; The step of processing the curve structure image based on a preset image conversion model to obtain a forged image includes: The curved structure image is processed based on CycleGAN to obtain a forged image.

6. The method according to claim 1, It is characterized in that The step of randomly generating a preset number of target generation points to obtain a target point set includes: Obtain a preset number of initial generation points randomly generated by the Voronoi diagram algorithm model based on a preset number of inputs; Gaussian noise is randomly added to each initial generation point to obtain the corresponding target generation point, and the target generation points are combined to obtain the target point set.

7. A cell membrane image segmentation model training device, It is characterized in that include: A triangulated network generation module, used for randomly generating a preset number of target generation points to obtain a target point set, and generating a triangulated network based on the target point set; A cell membrane structure image generation module, used to generate a connection curve based on the triangular network, and adjust the connection curve to generate a curve structure image; A cell membrane forged image generation module, used for processing the curve structure image based on a preset image conversion model to obtain a forged image; The cell membrane image segmentation model training module is used to generate a paired data set based on the curve structure image and the forged image, and train a preset initial cell membrane image segmentation model based on the paired data set to obtain a target cell membrane image segmentation model.

8. A computer device comprising a memory and a processor, wherein the memory stores a computer program. It is characterized in that When the processor executes the computer program, the steps of the method according to any one of claims 1 to 6 are implemented.

9. A computer-readable storage medium having a computer program stored thereon, It is characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.

10. A computer program product comprising a computer program, It is characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.