A method for staging rat testicular seminiferous tubules

The deep learning model is used to automatically identify and segment rat testicular seminiferous tubules on HE-stained sections, which solves the time-consuming and labor-intensive problem of manual staging in the existing technology, achieves fast and accurate automatic staging, and is suitable for batch operations.

CN118675171BActive Publication Date: 2024-10-29WESTCHINA-FRONTIER PHARMATECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202411095195.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-08-12
Publication Date
2024-10-29
Estimated Expiration
2044-08-12

AI Technical Summary

Technical Problem

The existing rat testicular seminiferous tubule staging method relies on manual operations, which is time-consuming and labor-intensive, and requires experienced diagnosticians. The automated model needs to identify a large number of cells, which is time-consuming.

Method used

Deep learning models (U-Net and DeepLabv3+) are used to automatically identify and segment seminiferous tubules on HE-stained sections, and automatic staging of seminiferous tubules is achieved through ROI segmentation and post-processing steps to reduce manual intervention.

Benefits of technology

It achieves rapid, accurate and automatic staging of rat testicular seminiferous tubules, is suitable for batch operations, reduces the experience requirements for diagnostic personnel, and improves work efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118675171B_ABST
    Figure CN118675171B_ABST
Patent Text Reader

Abstract

A rat testis seminiferous tubule staging method, relates to the field of image processing, and the steps are: scan testis staining slices; identify required testis tissue and convert it into ROI1; screen out seminiferous tubules close to circular, annular, and circular on ROI1; identify the screened seminiferous tubules as seminiferous tubules of different cycles, and output Stage1, Stage12‑13, and tubules that cannot be staged as ROI2, ROI3, and ROI4 respectively; call a nucleus recognition algorithm for nucleus recognition; the identified nucleus is divided into meiotic cells, and the seminiferous tubules with meiotic cell numbers greater than or equal to a preset value N in ROI2, ROI3, and ROI4 are classified as Stage14 tubules, and the number of seminiferous tubules and the total number of seminiferous tubules in each cycle are finally counted. The present invention can realize artificial intelligence of testis seminiferous tubule staging, and realize fast and accurate batch operation.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to the field of image processing, and in particular to a rat testicular seminiferous tubule staging method. Background Art

[0002] Reproductive toxicity testing is to evaluate the effects of test substances on mammalian reproduction and is an important step in the clinical research and marketing of drugs. The evaluation of the testicular spermatogenesis cycle plays an important role in the risk assessment of male reproductive toxicity and the study of drug mechanisms. Manual periodic evaluation is very labor-intensive and requires experienced diagnostic personnel to complete. Effective tools are urgently needed to break the development dilemma. Figure 1 Shows the characteristics of spermatogenesis cycle of rat testis.

[0003] The current manual staging method is that experienced pathologists observe under a microscope and stage each testicular seminiferous tubule according to its cellular and morphological characteristics. This method has the following disadvantages:

[0004] 1. The manual staging of seminiferous tubules by pathological diagnostic personnel is a huge workload and requires high experience of diagnostic personnel, which is not suitable for batch operation;

[0005] 2. Manual staging usually requires special stained sections (PAS);

[0006] 3. The existing artificial intelligence model for automatic staging of rat testicular seminiferous tubules mainly stages the tubules based on the characteristics of various types of spermatogenic cells in the tubules and their proportions. Such a model requires the identification of various spermatogenic cells first, and the number of cells is huge, and higher magnification images are required, so it is relatively time-consuming. Summary of the invention

[0007] Based on the above problems, the purpose of the present invention is to provide a method for staging and identifying rat testicular seminiferous tubules, so as to achieve the purpose of automatic staging of testicular seminiferous tubules on HE-stained sections.

[0008] The technical solution adopted by the present invention to achieve its invention object is a method for staging rat testicular seminiferous tubules, the steps of which include:

[0009] S1. Slice scanning: Use a digital slice scanner to scan rat testis HE-stained slices;

[0010] S2, testicular tissue identification: identifying the required cross-section testicular tissue on the stained slice and converting it into a first region of interest ROI1;

[0011] S3, identification and segmentation of seminiferous tubules: separate the seminiferous tubules on the first region of interest ROI1, select the required seminiferous tubules that are close to circular, annular, or quasi-circular and mark them accordingly, for example, mark them in blue for subsequent analysis, and mark the remaining seminiferous tubules as background, for example, mark them in green, and do not perform subsequent analysis;

[0012] S4, seminiferous tubule cycle identification: the screened seminiferous tubules close to circular, annular, and quasi-circular are identified and marked as seminiferous tubules of different cycles, and divided into Stage 1, Stage 2-3, Stage 4-5, Stage 6-7, Stage 8, Stage 9-10, Stage 11, Stage 12-13, and tubules that cannot be staged, and the Stage 1 tubules, Stage 12-13 tubules, and tubules that cannot be staged are output as the second region of interest ROI2, the third region of interest ROI3, and the fourth region of interest ROI4, respectively;

[0013] S5, cell nucleus identification: calling a cell nucleus identification algorithm on the second region of interest ROI2, the third region of interest ROI3, and the fourth region of interest ROI4 to perform cell nucleus identification, marking all the identified cell nuclei accordingly, for example, in blue, and marking the non-cell nucleus area as background, for example, in green;

[0014] S6, meiotic cell identification: the cell nuclei identified in step S5 are identified and divided, meiotic cells are marked in one way, and other cells are marked in another way, and seminiferous tubules with meiotic cell numbers greater than or equal to a preset value N in the second region of interest ROI2, the third region of interest ROI3, and the fourth region of interest ROI4 are classified as Stage 14 tubules, and seminiferous tubules with meiotic cell numbers less than the preset value N are kept as the original Stage 1 tubules, Stage 12-13 tubules, and tubules that cannot be staged, where N is a positive integer greater than 0;

[0015] S7. Result output: In the Stage1, Stage2-3, Stage4-5, Stage6-7, Stage8, Stage9-10, Stage11, Stage12-13, and tubules that cannot be staged division results obtained in step S4, Stage1 tubules, Stage12-13 tubules, and tubules that cannot be staged are replaced with Stage1 tubules, Stage12-13 tubules, and tubules that cannot be staged obtained in step S6, and then the Stage14 tubules obtained in step S6 are added to obtain the final Stage1, Stage 2-3, Stage 4-5, Stage6-7, Stage 8, Stage 9-10, Stage11, Stage12-13, and Stage14 seminiferous tubule staging results, and then the number of seminiferous tubules in each cycle and the total number of seminiferous tubules are counted.

[0016] Further, the specific steps of testicular tissue identification in step S2 are:

[0017] S2.1. Select a certain number of rat testicular HE-stained sections as a training set, draw a region of interest on the stained sections of the training set, including a testicular tissue region and a non-testicular region, mark all testicular tissue regions in the region of interest accordingly, for example, mark them in blue, and mark the non-testicular region as a background, for example, mark them in green, and then apply a deep learning U-Net model, i.e., a Deep Learning-U-Net model, for training, and adjust it during training until the testicular tissue recognition accuracy reaches more than 90%;

[0018] S2.2, import the stained slices that need to be formally identified as testicular tissue into the software that has completed the model training as described in step S2.1, draw an initial region of interest ROI0, and perform testicular tissue identification in the initial region of interest ROI0, automatically make corresponding marks on the identified testicular tissue area, and automatically mark the non-testicular area as background;

[0019] S2.3, and then post-processing, the post-processing steps include:

[0020] S2.3.1. Completely fill the blank area in the testicular tissue;

[0021] S2.3.2, set the eccentricity and clear the testicular tissue in the longitudinal section;

[0022] S2.3.3. Select the largest testicular tissue from the remaining tissues;

[0023] S2.3.4. Remove other testicular tissues that are not the largest;

[0024] S2.3.5. Remove the background, such as the green background, so that only the largest cross-section of the testicular tissue is retained in the stained section;

[0025] S2.3.6. Convert the testicular tissue in the largest cross section into the first region of interest ROI1.

[0026] Furthermore, the specific steps of step S3 of seminiferous tubule identification and segmentation are:

[0027] S3.1. Select a certain number of rat testis HE-stained sections as training sets, draw regions of interest on the stained sections of the training set, mark all seminiferous tubules in the region of interest accordingly, for example, mark them in blue, mark the non-seminal tubule area as background, for example, mark them in green, the non-seminal tubule area includes interstitial tissue, blood vessels, and blank areas, add boundaries to all seminiferous tubules to segment the tubules into independent individuals, for example, add red boundaries, and after marking, apply the deep learning semantic segmentation model, i.e., Deep Learning-DeepLabv3+ model, for training, and adjust it during training until the accuracy of seminiferous tubule recognition and segmentation reaches more than 90%;

[0028] S3.2, importing the first region of interest ROI1 for formal seminiferous tubule identification and segmentation into the software that has completed the model training as described in step S3.1, to identify and segment the seminiferous tubules, and automatically mark the identified seminiferous tubules and background accordingly, for example, the seminiferous tubules are marked in blue, the seminiferous tubule boundaries are marked in red, and the non-seminal tubule areas are automatically marked as the background, for example, marked in green;

[0029] S3.3, then post-processing is performed, and the post-processing step includes:

[0030] S3.3.1. Clear the border, such as the red border;

[0031] S3.3.2, clearing the background, for example, the green background, so that only the seminiferous tubules are retained in the first region of interest ROI1, for example, only the blue tubules are retained;

[0032] S3.3.3, remove the seminiferous tubules whose area is smaller than the preset value S1;

[0033] S3.3.4, setting the shape factor, setting the perfect circle shape factor equal to 1, converting the seminiferous tubules with a shape factor less than 0.5 into background color tubules, for example, into green tubules;

[0034] S3.3.5, replacing the seminiferous tubules with the longest axis length between the preset values ​​L1 and L2 with transition-marked tubules, such as yellow tubules;

[0035] S3.3.6, converting the remaining seminiferous tubules into background color tubules, such as green tubules;

[0036] S3.3.7. Convert transition-marked tubules, such as yellow tubules, into seminiferous tubules again so that the final image only contains, for example, blue seminiferous tubules and, for example, green background color tubules; the seminiferous tubules that are ultimately screened out and are close to being circular, annular, or quasi-circular, such as blue, are used for subsequent analysis, while the seminiferous tubules with, for example, green background color are not analyzed subsequently.

[0037] Furthermore, the preset value S1 is equal to 10000 µm², the preset value L1 is equal to 200 µm, and L2 is equal to 800 µm.

[0038] Further, the specific steps of step S4 seminiferous tubule cycle identification are:

[0039] S4.1. Select a certain number of rat testis HE-stained sections as a training set, draw a region of interest on the stained sections of the training set, run step S3 in the region of interest, divide and mark the seminiferous tubules screened out in step S3 as Stage 1, Stage 2-3, Stage 4-5, Stage 6-7, Stage 8, Stage 9-10, Stage 11, and Stage 12-13, and mark the remaining seminiferous tubules as tubules that cannot be staged. After marking, apply a deep learning semantic segmentation model, i.e., Deep Learning-DeepLabv3+ model, for training. After training, obtain reference features of tubules of each cycle, and adjust them during training until the accuracy of seminiferous tubule cycle recognition reaches more than 90%;

[0040] S4.2, the seminiferous tubules screened out in step S3 for formal identification of seminiferous tubule cycles are imported into the software that has completed the model training described in step S4.1, and the actual features of each tubule are compared and calculated with the reference features of the tubules of each cycle to obtain the feature threshold of the tubule corresponding to each cycle;

[0041] S4.3, and then post-processing, the post-processing step includes:

[0042] S4.3.1. Among the seminiferous tubules screened out in step S3, the seminiferous tubules whose Stage 12-13 feature threshold is greater than a preset value M1 are replaced with Stage 12-13 tubules;

[0043] S4.3.2, replace the seminiferous tubules whose Stage9-10 feature threshold is greater than the preset value M2 with Stage9-10 tubules;

[0044] S4.3.3, replacing the seminiferous tubules whose Stage 11 feature threshold is greater than the preset value M3 with Stage 11 tubules;

[0045] S4.3.4, replace the seminiferous tubules whose Stage 1 feature threshold is greater than the preset value M4 with Stage 1 tubules;

[0046] S4.3.5, replace the seminiferous tubules whose Stage2-3 feature threshold is greater than the preset value M5 with Stage2-3 tubules;

[0047] S4.3.6, replace the seminiferous tubules whose Stage4-5 feature threshold is greater than the preset value M6 with Stage4-5 tubules;

[0048] S4.3.7, replace the seminiferous tubules whose Stage6-7 feature threshold is greater than the preset value M7 with Stage6-7 tubules;

[0049] S4.3.8, replace the seminiferous tubules whose Stage8 feature threshold is greater than the preset value M8 with Stage8 tubules;

[0050] S4.3.9, the remaining seminiferous tubules are marked as tubules that cannot be staged;

[0051] S4.4, outputting the Stage 1 tubules, Stage 12-13 tubules, and unstageable tubules obtained in step S4.3 as the second region of interest ROI2, the third region of interest ROI3, and the fourth region of interest ROI4, respectively.

[0052] Furthermore, the preset value M1 is equal to 0.3, M2 is equal to 0.25, M3 is equal to 0.3, M4 is equal to 0.3, M5 is equal to 0.3, M6 is equal to 0.3, M7 is equal to 0.3, and M8 is equal to 0.3.

[0053] The method for determining the preset values ​​M1~M8 is as follows: the characteristic threshold of each tubule is between 0-1. You can first preset a value such as 0.4, and then run the post-processing program as described in step S4.3. The output result is confirmed by verification by a pathologist. If there are tubules that obviously do not belong to the cycle are output, the threshold is increased, such as 0.5. If the output result is that some tubules of the cycle are not included, the threshold is reduced, such as 0.3.

[0054] Furthermore, the specific steps of step S5 cell nucleus identification are:

[0055] S5.1. Select a certain number of rat testis HE-stained sections as a training set, draw a region of interest on the stained sections of the training set, call a cell nucleus recognition algorithm in the region of interest to identify the cell nucleus, and make corresponding marks on all the identified cell nuclei, for example, marked in blue, and the non-cell nucleus area is marked as the background, for example, marked in green; after the marking is completed, a deep learning U-Net model, i.e., a Deep Learning-U-Net model, is used for training, and it is adjusted during training until the recognition accuracy of each type of cell nucleus reaches more than 90%; the cells of the training set at least include spermatogonia, spermatocytes, meiotic cells, round spermatids, elongated spermatids, supporting cells, and interstitial cells;

[0056] S5.2. Import the second region of interest ROI2, the third region of interest ROI3, and the fourth region of interest ROI4 output from step S4, which are required for formal cell nucleus identification, into the software that has completed the cell nucleus identification training as described in step S5.1, call the cell nucleus identification algorithm to perform cell nucleus identification, and automatically make corresponding marks on the identified cell nuclei, for example, marked in blue, and the non-cell nucleus area is automatically marked as background, for example, marked in green.

[0057] Furthermore, the specific steps of step S6 for identifying meiotic cells are:

[0058] S6.1. Select a certain number of rat testis HE-stained sections as a training set, draw a region of interest on the stained sections of the training set, run step S5 in the region of interest, identify and divide the cell nuclei identified in step S5, wherein meiotic cells are marked with one mark, for example, light green, other cells are marked with another mark, for example, blue, and the background is marked with a background color, for example, green. After marking, a deep learning U-Net model, i.e., a DeepLearning-U-Net model, is applied for training, and meiotic cell reference features are obtained after training, and the reference features are adjusted during training until the accuracy of meiotic cell recognition reaches more than 90%;

[0059] S6.2, the cells in the second region of interest ROI2, the third region of interest ROI3, and the fourth region of interest ROI4 in step S5, which have completed the cell nucleus identification and need to be formally identified as meiotic cells, are imported into the software that has completed the model training as described in step S6.1, and the actual characteristics of each cell are compared and calculated with the reference characteristics of the meiotic cells to obtain the characteristic threshold of the meiotic cell corresponding to the cell;

[0060] S6.3, and then post-processing, the post-processing step includes:

[0061] S6.3.1. Classify cells whose meiotic cell characteristic threshold is greater than a preset value M9 as meiotic cells and give them a mark, such as light green, and classify the rest as other cells and give them another mark, such as blue;

[0062] S6.3.2, replacing meiotic cells whose area is smaller than the preset value S2 with other cell markers, such as blue;

[0063] S6.3.3, replace the blank area of ​​the seminiferous tubules without nuclei with a label consistent with other cells, such as blue;

[0064] S6.3.4, replacing the seminiferous tubules in which the number of meiotic cells is greater than or equal to a preset value N with stage 14 tubules, and marking them accordingly, for example, in light blue;

[0065] S6.3.5, when the number of meiotic cells is less than the preset value N, the meiotic cells are replaced with a mark consistent with the surroundings, for example, replaced with blue;

[0066] After this step is completed, the seminiferous tubules with meiotic cell numbers greater than or equal to 4 in the second region of interest ROI2, the third region of interest ROI3, and the fourth region of interest ROI4 have been classified as Stage 14 tubules, for example, in light blue, and the remaining seminiferous tubules retain their original labels, for example, in blue;

[0067] S6.3.6, replacing the remaining seminiferous tubules, for example, in the second region of interest ROI2, with Stage 1 tubules, and marking corresponding stage 1, for example, in red;

[0068] S6.3.7, replacing the remaining, for example, blue, seminiferous tubules in the third region of interest ROI3 with Stage 12-13 tubules, and marking the corresponding Stage 12-13, for example, with dark green;

[0069] The remaining seminiferous tubules, for example, in blue, in the fourth region of interest ROI4 are still regarded as tubules that cannot be staged.

[0070] After this step is completed, seminiferous tubules with meiotic cell numbers greater than or equal to 4 in ROI2, ROI3, and ROI4 are classified as stage 14, and seminiferous tubules with meiotic cell numbers less than 4 are kept as the original Stage 1 tubules, Stage 12-13 tubules, and tubules that cannot be staged.

[0071] Furthermore, the preset value M9 is equal to 0.4.

[0072] Furthermore, the preset value S2 is equal to 50 µm², and the preset value N is equal to 4.

[0073] The beneficial effects of the present invention are:

[0074] The training set is input into the deep learning U-Net model, namely the Deep Learning-U-Net model, and the deep learning semantic segmentation model, namely the Deep Learning-DeepLabv3+ model for training, and then the trained model software is used. The present invention can realize artificial intelligence of testicular seminiferous tubule staging and achieve fast and accurate batch operation. BRIEF DESCRIPTION OF THE DRAWINGS

[0075] Figure 1 This is a schematic diagram of the spermatogenic cycle characteristics of rat testis;

[0076] Figure 2 It is a schematic diagram of the overall process of an embodiment of the present invention;

[0077] Figure 3 This is a diagram showing the effect of step S3 in the embodiment of the present invention;

[0078] Figure 4 for Figure 3 The corresponding uncolored original image;

[0079] Figure 5 This is the final effect diagram of the seminiferous tubule staging according to the embodiment of the present invention;

[0080] Figure 6 for Figure 5 The corresponding uncolored original image. DETAILED DESCRIPTION

[0081] In order to more clearly understand the above-mentioned objects, features and advantages of the present invention, the present invention is further described in detail below with reference to the accompanying drawings and specific embodiments.

[0082] Figure 2 A specific embodiment of the rat testicular seminiferous tubule staging method of the present invention is shown, and the steps include:

[0083] S1. Slice scanning: Use Leica GT450 digital slice scanner to scan rat testis HE-stained slices, and import the digital slices into Visiopharm software;

[0084] S2, testicular tissue identification: identifying the required cross-section testicular tissue on the stained slice and converting it into a first region of interest ROI1;

[0085] S3, identification and segmentation of seminiferous tubules: separate seminiferous tubules are segmented in the first region of interest ROI1, and the required seminiferous tubules that are close to circular, annular, or quasi-circular are selected and marked in blue for subsequent analysis, and the remaining seminiferous tubules are marked in green and are not analyzed subsequently;

[0086] S4, seminiferous tubule cycle identification: the screened seminiferous tubules close to circular, annular, and quasi-circular are identified and marked as seminiferous tubules of different cycles, and divided into Stage 1, Stage 2-3, Stage 4-5, Stage 6-7, Stage 8, Stage 9-10, Stage 11, Stage 12-13, and tubules that cannot be staged, and the Stage 1 tubules, Stage 12-13 tubules, and tubules that cannot be staged are output as the second region of interest ROI2, the third region of interest ROI3, and the fourth region of interest ROI4, respectively;

[0087] S5, cell nucleus identification: calling a cell nucleus identification algorithm to identify the cell nucleus on the second region of interest ROI2, the third region of interest ROI3, and the fourth region of interest ROI4, the identified cell nucleus is marked in blue, and the non-cell nucleus area is marked in green;

[0088] S6. Meiotic cell identification: the cell nuclei identified in step S5 are identified and divided, meiotic cells are marked as light green, and other cells are marked as blue. In the second region of interest ROI2, the third region of interest ROI3, and the fourth region of interest ROI4, the seminiferous tubules with meiotic cell numbers greater than or equal to 4 are classified as Stage 14 tubules, and the seminiferous tubules with meiotic cell numbers less than 4 are maintained as the original Stage 1 tubules, Stage 12-13 tubules, and tubules that cannot be staged.

[0089] S7. Result output: In the Stage1, Stage2-3, Stage4-5, Stage6-7, Stage8, Stage9-10, Stage11, Stage12-13, and tubules that cannot be staged division results obtained in step S4, Stage1 tubules, Stage12-13 tubules, and tubules that cannot be staged are replaced with Stage1 tubules, Stage12-13 tubules, and tubules that cannot be staged obtained in step S6, and then the Stage14 tubules obtained in step S6 are added to obtain the final Stage1, Stage 2-3, Stage 4-5, Stage6-7, Stage 8, Stage 9-10, Stage11, Stage12-13, and Stage14 seminiferous tubule staging results, and then the number of seminiferous tubules in each cycle and the total number of seminiferous tubules are counted.

[0090] In this embodiment, the specific steps of step S2 testicular tissue identification are:

[0091] S2.1. Select a certain number of rat testicular HE-stained sections as the training set, draw the region of interest on the 2-fold testicular stained sections of the training set, including the testicular tissue area and the non-testicular area, mark all the testicular tissue areas in the region of interest as blue (class2), and mark the non-testicular area as green (class1), and the identification of the testicular and non-testicular areas is completed by a pathologist. Then, the deep learning U-Net model, namely the Deep Learning-U-Net model, is used for training, and it is adjusted during training until the accuracy of testicular tissue recognition reaches more than 90%;

[0092] S2.2, import the stained sections that need to be formally identified as testicular tissue into the software that has completed the model training as described in step S2.1, draw the initial region of interest ROI0, and perform testicular tissue identification in the initial region of interest ROI0, and the identified testicular tissue area is automatically marked in blue (class2), and the non-testicular area is automatically marked in green (class1);

[0093] S2.3, then run the post processing program, the post processing steps include:

[0094] S2.3.1, set the parameter Fill Holes Lbl: class2, that is, fill the blank area in the testicular tissue completely;

[0095] S2.3.2, set the parameter change by shape Lbl: replace class2 with eccentricity greater than 0.5 with clear, that is, set the eccentricity and clear the testicular tissue in the longitudinal section;

[0096] S2.3.3, set the parameter change largest Lbl: replace the largest class2 with Label 003, that is, select the largest testicular tissue from the remaining tissues;

[0097] S2.3.4, set the parameter change Lbl: replace the rest of class2 with clear, that is, clear the other non-largest testicular tissues;

[0098] S2.3.5, set the parameter change Lbl: replace class1 with clear, that is, clear the green background, so that the stained slice only retains the largest cross-section of the testicular tissue;

[0099] S2.3.6. Set the parameter outline as ROI Lbl: output Label 003 as ROI1, that is, convert the testicular tissue of the largest cross section into the first region of interest ROI1.

[0100] Through the above parameter settings, the required cross-section testicular tissue is screened out and output as ROI1. Subsequent processing is performed within the scope of this ROI1 to narrow the scope of subsequent program processing and shorten the processing time.

[0101] In this embodiment, the specific steps of step S3 seminiferous tubule identification and segmentation are:

[0102] S3.1. Select a certain number of rat testicular HE-stained sections as training sets, draw regions of interest on 5 times the testicular stained sections of the training set, mark all seminiferous tubules in the region of interest as blue (class2), mark non-seminal tubule areas as green (class1), and non-seminal tubule areas include interstitial, blood vessels, and blank areas. Call the dilateboundary boundary algorithm to add red boundaries to all seminiferous tubules (class3) to segment the tubules into independent individuals. After marking, apply the deep learning semantic segmentation model, namely the Deep Learning-DeepLabv3+ model, for training, and adjust it during training until the accuracy of seminiferous tubule recognition and segmentation reaches more than 90%;

[0103] S3.2, importing the first region of interest ROI1 for formal seminiferous tubule identification and segmentation into the software that has completed the model training as described in step S3.1, and performing seminiferous tubule identification and segmentation, automatically marking the identified seminiferous tubules in blue, the seminiferous tubule boundaries in red, and the non-seminal tubule areas in green;

[0104] S3.3, run the post processing program again, the post processing steps include:

[0105] S3.3.1. Set the parameter change Lbl: replace class3 with clear, that is, clear the red border;

[0106] S3.3.2, set the parameter change Lbl: replace class1 with clear, that is, clear the green background, so that only the blue seminiferous tubules are retained in the first region of interest ROI1;

[0107] S3.3.3, set the parameter change by shape Lbl: replace class2 with an area less than 10000 µm² with clear, that is, clear the blue seminiferous tubules with an area less than 10000 µm²;

[0108] S3.3.4, set the parameter change by shape Lbl: replace class2 with form factor less than 0.5 with class1, that is, set the shape factor, set the perfect circle shape factor equal to 1, and convert the blue seminiferous tubules with shape factor less than 0.5 into green tubules;

[0109] S3.3.5, set the parameter change by shape Lbl: replace Class 2 with the longest axis range between 200 µm and 800 µm with Class 4, that is, replace the blue seminiferous tubules with the longest axis length between 200 µm and 800 µm with yellow tubules;

[0110] S3.3.6, set the parameter change Lbl: replace the remaining class2 with class1, that is, convert the remaining blue seminiferous tubules into green tubules;

[0111] S3.3.7. Set the parameter change Lbl: replace class 4 with class 2, that is, convert the yellow tubules into blue tubules again, so that the final image only has blue tubules and green tubules; the blue tubules that are close to circular, ring-shaped, and quasi-circular are finally screened out for subsequent analysis, and the green tubules are not analyzed later.

[0112] The effect after this step is as follows Figure 3 As shown, Figure 4 is Figure 3 The corresponding unlabeled original image, compared Figure 4 and Figure 3 It can be seen that this step has an effect after screening out blue seminiferous tubules.

[0113] In this embodiment, the specific steps of step S4 seminiferous tubule cycle identification are:

[0114] S4.1. Select a certain number of rat testicular HE-stained sections as training sets, draw a region of interest on 5 times the testicular stained sections of the training set, run step S3 in the region of interest, divide and mark the blue seminiferous tubules screened out in step S3 as Stage 1, Stage 2-3, Stage 4-5, Stage 6-7, Stage 8, Stage 9-10, Stage 11, and Stage 12-13, and mark the remaining seminiferous tubules as tubules that cannot be staged. After marking, apply the deep learning semantic segmentation model, i.e., DeepLearning-DeepLabv3+ model, for training. After training, obtain the reference features of each cycle tubule, and adjust them during training until the accuracy of seminiferous tubule cycle recognition reaches more than 90%; among which: Stage 1 tubule features such as Figure 1 Stage I is shown in the figure, and the characteristics of the tubules in Stage 2-3 are as follows Figure 1 Stage II-III is shown in the figure, and the characteristics of the tubules in Stage 4-5 are as follows Figure 1 As shown in Stage IV and Stage V, and so on, they are not elaborated one by one.

[0115] S4.2, the seminiferous tubules screened out in step S3 for formal identification of seminiferous tubule cycles are imported into the software that has completed the model training described in step S4.1, and the actual features of each tubule are compared and calculated with the reference features of the tubules of each cycle to obtain the feature threshold of the tubule corresponding to each cycle;

[0116] S4.3. Run the post-processing program again, and perform the following post-processing steps on the blue seminiferous tubules (class 2) selected in step S3:

[0117] S4.3.1, set the parameter change by intensity Lbl: replace the seminiferous tubules with Stage12-13 feature threshold greater than 0.3 with Stage12-13 tubules;

[0118] S4.3.2, set the parameter change by intensity Lbl: replace the seminiferous tubules with Stage9-10 feature threshold greater than 0.25 with Stage9-10 tubules;

[0119] S4.3.3, set the parameter change by intensity Lbl: replace the seminiferous tubules with Stage11 feature threshold greater than 0.3 with Stage11 tubules;

[0120] S4.3.4, set the parameter change by intensity Lbl: replace the seminiferous tubules with Stage 1 feature threshold greater than 0.3 with Stage 1 tubules;

[0121] S4.3.5, set the parameter change by intensity Lbl: replace the seminiferous tubules with Stage2-3 feature threshold greater than 0.3 with Stage2-3 tubules;

[0122] S4.3.6, set the parameter change by intensity Lbl: replace the seminiferous tubules with Stage4-5 feature threshold greater than 0.3 with Stage4-5 tubules;

[0123] S4.3.7, set the parameter change by intensity Lbl: replace the seminiferous tubules with Stage6-7 feature threshold greater than 0.3 with Stage6-7 tubules;

[0124] S4.3.8, set the parameter change by intensity Lbl: replace the seminiferous tubules with Stage8 feature threshold greater than 0.3 with Stage8 tubules;

[0125] S4.3.9, the remaining seminiferous tubules are marked as tubules that cannot be staged;

[0126] The above steps are performed sequentially, such as S4.3.1 screening out tubes with Stage 12-13 characteristics from all blue tubes, S4.3.2 screening out tubes with Stage 9-10 characteristics from the remaining tubes, and so on, until all classified tubes are screened out.

[0127] The seminiferous tubules in each cycle are marked with the corresponding colors of each cycle.

[0128] S4.4, setting parameters outline as ROI Lbl: output the Stage 1 tubules, Stage 12-13 tubules, and unstaged tubules obtained in step S4.3 as the second region of interest ROI2, the third region of interest ROI3, and the fourth region of interest ROI4, respectively.

[0129] Since the definition of stage 14 tubules is that the cells in meiosis are found in the tubules, and the characteristics of other cells in the stage 14 tubules except meiotic cells may be consistent with those in stage 1 or stage 12-13, we do not set stage 14 in this step, but output the Stage 1 tubules, Stage 12-13 tubules, and tubules that cannot be staged as ROI2, ROI3, and ROI4, respectively, to prepare for the subsequent identification of meiotic cells on them.

[0130] In this embodiment, the specific steps of step S5 cell nucleus identification are:

[0131] S5.1. A certain number of rat testicular HE-stained sections are selected as a training set, and a region of interest is drawn on a 40-fold testicular stained section of the training set. A cell nucleus recognition algorithm is called in the region of interest to identify the cell nucleus, and the identified cell nucleus is marked in blue, and the non-cell nucleus area is marked in green; after the marking is completed, a deep learning U-Net model, i.e., a Deep Learning-U-Net model, is used for training, and the model is adjusted during training, and re-marked and re-trained to be more suitable for the identification of testicular spermatogenic cell nuclei, until the recognition accuracy of each type of cell nucleus reaches more than 90%; the cells of the training set include at least spermatogonia, spermatocytes, meiotic cells, round spermatids, elongated spermatids, supporting cells, and interstitial cells;

[0132] S5.2. Import the second region of interest ROI2, the third region of interest ROI3, and the fourth region of interest ROI4 output from step S4, which are required for formal cell nucleus identification, into the software that has completed the cell nucleus identification training as described in step S5.1, call the cell nucleus identification algorithm to perform cell nucleus identification, and the identified cell nuclei are automatically marked in blue, and the non-cell nucleus areas are automatically marked in green.

[0133] In this embodiment, the specific steps of step S6 meiotic cell identification are:

[0134] S6.1. Select a certain number of rat testis HE-stained sections as a training set, draw a region of interest on the 40-fold testis-stained sections of the training set, run step S5 in the region of interest, identify and divide the cell nuclei identified in step S5, where meiotic cells are marked as light green (class12), other cells are marked as blue (class2), and the background is marked as green (class1). After marking, apply the deep learning U-Net model, i.e., the Deep Learning-U-Net model, for training. After training, obtain the reference features of meiotic cells, and adjust them during training until the accuracy of meiotic cell recognition reaches more than 90%;

[0135] S6.2, the cells in the second region of interest ROI2, the third region of interest ROI3, and the fourth region of interest ROI4 in step S5, which have completed the cell nucleus identification and need to be formally identified as meiotic cells, are imported into the software that has completed the model training as described in step S6.1, and the actual characteristics of each cell are compared and calculated with the reference characteristics of the meiotic cells to obtain the characteristic threshold of the meiotic cell corresponding to the cell;

[0136] S6.3, run the post processing program again, the purpose is to identify Stage 14 (class 11), specifically, in the blue cell nuclei screened out in step S5, perform the following post processing steps:

[0137] S6.3.1. Set the parameter change by intensity Lbl: cells with a meiotic cell feature threshold greater than 0.4 are classified as meiotic cells (class12) and marked in light green, and the rest are classified as other cells and marked in blue;

[0138] S6.3.2, set the parameter change by shape Lbl: replace class12 with class2, that is, replace meiotic cells with an area less than 50 µm² with other blue cells, to improve the accuracy of meiotic cell recognition;

[0139] S6.3.3, set the parameter change Lbl: Replace Clear with class2, that is, replace the blank area of ​​the seminiferous tubules without cell nuclei with the same blue color as other cells, which is equivalent to marking the entire tubule in blue, and the meiotic cells remain light green;

[0140] S6.3.4, set the parameter change by covered objects Lbl: replace class2 with 4 or more meiotic cells with stage14 (class11), that is, replace the blue seminiferous tubules with 4 or more meiotic cells in the seminiferous tubules with stage14 tubules, marked in light blue;

[0141] S6.3.5, set the parameter change to surrounding Lbl: Meiotic cells (class12), when the number of meiotic cells is less than 4, replace the meiotic cells with blue to match the surrounding;

[0142] After this step, the seminiferous tubules with meiotic cell numbers greater than or equal to 4 in the second region of interest ROI2, the third region of interest ROI3, and the fourth region of interest ROI4 have been classified as light blue Stage 14 tubules, and the remaining seminiferous tubules remain blue;

[0143] S6.3.6, set the parameter change Lbl: replace the remaining class2 in ROI 2 with Stage1 (class3), that is, replace the remaining blue seminiferous tubules in the second region of interest ROI2 with Stage1 tubules, marked in red;

[0144] S6.3.7, set the parameter change Lbl: replace the remaining class2 in ROI 3 with Stage12-13 (class10), that is, replace the remaining blue seminiferous tubules in the third region of interest ROI3 with Stage12-13 tubules, marked in dark green;

[0145] The remaining blue seminiferous tubules in the fourth region of interest ROI4 are still regarded as tubules that cannot be staged.

[0146] After this step is completed, seminiferous tubules with meiotic cell numbers greater than or equal to 4 in ROI2, ROI3, and ROI4 are classified as stage 14, and seminiferous tubules with meiotic cell numbers less than 4 are kept as the original Stage 1 tubules, Stage 12-13 tubules, and tubules that cannot be staged.

[0147] The effect after this step is as follows Figure 5 As shown, Figure 6 is Figure 5 The corresponding unlabeled original image, compared Figure 6 and Figure 5 The final staging effect of the seminiferous tubules can be seen.

[0148] The embodiment of the present invention is implemented based on the Visiopharm software platform, which is an AI-based image analysis software currently available on the market. In the specific implementation, other software platforms with similar functions can also be used. Using the software that completes the model training, single or multiple digital slices can be processed in batches.

[0149] The above embodiments of the present invention are merely examples for illustrating the present invention, and are not intended to limit the embodiments of the present invention. For those skilled in the art, other different forms of changes and modifications can be made based on the above description. It is impossible to list all the embodiments here. Any obvious changes or modifications derived from the technical solution of the present invention are still within the scope of protection of the present invention.

Claims

1. A method for staging rat testicular seminiferous tubules, characterized in that: The steps include: S1. Slice scanning: Use a digital slice scanner to scan rat testis HE-stained slices; S2, testicular tissue identification: identifying the required cross-section testicular tissue on the stained slice and converting it into a first region of interest ROI1; S3, seminiferous tubule identification and segmentation: separate seminiferous tubules are segmented in the first region of interest ROI1, the required seminiferous tubules close to circular, annular, or quasi-circular are selected and marked accordingly, and the remaining seminiferous tubules are marked as background; S4, seminiferous tubule cycle identification: the screened seminiferous tubules close to circular, annular, and quasi-circular are identified and marked as seminiferous tubules of different cycles, and divided into Stage 1, Stage 2-3, Stage 4-5, Stage 6-7, Stage 8, Stage 9-10, Stage 11, Stage 12-13, and tubules that cannot be staged, and the Stage 1 tubules, Stage 12-13 tubules, and tubules that cannot be staged are output as the second region of interest ROI2, the third region of interest ROI3, and the fourth region of interest ROI4, respectively; S5, cell nucleus identification: calling a cell nucleus identification algorithm to identify the cell nuclei on the second region of interest ROI2, the third region of interest ROI3, and the fourth region of interest ROI4, marking all the identified cell nuclei accordingly, and marking the non-cell nucleus area as background; S6, meiotic cell identification: the cell nuclei identified in step S5 are identified and divided, meiotic cells are marked in one way, and other cells are marked in another way, and seminiferous tubules with meiotic cell numbers greater than or equal to a preset value N in the second region of interest ROI2, the third region of interest ROI3, and the fourth region of interest ROI4 are classified as Stage 14 tubules, and seminiferous tubules with meiotic cell numbers less than the preset value N are kept as the original Stage 1 tubules, Stage 12-13 tubules, and tubules that cannot be staged, where N is a positive integer greater than 0; S7. Result output: In the Stage1, Stage2-3, Stage4-5, Stage6-7, Stage8, Stage9-10, Stage11, Stage12-13, and tubules that cannot be staged division results obtained in step S4, Stage1 tubules, Stage12-13 tubules, and tubules that cannot be staged are replaced with Stage1 tubules, Stage12-13 tubules, and tubules that cannot be staged obtained in step S6, and then the Stage14 tubules obtained in step S6 are added to obtain the final Stage1, Stage 2-3, Stage 4-5, Stage6-7, Stage 8, Stage 9-10, Stage11, Stage12-13, and Stage14 seminiferous tubule staging results, and then the number of seminiferous tubules in each cycle and the total number of seminiferous tubules are counted.

2. A rat testicular seminiferous tubule staging method according to claim 1, characterized in that: The specific steps of testicular tissue identification in step S2 are: S2.

1. Select a certain number of rat testicular HE-stained sections as a training set, draw a region of interest on the stained sections of the training set, including the testicular tissue area and the non-testicular area, mark all the testicular tissue areas in the region of interest, mark the non-testicular area as the background, and then apply the deep learning U-Net model, i.e., Deep Learning-U-Net model, for training, and adjust it during training until the testicular tissue recognition accuracy reaches more than 90%; S2.2, import the stained slices that need to be formally identified as testicular tissue into the software that has completed the model training as described in step S2.1, draw an initial region of interest ROI0, and perform testicular tissue identification in the initial region of interest ROI0, automatically make corresponding marks on the identified testicular tissue area, and automatically mark the non-testicular area as background; S2.3, and then post-processing, the post-processing steps include: S2.3.

1. Completely fill the blank area in the testicular tissue; S2.3.2, set the eccentricity and clear the testicular tissue in the longitudinal section; S2.3.

3. Select the largest testicular tissue from the remaining tissues; S2.3.

4. Remove other testicular tissues that are not the largest; S2.3.

5. Clear the background so that only the largest cross-section of the testicular tissue is retained in the stained sections; S2.3.

6. Convert the testicular tissue in the largest cross section into the first region of interest ROI1.

3. A rat testicular seminiferous tubule staging method according to claim 1, characterized in that: The specific steps of step S3 seminiferous tubule identification and segmentation are: S3.

1. Select a certain number of rat testis HE-stained sections as training sets, draw regions of interest on the stained sections of the training set, mark all seminiferous tubules in the region of interest, mark non-seminal tubule areas as background, add boundaries to all seminiferous tubules to segment the tubules into independent individuals, and after marking, apply the deep learning semantic segmentation model, i.e., Deep Learning-DeepLabv3+ model, for training, and adjust it during training until the accuracy of seminiferous tubule recognition and segmentation reaches more than 90%; S3.2, importing the first region of interest ROI1 for formal seminiferous tubule identification and segmentation into the software that has completed the model training as described in step S3.1, and performing seminiferous tubule identification and segmentation, the identified seminiferous tubules and their boundaries are automatically marked accordingly, and the non-seminal tubule area is automatically marked as background; S3.3, then post-processing is performed, and the post-processing step includes: S3.3.1, clear the border; S3.3.2, clear the background so that only the seminiferous tubules are retained in the first region of interest ROI1; S3.3.3, remove the seminiferous tubules whose area is smaller than the preset value S1; S3.3.4, set the shape factor, set the perfect circle shape factor equal to 1, and convert the seminiferous tubules with a shape factor less than 0.5 into background color tubules; S3.3.5, replace the seminiferous tubules with the longest axis length between the preset values ​​L1 and L2 with transitional marked tubules; S3.3.6, convert the remaining seminiferous tubules into background color tubules; S3.3.

7. Convert the transitional labeled tubules into seminiferous tubules again, and finally select the seminiferous tubules that are close to circular, ring-shaped, or quasi-circular for subsequent analysis.

4. A rat testicular seminiferous tubule staging method according to claim 3, characterized in that: The preset value S1 is equal to 10000 µm², the preset value L1 is equal to 200 µm, and L2 is equal to 800 µm.

5. A rat testicular seminiferous tubule staging method according to claim 1, characterized in that: The specific steps of step S4 seminiferous tubule cycle identification are: S4.

1. Select a certain number of rat testis HE-stained sections as a training set, draw a region of interest on the stained sections of the training set, run step S3 in the region of interest, divide and mark the seminiferous tubules screened out in step S3 as Stage 1, Stage 2-3, Stage 4-5, Stage 6-7, Stage 8, Stage 9-10, Stage 11, and Stage 12-13, and mark the remaining seminiferous tubules as tubules that cannot be staged. After marking, apply a deep learning semantic segmentation model, i.e., Deep Learning-DeepLabv3+ model, for training. After training, obtain reference features of tubules of each cycle, and adjust them during training until the accuracy of seminiferous tubule cycle recognition reaches more than 90%; S4.2, the seminiferous tubules screened out in step S3 for formal identification of seminiferous tubule cycles are imported into the software that has completed the model training described in step S4.1, and the actual features of each tubule are compared and calculated with the reference features of the tubules of each cycle to obtain the feature threshold of the tubule corresponding to each cycle; S4.3, and then post-processing, the post-processing step includes: S4.3.

1. Among the seminiferous tubules screened out in step S3, the seminiferous tubules whose Stage 12-13 feature threshold is greater than a preset value M1 are replaced with Stage 12-13 tubules; S4.3.2, replace the seminiferous tubules whose Stage9-10 feature threshold is greater than the preset value M2 with Stage9-10 tubules; S4.3.3, replacing the seminiferous tubules whose Stage 11 feature threshold is greater than the preset value M3 with Stage 11 tubules; S4.3.4, replace the seminiferous tubules whose Stage 1 feature threshold is greater than the preset value M4 with Stage 1 tubules; S4.3.5, replace the seminiferous tubules whose Stage2-3 feature threshold is greater than the preset value M5 with Stage2-3 tubules; S4.3.6, replace the seminiferous tubules whose Stage4-5 feature threshold is greater than the preset value M6 with Stage4-5 tubules; S4.3.7, replace the seminiferous tubules whose Stage6-7 feature threshold is greater than the preset value M7 with Stage6-7 tubules; S4.3.8, replace the seminiferous tubules whose Stage8 feature threshold is greater than the preset value M8 with Stage8 tubules; S4.3.9, the remaining seminiferous tubules are marked as tubules that cannot be staged; S4.4, outputting the Stage 1 tubules, Stage 12-13 tubules, and unstageable tubules obtained in step S4.3 as a second region of interest ROI2, a third region of interest ROI3, and a fourth region of interest ROI4, respectively.

6. A rat testicular seminiferous tubule staging method according to claim 5, characterized in that: The preset values ​​M1 are equal to 0.3, M2 are equal to 0.25, M3 are equal to 0.3, M4 are equal to 0.3, M5 are equal to 0.3, M6 are equal to 0.3, M7 are equal to 0.3, and M8 are equal to 0.

3.

7. A rat testicular seminiferous tubule staging method according to claim 1, characterized in that: The specific steps of step S5 cell nucleus identification are: S5.

1. Select a certain number of rat testis HE-stained sections as a training set, draw a region of interest on the stained sections of the training set, call a cell nucleus recognition algorithm in the region of interest to identify the cell nuclei, and make corresponding marks on all the identified cell nuclei, and mark the non-cell nucleus area as the background; after marking, apply a deep learning U-Net model, i.e., a DeepLearning-U-Net model, for training, and adjust it during training until the recognition accuracy of each type of cell nucleus reaches more than 90%; the cells of the training set at least include spermatogonia, spermatocytes, meiotic cells, round spermatids, elongated spermatids, supporting cells, and interstitial cells; S5.

2. Import the second region of interest ROI2, the third region of interest ROI3, and the fourth region of interest ROI4 output from step S4, which are required for formal cell nucleus identification, into the software that has completed the cell nucleus identification training as described in step S5.1, call the cell nucleus identification algorithm to perform cell nucleus identification, and automatically make corresponding marks on the identified cell nuclei, and automatically mark the non-cell nucleus area as background.

8. A rat testicular seminiferous tubule staging method according to claim 1, characterized in that: The specific steps of step S6 of meiotic cell identification are: S6.

1. Select a certain number of rat testis HE-stained sections as a training set, draw a region of interest on the stained sections of the training set, run step S5 within the region of interest, identify and divide the cell nuclei identified in step S5, and make meiotic cells One mark is used, and other cells are marked with another mark. The background mark is the background color. After marking, the deep learning U-Net model, i.e., the Deep Learning-U-Net model, is used for training. After training, the reference features of meiotic cells are obtained, and they are adjusted during training until the accuracy of meiotic cell recognition reaches more than 90%. S6.2, the cells in the second region of interest ROI2, the third region of interest ROI3, and the fourth region of interest ROI4 in step S5, which have completed the cell nucleus identification and need to be formally identified as meiotic cells, are imported into the software that has completed the model training as described in step S6.1, and the actual characteristics of each cell are compared and calculated with the reference characteristics of the meiotic cells to obtain the characteristic threshold of the meiotic cell corresponding to the cell; S6.3, and then post-processing, the post-processing step includes: S6.3.

1. Classify cells whose meiotic cell characteristic threshold is greater than the preset value M9 as meiotic cells and make one mark, and classify the rest as other cells and make another mark; S6.3.2, replace meiotic cells whose area is smaller than the preset value S2 with other cell markers; S6.3.3, replace the blank area of ​​non-nuclei in seminiferous tubules with a consistent labeling for other cells; S6.3.4, replace the seminiferous tubules in which the number of meiotic cells is greater than or equal to the preset value N with stage 14 tubules, and make corresponding stage 14 marks; S6.3.5, when the number of meiotic cells is less than the preset value N, the meiotic cells are replaced with markers consistent with the surroundings; S6.3.6, replace the remaining seminiferous tubules in the second region of interest ROI2 with Stage 1 tubules and make corresponding stag1 marks; S6.3.

7. Replace the remaining seminiferous tubules in the third region of interest ROI3 with Stage 12-13 tubules and make corresponding Stage 12-13 marks.

9. A rat testicular seminiferous tubule staging method according to claim 8, characterized in that: The preset value M9 is equal to 0.

4.

10. A rat testicular seminiferous tubule staging method according to claim 8, characterized in that: The preset value S2 is equal to 50 µm², and the preset value N is equal to 4.

Citation Information

Patent Citations

  • Automatic segmentation method for various tissues in mouse testis pathological section based on deep learning

    CN112529912A

  • Deep learning-based squamous epithelial tumor cell image automatic classification and segmentation method

    CN115423802A