<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE article PUBLIC "-//NLM//DTD Journal Publishing DTD v2.3 20070202//EN" "journalpublishing.dtd">
<article xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" article-type="research-article" dtd-version="2.3" xml:lang="EN">
<front>
<journal-meta>
<journal-id journal-id-type="publisher-id">Front. Vet. Sci.</journal-id>
<journal-title>Frontiers in Veterinary Science</journal-title>
<abbrev-journal-title abbrev-type="pubmed">Front. Vet. Sci.</abbrev-journal-title>
<issn pub-type="epub">2297-1769</issn>
<publisher>
<publisher-name>Frontiers Media S.A.</publisher-name>
</publisher>
</journal-meta>
<article-meta>
<article-id pub-id-type="doi">10.3389/fvets.2025.1620338</article-id>
<article-categories>
<subj-group subj-group-type="heading">
<subject>Veterinary Science</subject>
<subj-group>
<subject>Technology and Code</subject>
</subj-group>
</subj-group>
</article-categories>
<title-group>
<article-title>Machine-learning for quantitative histopathology of piglet intestinal tissues: challenges with limited training data</article-title>
</title-group>
<contrib-group>
<contrib contrib-type="author" corresp="yes">
<name>
<surname>Becker</surname>
<given-names>Cecilie Brandt</given-names>
</name>
<xref ref-type="aff" rid="aff1"><sup>1</sup></xref>
<xref ref-type="corresp" rid="c001"><sup>&#x002A;</sup></xref>
<uri xlink:href="https://loop.frontiersin.org/people/3051057/overview"/>
<role content-type="https://credit.niso.org/contributor-roles/formal-analysis/"/>
<role content-type="https://credit.niso.org/contributor-roles/methodology/"/>
<role content-type="https://credit.niso.org/contributor-roles/data-curation/"/>
<role content-type="https://credit.niso.org/contributor-roles/project-administration/"/>
<role content-type="https://credit.niso.org/contributor-roles/visualization/"/>
<role content-type="https://credit.niso.org/contributor-roles/conceptualization/"/>
<role content-type="https://credit.niso.org/contributor-roles/validation/"/>
<role content-type="https://credit.niso.org/contributor-roles/software/"/>
<role content-type="https://credit.niso.org/contributor-roles/writing-original-draft/"/>
<role content-type="https://credit.niso.org/contributor-roles/investigation/"/>
</contrib>
<contrib contrib-type="author">
<name>
<surname>Hansen</surname>
<given-names>Mette Sif</given-names>
</name>
<xref ref-type="aff" rid="aff1"><sup>1</sup></xref>
<uri xlink:href="https://loop.frontiersin.org/people/1913980/overview"/>
<role content-type="https://credit.niso.org/contributor-roles/writing-review-editing/"/>
<role content-type="https://credit.niso.org/contributor-roles/investigation/"/>
<role content-type="https://credit.niso.org/contributor-roles/data-curation/"/>
</contrib>
<contrib contrib-type="author">
<name>
<surname>Nielsen</surname>
<given-names>S&#x00F8;ren Saxmose</given-names>
</name>
<xref ref-type="aff" rid="aff2"><sup>2</sup></xref>
<uri xlink:href="https://loop.frontiersin.org/people/375402/overview"/>
<role content-type="https://credit.niso.org/contributor-roles/writing-review-editing/"/>
<role content-type="https://credit.niso.org/contributor-roles/supervision/"/>
<role content-type="https://credit.niso.org/contributor-roles/formal-analysis/"/>
<role content-type="https://credit.niso.org/contributor-roles/validation/"/>
</contrib>
<contrib contrib-type="author">
<name>
<surname>Jensen</surname>
<given-names>Henrik Elvang</given-names>
</name>
<xref ref-type="aff" rid="aff1"><sup>1</sup></xref>
<uri xlink:href="https://loop.frontiersin.org/people/2002827/overview"/>
<role content-type="https://credit.niso.org/contributor-roles/writing-review-editing/"/>
<role content-type="https://credit.niso.org/contributor-roles/conceptualization/"/>
<role content-type="https://credit.niso.org/contributor-roles/funding-acquisition/"/>
<role content-type="https://credit.niso.org/contributor-roles/resources/"/>
<role content-type="https://credit.niso.org/contributor-roles/supervision/"/>
<role content-type="https://credit.niso.org/contributor-roles/project-administration/"/>
</contrib>
</contrib-group>
<aff id="aff1"><sup>1</sup><institution>Section for Parasitology and Pathobiology, Department of Veterinary and Animal Sciences, Faculty of Health and Medical Sciences, University of Copenhagen</institution>, <addr-line>Copenhagen</addr-line>, <country>Denmark</country></aff>
<aff id="aff2"><sup>2</sup><institution>Section for Animal Health and Welfare, Department of Veterinary and Animal Sciences, Faculty of Health and Medical Sciences, University of Copenhagen</institution>, <addr-line>Copenhagen</addr-line>, <country>Denmark</country></aff>
<author-notes>
<fn fn-type="edited-by" id="fn0001"><p>Edited by: <ext-link ext-link-type="uri" xlink:href="https://loop.frontiersin.org/people/2380485/overview">Matthew Lanza</ext-link>, Penn State Milton S. Hershey Medical Center, United States</p></fn>
<fn fn-type="edited-by" id="fn0002"><p>Reviewed by: <ext-link ext-link-type="uri" xlink:href="https://loop.frontiersin.org/people/1296210/overview">Praveen Krishna Chitneedi</ext-link>, Leibniz-Institute for Farm Animal Biology (FBN), Germany</p><p><ext-link ext-link-type="uri" xlink:href="https://loop.frontiersin.org/people/2380685/overview">Charles Assenmacher</ext-link>, University of Pennsylvania, United States</p></fn>
<corresp id="c001">&#x002A;Correspondence: Cecilie Brandt Becker, <email>cebb@sund.ku.dk</email></corresp>
</author-notes>
<pub-date pub-type="epub">
<day>06</day>
<month>10</month>
<year>2025</year>
</pub-date>
<pub-date pub-type="collection">
<year>2025</year>
</pub-date>
<volume>12</volume>
<elocation-id>1620338</elocation-id>
<history>
<date date-type="received">
<day>29</day>
<month>04</month>
<year>2025</year>
</date>
<date date-type="accepted">
<day>28</day>
<month>08</month>
<year>2025</year>
</date>
</history>
<permissions>
<copyright-statement>Copyright &#x00A9; 2025 Becker, Hansen, Nielsen and Jensen.</copyright-statement>
<copyright-year>2025</copyright-year>
<copyright-holder>Becker, Hansen, Nielsen and Jensen</copyright-holder>
<license xlink:href="http://creativecommons.org/licenses/by/4.0/">
<p>This is an open-access article distributed under the terms of the Creative Commons Attribution License (CC BY). The use, distribution or reproduction in other forums is permitted, provided the original author(s) and the copyright owner(s) are credited and that the original publication in this journal is cited, in accordance with accepted academic practice. No use, distribution or reproduction is permitted which does not comply with these terms.</p>
</license>
</permissions>
<abstract>
<sec id="sec1">
<title>Introduction</title>
<p>Use of Machine learning (ML) is rapidly expanding in histopathology, offering the potential to reduce interobserver variability and improve quantitative assessment. However, large datasets and computational resources commonly used in toxicology and human medicine are often unavailable to the veterinary pathologist. This study aimed to evaluate the feasibility and limitations of applying supervised ML on histopathological samples with limited training data, exemplified by training an ML model to segment the intestinal wall into its histological layers.</p>
</sec>
<sec id="sec2">
<title>Materials and methods</title>
<p>The study included 145 piglets from five age groups (4, 14, 25, 49, and 67&#x202F;days). Full-wall samples from duodenum, jejunum and ileum were collected post-mortem, stained with H&#x0026;E and digitized. A three-step ML model was trained on 8&#x2013;15 images: Step 1 identified tissue, Step 2 segmented mucosa from submucosal layers, and Step 3 separated lamina propria from epithelium. Model performance was assessed by comparing AI-generated areas to manual annotations, calculating relative deviation, categorized agreement levels, Intersection over Union, and Pearson correlation coefficients. Qualitative error analyses were used as directions for future training options.</p>
</sec>
<sec id="sec3">
<title>Results</title>
<p>A three-step separation model was successfully developed, but showed a significant amount of age-related performance variation, depicted as larger inaccuracies in samples from the younger age-groups, reflecting additional tissue heterogeneity from immature morphology. Classification errors could be categorized into intrinsic limitations (e.g., thresholding issues in tissue identification) and training deficits (e.g., misclassification of goblet cells and crypt abscesses), of which only the latter category could be corrected by adding additional training data.</p>
</sec>
<sec id="sec4">
<title>Conclusion</title>
<p>This study demonstrates the feasibility of ML-based histopathology with limited sample sizes, providing a viable option for veterinary pathologists. Models trained on small datasets require careful supervision, with special emphasis on age-diverse tissue heterogeneity and overfitting. In these cases, ML should be seen as a tool to augment, not replace, expert oversight, ensuring reliable and reproducible quantitative histopathological measures.</p>
</sec>
</abstract>
<kwd-group>
<kwd>digital pathology</kwd>
<kwd>intestinal segmentation</kwd>
<kwd>machine learning</kwd>
<kwd>histopathology</kwd>
<kwd>pigs</kwd>
</kwd-group>
<contract-num rid="cn1">NNFSA210073688</contract-num>
<contract-sponsor id="cn1">Novo Nordisk<named-content content-type="fundref-id">10.13039/501100004191</named-content></contract-sponsor>
<counts>
<fig-count count="4"/>
<table-count count="2"/>
<equation-count count="1"/>
<ref-count count="32"/>
<page-count count="11"/>
<word-count count="7342"/>
</counts>
<custom-meta-wrap>
<custom-meta>
<meta-name>section-at-acceptance</meta-name>
<meta-value>Veterinary Clinical, Anatomical, and Comparative Pathology</meta-value>
</custom-meta>
</custom-meta-wrap>
</article-meta>
</front>
<body>
<sec sec-type="intro" id="sec5">
<label>1</label>
<title>Introduction</title>
<p>Porcine intestinal disease, and in particular post-weaning diarrhea (PWD), is a significant animal welfare issue (<xref ref-type="bibr" rid="ref1">1</xref>, <xref ref-type="bibr" rid="ref2">2</xref>), which presents challenges due to the extensive use of antibiotics to treat affected animals, which contributes to the development and spread of antimicrobial resistance (<xref ref-type="bibr" rid="ref3">3</xref>, <xref ref-type="bibr" rid="ref4">4</xref>). The causes of PWD are complex and multifactorial (<xref ref-type="bibr" rid="ref5">5</xref>), necessitating thorough investigations to elucidate the pathological mechanisms underlying diarrhea development, and to aid determining when antibiotic treatment might be beneficial. However, histopathological lesions are often inconsistent in PWD pigs and may lack a clear correlation with clinical signs (<xref ref-type="bibr" rid="ref6">6</xref>). Additionally, previous studies have faced limitations due to rapid autolytic changes in the intestinal mucosa post-mortem, which have hindered the interpretation of villus-associated lesions (<xref ref-type="bibr" rid="ref6 ref7 ref8">6&#x2013;8</xref>). Moreover, histopathological assessment of intestinal pathology has traditionally relied on descriptive and semiquantitative observations prone to interobserver variability, even among field specialists (<xref ref-type="bibr" rid="ref9 ref10 ref11">9&#x2013;11</xref>). To minimize this variability, observations have often been grouped into dichotomous or semiquantitative categories (<xref ref-type="bibr" rid="ref6">6</xref>, <xref ref-type="bibr" rid="ref12">12</xref>); however, this approach potentially oversimplifies the complexity of PWD and may obscure subtle differences that could be crucial for understanding the underlying disease mechanisms. In recent decades, the increased application of digital pathology, coupled with rapid advancements in artificial intelligence (AI) and machine-learning (ML), has transformed histopathological workflows in human diagnostics, research, and toxicology, shifting towards more quantitative and objective measurements enabled by computer-assisted technologies (<xref ref-type="bibr" rid="ref13 ref14 ref15">13&#x2013;15</xref>). Although these technologies have made their way into human gastroenterology among others (<xref ref-type="bibr" rid="ref13">13</xref>, <xref ref-type="bibr" rid="ref16">16</xref>, <xref ref-type="bibr" rid="ref17">17</xref>), the application of computational histology, remains in its infancy within the field of veterinary medicine (<xref ref-type="bibr" rid="ref18">18</xref>). This slower progress in veterinary applications is probably in part due to the substantial sample sizes normally required to train reliable classifiers, which poses a significant challenge (<xref ref-type="bibr" rid="ref18">18</xref>, <xref ref-type="bibr" rid="ref19">19</xref>). Unlike in human medicine, where larger datasets are often readily available (<xref ref-type="bibr" rid="ref20">20</xref>), veterinary research frequently faces limitations in both sample size and data heterogeneity, making it difficult to develop robust, generalizable models for histopathological assessment. Additionally, applying machine-learning techniques often requires significant computational power, which can pose yet another challenge for many veterinary research settings (<xref ref-type="bibr" rid="ref18">18</xref>).</p>
<p>The aim of this study was to evaluate whether a supervised machine-learning model could be developed to accurately separate the histological layers of the piglet intestinal wall using the small and heterogeneous datasets common in veterinary research. The model was created as a prerequisite for future studies of post-weaning diarrhea (PWD). Our objectives were to determine the extent to which accurate segmentation is achievable under these constraints, and to highlight key limitations that impact model performance. By addressing these points, this study provides practical insights for applying machine learning in histopathology when large datasets and high-performance computing are not available.</p>
</sec>
<sec sec-type="materials|methods" id="sec6">
<label>2</label>
<title>Materials and methods</title>
<sec id="sec7">
<label>2.1</label>
<title>Animals</title>
<p>This study utilized tissue samples from 145 piglets reared in a conventional indoor intensive production herd in Denmark. Included animals were not subjected to litter equalization or cross-fostering, and all piglets were weaned at 26&#x202F;days of age. The animals were randomly selected from a cohort of 2,500 piglets representing individuals both with and without signs of gastrointestinal disease. The PWD disease prevalence in the study was 43%. The piglets were stratified into five different age groups: 4, 14, 25, 49, and 67&#x202F;days.</p>
</sec>
<sec id="sec8">
<label>2.2</label>
<title>Sample collection</title>
<p>Between July 2023 and March 2024, samples were collected in 11 batches, each containing 10&#x2013;15 animals. On the morning of sampling, all piglets were transported for approximately 1.5&#x202F;h from the farm to Frederiksberg Campus, University of Copenhagen. The piglets were anesthetized via intramuscular injection of Zoletil (0.1&#x202F;mL/kg) and euthanized by intracardiac injection of an overdose of pentobarbital. Following evisceration, full-thickness samples of mid-jejunum were collected from all animals, while samples from duodenum and ileum were taken from a subset of 75 animals representing all age groups. Duodenum was identified as the segment between the pylorus of the stomach and the oral aspect of the duodenocolic fold. Jejunal samples were taken from mid-jejunum, approximately midway between the aboral edge of the duodenocolic fold and the ileocecal fold. Ileal samples were identified as the segment between the oral edge of the ileocecal fold and the ileal inlet to cecum. The samples were opened, gently rinsed in isotonic saline, and pinned onto styrofoam boards before being immersed in 10% neutral buffered formalin. All samples were secured in fixative within 15&#x202F;min of euthanasia.</p>
</sec>
<sec id="sec9">
<label>2.3</label>
<title>Tissue processing</title>
<p>Samples were immersion-fixed in 10% neutral buffered formalin for 3&#x202F;days. After fixation, tissues were trimmed and processed through graded concentrations of ethanol and xylene, embedded in paraffin, and samples of 5&#x202F;&#x03BC;m were stained with hematoxylin and eosin (H&#x0026;E) using standard protocols as previously described (<xref ref-type="bibr" rid="ref6">6</xref>).</p>
</sec>
<sec id="sec10">
<label>2.4</label>
<title>Digitization of slides</title>
<p>Stained histological slides were digitized for image analysis by whole-slide scanning with a Zeiss Axioscan Z1 scanner, using a 20x/0.8 Plan-Apochromat objective. Software settings were adjusted specifically for brightfield microscopy of 5&#x202F;&#x03BC;m H&#x0026;E stained intestinal tissues.</p>
</sec>
<sec id="sec11">
<label>2.5</label>
<title>Model development</title>
<p>Image pre-processing and ML model training were conducted on a Lenovo ThinkPad laptop with an Intel Core i5 processor, to mimic the commonly available hardware setup in veterinary research settings. Model-training and image analysis was conducted using the open-source image analysis software QuPath [version 0.5.1 (<xref ref-type="bibr" rid="ref21">21</xref>),]. Model training was performed exclusively using jejunum samples to ensure consistency in tissue structure and morphology. Prior to analysis, all tissue sections were individually color-normalized to H&#x0026;E using the built-in &#x201C;Estimate Stain Vectors&#x201D; tool. To achieve complete segmentation of the intestinal wall layers, a 3-step separation model was developed (<xref ref-type="fig" rid="fig1">Figure 1</xref>). All settings adjusted for model development are mentioned in the following paragraphs. If not mentioned, the settings were left as default.</p>
<fig position="float" id="fig1">
<label>Figure 1</label>
<caption>
<p>Stepwise classification of porcine jejunal tissue using machine-learning-based segmentation. <bold>(A)</bold> Raw input image of an H&#x0026;E-stained tissue section. <bold>(B)</bold> Step 1: Tissue identification with a pixel thresholder separates tissue (green) from the background. <bold>(C)</bold> Step 2: Mucosal segmentation. A random-trees pixel classifier distinguishes the mucosa (pink) from the submucosa and muscular layers (blue). <bold>(D)</bold> Step 3: Epithelial segmentation. A random-trees pixel classifier isolates the epithelium (green) from the lamina propria (purple).</p>
</caption>
<graphic xlink:href="fvets-12-1620338-g001.tif" mimetype="image" mime-subtype="tiff">
<alt-text content-type="machine-generated">Composite image showing a series of histological section transformations. Image A is the original histological section. Image B shows tissue identification with a green overlay. Image C presents mucosal segmentation highlighted in pink and blue. Image D illustrates epithelial segmentation with purple and green overlays. Arrows indicate the progression between steps.</alt-text>
</graphic>
</fig>
<p>In the first step, tissue was automatically identified and annotated using a pixel-based thresholding approach. This was achieved by analyzing the average RGB values (i.e., Red-Green-Blue values) of each pixel at a resolution of 7.03&#x202F;&#x03BC;m/px, with a Gaussian prefilter and a smoothing sigma of 2.0 applied. A threshold value of 205 was used as cutoff, with pixels below this value classified as tissue and those above classified as background (<xref ref-type="fig" rid="fig1">Figure 1B</xref>). In order to measure the tissue area, the classification was converted to an object using the &#x201C;create objects&#x201D; function, with minimum object size of 10,000 &#x03BC;m<sup>2</sup> and a minimum hole size of 100,000 &#x03BC;m<sup>2</sup> to avoid misclassification of vascular structures and edematous areas.</p>
<p>In the second step, a machine learning-based pixel classifier, utilizing the default random trees algorithm, was trained to differentiate the intestinal mucosa from the underlying submucosa and muscular layers (<xref ref-type="fig" rid="fig1">Figure 1C</xref>). Classification was performed based on the RGB and Hematoxylin channels of the image, with a resolution of 7.03&#x202F;&#x03BC;m/px. The classifier employed features of Gaussian, Laplacian of Gaussian, Weighted Deviation, and Hessian Determinant, with scaling factors of 1.0 and 2.0, a selection based on published guidelines (<xref ref-type="bibr" rid="ref22">22</xref>). Training images were blinded with regards to disease status and added <italic>ad hoc</italic> by continuous inclusion of problematic slides, and the final model was developed using 236 manual annotations of &#x201C;mucosa&#x201D; and &#x201C;submucosa/muscularis&#x201D; from 15 distinct animals (n<sub>4</sub>&#x202F;=&#x202F;2; n<sub>14</sub>&#x202F;=&#x202F;2; n<sub>25</sub>&#x202F;=&#x202F;2; n<sub>49</sub>&#x202F;=&#x202F;8; n<sub>67</sub>&#x202F;=&#x202F;1). All annotations were made by the main author (CBB) using the built-in brush-tool in QuPath to provide the software with examples of mucosal and submucosal tissues, respectively. Area extraction was achieved by applying the same approach as described for Step 1.</p>
<p>In the final step, another pixel classifier utilizing a random trees algorithm was trained to differentiate the epithelium from the lamina propria within the mucosal area identified previously by the model (<xref ref-type="fig" rid="fig1">Figure 1D</xref>). As for the second step, classification was based on the RGB and Hematoxylin channels, but at a higher resolution of 3.51&#x202F;&#x03BC;m/px. To address the increased complexity of the structures, the classifier incorporated additional features including Gaussian, Laplacian of Gaussian, Weighted Deviation, Gradient Magnitude, Structure Tensor Coherence, and Hessian Determinant, all with a scaling factor of 1.0. The training set comprised eight distinct tissue samples included <italic>ad hoc</italic>, and 172 manual annotations (n<sub>4</sub>&#x202F;=&#x202F;0; n<sub>14</sub>&#x202F;=&#x202F;1; n<sub>25</sub>&#x202F;=&#x202F;2; n<sub>49</sub>&#x202F;=&#x202F;3; n<sub>67</sub>&#x202F;=&#x202F;2) made in a similar fashion as for Step 2. For area extraction a minimum object size and minimal hole size of 1,000&#x202F;&#x03BC;m<sup>2</sup> was applied.</p>
<p>To account for potential age-related differences in tissue morphology, Steps 2 and 3 were repeated, and separate classifiers were trained on new images using age-balanced datasets with all age-groups represented in the training data. The age-balanced training for Step 2 again included 15 tissue samples and 236 annotations (n<sub>4</sub>&#x202F;=&#x202F;2; n<sub>14</sub>&#x202F;=&#x202F;2; n<sub>25</sub>&#x202F;=&#x202F;2; n<sub>49</sub>&#x202F;=&#x202F;8; n<sub>67</sub>&#x202F;=&#x202F;1), while Step 3 utilized 10 tissue samples and 285 annotations (n<sub>4</sub>&#x202F;=&#x202F;2; n<sub>14</sub>&#x202F;=&#x202F;2; n<sub>25</sub>&#x202F;=&#x202F;2; n<sub>49</sub>&#x202F;=&#x202F;3; n<sub>67</sub>&#x202F;=&#x202F;2). The classifier specifications, including feature sets and scaling factors, remained unchanged.</p>
</sec>
<sec id="sec12">
<label>2.6</label>
<title>Performance evaluation and statistics</title>
<p>The performance of the trained models, including both the <italic>Ad Hoc</italic> trained and the Age-balanced models, was assessed by comparing the areas predicted by each step of the classification process (<italic>A<sub>model</sub></italic>) to manually annotated areas (<italic>A<sub>manual</sub></italic>, applied as ground truth), across all 145 jejunal samples. In general terms, the above mentioned samples (15, 8, and 10 samples respectively) were selected as training sets, while the whole dataset of 145 animals were used for validation. No separate dataset for a final testing phase was available in this study. For each sample, a 5&#x202F;mm section containing longitudinally sectioned crypts of Lieberk&#x00FC;hn was selected for validation. The length of the section was determined by measuring along the lamina muscularis mucosa using the polyline tool. The relative deviation from the manual annotations was calculated as follows:</p>
<disp-formula id="E1">
<mml:math id="M1">
<mml:mtext mathvariant="italic">Relative deviation</mml:mtext>
<mml:mspace width="0.25em"/>
<mml:mo stretchy="true">(</mml:mo>
<mml:mi mathvariant="italic">RD</mml:mi>
<mml:mo stretchy="true">)</mml:mo>
<mml:mo>=</mml:mo>
<mml:mfrac>
<mml:mrow>
<mml:msub>
<mml:mi>A</mml:mi>
<mml:mtext mathvariant="italic">model</mml:mtext>
</mml:msub>
<mml:mo>&#x2212;</mml:mo>
<mml:msub>
<mml:mi>A</mml:mi>
<mml:mtext mathvariant="italic">manual</mml:mtext>
</mml:msub>
</mml:mrow>
<mml:msub>
<mml:mi>A</mml:mi>
<mml:mtext mathvariant="italic">manual</mml:mtext>
</mml:msub>
</mml:mfrac>
<mml:mo>&#x00D7;</mml:mo>
<mml:mn>100</mml:mn>
<mml:mo>%</mml:mo>
</mml:math>
</disp-formula>
<p>Differences in relative deviation across age groups were visualized using a modified Bland&#x2013;Altman plot and categorized according to level of agreement. Agreement levels were defined as follows: RD&#x202F;&#x003C;&#x202F;5%&#x202F;=&#x202F;Very good, RD&#x202F;=&#x202F;5&#x2013;10%&#x202F;=&#x202F;Good, RD&#x202F;=&#x202F;10&#x2013;20%&#x202F;=&#x202F;Fair, and RD&#x202F;&#x003E;&#x202F;20%&#x202F;=&#x202F;Poor. The performance of each classification step was further evaluated within the five age groups by calculating the Pearson correlation coefficient between manually annotated areas and areas provided by the trained models (<xref ref-type="bibr" rid="ref23">23</xref>).</p>
<p>To assess spatial agreement between manually annotated regions and AI-generated segmentations, Intersection over Union (IoU) was calculated. This metric quantifies the proportion of overlap between the two areas relative to their combined area, thereby verifying that segmented regions were co-located rather than merely adjacent. IoU values were interpreted using commonly applied thresholds, with values &#x003E;0.50 considered acceptable, &#x003E;0.75 considered good, and &#x003E;0.90 considered near-perfect. The QuPath script used for IoU calculation is provided in the <xref ref-type="supplementary-material" rid="SM1">Supplementary material</xref>. In addition to the quantitative evaluation, a visual inspection of classification errors was performed to identify recurring misclassifications and limitations in the applied methodology. Tissue structures that were consistently misclassified in the different steps of the classification process were recorded in order to guide potential adjustments in future training iterations.</p>
<p>To assess the translatability and adaptability of the <italic>Ad Hoc</italic> trained model to other intestinal regions than the jejunum assessed above, three samples from both duodenum and ileum from each of the five age groups were evaluated. A section measuring 2.5&#x202F;mm of each sample was evaluated as described above. The selection of segments for analysis followed the same principles as for jejunal samples, but actively avoiding segments containing Peyer&#x2019;s patches in ileum. The model&#x2019;s performance on these samples was compared to its performance on the jejunum samples from the same piglets, providing insight into its ability to generalize across different anatomical regions in the small intestine.</p>
<p>All statistical analyses were performed using R Statistical Software [R version 4.4.0 (2024-04-24)] (<xref ref-type="bibr" rid="ref24">24</xref>). Prior to data analysis all parameters were evaluated for normality by visual inspection of histograms.</p>
</sec>
<sec id="sec13">
<label>2.7</label>
<title>Ethics declarations</title>
<p>The study was approved by the Danish Animal Inspectorate (License no: 2022-15-0201-01324).</p>
</sec>
</sec>
<sec sec-type="results" id="sec14">
<label>3</label>
<title>Results</title>
<p>All parameters were deemed to follow a normal distribution and were handled accordingly in the following sections.</p>
<sec id="sec15">
<label>3.1</label>
<title>Step 1&#x2014;tissue detection</title>
<p>Step 1 (tissue detection) demonstrated high accuracy and consistency across all age groups. Mean relative deviations ranged from 2.9 to 10.7%, with the highest deviations observed in the youngest age group (4&#x202F;days), and gradually increasing performance with increasing age (<xref ref-type="fig" rid="fig2">Figure 2</xref>). The Pearson correlation coefficient for tissue detection was very high (0.97), indicating a highly correlated relationship between AI-generated and manually annotated areas across all age groups (<xref ref-type="table" rid="tab1">Table 1</xref>; <xref ref-type="fig" rid="fig3">Figure 3A</xref>). When categorized by agreement levels, Step 1 performed robustly, achieving 80% &#x201C;<italic>very good</italic>&#x201D; agreement in the oldest group (67&#x202F;days) and 73% in 49-day-old piglets. However, in the youngest age group (4&#x202F;days), only 30% of cases achieved &#x201C;<italic>very good</italic>&#x201D; agreement, and 30% were classified as either &#x201C;<italic>fair</italic>&#x201D; or &#x201C;<italic>poor</italic>&#x201D; (<xref ref-type="table" rid="tab2">Table 2</xref>). These results show that tissue detection was consistent overall, but with a reduced accuracy for the younger age groups. When assessing the IoU values, the areas provided by the model showed consistently high colocalization with manual annotations (overall <italic>&#x03BC;</italic>&#x202F;=&#x202F;0.91, sd&#x202F;=&#x202F;0.09). Mean IoU values were above 0.90 for all age groups, except the 4-day olds, thus exceeding the threshold generally interpreted as &#x201C;near-perfect&#x201D; alignment (<xref ref-type="table" rid="tab1">Table 1</xref>).</p>
<fig position="float" id="fig2">
<label>Figure 2</label>
<caption>
<p>Fluctuations in relative deviation across age-groups for the 3-step separation model (modified Bland&#x2013;Altman plots). <bold>(A)</bold> Classification step 1. Apart from a few outlier values, note the gradual reduction in relative deviation with increasing age. <bold>(B)</bold> Classification step 2. Larger values of relative deviation are seen in step 2 when compared to step 1, and a similar pattern of variation is seen when comparing the <italic>Ad Hoc</italic>-trained model (black) to the Age-balanced model (orange). In step 2, the effect of increasing age on the magnitude of the relative deviation is less obvious. <bold>(C)</bold> Classification step 3. As for step 1 and 2, the largest relative deviations are seen in the youngest age groups (4&#x2013;14&#x202F;days), and a clear decrease in the variation is seen with increasing age for the <italic>Ad-Hoc</italic> trained model. A similar pattern cannot be recognized for the Age-balanced model.</p>
</caption>
<graphic xlink:href="fvets-12-1620338-g002.tif" mimetype="image" mime-subtype="tiff">
<alt-text content-type="machine-generated">Three modified Bland-Altman plots showing classifier performance in relative deviation (percentages) across different age groups. In step 1 the deviation is mostly under 20%. Step 2 and Step 3 show higher fluctuations. Step 2 and 3 are comparisons of the Ad Hoc model in black lines, and the Age-balanced model in gold lines.</alt-text>
</graphic>
</fig>
<table-wrap position="float" id="tab1">
<label>Table 1</label>
<caption>
<p>Performance evaluation of the classification steps of each ML-model based on the relative deviation, Interception over Union calculations (IoU), and Pearson correlation coefficient (PCC) between AI-generated areas and manual annotations.</p>
</caption>
<table frame="hsides" rules="groups">
<thead>
<tr>
<th align="left" valign="top" rowspan="2">Classification step</th>
<th align="center" valign="top" rowspan="2">Age group (days)</th>
<th align="center" valign="top" colspan="2">Relative deviation</th>
<th align="center" valign="top" colspan="2">Pearson correlation</th>
<th align="center" valign="top" colspan="2">Intersection over union</th>
</tr>
<tr>
<th align="center" valign="top">&#x03BC;</th>
<th align="center" valign="top">sd</th>
<th align="center" valign="top">PCC</th>
<th align="left" valign="top">Interpretation</th>
<th align="center" valign="top">&#x03BC;</th>
<th align="center" valign="top">sd</th>
</tr>
</thead>
<tbody>
<tr>
<td align="left" valign="top" rowspan="6">Step 1</td>
<td align="center" valign="bottom">All</td>
<td align="center" valign="bottom">5.1</td>
<td align="center" valign="bottom">4.8</td>
<td align="center" valign="bottom">1.0</td>
<td align="left" valign="bottom">Very strong</td>
<td align="center" valign="top">0.91</td>
<td align="center" valign="top">0.09</td>
</tr>
<tr>
<td align="center" valign="bottom">4</td>
<td align="center" valign="bottom">10.7</td>
<td align="center" valign="bottom">5.0</td>
<td align="center" valign="bottom">1.0</td>
<td align="left" valign="bottom">Very strong</td>
<td align="center" valign="top">0.85</td>
<td align="center" valign="top">0.06</td>
</tr>
<tr>
<td align="center" valign="bottom">14</td>
<td align="center" valign="bottom">5.7</td>
<td align="center" valign="bottom">4.1</td>
<td align="center" valign="bottom">1.0</td>
<td align="left" valign="bottom">Very strong</td>
<td align="center" valign="top">0.91</td>
<td align="center" valign="top">0.07</td>
</tr>
<tr>
<td align="center" valign="bottom">25</td>
<td align="center" valign="bottom">5.9</td>
<td align="center" valign="bottom">3.6</td>
<td align="center" valign="bottom">0.9</td>
<td align="left" valign="bottom">Very strong</td>
<td align="center" valign="top">0.92</td>
<td align="center" valign="top">0.10</td>
</tr>
<tr>
<td align="center" valign="bottom">49</td>
<td align="center" valign="bottom">3.2</td>
<td align="center" valign="bottom">4.5</td>
<td align="center" valign="bottom">0.9</td>
<td align="left" valign="bottom">Very strong</td>
<td align="center" valign="top">0.94</td>
<td align="center" valign="top">0.10</td>
</tr>
<tr>
<td align="center" valign="bottom">67</td>
<td align="center" valign="bottom">2.9</td>
<td align="center" valign="bottom">3.4</td>
<td align="center" valign="bottom">1.0</td>
<td align="left" valign="bottom">Very strong</td>
<td align="center" valign="top">0.93</td>
<td align="center" valign="top">0.09</td>
</tr>
<tr>
<td align="left" valign="top" rowspan="6">Step 2&#x2014;<italic>Ad Hoc</italic> model</td>
<td align="center" valign="bottom">All</td>
<td align="center" valign="bottom">12.0</td>
<td align="center" valign="bottom">14.3</td>
<td align="center" valign="bottom">0.7</td>
<td align="left" valign="bottom">Strong</td>
<td align="center" valign="top">0.79</td>
<td align="center" valign="top">0.19</td>
</tr>
<tr>
<td align="center" valign="bottom">4</td>
<td align="center" valign="bottom">24.6</td>
<td align="center" valign="bottom">20.9</td>
<td align="center" valign="bottom">0.5</td>
<td align="left" valign="bottom">Moderate</td>
<td align="center" valign="top">0.51</td>
<td align="center" valign="top">0.15</td>
</tr>
<tr>
<td align="center" valign="bottom">14</td>
<td align="center" valign="bottom">14.1</td>
<td align="center" valign="bottom">14.5</td>
<td align="center" valign="bottom">0.6</td>
<td align="left" valign="bottom">Strong</td>
<td align="center" valign="top">0.78</td>
<td align="center" valign="top">0.19</td>
</tr>
<tr>
<td align="center" valign="bottom">25</td>
<td align="center" valign="bottom">8.7</td>
<td align="center" valign="bottom">9.2</td>
<td align="center" valign="bottom">0.9</td>
<td align="left" valign="bottom">Very Strong</td>
<td align="center" valign="top">0.84</td>
<td align="center" valign="top">0.09</td>
</tr>
<tr>
<td align="center" valign="bottom">49</td>
<td align="center" valign="bottom">10.0</td>
<td align="center" valign="bottom">12.8</td>
<td align="center" valign="bottom">0.7</td>
<td align="left" valign="bottom">Strong</td>
<td align="center" valign="top">0.84</td>
<td align="center" valign="top">0.13</td>
</tr>
<tr>
<td align="center" valign="bottom">67</td>
<td align="center" valign="bottom">7.6</td>
<td align="center" valign="bottom">9.3</td>
<td align="center" valign="bottom">0.8</td>
<td align="left" valign="bottom">Very Strong</td>
<td align="center" valign="top">0.90</td>
<td align="center" valign="top">0.16</td>
</tr>
<tr>
<td align="left" valign="top" rowspan="6">Step 3&#x2014;<italic>Ad Hoc</italic> model</td>
<td align="center" valign="bottom">All</td>
<td align="center" valign="bottom">12.6</td>
<td align="center" valign="bottom">16.1</td>
<td align="center" valign="bottom">0.9</td>
<td align="left" valign="bottom">Very Strong</td>
<td align="center" valign="top">0.92</td>
<td align="center" valign="top">0.11</td>
</tr>
<tr>
<td align="center" valign="bottom">4</td>
<td align="center" valign="bottom">30.1</td>
<td align="center" valign="bottom">30.8</td>
<td align="center" valign="bottom">0.5</td>
<td align="left" valign="bottom">Moderate</td>
<td align="center" valign="top">0.84</td>
<td align="center" valign="top">0.11</td>
</tr>
<tr>
<td align="center" valign="bottom">14</td>
<td align="center" valign="bottom">15.3</td>
<td align="center" valign="bottom">12.8</td>
<td align="center" valign="bottom">0.9</td>
<td align="left" valign="bottom">Very Strong</td>
<td align="center" valign="top">0.89</td>
<td align="center" valign="top">0.09</td>
</tr>
<tr>
<td align="center" valign="bottom">25</td>
<td align="center" valign="bottom">15.1</td>
<td align="center" valign="bottom">11.4</td>
<td align="center" valign="bottom">0.9</td>
<td align="left" valign="bottom">Very Strong</td>
<td align="center" valign="top">0.95</td>
<td align="center" valign="top">0.11</td>
</tr>
<tr>
<td align="center" valign="bottom">49</td>
<td align="center" valign="bottom">5.6</td>
<td align="center" valign="bottom">5.7</td>
<td align="center" valign="bottom">1.0</td>
<td align="left" valign="bottom">Very Strong</td>
<td align="center" valign="top">0.94</td>
<td align="center" valign="top">0.10</td>
</tr>
<tr>
<td align="center" valign="bottom">67</td>
<td align="center" valign="bottom">7.2</td>
<td align="center" valign="bottom">7.2</td>
<td align="center" valign="bottom">0.8</td>
<td align="left" valign="bottom">Strong</td>
<td align="center" valign="top">0.95</td>
<td align="center" valign="top">0.11</td>
</tr>
<tr>
<td align="left" valign="top" rowspan="6">Step 2&#x2014;Age-balanced model</td>
<td align="center" valign="bottom">All</td>
<td align="center" valign="bottom">11.6</td>
<td align="center" valign="bottom">12.4</td>
<td align="center" valign="bottom">0.7</td>
<td align="left" valign="bottom">Strong</td>
<td align="center" valign="top">0.81</td>
<td align="center" valign="top">0.15</td>
</tr>
<tr>
<td align="center" valign="bottom">4</td>
<td align="center" valign="bottom">18.7</td>
<td align="center" valign="bottom">15.7</td>
<td align="center" valign="bottom">0.6</td>
<td align="left" valign="bottom">Moderate</td>
<td align="center" valign="top">0.67</td>
<td align="center" valign="top">0.13</td>
</tr>
<tr>
<td align="center" valign="bottom">14</td>
<td align="center" valign="bottom">13.9</td>
<td align="center" valign="bottom">13.8</td>
<td align="center" valign="bottom">0.5</td>
<td align="left" valign="bottom">Moderate</td>
<td align="center" valign="top">0.74</td>
<td align="center" valign="top">0.16</td>
</tr>
<tr>
<td align="center" valign="bottom">25</td>
<td align="center" valign="bottom">7.4</td>
<td align="center" valign="bottom">6.1</td>
<td align="center" valign="bottom">0.9</td>
<td align="left" valign="bottom">Very Strong</td>
<td align="center" valign="top">0.85</td>
<td align="center" valign="top">0.08</td>
</tr>
<tr>
<td align="center" valign="bottom">49</td>
<td align="center" valign="bottom">9.5</td>
<td align="center" valign="bottom">9.7</td>
<td align="center" valign="bottom">0.7</td>
<td align="left" valign="bottom">Strong</td>
<td align="center" valign="top">0.86</td>
<td align="center" valign="top">0.14</td>
</tr>
<tr>
<td align="center" valign="bottom">67</td>
<td align="center" valign="bottom">11.3</td>
<td align="center" valign="bottom">14.5</td>
<td align="center" valign="bottom">0.6</td>
<td align="left" valign="bottom">Moderate</td>
<td align="center" valign="top">0.87</td>
<td align="center" valign="top">0.15</td>
</tr>
<tr>
<td align="left" valign="top" rowspan="6">Step 3&#x2014;Age-balanced model</td>
<td align="center" valign="bottom">All</td>
<td align="center" valign="bottom">22.9</td>
<td align="center" valign="bottom">16.6</td>
<td align="center" valign="bottom">0.7</td>
<td align="left" valign="bottom">Strong</td>
<td align="center" valign="top">0.79</td>
<td align="center" valign="top">0.11</td>
</tr>
<tr>
<td align="center" valign="bottom">4</td>
<td align="center" valign="bottom">31.2</td>
<td align="center" valign="bottom">17.6</td>
<td align="center" valign="bottom">0.3</td>
<td align="left" valign="bottom">Weak</td>
<td align="center" valign="top">0.73</td>
<td align="center" valign="top">0.13</td>
</tr>
<tr>
<td align="center" valign="bottom">14</td>
<td align="center" valign="bottom">21.4</td>
<td align="center" valign="bottom">21.7</td>
<td align="center" valign="bottom">0.9</td>
<td align="left" valign="bottom">Very Strong</td>
<td align="center" valign="top">0.78</td>
<td align="center" valign="top">0.07</td>
</tr>
<tr>
<td align="center" valign="bottom">25</td>
<td align="center" valign="bottom">19.8</td>
<td align="center" valign="bottom">13.1</td>
<td align="center" valign="bottom">0.7</td>
<td align="left" valign="bottom">Strong</td>
<td align="center" valign="top">0.76</td>
<td align="center" valign="top">0.10</td>
</tr>
<tr>
<td align="center" valign="bottom">49</td>
<td align="center" valign="bottom">28.2</td>
<td align="center" valign="bottom">14.3</td>
<td align="center" valign="bottom">0.8</td>
<td align="left" valign="bottom">Strong</td>
<td align="center" valign="top">0.80</td>
<td align="center" valign="top">0.10</td>
</tr>
<tr>
<td align="center" valign="bottom">67</td>
<td align="center" valign="bottom">13.3</td>
<td align="center" valign="bottom">10.9</td>
<td align="center" valign="bottom">0.7</td>
<td align="left" valign="bottom">Strong</td>
<td align="center" valign="top">0.84</td>
<td align="center" valign="top">0.11</td>
</tr>
</tbody>
</table>
<table-wrap-foot>
<p>&#x03BC;, mean; sd, standard deviation; PCC, Pearson Correlation Coefficient.</p>
</table-wrap-foot>
</table-wrap>
<fig position="float" id="fig3">
<label>Figure 3</label>
<caption>
<p>Scatterplot of the correlation between AI-generated and manually annotated areas for the three steps in the separation model. <bold>(A)</bold> Step 1. A very strong positive correlation is seen between manual and AI-generated areas with a Pearson correlation coefficient of 0.968. <bold>(B)</bold> Step 2. A strong, but slightly less convincing correlation is seen between AI-generated and manual areas for step 2. The <italic>Ad hoc</italic> trained model (black dots) and the Age-balanced model (blue triangles) yield similar results. <bold>(C)</bold> Step 3. The correlation between manual and AI-generated areas is very strong for the Ad hoc trained model (black dots), while slightly less pronounced for the Age-balanced model (blue triangles).</p>
</caption>
<graphic xlink:href="fvets-12-1620338-g003.tif" mimetype="image" mime-subtype="tiff">
<alt-text content-type="machine-generated">Three scatterplots depict the correlation between AI-generated and manually annotated areas across different segmentation steps. The top left graph shows tissue detection with a Pearson value of 0.968. The top right graph is mucosal segmentation showing Pearson values of 0.673 for "Ad Hoc" and 0.678 for "Age-balanced." The bottom graph shows epithelial segmentation with Pearson values of 0.868 for "Ad Hoc" and 0.717 for "Age-balanced." Each graph includes a trend line indicating correlation strength. The models are represented by black dots and blue triangles.</alt-text>
</graphic>
</fig>
<table-wrap position="float" id="tab2">
<label>Table 2</label>
<caption>
<p>Summarized counts of categorized model performance levels (relative deviation), subdivided by age group and classification step.</p>
</caption>
<table frame="hsides" rules="groups">
<thead>
<tr>
<th align="left" valign="top" rowspan="3">Age group</th>
<th align="left" valign="top" rowspan="3">Classification step</th>
<th align="center" valign="top" colspan="4"><bold>Agreement level</bold></th>
</tr>
<tr>
<th align="center" valign="top"><bold>Very good</bold></th>
<th align="center" valign="top"><bold>Good</bold></th>
<th align="center" valign="top"><bold>Fair</bold></th>
<th align="center" valign="top"><bold>Poor</bold></th>
</tr>
<tr>
<th align="center" valign="top">(RD&#x202F;&#x003C;&#x202F;5%)</th>
<th align="center" valign="top">(RD&#x202F;=&#x202F;5&#x2013;10%)</th>
<th align="center" valign="top">(RD&#x202F;=&#x202F;10&#x2013;20%)</th>
<th align="center" valign="top">(RD&#x202F;&#x003E;&#x202F;20%)</th>
</tr>
</thead>
<tbody>
<tr>
<td align="left" valign="top" rowspan="5">4&#x202F;Days (<italic>n</italic>&#x202F;=&#x202F;20)</td>
<td align="left" valign="bottom">Step 1</td>
<td align="center" valign="top">6</td>
<td align="center" valign="top">8</td>
<td align="center" valign="top">5</td>
<td align="center" valign="top">1</td>
</tr>
<tr>
<td align="left" valign="bottom">Step 2&#x2014;<italic>Ad Hoc</italic> model</td>
<td align="center" valign="top">2</td>
<td align="center" valign="top">4</td>
<td align="center" valign="top">6</td>
<td align="center" valign="top">8</td>
</tr>
<tr>
<td align="left" valign="bottom">Step 2&#x2014;Age-balanced model</td>
<td align="center" valign="top">2</td>
<td align="center" valign="top">5</td>
<td align="center" valign="top">8</td>
<td align="center" valign="top">5</td>
</tr>
<tr>
<td align="left" valign="bottom">Step 3&#x2014;<italic>Ad Hoc</italic> model</td>
<td align="center" valign="top">2</td>
<td align="center" valign="top">1</td>
<td align="center" valign="top">6</td>
<td align="center" valign="top">11</td>
</tr>
<tr>
<td align="left" valign="bottom">Step 3&#x2014;Age-balanced model</td>
<td align="center" valign="top">0</td>
<td align="center" valign="top">2</td>
<td align="center" valign="top">5</td>
<td align="center" valign="top">13</td>
</tr>
<tr>
<td align="left" valign="top" rowspan="5">14&#x202F;Days (<italic>n</italic>&#x202F;=&#x202F;25)</td>
<td align="left" valign="bottom">Step 1</td>
<td align="center" valign="top">21</td>
<td align="center" valign="top">4</td>
<td align="center" valign="top">0</td>
<td align="center" valign="top">0</td>
</tr>
<tr>
<td align="left" valign="bottom">Step 2&#x2014;<italic>Ad Hoc</italic> model</td>
<td align="center" valign="top">8</td>
<td align="center" valign="top">5</td>
<td align="center" valign="top">7</td>
<td align="center" valign="top">5</td>
</tr>
<tr>
<td align="left" valign="bottom">Step 2&#x2014;Age-balanced model</td>
<td align="center" valign="top">6</td>
<td align="center" valign="top">4</td>
<td align="center" valign="top">12</td>
<td align="center" valign="top">3</td>
</tr>
<tr>
<td align="left" valign="bottom">Step 3&#x2014;<italic>Ad Hoc</italic> model</td>
<td align="center" valign="top">7</td>
<td align="center" valign="top">5</td>
<td align="center" valign="top">6</td>
<td align="center" valign="top">7</td>
</tr>
<tr>
<td align="left" valign="bottom">Step 3&#x2014;Age-balanced model</td>
<td align="center" valign="top">5</td>
<td align="center" valign="top">6</td>
<td align="center" valign="top">4</td>
<td align="center" valign="top">10</td>
</tr>
<tr>
<td align="left" valign="top" rowspan="5">25&#x202F;Days (<italic>n</italic>&#x202F;=&#x202F;25)</td>
<td align="left" valign="bottom">Step 1</td>
<td align="center" valign="top">16</td>
<td align="center" valign="top">6</td>
<td align="center" valign="top">2</td>
<td align="center" valign="top">1</td>
</tr>
<tr>
<td align="left" valign="bottom">Step 2&#x2014;<italic>Ad Hoc</italic> model</td>
<td align="center" valign="top">13</td>
<td align="center" valign="top">6</td>
<td align="center" valign="top">3</td>
<td align="center" valign="top">3</td>
</tr>
<tr>
<td align="left" valign="bottom">Step 2&#x2014;Age-balanced model</td>
<td align="center" valign="top">13</td>
<td align="center" valign="top">6</td>
<td align="center" valign="top">5</td>
<td align="center" valign="top">1</td>
</tr>
<tr>
<td align="left" valign="bottom">Step 3&#x2014;<italic>Ad Hoc</italic> model</td>
<td align="center" valign="top">4</td>
<td align="center" valign="top">7</td>
<td align="center" valign="top">9</td>
<td align="center" valign="top">5</td>
</tr>
<tr>
<td align="left" valign="bottom">Step 3&#x2014;Age-balanced model</td>
<td align="center" valign="top">3</td>
<td align="center" valign="top">4</td>
<td align="center" valign="top">7</td>
<td align="center" valign="top">11</td>
</tr>
<tr>
<td align="left" valign="top" rowspan="5">49&#x202F;Days (<italic>n</italic>&#x202F;=&#x202F;45)</td>
<td align="left" valign="bottom">Step 1</td>
<td align="center" valign="top">33</td>
<td align="center" valign="top">5</td>
<td align="center" valign="top">6</td>
<td align="center" valign="top">1</td>
</tr>
<tr>
<td align="left" valign="bottom">Step 2&#x2014;<italic>Ad Hoc</italic> model</td>
<td align="center" valign="top">18</td>
<td align="center" valign="top">15</td>
<td align="center" valign="top">8</td>
<td align="center" valign="top">4</td>
</tr>
<tr>
<td align="left" valign="bottom">Step 2&#x2014;Age-balanced model</td>
<td align="center" valign="top">18</td>
<td align="center" valign="top">14</td>
<td align="center" valign="top">7</td>
<td align="center" valign="top">6</td>
</tr>
<tr>
<td align="left" valign="bottom">Step 3&#x2014;<italic>Ad Hoc</italic> model</td>
<td align="center" valign="top">26</td>
<td align="center" valign="top">14</td>
<td align="center" valign="top">4</td>
<td align="center" valign="top">1</td>
</tr>
<tr>
<td align="left" valign="bottom">Step 3&#x2014;Age-balanced model</td>
<td align="center" valign="top">3</td>
<td align="center" valign="top">3</td>
<td align="center" valign="top">7</td>
<td align="center" valign="top">32</td>
</tr>
<tr>
<td align="left" valign="top" rowspan="5">67&#x202F;Days (<italic>n</italic>&#x202F;=&#x202F;30)</td>
<td align="left" valign="bottom">Step 1</td>
<td align="center" valign="top">24</td>
<td align="center" valign="top">4</td>
<td align="center" valign="top">2</td>
<td align="center" valign="top">0</td>
</tr>
<tr>
<td align="left" valign="bottom">Step 2&#x2014;<italic>Ad Hoc</italic> model</td>
<td align="center" valign="top">17</td>
<td align="center" valign="top">6</td>
<td align="center" valign="top">5</td>
<td align="center" valign="top">2</td>
</tr>
<tr>
<td align="left" valign="bottom">Step 2&#x2014;Age-balanced model</td>
<td align="center" valign="top">15</td>
<td align="center" valign="top">5</td>
<td align="center" valign="top">4</td>
<td align="center" valign="top">6</td>
</tr>
<tr>
<td align="left" valign="bottom">Step 3&#x2014;<italic>Ad Hoc</italic> model</td>
<td align="center" valign="top">14</td>
<td align="center" valign="top">10</td>
<td align="center" valign="top">5</td>
<td align="center" valign="top">1</td>
</tr>
<tr>
<td align="left" valign="bottom">Step 3&#x2014;Age-balanced model</td>
<td align="center" valign="top">11</td>
<td align="center" valign="top">3</td>
<td align="center" valign="top">6</td>
<td align="center" valign="top">10</td>
</tr>
</tbody>
</table>
<table-wrap-foot>
<p>RD, Relative deviation.</p>
</table-wrap-foot>
</table-wrap>
</sec>
<sec id="sec16">
<label>3.2</label>
<title>Step 2&#x2014;mucosal segmentation</title>
<p>Mucosal segmentation exhibited greater variability compared to Step 1. Relative deviations varied across age groups, with mean deviations as high as 24.6% in the youngest piglets but improving to 7.6&#x2013;10.0% in older age groups (<xref ref-type="table" rid="tab1">Table 1</xref>; <xref ref-type="fig" rid="fig2">Figure 2</xref>). The Pearson correlation coefficients dropped similarly, with an overall coefficient of 0.67 corresponding to strong linearity between AI-generated and manual annotations (<xref ref-type="fig" rid="fig3">Figure 3B</xref>, <xref ref-type="supplementary-material" rid="SM1">Supplementary Figure 1</xref>). Categorization of agreement level revealed a notable age-dependent trend in the performance of Step 2. For example, in the youngest group (4&#x202F;days), only 10% of cases achieved &#x201C;<italic>very good</italic>&#x201D; agreement, while 40% were categorized as &#x201C;<italic>poor</italic>.&#x201D; Performance improved significantly in older groups, reaching 57% &#x201C;<italic>very good</italic>&#x201D; and only 7% &#x201C;<italic>poor</italic>&#x201D; at 67&#x202F;days (<xref ref-type="table" rid="tab2">Table 2</xref>). The spatial alignment of annotated areas mirrored the trend for the other performance parameters, yielding an overall IoU of 0.78&#x202F;&#x00B1;&#x202F;0.19, and a positive association between IoU and increasing age (<xref ref-type="table" rid="tab1">Table 1</xref>).</p>
</sec>
<sec id="sec17">
<label>3.3</label>
<title>Step 3&#x2014;epithelial segmentation</title>
<p>The final step in the segmentation model presented similar challenges as those in Step 2 with an overall mean deviation of 12.6%, and a large variation was seen between the different age groups ranging from 5.6&#x2013;30.1%. As with the previous steps, the largest variation was seen in the youngest age group (4&#x202F;days), which also affected the Pearson correlation coefficient for this age to drop to 0.49 (moderate linear correlation). The Pearson correlation coefficients for the remaining age groups were considerably stronger, varying from 0.77&#x2013;0.96 (<xref ref-type="table" rid="tab1">Table 1</xref>, <xref ref-type="fig" rid="fig3">Figure 3C</xref>; <xref ref-type="supplementary-material" rid="SM1">Supplementary Figure 2</xref>). When evaluating the categorized data, inferior performance was again observed in the youngest age groups, especially in the 4-day-old piglets, where more than half of the samples (55%) were assigned &#x201C;<italic>poor</italic>.&#x201D; The trend was almost opposite in the oldest age group, where 47% were categorized as &#x201C;<italic>very good</italic>&#x201D; agreement, and only 1 piglet ended up in the &#x201C;<italic>poor</italic>&#x201D; agreement category (<xref ref-type="table" rid="tab2">Table 2</xref>). Despite the deviation in area size, the alignment between manually annotated and model-generated areas remained high, with an overall IoU of 0.92&#x202F;&#x00B1;&#x202F;0.11.</p>
</sec>
<sec id="sec18">
<label>3.4</label>
<title>Comparison of <italic>Ad Hoc</italic> and Age-balanced models</title>
<p>When comparing the performance of the <italic>Ad Hoc</italic> trained model to the Age-balanced model, notable differences emerged in Step 3. For Step 2 (mucosal segmentation), the overall performance was comparable between the two models (<xref ref-type="table" rid="tab1">Table 1</xref>; <xref ref-type="fig" rid="fig2">Figures 2B</xref>, <xref ref-type="fig" rid="fig3">3B</xref>). However, in Step 3 (epithelial segmentation), the <italic>Ad Hoc</italic> model consistently outperformed the Age-balanced model across all age groups. For example, in 49-day-old piglets, the <italic>Ad Hoc</italic> trained model achieved 59% &#x201C;<italic>very good</italic>&#x201D; agreement, while the Age-balanced model only achieved &#x201C;<italic>very good</italic>&#x201D; agreement in 7% of cases, and 70% was categorized as &#x201C;<italic>poor</italic>&#x201D; agreement (<xref ref-type="table" rid="tab2">Table 2</xref>). Relative deviation, Pearson correlation coefficient, and IoU values mirrored these results, with the Age-balanced model exhibiting consistently larger deviations than the <italic>Ad Hoc</italic> model (<xref ref-type="table" rid="tab1">Table 1</xref>; <xref ref-type="fig" rid="fig3">Figure 3C</xref>). The clear age-dependent decrease in relative deviation seen for the final step of the <italic>Ad Hoc</italic> trained model was not evident for the age-balanced model (<xref ref-type="fig" rid="fig2">Figure 2C</xref>).</p>
</sec>
<sec id="sec19">
<label>3.5</label>
<title>Translatability to duodenum and ileum</title>
<p>The performance of the <italic>Ad Hoc</italic> model was evaluated on duodenum and ileum samples to assess its translatability across different segments of the small intestine. Tissue identification (Step 1) demonstrated consistent performance across all three anatomical regions (<xref ref-type="supplementary-material" rid="SM1">Supplementary Figure 3A</xref>). However, while mucosal segmentation (Step 2) showed poor results in the youngest age group for both duodenum and ileum, the performance was generally good in older age groups, with only slightly inferior performance in duodenum and ileum compared to the associated jejunum samples (<xref ref-type="supplementary-material" rid="SM1">Supplementary Figure 3B</xref>). Epithelial segmentation (Step 3) exhibited stable accuracy across all age groups in duodenum, comparable to jejunal performance. In contrast, ileum displayed an age-dependent improvement in accuracy, with better results in older piglets. Post-weaning, the relative deviation averaged &#x2212;5% for duodenum, &#x2212;4% for jejunum, and 0% for ileum, reflecting &#x201C;<italic>very good</italic>&#x201D; performance for Step 3 across all segments in older animals (<xref ref-type="supplementary-material" rid="SM1">Supplementary Figure 3C</xref>).</p>
</sec>
<sec id="sec20">
<label>3.6</label>
<title>Qualitative assessment of model errors</title>
<p>During the comparison of AI-generated and manually annotated areas, a qualitative assessment of classifier errors was performed. Common segmentation errors were classification step-specific, although some mistakes were shared between Step 2 and 3 of the classification process.</p>
<sec id="sec21">
<label>3.6.1</label>
<title>Step 1</title>
<p>For Step 1, the classification of each pixel relied on a threshold value, which determined whether a pixel was categorized as background or tissue. While this approach was effective overall, several specific challenges were identified. In samples where the luminal content was not completely removed, or the lumen contained cellular debris, the classifier misinterpreted these elements as part of the tissue (<xref ref-type="fig" rid="fig4">Figure 4A</xref>). Moreover, due to the low-resolution settings of the classifier, small spaces between villi were often undetected and erroneously included in the tissue area. These false inclusions were more common in samples with tightly packed villi, especially prominent in younger animals. Finally, in piglets exhibiting substantial submucosal edema, dilated lymphatics and larger vessels were misclassified as background. The lack of staining in these regions caused the model to interpret them as non-tissue (<xref ref-type="fig" rid="fig4">Figure 4A</xref>).</p>
<fig position="float" id="fig4">
<label>Figure 4</label>
<caption>
<p>Frequently observed classification errors. <bold>(A)</bold> In step 1, luminal content and cellular debris was misclassified as part of the tissue (black arrows), and in cases of submucosal edema, dilated vessels were misinterpreted as part of the background (white arrow). <bold>(B)</bold> In step 2, fetal-type vacuolated epithelial cells on the villi of young piglets were often misclassified as part of the submucosa (white arrow). <bold>(C)</bold> In step 3, one of the commonly observed errors was the misclassification of crypt abscesses as part of the lamina propria (white arrows).</p>
</caption>
<graphic xlink:href="fvets-12-1620338-g004.tif" mimetype="image" mime-subtype="tiff">
<alt-text content-type="machine-generated">Image panel with three histological images showing frequently observed classification errors of the 3 step separation model. Image A show a jejunal segment with the green tissue-identification overlay. Black arrows point to areas where luminal content is classified as tissue. White arrows point at vascular structures classified as background. Image B shows jejunal villi with the blue and pink overlay from mucosal segmentation. The white arrow points to an area with epithelial vacuolization falsely classified as submucosal tissue. Image C shows two jejunal crypts with luminal neutrophils (crypt abscesses), and a yellow overlay falsely classifying the luminal cells as part of lamina propria.</alt-text>
</graphic>
</fig>
</sec>
</sec>
<sec id="sec22">
<label>3.7</label>
<title>Step 2</title>
<p>In Step 2, the segmentation of the tissue into mucosa and submucosa relied on the training of a random trees algorithm. A predominant error was observed in younger piglets (4&#x2013;21&#x202F;days), where vacuolated fetal-type enterocytes in the epithelial lining were frequently misclassified as part of the submucosal tissues due to their distinct texture and fainter staining intensity (<xref ref-type="fig" rid="fig4">Figure 4B</xref>).</p>
<sec id="sec23">
<label>3.7.1</label>
<title>Step 3</title>
<p>In Step 3, pixel classification focused on differentiating the epithelial layer from the lamina propria, however, several recurring errors impacted model performance. Goblet cells, with their distinct cytoplasmic mucin stores and excentric, often not clearly visible nuclei, were occasionally misinterpreted as part of the lamina propria. Similarly, crypt abscesses, characterized by accumulations of cellular debris and neutrophilic granulocytes within crypt lumens, were often misclassified as lamina propria as well (<xref ref-type="fig" rid="fig4">Figure 4C</xref>). In younger piglets, the presence of fetal-type vacuolated epithelial cells, as seen in Step 2, contributed to a general overestimation of the lamina propria area by being incorrectly categorized as non-epithelial tissue. Conversely, in the age-balanced model, a notable underestimation of the lamina propria area was observed in piglets aged 25&#x2013;67&#x202F;days, where substantial portions of the lamina propria were misclassified as epithelial tissue, likely reflecting the model&#x2019;s attempted adaptation to earlier developmental stages.</p>
</sec>
</sec>
</sec>
<sec sec-type="discussion" id="sec24">
<label>4</label>
<title>Discussion</title>
<p>This study demonstrated the feasibility of using a supervised ML model to divide the histological layers of the intestinal wall in piglets through a three-step segmentation approach. Despite being trained on only 8&#x2013;15 samples&#x2014;a sample size chosen to reflect the commonly available dataset sizes in veterinary studies and, also complying with the hardware limitations of a standard laptop&#x2014;the model achieved &#x201C;<italic>good</italic>&#x201D; to &#x201C;<italic>very good</italic>&#x201D; agreement between AI-generated areas and manually annotated areas for a substantial proportion of the samples, particularly in piglets post-weaning. However, the structural complexity of the intestinal wall and the heterogeneity of the dataset suggest that additional training data would be required to enable a more unsupervised application of the model.</p>
<p>Surprisingly, the model showed reasonable translatability to other anatomical regions, including correct segmentation of structures like Br&#x00FC;nner&#x2019;s glands in the duodenum despite no prior training on this segment. This underlines the model&#x2019;s potential applicability as a generalized &#x201C;small intestine model,&#x201D; rather than being specific to jejunal tissues, although tailored training for each anatomical location should always be preferred. Observed model errors fell into two main categories: (1) intrinsic limitations, such as the inability of the thresholding approach to distinguish between intestinal content and tissue, and (2) training deficits, such as misclassification of goblet cells and lesions like crypt abscesses. While the latter could most likely be resolved by including sufficient amounts of training examples, the intrinsic limitations are a bit different. For instance, in this study we applied a single-level thresholding method to identify tissue regions based on the optic density of each pixel. While effective for many samples, this method falls short in instances where images contain non-tissue components (e.g., intestinal content and staining artefacts) or unstained tissue elements (e.g., empty vascular structures). A way to overcome this issue would involve multilevel thresholding, using thresholds at different intensities or from multiple color channels (<xref ref-type="bibr" rid="ref25">25</xref>). It should also be noted that the IoU values reported here are approximations rather than exact measurements, as QuPath relies on Java&#x2019;s geometric operations (java.awt.geom.area). For highly irregular structures such as villi, or annotations with multiple holes, minor deviations can arise due to floating-point rounding or topological inconsistencies. Although generally small, these potential inaccuracies should be considered when interpreting IoU values in complex biological tissues. Furthermore, the commonly used object detection threshold of 0.50 may be insufficient for area-based annotations (<xref ref-type="bibr" rid="ref26">26</xref>). In applications such as cell detection or counting, higher IoU levels may be necessary to ensure accurate quantitative results.</p>
<p>An additional consideration relates to the annotation process used for model training. In this study, all manual annotations were performed by a single observer. While this approach ensured consistency throughout the dataset, it introduces a potential observer bias. However, given that the annotated structures&#x2014;such as mucosa, submucosa, and epithelial layers&#x2014;are visually distinct and histologically well-defined, the impact of individual interpretation is expected to be minimal. Future studies could validate annotation robustness by incorporating interobserver variability assessments or consensus-based annotations from multiple pathologists.</p>
<p>A key finding was the age-related variation in model performance. Neonatal tissues, such as those containing fetal-type vacuolated epithelial cells, pose significant challenges for both pathologists and AI-models due to their unique morphology (<xref ref-type="bibr" rid="ref27 ref28 ref29 ref30">27&#x2013;30</xref>). Fetal-type vacuolated epithelial cells in the intestine are specialized cells, essential for the uptake of colostral macromolecules, and are gradually replaced by mature enterocytes by 3&#x202F;weeks of age (<xref ref-type="bibr" rid="ref31">31</xref>). Despite efforts to account for this by deliberately incorporating these variations into the Age-balanced model, it underperformed compared to the <italic>Ad Hoc</italic> model&#x2014;particularly in older age groups-contrary to our expectations. This indicates that even the Age-balanced model struggled to accommodate the marked heterogeneity associated with gut development. The findings underscore the difficulty of achieving a reliable &#x201C;one-size-fits-all&#x201D; solution when working with age-diverse datasets. This challenge is not unique to the intestinal tract and is likely relevant for other organ systems with distinct neonatal morphology, such as the liver, kidneys, and brain. Researchers applying machine learning models to neonatal tissues should be aware of the intrinsic heterogeneity arising from tissue immaturity and consider this during both study design and model evaluation. Moreover, when using pretrained models, it is essential to verify the age range of the animals included in the original training data, as mismatched developmental stages may significantly compromise model performance. To enhance model robustness, future strategies could focus on either (1) expanding the training dataset to better capture biological variability, or (2) developing separate models for neonatal and mature tissues to reduce variability within datasets, while carefully managing the risk of overfitting. Furthermore, given the anatomical and physiological similarities between porcine and human tissues (<xref ref-type="bibr" rid="ref32">32</xref>), incorporating transfer learning could also possibly leverage publicly available human datasets to augment training data. This approach would enable the model to benefit from larger datasets while retaining a focus on pig-specific features, addressing the challenges of limited sample sizes and supporting cross-species applicability.</p>
<p>From a disease perspective, the histopathological presentation of PWD in pigs is highly variable, and previous studies have failed to consistently associate specific lesions with the occurrence of clinical diarrhea, likely reflecting its multifactorial etiology (<xref ref-type="bibr" rid="ref6">6</xref>, <xref ref-type="bibr" rid="ref7">7</xref>). Reported lesions include villous atrophy and fusion, inflammatory cell infiltrations, crypt abscesses, edema, hemorrhage, hyperemia, crypt hyperplasia and dilation, necrosis, and various types of exudations. From the perspective of the present segmentation model, some of these features are expected to be accommodated without difficulty, whereas others are likely to compromise performance. For example, the model is inherently resilient to changes such as villous atrophy, inflammatory infiltrations, edema, hyperemia, hemorrhage, and crypt hyperplasia, since these do not substantially alter the overall boundaries between histological layers and the individual cell morphology. In contrast, lesions that markedly alter surface architecture or introduce luminal structures not sufficiently represented in the training data&#x2014;e.g. crypt abscesses, fibrinous exudation, pseudomembrane formation, and necrosis&#x2014;are prone to misclassification. This was already evident in the present study for crypt abscesses, which were frequently misidentified, and similar limitations can be anticipated for other intraluminal or surface-associated lesions. Understanding these lesion-specific vulnerabilities is important when applying the model in studies of PWD or other enteropathies, as histopathological variability may influence segmentation accuracy and, consequently, quantitative outputs.</p>
<p>In conclusion, this study demonstrates that ML applications in histopathology are feasible even with small sample sizes, offering a practical and accessible tool for veterinary pathologists. However, models trained on limited datasets should be applied cautiously and not relied upon blindly. Users must remain highly aware of age-related morphological changes, which can significantly impact model training and performance. Instead, such models are best utilized as supervised/assisting tools to aid in generating quantitative measures, enabling pathologists to combine computational power with expert oversight.</p>
</sec>
</body>
<back>
<sec sec-type="data-availability" id="sec25">
<title>Data availability statement</title>
<p>The raw data supporting the conclusions of this article will be made available by the authors, without undue reservation.</p>
</sec>
<sec sec-type="ethics-statement" id="sec26">
<title>Ethics statement</title>
<p>The animal study was approved by The Danish Animal Inspectorate (License no: 2022-15-0201-01324). The study was conducted in accordance with the local legislation and institutional requirements.</p>
</sec>
<sec sec-type="author-contributions" id="sec27">
<title>Author contributions</title>
<p>CB: Formal Analysis, Methodology, Data curation, Project administration, Visualization, Conceptualization, Validation, Software, Writing &#x2013; original draft, Investigation. MH: Writing &#x2013; review &#x0026; editing, Investigation, Data curation. SN: Writing &#x2013; review &#x0026; editing, Supervision, Formal analysis, Validation. HJ: Writing &#x2013; review &#x0026; editing, Conceptualization, Funding acquisition, Resources, Supervision, Project administration.</p>
</sec>
<sec sec-type="funding-information" id="sec28">
<title>Funding</title>
<p>The author(s) declare that financial support was received for the research and/or publication of this article. This study was conducted as part of the PIG-PARADIGM project, funded by the Novo Nordisk Foundation (Grant no. NNFSA210073688).</p>
</sec>
<ack>
<p>We would like to thank the Core For Integrated Microscopy (CFIM) at the Panum Institute, University of Copenhagen, for their help with creating a suitable scanning profile for digitization of the histological slides.</p>
</ack>
<sec sec-type="COI-statement" id="sec29">
<title>Conflict of interest</title>
<p>The authors declare that the research was conducted in the absence of any commercial or financial relationships that could be construed as a potential conflict of interest.</p>
</sec>
<sec sec-type="ai-statement" id="sec30">
<title>Generative AI statement</title>
<p>The author(s) declare that Gen AI was used in the creation of this manuscript. For spell check and linguistic adjustments.</p>
<p>Any alternative text (alt text) provided alongside figures in this article has been generated by Frontiers with the support of artificial intelligence and reasonable efforts have been made to ensure accuracy, including review by the authors wherever possible. If you identify any issues, please contact us.</p>
</sec>
<sec sec-type="disclaimer" id="sec31">
<title>Publisher&#x2019;s note</title>
<p>All claims expressed in this article are solely those of the authors and do not necessarily represent those of their affiliated organizations, or those of the publisher, the editors and the reviewers. Any product that may be evaluated in this article, or claim that may be made by its manufacturer, is not guaranteed or endorsed by the publisher.</p>
</sec>
<sec sec-type="supplementary-material" id="sec32">
<title>Supplementary material</title>
<p>The Supplementary material for this article can be found online at: <ext-link xlink:href="https://www.frontiersin.org/articles/10.3389/fvets.2025.1620338/full#supplementary-material" ext-link-type="uri">https://www.frontiersin.org/articles/10.3389/fvets.2025.1620338/full#supplementary-material</ext-link></p>
<supplementary-material xlink:href="Supplementary_file_1.docx" id="SM1" mimetype="application/vnd.openxmlformats-officedocument.wordprocessingml.document" xmlns:xlink="http://www.w3.org/1999/xlink"/>
</sec>
<ref-list>
<title>References</title>
<ref id="ref1"><label>1.</label><citation citation-type="journal"><person-group person-group-type="author"><name><surname>van Beers-Schreurs</surname><given-names>HM</given-names></name> <name><surname>Vellenga</surname><given-names>L</given-names></name> <name><surname>Wensing</surname><given-names>T</given-names></name> <name><surname>Breukink</surname><given-names>HJ</given-names></name></person-group>. <article-title>The pathogenesis of the post-weaning syndrome in weaned piglets: a review</article-title>. <source>Vet Q</source>. (<year>1992</year>) <volume>14</volume>:<fpage>29</fpage>&#x2013;<lpage>34</lpage>. doi: <pub-id pub-id-type="doi">10.1080/01652176.1992.9694322</pub-id>, PMID: <pub-id pub-id-type="pmid">1574833</pub-id></citation></ref>
<ref id="ref2"><label>2.</label><citation citation-type="book"><person-group person-group-type="author"><name><surname>Gelberg</surname><given-names>HE</given-names></name></person-group>. <article-title>Alimentary system and the peritoneum, omentum, mesentery, and peritoneal cavity</article-title> In: <person-group person-group-type="editor"><name><surname>Zachary</surname><given-names>JF</given-names></name></person-group>, editor. <source>Pathologic basis of veterinary disease</source>. <edition>6th edit.</edition> ed. <publisher-loc>St. Louis, Missouri</publisher-loc>: <publisher-name>Elsevier</publisher-name> (<year>2017</year>). <fpage>401</fpage>&#x2013;<lpage>3</lpage>.</citation></ref>
<ref id="ref3"><label>3.</label><citation citation-type="journal"><person-group person-group-type="author"><name><surname>Luppi</surname><given-names>A</given-names></name></person-group>. <article-title>Swine enteric colibacillosis: diagnosis, therapy and antimicrobial resistance</article-title>. <source>Porc Health Manag</source>. (<year>2017</year>) <volume>3</volume>:<fpage>1</fpage>&#x2013;<lpage>18</lpage>. doi: <pub-id pub-id-type="doi">10.1186/s40813-017-0063-4</pub-id></citation></ref>
<ref id="ref4"><label>4.</label><citation citation-type="journal"><person-group person-group-type="author"><name><surname>Rhouma</surname><given-names>M</given-names></name> <name><surname>Fairbrother</surname><given-names>JM</given-names></name> <name><surname>Beaudry</surname><given-names>F</given-names></name> <name><surname>Letellier</surname><given-names>A</given-names></name></person-group>. <article-title>Post weaning diarrhea in pigs: risk factors and non-colistin-based control strategies</article-title>. <source>Acta Vet Scand</source>. (<year>2017</year>) <volume>59</volume>:<fpage>1</fpage>&#x2013;<lpage>19</lpage>. doi: <pub-id pub-id-type="doi">10.1186/s13028-017-0299-7</pub-id>, PMID: <pub-id pub-id-type="pmid">28526080</pub-id></citation></ref>
<ref id="ref5"><label>5.</label><citation citation-type="journal"><person-group person-group-type="author"><name><surname>Eriksen</surname><given-names>E&#x00D8;</given-names></name> <name><surname>Kudirkiene</surname><given-names>E</given-names></name> <name><surname>Christensen</surname><given-names>AE</given-names></name> <name><surname>Agerlin</surname><given-names>MV</given-names></name> <name><surname>Weber</surname><given-names>NR</given-names></name> <name><surname>N&#x00F8;dtvedt</surname><given-names>A</given-names></name> <etal/></person-group>. <article-title>Post-weaning diarrhea in pigs weaned without medicinal zinc: risk factors, pathogen dynamics, and association to growth rate</article-title>. <source>Porc Health Manag</source>. (<year>2021</year>) <volume>7</volume>:<fpage>1</fpage>&#x2013;<lpage>19</lpage>. doi: <pub-id pub-id-type="doi">10.1186/s40813-021-00232-z</pub-id></citation></ref>
<ref id="ref6"><label>6.</label><citation citation-type="journal"><person-group person-group-type="author"><name><surname>Blirup-Plum</surname><given-names>SA</given-names></name> <name><surname>Jensen</surname><given-names>HE</given-names></name> <name><surname>Nielsen</surname><given-names>SS</given-names></name> <name><surname>Pankoke</surname><given-names>K</given-names></name> <name><surname>Hansen</surname><given-names>MS</given-names></name> <name><surname>Pedersen</surname><given-names>KS</given-names></name> <etal/></person-group>. <article-title>Gastro-intestinal lesions are not relatable to diarrhoea or specific pathogens in post-weaning diarrhoea (PWD) in pigs</article-title>. <source>Acta Vet Scand</source>. (<year>2023</year>) <volume>65</volume>:<fpage>1</fpage>&#x2013;<lpage>18</lpage>. doi: <pub-id pub-id-type="doi">10.1186/s13028-023-00693-y</pub-id>, PMID: <pub-id pub-id-type="pmid">37400879</pub-id></citation></ref>
<ref id="ref7"><label>7.</label><citation citation-type="journal"><person-group person-group-type="author"><name><surname>Barington</surname><given-names>K</given-names></name> <name><surname>Eriksen</surname><given-names>E&#x00D8;</given-names></name> <name><surname>Kudirkiene</surname><given-names>E</given-names></name> <name><surname>Pankoke</surname><given-names>K</given-names></name> <name><surname>Hartmann</surname><given-names>KT</given-names></name> <name><surname>Hansen</surname><given-names>MS</given-names></name> <etal/></person-group>. <article-title>Lesions and pathogens found in pigs that died during the nursery period in five Danish farms</article-title>. <source>Porc Health Manag</source>. (<year>2023</year>) <volume>9</volume>:<fpage>1</fpage>&#x2013;<lpage>17</lpage>. doi: <pub-id pub-id-type="doi">10.1186/s40813-023-00319-9</pub-id></citation></ref>
<ref id="ref8"><label>8.</label><citation citation-type="journal"><person-group person-group-type="author"><name><surname>Thorpe</surname><given-names>E</given-names></name> <name><surname>Thomlinson</surname><given-names>JR</given-names></name></person-group>. <article-title>Autolysis and post-mortem bacteriological changes in the alimentary tract of the pig</article-title>. <source>J Pathol Bacteriol</source>. (<year>1967</year>) <volume>93</volume>:<fpage>601</fpage>&#x2013;<lpage>10</lpage>. doi: <pub-id pub-id-type="doi">10.1002/path.1700930221</pub-id>, PMID: <pub-id pub-id-type="pmid">4861402</pub-id></citation></ref>
<ref id="ref9"><label>9.</label><citation citation-type="journal"><person-group person-group-type="author"><name><surname>Willard</surname><given-names>MD</given-names></name> <name><surname>Jergens</surname><given-names>AE</given-names></name> <name><surname>Duncan</surname><given-names>RB</given-names></name> <name><surname>Leib</surname><given-names>MS</given-names></name> <name><surname>McCracken</surname><given-names>MD</given-names></name> <name><surname>DeNovo</surname><given-names>RC</given-names></name> <etal/></person-group>. <article-title>Interobserver variation among histopathologic evaluations of intestinal tissues from dogs and cats</article-title>. <source>J Am Vet Med Assoc</source>. (<year>2002</year>) <volume>220</volume>:<fpage>1177</fpage>&#x2013;<lpage>82</lpage>. doi: <pub-id pub-id-type="doi">10.2460/javma.2002.220.1177</pub-id>, PMID: <pub-id pub-id-type="pmid">11990964</pub-id></citation></ref>
<ref id="ref10"><label>10.</label><citation citation-type="journal"><person-group person-group-type="author"><name><surname>Vainer</surname><given-names>B</given-names></name></person-group>. <article-title>Interobserver variability in gastrointestinal pathology</article-title>. <source>Scand J Gastroenterol</source>. (<year>2006</year>) <volume>41</volume>:<fpage>765</fpage>&#x2013;<lpage>6</lpage>. doi: <pub-id pub-id-type="doi">10.1080/00365520600670349</pub-id>, PMID: <pub-id pub-id-type="pmid">16785187</pub-id></citation></ref>
<ref id="ref11"><label>11.</label><citation citation-type="journal"><person-group person-group-type="author"><name><surname>Karamchandani</surname><given-names>DM</given-names></name> <name><surname>Westerhoff</surname><given-names>M</given-names></name> <name><surname>Arnold</surname><given-names>CA</given-names></name> <name><surname>Gonzalez</surname><given-names>RS</given-names></name> <name><surname>Westbrook</surname><given-names>LM</given-names></name> <name><surname>Goetz</surname><given-names>L</given-names></name> <etal/></person-group>. <article-title>Interobserver variability in assessment of depth of submucosal invasion for colonic endoscopic resections among subspecialized gastrointestinal pathologists</article-title>. <source>Arch Pathol Lab Med</source>. (<year>2023</year>) <volume>147</volume>:<fpage>534</fpage>&#x2013;<lpage>45</lpage>. doi: <pub-id pub-id-type="doi">10.5858/arpa.2021-0598-OA</pub-id></citation></ref>
<ref id="ref12"><label>12.</label><citation citation-type="journal"><person-group person-group-type="author"><name><surname>Jergens</surname><given-names>AE</given-names></name> <name><surname>Evans</surname><given-names>RB</given-names></name> <name><surname>Ackermann</surname><given-names>M</given-names></name> <name><surname>Hostetter</surname><given-names>J</given-names></name> <name><surname>Willard</surname><given-names>M</given-names></name> <name><surname>Mansell</surname><given-names>J</given-names></name> <etal/></person-group>. <article-title>Design of a simplified histopathologic model for gastrointestinal inflammation in dogs</article-title>. <source>Vet Pathol</source>. (<year>2014</year>) <volume>51</volume>:<fpage>946</fpage>&#x2013;<lpage>50</lpage>. doi: <pub-id pub-id-type="doi">10.1177/0300985813511123</pub-id>, PMID: <pub-id pub-id-type="pmid">24280943</pub-id></citation></ref>
<ref id="ref13"><label>13.</label><citation citation-type="journal"><person-group person-group-type="author"><name><surname>Codipilly</surname><given-names>DC</given-names></name> <name><surname>Faghani</surname><given-names>S</given-names></name> <name><surname>Hagan</surname><given-names>C</given-names></name> <name><surname>Lewis</surname><given-names>J</given-names></name> <name><surname>Erickson</surname><given-names>BJ</given-names></name> <name><surname>Iyer</surname><given-names>PG</given-names></name></person-group>. <article-title>The evolving role of artificial intelligence in gastrointestinal histopathology: an update</article-title>. <source>Clin Gastroenterol Hepatol</source>. (<year>2024</year>) <volume>22</volume>:<fpage>1170</fpage>&#x2013;<lpage>80</lpage>. doi: <pub-id pub-id-type="doi">10.1016/j.cgh.2023.11.044</pub-id>, PMID: <pub-id pub-id-type="pmid">38154727</pub-id></citation></ref>
<ref id="ref14"><label>14.</label><citation citation-type="journal"><person-group person-group-type="author"><name><surname>Song</surname><given-names>T</given-names></name> <name><surname>Zhang</surname><given-names>Q</given-names></name> <name><surname>Cai</surname><given-names>G</given-names></name> <name><surname>Cai</surname><given-names>M</given-names></name> <name><surname>Qian</surname><given-names>J</given-names></name></person-group>. <article-title>Development of machine learning and artificial intelligence in toxic pathology</article-title>. <source>Front Comp Intellig Syst</source>. (<year>2024</year>) <volume>6</volume>:<fpage>137</fpage>&#x2013;<lpage>41</lpage>. doi: <pub-id pub-id-type="doi">10.54097/Be1ExjZa</pub-id></citation></ref>
<ref id="ref15"><label>15.</label><citation citation-type="journal"><person-group person-group-type="author"><name><surname>Cooper</surname><given-names>M</given-names></name> <name><surname>Ji</surname><given-names>Z</given-names></name> <name><surname>Krishnan</surname><given-names>RG</given-names></name></person-group>. <article-title>Machine learning in computational histopathology: challenges and opportunities</article-title>. <source>Genes Chromosom Cancer</source>. (<year>2023</year>) <volume>62</volume>:<fpage>540</fpage>&#x2013;<lpage>56</lpage>. doi: <pub-id pub-id-type="doi">10.1002/gcc.23177</pub-id>, PMID: <pub-id pub-id-type="pmid">37314068</pub-id></citation></ref>
<ref id="ref16"><label>16.</label><citation citation-type="journal"><person-group person-group-type="author"><name><surname>Kobayashi</surname><given-names>S</given-names></name> <name><surname>Saltz</surname><given-names>JH</given-names></name> <name><surname>Yang</surname><given-names>VW</given-names></name></person-group>. <article-title>State of machine and deep learning in histopathological applications in digestive diseases</article-title>. <source>World J Gastroenterol</source>. (<year>2021</year>) <volume>27</volume>:<fpage>2545</fpage>&#x2013;<lpage>75</lpage>. doi: <pub-id pub-id-type="doi">10.3748/wjg.v27.i20.2545</pub-id>, PMID: <pub-id pub-id-type="pmid">34092975</pub-id></citation></ref>
<ref id="ref17"><label>17.</label><citation citation-type="journal"><person-group person-group-type="author"><name><surname>Peyrin-Biroulet</surname><given-names>L</given-names></name> <name><surname>Adsul</surname><given-names>S</given-names></name> <name><surname>Stancati</surname><given-names>A</given-names></name> <name><surname>Dehmeshki</surname><given-names>J</given-names></name> <name><surname>Kubassova</surname><given-names>O</given-names></name></person-group>. <article-title>An artificial intelligence-driven scoring system to measure histological disease activity in ulcerative colitis</article-title>. <source>United European Gastroenterol J</source>. (<year>2024</year>) <volume>12</volume>:<fpage>1028</fpage>&#x2013;<lpage>33</lpage>. doi: <pub-id pub-id-type="doi">10.1002/ueg2.12562</pub-id>, PMID: <pub-id pub-id-type="pmid">38590110</pub-id></citation></ref>
<ref id="ref18"><label>18.</label><citation citation-type="journal"><person-group person-group-type="author"><name><surname>Zuraw</surname><given-names>A</given-names></name> <name><surname>Aeffner</surname><given-names>F</given-names></name></person-group>. <article-title>Whole-slide imaging, tissue image analysis, and artificial intelligence in veterinary pathology: an updated introduction and review</article-title>. <source>Vet Pathol</source>. (<year>2022</year>) <volume>59</volume>:<fpage>6</fpage>&#x2013;<lpage>25</lpage>. doi: <pub-id pub-id-type="doi">10.1177/03009858211040484</pub-id>, PMID: <pub-id pub-id-type="pmid">34521285</pub-id></citation></ref>
<ref id="ref19"><label>19.</label><citation citation-type="journal"><person-group person-group-type="author"><name><surname>Balki</surname><given-names>I</given-names></name> <name><surname>Amirabadi</surname><given-names>A</given-names></name> <name><surname>Levman</surname><given-names>J</given-names></name> <name><surname>Martel</surname><given-names>AL</given-names></name> <name><surname>Emersic</surname><given-names>Z</given-names></name> <name><surname>Meden</surname><given-names>B</given-names></name> <etal/></person-group>. <article-title>Sample-size determination methodologies for machine learning in medical imaging research: a systematic review</article-title>. <source>Can Assoc Radiol J</source>. (<year>2019</year>) <volume>70</volume>:<fpage>344</fpage>&#x2013;<lpage>53</lpage>. doi: <pub-id pub-id-type="doi">10.1016/j.carj.2019.06.002</pub-id>, PMID: <pub-id pub-id-type="pmid">31522841</pub-id></citation></ref>
<ref id="ref20"><label>20.</label><citation citation-type="journal"><person-group person-group-type="author"><name><surname>Wu</surname><given-names>Y</given-names></name> <name><surname>Cheng</surname><given-names>M</given-names></name> <name><surname>Huang</surname><given-names>S</given-names></name> <name><surname>Pei</surname><given-names>Z</given-names></name> <name><surname>Zuo</surname><given-names>Y</given-names></name> <name><surname>Liu</surname><given-names>J</given-names></name> <etal/></person-group>. <article-title>Recent advances of deep learning for computational histopathology: principles and applications</article-title>. <source>Cancer</source>. (<year>2022</year>) <volume>14</volume>:<fpage>1199</fpage>. doi: <pub-id pub-id-type="doi">10.3390/cancers14051199</pub-id>, PMID: <pub-id pub-id-type="pmid">35267505</pub-id></citation></ref>
<ref id="ref21"><label>21.</label><citation citation-type="journal"><person-group person-group-type="author"><name><surname>Bankhead</surname><given-names>P</given-names></name> <name><surname>Loughrey</surname><given-names>MB</given-names></name> <name><surname>Fern&#x00E1;ndez</surname><given-names>JA</given-names></name> <name><surname>Dombrowski</surname><given-names>Y</given-names></name> <name><surname>McArt</surname><given-names>DG</given-names></name> <name><surname>Dunne</surname><given-names>PD</given-names></name> <etal/></person-group>. <article-title>QuPath: open source software for digital pathology image analysis</article-title>. <source>Sci Rep</source>. (<year>2017</year>) <volume>7</volume>:<fpage>1</fpage>&#x2013;<lpage>7</lpage>. doi: <pub-id pub-id-type="doi">10.1038/s41598-017-17204-5</pub-id></citation></ref>
<ref id="ref22"><label>22.</label><citation citation-type="other"><person-group person-group-type="author"><name><surname>Bankhead</surname><given-names>P.</given-names></name></person-group> (<year>2024</year>). QuPath-Read the Docs. Pixel classification. Available online at: <ext-link xlink:href="https://qupath.readthedocs.io/en/stable/docs/tutorials/pixel_classification.html" ext-link-type="uri">https://qupath.readthedocs.io/en/stable/docs/tutorials/pixel_classification.html</ext-link> (Accessed February 4, 2025).</citation></ref>
<ref id="ref23"><label>23.</label><citation citation-type="book"><person-group person-group-type="author"><name><surname>Pearson</surname><given-names>K</given-names></name></person-group>. <article-title>Correlation</article-title> In: <person-group person-group-type="editor"><name><surname>Faizi</surname><given-names>N</given-names></name> <name><surname>Alvi</surname><given-names>Y</given-names></name></person-group>, editors. <source>Biostatistics manual for health research - a practical guide to data analysis</source>. <publisher-loc>London</publisher-loc>: <publisher-name>Elsevier Inc.</publisher-name> (<year>2023</year>). <fpage>109</fpage>&#x2013;<lpage>26</lpage>.</citation></ref>
<ref id="ref24"><label>24.</label><citation citation-type="other"><person-group person-group-type="author"><collab id="coll1">R Core Team</collab></person-group>. (<year>2024</year>). R: A language and environment for statistical computing. Vienna, Austria: Foundation for Statistical Computing. Available online at: <ext-link xlink:href="https://www.R-project.org/" ext-link-type="uri">https://www.R-project.org/</ext-link> (Accessed September 1, 2025).</citation></ref>
<ref id="ref25"><label>25.</label><citation citation-type="journal"><person-group person-group-type="author"><name><surname>Schreiber</surname><given-names>BA</given-names></name> <name><surname>Denholm</surname><given-names>J</given-names></name> <name><surname>Jaeckle</surname><given-names>F</given-names></name> <name><surname>Arends</surname><given-names>MJ</given-names></name> <name><surname>Branson</surname><given-names>KM</given-names></name> <name><surname>Sch&#x00F6;nlieb</surname><given-names>CB</given-names></name> <etal/></person-group>. <article-title>Rapid artefact removal and H &#x0026; E-stained tissue segmentation</article-title>. <source>Sci Rep</source>. (<year>2024</year>) <volume>14</volume>:<fpage>1</fpage>&#x2013;<lpage>6</lpage>. doi: <pub-id pub-id-type="doi">10.1038/s41598-023-50183-4</pub-id></citation></ref>
<ref id="ref26"><label>26.</label><citation citation-type="journal"><person-group person-group-type="author"><name><surname>Cai</surname><given-names>Z</given-names></name> <name><surname>Vasconcelos</surname><given-names>N</given-names></name></person-group>. <article-title>Cascade R-CNN: high quality object detection and instance segmentation</article-title>. <source>IEEE Trans Pattern Anal Mach Intell</source>. (<year>2021</year>) <volume>43</volume>:<fpage>1483</fpage>&#x2013;<lpage>98</lpage>. doi: <pub-id pub-id-type="doi">10.1109/TPAMI.2019.2956516</pub-id>, PMID: <pub-id pub-id-type="pmid">31794388</pub-id></citation></ref>
<ref id="ref27"><label>27.</label><citation citation-type="journal"><person-group person-group-type="author"><name><surname>Bj&#x00F6;rklund</surname><given-names>NE</given-names></name> <name><surname>Svendsen</surname><given-names>J</given-names></name> <name><surname>Svendsen</surname><given-names>LS</given-names></name></person-group>. <article-title>Histomorphological studies of the perinatal pig: comparison of five mortality groups with unaffected pigs</article-title>. <source>Acta Vet Scand</source>. (<year>1987</year>) <volume>28</volume>:<fpage>105</fpage>&#x2013;<lpage>16</lpage>. doi: <pub-id pub-id-type="doi">10.1186/BF03548261</pub-id>, PMID: <pub-id pub-id-type="pmid">3687641</pub-id></citation></ref>
<ref id="ref28"><label>28.</label><citation citation-type="journal"><person-group person-group-type="author"><name><surname>Moon</surname><given-names>HW</given-names></name></person-group>. <article-title>Vacuolated villous epithelium of the small intestine of young pigs</article-title>. <source>Vet Pathol</source>. (<year>1972</year>) <volume>9</volume>:<fpage>3</fpage>&#x2013;<lpage>12</lpage>. doi: <pub-id pub-id-type="doi">10.1177/030098587200900102</pub-id>, PMID: <pub-id pub-id-type="pmid">4135828</pub-id></citation></ref>
<ref id="ref29"><label>29.</label><citation citation-type="journal"><person-group person-group-type="author"><name><surname>Vrolyk</surname><given-names>V</given-names></name> <name><surname>Desmarais</surname><given-names>MJ</given-names></name> <name><surname>Lambert</surname><given-names>D</given-names></name> <name><surname>Haruna</surname><given-names>J</given-names></name> <name><surname>Benoit-Biancamano</surname><given-names>MO</given-names></name></person-group>. <article-title>Neonatal and juvenile ocular development in G&#x00F6;ttingen minipigs and domestic pigs: a histomorphological and immunohistochemical study</article-title>. <source>Vet Pathol</source>. (<year>2020</year>) <volume>57</volume>:<fpage>889</fpage>&#x2013;<lpage>914</lpage>. doi: <pub-id pub-id-type="doi">10.1177/0300985820954551</pub-id>, PMID: <pub-id pub-id-type="pmid">33021158</pub-id></citation></ref>
<ref id="ref30"><label>30.</label><citation citation-type="journal"><person-group person-group-type="author"><name><surname>Westr&#x00F6;m</surname><given-names>B</given-names></name> <name><surname>Ar&#x00E9;valo Sureda</surname><given-names>E</given-names></name> <name><surname>Pierzynowska</surname><given-names>K</given-names></name> <name><surname>Pierzynowski</surname><given-names>SG</given-names></name> <name><surname>P&#x00E9;rez-Cano</surname><given-names>FJ</given-names></name></person-group>. <article-title>The immature gut barrier and its importance in establishing immunity in newborn mammals</article-title>. <source>Front Immunol</source>. (<year>2020</year>) <volume>11</volume>:<fpage>1153</fpage>. doi: <pub-id pub-id-type="doi">10.3389/fimmu.2020.01153</pub-id>, PMID: <pub-id pub-id-type="pmid">32582216</pub-id></citation></ref>
<ref id="ref31"><label>31.</label><citation citation-type="journal"><person-group person-group-type="author"><name><surname>Skrzypek</surname><given-names>T</given-names></name> <name><surname>Valverde Piedra</surname><given-names>JL</given-names></name> <name><surname>Skrzypek</surname><given-names>H</given-names></name> <name><surname>Kazimierczak</surname><given-names>W</given-names></name> <name><surname>Biernat</surname><given-names>M</given-names></name> <name><surname>Zabielski</surname><given-names>R</given-names></name></person-group>. <article-title>Gradual disappearance of vacuolated enterocytes in the small intestine of neonatal piglets</article-title>. <source>J Physiol Pharmacol</source>. (<year>2007</year>) <volume>58</volume>:<fpage>87</fpage>&#x2013;<lpage>95</lpage>.</citation></ref>
<ref id="ref32"><label>32.</label><citation citation-type="journal"><person-group person-group-type="author"><name><surname>Ziegler</surname><given-names>A</given-names></name> <name><surname>Gonzalez</surname><given-names>L</given-names></name> <name><surname>Blikslager</surname><given-names>A</given-names></name></person-group>. <article-title>Large animal models: the key to translational discovery in digestive disease research</article-title>. <source>CMGH</source>. (<year>2016</year>) <volume>2</volume>:<fpage>716</fpage>&#x2013;<lpage>24</lpage>. doi: <pub-id pub-id-type="doi">10.1016/j.jcmgh.2016.09.003</pub-id>, PMID: <pub-id pub-id-type="pmid">28090566</pub-id></citation></ref>
</ref-list>
</back>
</article>