<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE article PUBLIC "-//NLM//DTD JATS (Z39.96) Journal Publishing DTD v1.3 20210610//EN" "JATS-journalpublishing1-3-mathml3.dtd">
<article xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:ali="http://www.niso.org/schemas/ali/1.0/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" article-type="research-article" dtd-version="1.3" xml:lang="EN">
<front>
<journal-meta>
<journal-id journal-id-type="publisher-id">Front. Anim. Sci.</journal-id>
<journal-title-group>
<journal-title>Frontiers in Animal Science</journal-title>
<abbrev-journal-title abbrev-type="pubmed">Front. Anim. Sci.</abbrev-journal-title>
</journal-title-group>
<issn pub-type="epub">2673-6225</issn>
<publisher>
<publisher-name>Frontiers Media S.A.</publisher-name>
</publisher>
</journal-meta>
<article-meta>
<article-id pub-id-type="doi">10.3389/fanim.2026.1768496</article-id>
<article-version article-version-type="Version of Record" vocab="NISO-RP-8-2008"/>
<article-categories>
<subj-group subj-group-type="heading">
<subject>Original Research</subject>
</subj-group>
</article-categories>
<title-group>
<article-title>Prediction of optimal slaughter age in four commercial pig genetic lines using GAM growth and backfat curves combined with a desirability optimization approach</article-title>
</title-group>
<contrib-group>
<contrib contrib-type="author" corresp="yes">
<name><surname>Herrera-Rios</surname><given-names>Ana C.</given-names></name>
<xref ref-type="aff" rid="aff1"><sup>1</sup></xref>
<xref ref-type="corresp" rid="c001"><sup>*</sup></xref>
<uri xlink:href="https://loop.frontiersin.org/people/3312567/overview"/>
<role vocab="credit" vocab-identifier="https://credit.niso.org/" vocab-term="conceptualization" vocab-term-identifier="https://credit.niso.org/contributor-roles/conceptualization/">Conceptualization</role>
<role vocab="credit" vocab-identifier="https://credit.niso.org/" vocab-term="Data curation" vocab-term-identifier="https://credit.niso.org/contributor-roles/data-curation/">Data curation</role>
<role vocab="credit" vocab-identifier="https://credit.niso.org/" vocab-term="Formal analysis" vocab-term-identifier="https://credit.niso.org/contributor-roles/formal-analysis/">Formal analysis</role>
<role vocab="credit" vocab-identifier="https://credit.niso.org/" vocab-term="investigation" vocab-term-identifier="https://credit.niso.org/contributor-roles/investigation/">Investigation</role>
<role vocab="credit" vocab-identifier="https://credit.niso.org/" vocab-term="methodology" vocab-term-identifier="https://credit.niso.org/contributor-roles/methodology/">Methodology</role>
<role vocab="credit" vocab-identifier="https://credit.niso.org/" vocab-term="Project-administration" vocab-term-identifier="https://credit.niso.org/contributor-roles/project-administration/">Project administration</role>
<role vocab="credit" vocab-identifier="https://credit.niso.org/" vocab-term="validation" vocab-term-identifier="https://credit.niso.org/contributor-roles/validation/">Validation</role>
<role vocab="credit" vocab-identifier="https://credit.niso.org/" vocab-term="Writing &#x2013; original draft" vocab-term-identifier="https://credit.niso.org/contributor-roles/writing-original-draft/">Writing &#x2013; original draft</role>
<role vocab="credit" vocab-identifier="https://credit.niso.org/" vocab-term="Writing &#x2013; review &amp; editing" vocab-term-identifier="https://credit.niso.org/contributor-roles/writing-review-editing/">Writing &#x2013; review &amp; editing</role>
</contrib>
<contrib contrib-type="author">
<name><surname>Gonz&#xe1;lez-Herrera</surname><given-names>Luis G.</given-names></name>
<xref ref-type="aff" rid="aff2"><sup>2</sup></xref>
<uri xlink:href="https://loop.frontiersin.org/people/2219764/overview"/>
<role vocab="credit" vocab-identifier="https://credit.niso.org/" vocab-term="Data curation" vocab-term-identifier="https://credit.niso.org/contributor-roles/data-curation/">Data curation</role>
<role vocab="credit" vocab-identifier="https://credit.niso.org/" vocab-term="software" vocab-term-identifier="https://credit.niso.org/contributor-roles/software/">Software</role>
<role vocab="credit" vocab-identifier="https://credit.niso.org/" vocab-term="validation" vocab-term-identifier="https://credit.niso.org/contributor-roles/validation/">Validation</role>
<role vocab="credit" vocab-identifier="https://credit.niso.org/" vocab-term="Writing &#x2013; review &amp; editing" vocab-term-identifier="https://credit.niso.org/contributor-roles/writing-review-editing/">Writing &#x2013; review &amp; editing</role>
</contrib>
<contrib contrib-type="author">
<name><surname>Herr&#xe1;n-Ram&#xed;rez</surname><given-names>Olga L.</given-names></name>
<xref ref-type="aff" rid="aff1"><sup>1</sup></xref>
<role vocab="credit" vocab-identifier="https://credit.niso.org/" vocab-term="conceptualization" vocab-term-identifier="https://credit.niso.org/contributor-roles/conceptualization/">Conceptualization</role>
<role vocab="credit" vocab-identifier="https://credit.niso.org/" vocab-term="investigation" vocab-term-identifier="https://credit.niso.org/contributor-roles/investigation/">Investigation</role>
<role vocab="credit" vocab-identifier="https://credit.niso.org/" vocab-term="methodology" vocab-term-identifier="https://credit.niso.org/contributor-roles/methodology/">Methodology</role>
<role vocab="credit" vocab-identifier="https://credit.niso.org/" vocab-term="supervision" vocab-term-identifier="https://credit.niso.org/contributor-roles/supervision/">Supervision</role>
<role vocab="credit" vocab-identifier="https://credit.niso.org/" vocab-term="validation" vocab-term-identifier="https://credit.niso.org/contributor-roles/validation/">Validation</role>
<role vocab="credit" vocab-identifier="https://credit.niso.org/" vocab-term="Writing &#x2013; review &amp; editing" vocab-term-identifier="https://credit.niso.org/contributor-roles/writing-review-editing/">Writing &#x2013; review &amp; editing</role>
</contrib>
<contrib contrib-type="author">
<name><surname>Aguirre</surname><given-names>Pablo</given-names></name>
<xref ref-type="aff" rid="aff1"><sup>1</sup></xref>
<role vocab="credit" vocab-identifier="https://credit.niso.org/" vocab-term="conceptualization" vocab-term-identifier="https://credit.niso.org/contributor-roles/conceptualization/">Conceptualization</role>
<role vocab="credit" vocab-identifier="https://credit.niso.org/" vocab-term="investigation" vocab-term-identifier="https://credit.niso.org/contributor-roles/investigation/">Investigation</role>
<role vocab="credit" vocab-identifier="https://credit.niso.org/" vocab-term="Project-administration" vocab-term-identifier="https://credit.niso.org/contributor-roles/project-administration/">Project administration</role>
<role vocab="credit" vocab-identifier="https://credit.niso.org/" vocab-term="supervision" vocab-term-identifier="https://credit.niso.org/contributor-roles/supervision/">Supervision</role>
<role vocab="credit" vocab-identifier="https://credit.niso.org/" vocab-term="validation" vocab-term-identifier="https://credit.niso.org/contributor-roles/validation/">Validation</role>
<role vocab="credit" vocab-identifier="https://credit.niso.org/" vocab-term="Writing &#x2013; review &amp; editing" vocab-term-identifier="https://credit.niso.org/contributor-roles/writing-review-editing/">Writing &#x2013; review &amp; editing</role>
</contrib>
<contrib contrib-type="author">
<name><surname>Rojas</surname><given-names>Oliver R.</given-names></name>
<xref ref-type="aff" rid="aff1"><sup>1</sup></xref>
<role vocab="credit" vocab-identifier="https://credit.niso.org/" vocab-term="conceptualization" vocab-term-identifier="https://credit.niso.org/contributor-roles/conceptualization/">Conceptualization</role>
<role vocab="credit" vocab-identifier="https://credit.niso.org/" vocab-term="investigation" vocab-term-identifier="https://credit.niso.org/contributor-roles/investigation/">Investigation</role>
<role vocab="credit" vocab-identifier="https://credit.niso.org/" vocab-term="methodology" vocab-term-identifier="https://credit.niso.org/contributor-roles/methodology/">Methodology</role>
<role vocab="credit" vocab-identifier="https://credit.niso.org/" vocab-term="Project-administration" vocab-term-identifier="https://credit.niso.org/contributor-roles/project-administration/">Project administration</role>
<role vocab="credit" vocab-identifier="https://credit.niso.org/" vocab-term="resources" vocab-term-identifier="https://credit.niso.org/contributor-roles/resources/">Resources</role>
<role vocab="credit" vocab-identifier="https://credit.niso.org/" vocab-term="Writing &#x2013; original draft" vocab-term-identifier="https://credit.niso.org/contributor-roles/writing-original-draft/">Writing &#x2013; original draft</role>
</contrib>
<contrib contrib-type="author">
<name><surname>Escobar</surname><given-names>Jose D.</given-names></name>
<xref ref-type="aff" rid="aff1"><sup>1</sup></xref>
<role vocab="credit" vocab-identifier="https://credit.niso.org/" vocab-term="conceptualization" vocab-term-identifier="https://credit.niso.org/contributor-roles/conceptualization/">Conceptualization</role>
<role vocab="credit" vocab-identifier="https://credit.niso.org/" vocab-term="investigation" vocab-term-identifier="https://credit.niso.org/contributor-roles/investigation/">Investigation</role>
<role vocab="credit" vocab-identifier="https://credit.niso.org/" vocab-term="validation" vocab-term-identifier="https://credit.niso.org/contributor-roles/validation/">Validation</role>
<role vocab="credit" vocab-identifier="https://credit.niso.org/" vocab-term="Writing &#x2013; original draft" vocab-term-identifier="https://credit.niso.org/contributor-roles/writing-original-draft/">Writing &#x2013; original draft</role>
<role vocab="credit" vocab-identifier="https://credit.niso.org/" vocab-term="Writing &#x2013; review &amp; editing" vocab-term-identifier="https://credit.niso.org/contributor-roles/writing-review-editing/">Writing &#x2013; review &amp; editing</role>
</contrib>
<contrib contrib-type="author">
<name><surname>M&#xfa;nera-Bedoya</surname><given-names>Oscar D.</given-names></name>
<xref ref-type="aff" rid="aff1"><sup>1</sup></xref>
<role vocab="credit" vocab-identifier="https://credit.niso.org/" vocab-term="conceptualization" vocab-term-identifier="https://credit.niso.org/contributor-roles/conceptualization/">Conceptualization</role>
<role vocab="credit" vocab-identifier="https://credit.niso.org/" vocab-term="Funding acquisition" vocab-term-identifier="https://credit.niso.org/contributor-roles/funding-acquisition/">Funding acquisition</role>
<role vocab="credit" vocab-identifier="https://credit.niso.org/" vocab-term="investigation" vocab-term-identifier="https://credit.niso.org/contributor-roles/investigation/">Investigation</role>
<role vocab="credit" vocab-identifier="https://credit.niso.org/" vocab-term="methodology" vocab-term-identifier="https://credit.niso.org/contributor-roles/methodology/">Methodology</role>
<role vocab="credit" vocab-identifier="https://credit.niso.org/" vocab-term="resources" vocab-term-identifier="https://credit.niso.org/contributor-roles/resources/">Resources</role>
<role vocab="credit" vocab-identifier="https://credit.niso.org/" vocab-term="supervision" vocab-term-identifier="https://credit.niso.org/contributor-roles/supervision/">Supervision</role>
<role vocab="credit" vocab-identifier="https://credit.niso.org/" vocab-term="validation" vocab-term-identifier="https://credit.niso.org/contributor-roles/validation/">Validation</role>
<role vocab="credit" vocab-identifier="https://credit.niso.org/" vocab-term="Writing &#x2013; original draft" vocab-term-identifier="https://credit.niso.org/contributor-roles/writing-original-draft/">Writing &#x2013; original draft</role>
<role vocab="credit" vocab-identifier="https://credit.niso.org/" vocab-term="Writing &#x2013; review &amp; editing" vocab-term-identifier="https://credit.niso.org/contributor-roles/writing-review-editing/">Writing &#x2013; review &amp; editing</role>
</contrib>
</contrib-group>
<aff id="aff1"><label>1</label><institution>Research and Development Department, NUTRISOLLA Research Group</institution>, <city>Solla SA</city>, <state>Medell&#xed;n</state>,&#xa0;<country country="co">Colombia</country></aff>
<aff id="aff2"><label>2</label><institution>Department of Animal Production, Research Group in Biodiversity and Molecular Genetics (BIOGEM), Faculty of Agricultural Sciences, Universidad Nacional de Colombia</institution>, <city>Medellin</city>,&#xa0;<country country="co">Colombia</country></aff>
<author-notes>
<corresp id="c001"><label>*</label>Correspondence: Ana C. Herrera-Rios, <email xlink:href="mailto:con.achr@solla.com">con.achr@solla.com</email></corresp>
</author-notes>
<pub-date publication-format="electronic" date-type="pub" iso-8601-date="2026-02-25">
<day>25</day>
<month>02</month>
<year>2026</year>
</pub-date>
<pub-date publication-format="electronic" date-type="collection">
<year>2026</year>
</pub-date>
<volume>7</volume>
<elocation-id>1768496</elocation-id>
<history>
<date date-type="received">
<day>15</day>
<month>12</month>
<year>2025</year>
</date>
<date date-type="accepted">
<day>06</day>
<month>02</month>
<year>2026</year>
</date>
<date date-type="rev-recd">
<day>29</day>
<month>01</month>
<year>2026</year>
</date>
</history>
<permissions>
<copyright-statement>Copyright &#xa9; 2026 Herrera-Rios, Gonz&#xe1;lez-Herrera, Herr&#xe1;n-Ram&#xed;rez, Aguirre, Rojas, Escobar and M&#xfa;nera-Bedoya.</copyright-statement>
<copyright-year>2026</copyright-year>
<copyright-holder>Herrera-Rios, Gonz&#xe1;lez-Herrera, Herr&#xe1;n-Ram&#xed;rez, Aguirre, Rojas, Escobar and M&#xfa;nera-Bedoya</copyright-holder>
<license>
<ali:license_ref start_date="2026-02-25">https://creativecommons.org/licenses/by/4.0/</ali:license_ref>
<license-p>This is an open-access article distributed under the terms of the <ext-link ext-link-type="uri" xlink:href="https://creativecommons.org/licenses/by/4.0/">Creative Commons Attribution License (CC BY)</ext-link>. 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.</license-p>
</license>
</permissions>
<abstract>
<p>In commercial pig production, slaughter age and week are often defined by fixed criteria. This can lead to suboptimal decisions and increased feed costs. Thus, quantitative tools are needed to identify an optimal slaughter window. This study aimed to determine the optimal slaughter age for different commercial pig genetic lines and sexes by modeling growth dynamics in body weight and backfat thickness. Growth curves for live weight, backfat, and feed intake were fitted with Generalized Additive Models (GAMs). A composite desirability function was applied to estimate the optimal slaughter week under multiple criteria. Operating ranges were defined for live weight, cumulative feed intake, and age (weeks of life). Two metrics were defined:1) the biological optimum (tD), based on live weight, backfat thickness, and feed intake to prioritize carcass quality within the defined operating ranges; and 2) the economic optimum (tP), which additionally incorporates carcass price and feed cost to maximize profitability. Combining both metrics allows proposing slaughter windows differentiated by genetic line and sex. The results provide practical insights for maximizing carcass quality and production efficiency in commercial pig farming. Multi-criteria optimization placed the optimal-desirability week between 20 and 21 weeks across line and sex groups. When economic variables were included, the optimal-profit slaughter week consistently shifted later in age, clustering between 22 and 23 weeks. GAMs consistently captured nonlinear growth phases, showing earlier peaks in the commercial line, intermediate timing in F1, and later peaks in ML1/ML2. Within each line, females reached their peaks earlier than males, consistent with shifts in slopes and breakpoints. Concordance between GAM peak ages and optimization function outputs supports the biological plausibility of muscle and fat deposition trajectories. Together, these patterns offer practical value for optimizing slaughter timing and guiding selection decisions under commercial conditions. Nonlinear growth and tissue deposition in four commercial pig genetic lines were characterized using GAMs. Peak ages followed a consistent maturity gradient, with commercial lines reaching maxima earlier, F1 showing intermediate timing, and ML1/ML2 peaking later; females consistently reached peak values earlier than males. These patterns provide actionable criteria to optimize slaughter timing, tailor feeding and management by line and sex, guide selection for carcass yield and quality, and motivate multi-site validation and standardized ultrasonographic measurements.</p>
</abstract>
<kwd-group>
<kwd>growth modeling</kwd>
<kwd>nonlinear model</kwd>
<kwd>optimal live weight</kwd>
<kwd>slaughter window prediction</kwd>
<kwd>swine production optimization</kwd>
</kwd-group>
<funding-group>
<funding-statement>The author(s) declared that financial support was received for this work and/or its publication. This work was supported by Solla S.A. and the Ministry of Science, Technology and Innovation of Colombia (MINCIENCIAS), under project 98704. The funders were not involved in the study design, data collection, analysis, interpretation of data, the writing of this article, or the decision to submit it for publication.</funding-statement>
</funding-group>
<counts>
<fig-count count="7"/>
<table-count count="4"/>
<equation-count count="6"/>
<ref-count count="25"/>
<page-count count="14"/>
<word-count count="8224"/>
</counts>
<custom-meta-group>
<custom-meta>
<meta-name>section-at-acceptance</meta-name>
<meta-value>Animal Breeding and Genetics</meta-value>
</custom-meta>
</custom-meta-group>
</article-meta>
</front>
<body>
<sec id="s1" sec-type="intro">
<label>1</label>
<title>Introduction</title>
<p>Optimizing slaughter timing is a central decision in commercial pig production because it determines the point at which growth efficiency, carcass quality, and feeding costs intersect most favorably. Growth in pigs is strongly conditioned by genetics, sex, and feeding level, which together shape the time of lean and fat deposition throughout the finishing period (<xref ref-type="bibr" rid="B5">Fisher et&#xa0;al., 2003</xref>; <xref ref-type="bibr" rid="B15">Schinckel and de Lange, 1996</xref>). Classical nonlinear growth functions, including Gompertz, logistic, Brody, and Richards have long been used to describe liveweight trajectories and to locate biologically meaningful change points (<xref ref-type="bibr" rid="B22">Winsor, 1932</xref>; <xref ref-type="bibr" rid="B11">L&#xf3;pez et&#xa0;al., 2000</xref>), but several authors have noted that, in heterogeneous commercial settings with multiple genetic lines or sexes, fixed parametric curves may fail to capture abrupt shifts in nutrient partitioning or late fat accretion (<xref ref-type="bibr" rid="B8">Kohn et&#xa0;al., 2007</xref>). Flexible smoothers such as Generalized Additive Models (GAMs) offer an alternative because they allow the shape of the curve to be data-driven and enable detecting ages at which the weight or backfat slopes change, and this in turn is directly relevant for defining slaughter windows (<xref ref-type="bibr" rid="B23">Wood, 2017</xref>; <xref ref-type="bibr" rid="B21">Trocino et&#xa0;al., 2020</xref>).</p>
<p>However, although these traditional models offer clear biological interpretations, they may lack the flexibility to capture abrupt changes or differentiated growth phases, particularly in production programs involving multiple genetic lines and heterogeneous management conditions (<xref ref-type="bibr" rid="B8">Kohn et&#xa0;al., 2007</xref>; <xref ref-type="bibr" rid="B11">L&#xf3;pez et&#xa0;al., 2000</xref>). In this context, the combination of approaches such as implementing desirability functions for multi-objective optimization capable of identifying optimal points and the inflection point in the growth curve captured by GAMs allows for a more flexible representation of nonlinear relationships and constitutes a promising tool for a more accurate estimation of optimal slaughter points in different swine populations (<xref ref-type="bibr" rid="B3">Derringer and Suich, 1980</xref>; <xref ref-type="bibr" rid="B23">Wood, 2017</xref>; <xref ref-type="bibr" rid="B21">Trocino et&#xa0;al., 2020</xref>).</p>
<p>At the same time, slaughter is rarely decided on growth alone; processors and farms must balance at least three concurrent objectives: 1) adequate market weight, 2) acceptable backfat, and 3) reasonable feed conversion and margin. For this type of multiresponse problem, the desirability-function framework of <xref ref-type="bibr" rid="B3">Derringer and Suich (1980)</xref> and later RSM-oriented texts (<xref ref-type="bibr" rid="B12">Myers et&#xa0;al., 2016</xref>) has become a standard approach to turn several biological or economic targets into a single optimization criterion. In animal production, similar multi-objective or economic-function approaches have been used to integrate growth, carcass traits, and feeding costs, showing that the biologically &#x201c;best&#x201d; point is not always the most profitable (<xref ref-type="bibr" rid="B24">Yan et&#xa0;al., 2005</xref>; <xref ref-type="bibr" rid="B4">De Vries and De Boer, 2010</xref>; <xref ref-type="bibr" rid="B9">Lee and Kong, 2025</xref>; <xref ref-type="bibr" rid="B19">Sun et&#xa0;al., 2025</xref>). Bringing these two strands together, GAMs to trace weight and backfat trajectories by line and sex, and a composite desirability function to choose the week that best reconciles weight, fat, and intake, provides a practical decision tool for farms that are paid on lean percentage or penalized for overfat carcasses, as is increasingly the case in Colombia and other Latin American countries. The implementation of payment systems based on carcass lean percentage further increases the need for precise prediction of optimal slaughter points. Accordingly, this study aims to evaluate four genetic lines (Commercial, F1, ML1, and ML2), analyzing males and females separately to identify slaughter weeks and corresponding body weights by optimizing slaughter timing based on backfat deposition dynamics using a multi-criteria desirability approach, thereby generating practical and economically relevant criteria for decision-making in intensive swine production systems.</p>
</sec>
<sec id="s2" sec-type="materials|methods">
<label>2</label>
<title>Materials and methods</title>
<sec id="s2_1">
<label>2.1</label>
<title>Animals and housing</title>
<p>The study included pigs from four genetic lines: Commercial, F1, ML1, and ML2. Both sexes were evaluated, with animals raised under standard commercial housing, management, and feeding conditions on the commercial farm &#x201c;Los Micos&#x201d; located in Antioquia, Colombia, between July 2024 and January 2025. Animals were selected through a completely randomized sampling procedure based on optimal health status, age, and body conformation appropriate for their production stage, and ensuring representativeness of the farm population. All animals included in the study were monitored from birth until their transfer to the slaughter plant at 22 to 24 weeks of age. They were clinically evaluated by a veterinarian, who ruled out signs of respiratory, digestive, or locomotor diseases. Field measurements were performed twice a month starting from the ninth week of age and through slaughter. Live weight was recorded using an electronic crate-type livestock scale integrated into the weighing pen for individual animal measurements, equipped with a low-profile galvanized steel platform and a digital indicator with weight-hold stabilization. The nominal capacity of the system was approximately 300&#x2013;500 kg, with an operating accuracy of about 0.5 kg (&#x2248;0.1% of full load). Fat thickness was recorded in millimeters at both the 10th rib (GDD, dorsal backfat thickness at the 10th rib) and the last rib (GDU, dorsal backfat thickness at the last rib), following the longitudinal method described by <xref ref-type="bibr" rid="B1">Cisneros et&#xa0;al. (1996)</xref>. <italic>In vivo</italic> ultrasound measurements were performed using a Honda Electronics Co., Ltd. HS&#x2013;1600 device (Honda Electronics Co., Ltd.) equipped with an HLV-7212M linear probe, following established scanning protocols. The transducer and piezoelectric component were positioned 5 to 7 cm from the midline of the pig&#x2019;s back, at the level of the 10th and last ribs.</p>
<p>The commercial farm &#x201c;Los Micos&#x201d; operates under high biosecurity standards, with high health status, and applies comprehensive management practices. It is free of mandatory notifiable diseases in Colombia, such as rabies, foot-and-mouth disease, classical swine fever, aujeszky and brucellosis, as well as of the porcine reproductive and respiratory syndrome virus (PRRSV). All vaccination and deworming schedules were up to date, and the body development of all individuals was consistent with their growth. An even sex distribution was maintained within each genetic group. Male pigs underwent standardized immunocastration procedures on the farm, following the manufacturer&#x2019;s protocol. Animals were fed a uniform diet and managed according to the health and biosecurity program of the farm, which included routine vaccination protocols and periodic veterinary monitoring. Two trained technicians performed real-time ultrasound assessments following a standardized protocol to minimize measurement bias. Inter-operator variability was evaluated prior to data collection to ensure consistency and reproducibility of the measurements.</p>
</sec>
<sec id="s2_2">
<label>2.2</label>
<title>Data collection</title>
<p>A total of 412 pigs from four genetic lines were included in this study (commercial = 109, F1 = 94, ML1 = 111, and ML2 = 98). Sex distribution within each genetic line was well balanced: Commercial (54 males, 55 females), F1 (47 males, 47 females), ML1 (52 males, 59 females), and ML2 (46 males, 52 females) to support the inclusion of sex as a fixed effect in the statistical models. Each animal was individually identified with a unique consecutive number assigned within its group placed using a visible ear tag. This identification system ensured accurate and consistent tracking of individual animals throughout the experimental period. Two variables were registered twice a month: individual body weight (kg) from birth to slaughter age, and backfat thickness (mm) measured at the tenth and last ribs of the live animal from week 9 of age until slaughter. Backfat measurements began at week 9 because, at earlier ages, the subcutaneous fat layer is still very thin, which may reduce ultrasonographic resolution and increase measurement variability under commercial conditions. At the end of the study period, a total of 4,944 records were collected and summarized, available by line and across four genetic lines (commercial = 1308, F1 = 1128, ML1 = 1332, and ML2 = 1176). Feed consumption was recorded at the pen level under commercial production conditions. Animals had ad libitum access to feed and water throughout the study. Feed intake per pen was calculated daily as the difference between the amount of feed offered and the residual feed weighed the following morning. Average individual feed intake was estimated by dividing pen-level consumption by the number of animals housed in each pen. Feeding phases and supply schedules followed standardized commercial practices typical of Colombian pig production systems; specific diet formulations are proprietary and therefore not disclosed. Details of the commercial diets are provided in <xref ref-type="supplementary-material" rid="SM1"><bold>Supplementary Table S1</bold></xref>.</p>
</sec>
<sec id="s2_3">
<label>2.3</label>
<title>Statistical analysis</title>
<p>Two modeling approaches were applied: 1) Generalized Additive Models (GAMs), employed to capture nonlinear relationships between the predictor and the response variable, as proposed by <xref ref-type="bibr" rid="B6">Hastie and Tibshirani (1990)</xref>, fitted with penalized splines using the <italic>mgcv</italic> package in R version 4.3.3 (<xref ref-type="bibr" rid="B14">R Core Team, 2024</xref>). Analyses were performed separately for each genetic line, sex, and trait; and 2) optimization functions, the optimal slaughter point was defined as the week and weight corresponding to the commercial peak backfat thickness, before a consistent decline in performance (<xref ref-type="bibr" rid="B3">Derringer and Suich, 1980</xref>). The multi-objective optimization using the desirability function was implemented in Python employing the <italic>pandas</italic> library to process and analyze the productive data for each animal.</p>
<sec id="s2_3_1">
<label>2.3.1</label>
<title>Generalized additive models for growth and fat deposition analyses</title>
<p>The GAMs extend traditional generalized linear models by incorporating smooth functions of predictors, allowing for flexible, data-driven estimation of nonlinear relationships without imposing a fixed parametric form. The general GAM form is shown as <xref ref-type="disp-formula" rid="eq1">Equation 1</xref>.</p>
<disp-formula id="eq1"><label>(1)</label>
<mml:math display="block" id="M1"><mml:mrow><mml:mo>&#xa0;</mml:mo><mml:mo>&#xa0;</mml:mo><mml:mi>g</mml:mi><mml:mrow><mml:mo stretchy="false">(</mml:mo><mml:mrow><mml:mi>E</mml:mi><mml:mrow><mml:mo stretchy="false">[</mml:mo><mml:mi>Y</mml:mi><mml:mo stretchy="false">]</mml:mo></mml:mrow></mml:mrow><mml:mo stretchy="false">)</mml:mo></mml:mrow><mml:mo>=</mml:mo><mml:msub><mml:mi>&#x3b2;</mml:mi><mml:mn>0</mml:mn></mml:msub><mml:mo>+</mml:mo><mml:mo>&#x2211;</mml:mo><mml:msub><mml:mi>f</mml:mi><mml:mi>i</mml:mi></mml:msub><mml:mo stretchy="false">(</mml:mo><mml:msub><mml:mi>X</mml:mi><mml:mi>i</mml:mi></mml:msub><mml:mo stretchy="false">)</mml:mo><mml:mo>+</mml:mo><mml:mi>&#x3f5;</mml:mi></mml:mrow></mml:math>
</disp-formula>
<p>where g(&#xb7;) is the link function, E[Y] is the expected value of the response variable, &#x3b2;<sub>o</sub> is the intercept, f<sub>i</sub> are smooth functions of the explanatory variables X<sub>i</sub> modeled using cubic regression splines, and &#x3f5; is the residual error. The smoothness of each function was controlled by penalizing excessive wiggliness through restricted maximum likelihood (REML) estimation, thereby minimizing the risk of overfitting (<xref ref-type="bibr" rid="B23">Wood, 2017</xref>).</p>
<p>In this study, GAMs were separately fitted for live weight, backfat thickness at the 10<sup>th</sup> rib (GDD), and feed intake, with age in days as the main predictor. This approach allowed capturing subtle differences in growth trajectories between groups and estimating the age ranges where the rate of change in growth or fat deposition was maximized. Model diagnostics included evaluation of residual patterns and generalized cross-validation (GCV) scores to assess model fit. All analyses were conducted in R version 4.3.3 (<xref ref-type="bibr" rid="B14">R Core Team, 2024</xref>).</p>
</sec>
<sec id="s2_3_2">
<label>2.3.2</label>
<title>Optimization functions</title>
<p>A composite desirability approach following the Derringer&#x2013;Suich framework was applied to identify the slaughter week that best balances biological and economic objectives. In this study, three time-indexed responses were considered simultaneously: live weight (W<sub>t</sub>&#x200b;), backfat thickness (G<sub>t</sub>), and cumulative feeding cost or feed intake expressed in monetary terms (C<sub>t</sub>). Each response was first transformed to a unitless scale [0,1] through an individual desirability function di(&#xb7;), where 0 represents a totally unacceptable value, and 1 represents the target or fully desirable value. The overall desirability at week t (D(t)) was then obtained as a weighted geometric combination of the individual desirabilities, and the week that maximized D(t) was taken as the biologically optimal slaughter week (<xref ref-type="bibr" rid="B3">Derringer and Suich, 1980</xref>).</p>
<sec id="s2_3_2_1">
<label>2.3.2.1</label>
<title>Individual desirability for live weight</title>
<p>ive weight was treated as a larger-is-better response within an admissible operating range [W<sub>min</sub>,&#x2009;W<sub>max</sub>] (<xref ref-type="disp-formula" rid="eq2">Equation 2</xref>):</p>
<disp-formula id="eq2"><label>(2)</label>
<mml:math display="block" id="M2"><mml:mtable columnalign="left"><mml:mtr><mml:mtd><mml:mi>d</mml:mi><mml:mi>w</mml:mi><mml:mrow><mml:mo stretchy="false">(</mml:mo><mml:mrow><mml:mi>W</mml:mi><mml:mi>t</mml:mi></mml:mrow><mml:mo stretchy="false">)</mml:mo></mml:mrow><mml:mo>&#xa0;</mml:mo><mml:mo>=</mml:mo><mml:msup><mml:mrow><mml:mrow><mml:msubsup><mml:mo>{</mml:mo><mml:mrow><mml:mn>1</mml:mn><mml:mo>,</mml:mo></mml:mrow><mml:mrow><mml:mn>0</mml:mn><mml:mo>,</mml:mo></mml:mrow></mml:msubsup><mml:mrow><mml:mo>(</mml:mo><mml:mrow><mml:mfrac><mml:mrow><mml:mtext>Wt</mml:mtext><mml:mo>&#x2212;</mml:mo><mml:mtext>&#xa0;Wmin</mml:mtext></mml:mrow><mml:mrow><mml:mtext>Wmax&#xa0;</mml:mtext><mml:mo>&#x2212;</mml:mo><mml:mtext>&#xa0;Wmin</mml:mtext></mml:mrow></mml:mfrac></mml:mrow><mml:mo>)</mml:mo></mml:mrow></mml:mrow><mml:mo>}</mml:mo></mml:mrow><mml:mrow><mml:mtext>sW&#xa0;</mml:mtext></mml:mrow></mml:msup><mml:mo>,</mml:mo><mml:msub><mml:mi>W</mml:mi><mml:mi>t</mml:mi></mml:msub><mml:mo>&#x2264;</mml:mo><mml:mtext>&#xa0;</mml:mtext><mml:msub><mml:mi>W</mml:mi><mml:mrow><mml:mi>m</mml:mi><mml:mi>i</mml:mi><mml:mi>n</mml:mi></mml:mrow></mml:msub></mml:mtd></mml:mtr><mml:mtr><mml:mtd><mml:mtext>&#x2009;</mml:mtext><mml:msub><mml:mi>W</mml:mi><mml:mrow><mml:mi>m</mml:mi><mml:mi>i</mml:mi><mml:mi>n</mml:mi></mml:mrow></mml:msub><mml:mo>&lt;</mml:mo><mml:mtext>&#xa0;</mml:mtext><mml:msub><mml:mi>W</mml:mi><mml:mi>t</mml:mi></mml:msub><mml:mo>&lt;</mml:mo><mml:mtext>&#xa0;</mml:mtext><mml:msub><mml:mi>W</mml:mi><mml:mrow><mml:mi>m</mml:mi><mml:mi>a</mml:mi><mml:mi>x</mml:mi></mml:mrow></mml:msub></mml:mtd></mml:mtr><mml:mtr><mml:mtd><mml:mtext>&#x2009;</mml:mtext><mml:msub><mml:mi>W</mml:mi><mml:mi>t</mml:mi></mml:msub><mml:mo>&#x2265;</mml:mo><mml:mtext>&#xa0;</mml:mtext><mml:msub><mml:mi>W</mml:mi><mml:mrow><mml:mi>m</mml:mi><mml:mi>a</mml:mi><mml:mi>x</mml:mi></mml:mrow></mml:msub></mml:mtd></mml:mtr></mml:mtable></mml:math>
</disp-formula>
<p>where W<sub>t</sub> is the live weight at week t, W<sub>min</sub> is the minimum acceptable weight, W<sub>max</sub> is the target/upper weight, and s<sub>W</sub> is a shape (curvature) parameter.</p>
</sec>
<sec id="s2_3_2_2">
<label>2.3.2.2</label>
<title>Individual desirability for backfat thickness</title>
<p>Backfat was handled as a smaller-is-better trait, with full desirability when backfat was below the quality threshold (i.e., 13 mm), a gradual penalty between 13 and 16 mm, and zero desirability above 16 mm (<xref ref-type="disp-formula" rid="eq3">Equation 3</xref>):</p>
<disp-formula id="eq3"><label>(3)</label>
<mml:math display="block" id="M3"><mml:mtable columnalign="left"><mml:mtr><mml:mtd><mml:mi>d</mml:mi><mml:mi>G</mml:mi><mml:mrow><mml:mo stretchy="false">(</mml:mo><mml:mrow><mml:mi>G</mml:mi><mml:mi>t</mml:mi></mml:mrow><mml:mo stretchy="false">)</mml:mo></mml:mrow><mml:mo>&#xa0;</mml:mo><mml:mo>=</mml:mo><mml:msup><mml:mrow><mml:mrow><mml:msubsup><mml:mo>{</mml:mo><mml:mrow><mml:mn>1</mml:mn><mml:mo>,</mml:mo></mml:mrow><mml:mrow><mml:mn>0</mml:mn><mml:mo>,</mml:mo></mml:mrow></mml:msubsup><mml:mrow><mml:mo>(</mml:mo><mml:mrow><mml:mfrac><mml:mrow><mml:mn>16</mml:mn><mml:mo>&#x2212;</mml:mo><mml:mo>&#xa0;</mml:mo><mml:mi>G</mml:mi><mml:mi>t</mml:mi></mml:mrow><mml:mrow><mml:mn>16</mml:mn><mml:mo>&#xa0;</mml:mo><mml:mo>&#x2212;</mml:mo><mml:mo>&#xa0;</mml:mo><mml:mn>13</mml:mn></mml:mrow></mml:mfrac></mml:mrow><mml:mo>)</mml:mo></mml:mrow></mml:mrow><mml:mo>}</mml:mo></mml:mrow><mml:mrow><mml:mi>s</mml:mi><mml:mi>G</mml:mi><mml:mo>&#xa0;</mml:mo></mml:mrow></mml:msup><mml:mtext>&#x2009;</mml:mtext><mml:mo>,</mml:mo><mml:mi>G</mml:mi><mml:mi>t</mml:mi><mml:mtext>&#xa0;</mml:mtext><mml:mo>&#x2264;</mml:mo><mml:mtext>&#xa0;</mml:mtext><mml:mn>13</mml:mn></mml:mtd></mml:mtr><mml:mtr><mml:mtd><mml:mtext>&#x2009;</mml:mtext><mml:mn>13</mml:mn><mml:mtext>&#xa0;</mml:mtext><mml:mo>&lt;</mml:mo><mml:mtext>&#xa0;</mml:mtext><mml:mi>G</mml:mi><mml:mi>t</mml:mi><mml:mtext>&#xa0;</mml:mtext><mml:mo>&lt;</mml:mo><mml:mtext>&#xa0;</mml:mtext><mml:mn>16</mml:mn></mml:mtd></mml:mtr><mml:mtr><mml:mtd><mml:mtext>&#x2009;</mml:mtext><mml:mi>G</mml:mi><mml:mi>t</mml:mi><mml:mtext>&#xa0;</mml:mtext><mml:mo>&#x2265;</mml:mo><mml:mtext>&#xa0;</mml:mtext><mml:mn>16</mml:mn></mml:mtd></mml:mtr></mml:mtable></mml:math>
</disp-formula>
<p>where: G<sub>t</sub>&#x200b; is backfat at week t, and S<sub>G</sub> controls how sharply desirability declines within the penalty zone. These backfat thresholds were established according to commercial carcass quality standards commonly applied in Colombian pig production systems, reflecting industry-based targets for acceptable and optimal backfat thickness, and were therefore used to parameterize the desirability function.</p>
</sec>
<sec id="s2_3_2_3">
<label>2.3.2.3</label>
<title>Individual desirability for cumulative feeding cost</title>
<p>Cumulative feeding cost or cumulative intake valued at feed price was also modeled as smaller-is-better, using an admissible band [C<sub>min</sub>,&#x2009;C<sub>max</sub>] (<xref ref-type="disp-formula" rid="eq4">Equation 4</xref>):</p>
<disp-formula id="eq4"><label>(4)</label>
<mml:math display="block" id="M4"><mml:mtable columnalign="left"><mml:mtr><mml:mtd><mml:mi>d</mml:mi><mml:mi>C</mml:mi><mml:mrow><mml:mo stretchy="false">(</mml:mo><mml:mrow><mml:mi>C</mml:mi><mml:mi>t</mml:mi></mml:mrow><mml:mo stretchy="false">)</mml:mo></mml:mrow><mml:mo>=</mml:mo><mml:msup><mml:mrow><mml:mrow><mml:msubsup><mml:mo>{</mml:mo><mml:mrow><mml:mn>0</mml:mn><mml:mo>,</mml:mo></mml:mrow><mml:mrow><mml:mn>1</mml:mn><mml:mo>,</mml:mo></mml:mrow></mml:msubsup><mml:mrow><mml:mo>(</mml:mo><mml:mrow><mml:mfrac><mml:mrow><mml:mtext>Cmax&#xa0;</mml:mtext><mml:mo>&#x2212;</mml:mo><mml:mtext>&#xa0;Ct</mml:mtext></mml:mrow><mml:mrow><mml:mtext>Cmax&#xa0;</mml:mtext><mml:mo>&#x2212;</mml:mo><mml:mtext>&#xa0;Cmin</mml:mtext></mml:mrow></mml:mfrac></mml:mrow><mml:mo>)</mml:mo></mml:mrow></mml:mrow><mml:mo>}</mml:mo></mml:mrow><mml:mrow><mml:mtext>sA&#xa0;</mml:mtext></mml:mrow></mml:msup><mml:mo>,</mml:mo><mml:mi>C</mml:mi><mml:mi>t</mml:mi><mml:mtext>&#xa0;</mml:mtext><mml:mo>&#x2264;</mml:mo><mml:mtext>&#xa0;</mml:mtext><mml:mi>C</mml:mi><mml:mi>m</mml:mi><mml:mi>i</mml:mi><mml:mi>n</mml:mi></mml:mtd></mml:mtr><mml:mtr><mml:mtd><mml:mtext>&#x2009;</mml:mtext><mml:mi>C</mml:mi><mml:mi>m</mml:mi><mml:mi>i</mml:mi><mml:mi>n</mml:mi><mml:mtext>&#xa0;</mml:mtext><mml:mo>&lt;</mml:mo><mml:mtext>&#xa0;</mml:mtext><mml:mi>C</mml:mi><mml:mi>t</mml:mi><mml:mtext>&#xa0;</mml:mtext><mml:mo>&lt;</mml:mo><mml:mtext>&#xa0;</mml:mtext><mml:mi>C</mml:mi><mml:mi>m</mml:mi><mml:mi>a</mml:mi><mml:mi>x</mml:mi></mml:mtd></mml:mtr><mml:mtr><mml:mtd><mml:mtext>&#x2009;</mml:mtext><mml:mi>C</mml:mi><mml:mi>t</mml:mi><mml:mtext>&#xa0;</mml:mtext><mml:mo>&#x2265;</mml:mo><mml:mtext>&#xa0;</mml:mtext><mml:mi>C</mml:mi><mml:mi>m</mml:mi><mml:mi>a</mml:mi><mml:mi>x</mml:mi></mml:mtd></mml:mtr></mml:mtable></mml:math>
</disp-formula>
<p>where C<sub>t</sub> is the cumulative feeding cost up to week t, C<sub>min</sub> is the desirable (low) cost, C<sub>max</sub> is the maximum acceptable cost, and S<sub>A</sub> is the shape parameter.</p>
</sec>
<sec id="s2_3_2_4">
<label>2.3.2.4</label>
<title>Composite (overall) optimal desirability and biological slaughter weeks</title>
<p>The three individual desirabilities were combined by a weighted geometric mean (<xref ref-type="disp-formula" rid="eq5">Equation 5</xref>):</p>
<disp-formula id="eq5"><label>(5)</label>
<mml:math display="block" id="M5"><mml:mrow><mml:mi>D</mml:mi><mml:mrow><mml:mo stretchy="false">(</mml:mo><mml:mi>t</mml:mi><mml:mo stretchy="false">)</mml:mo></mml:mrow><mml:mtext>&#xa0;</mml:mtext><mml:mo>=</mml:mo><mml:mtext>&#xa0;</mml:mtext><mml:msub><mml:mi>d</mml:mi><mml:mi>W</mml:mi></mml:msub><mml:msup><mml:mrow><mml:mrow><mml:mo stretchy="false">(</mml:mo><mml:mrow><mml:msub><mml:mi>W</mml:mi><mml:mi>t</mml:mi></mml:msub></mml:mrow><mml:mo stretchy="false">)</mml:mo></mml:mrow></mml:mrow><mml:mi>&#x3b1;</mml:mi></mml:msup><mml:mo>&#xa0;</mml:mo><mml:msub><mml:mi>d</mml:mi><mml:mi>G</mml:mi></mml:msub><mml:msup><mml:mrow><mml:mrow><mml:mo stretchy="false">(</mml:mo><mml:mrow><mml:msub><mml:mi>G</mml:mi><mml:mi>t</mml:mi></mml:msub></mml:mrow><mml:mo stretchy="false">)</mml:mo></mml:mrow></mml:mrow><mml:mi>&#x3b2;</mml:mi></mml:msup><mml:mo>&#xd7;</mml:mo><mml:mtext>&#xa0;</mml:mtext><mml:msub><mml:mi>d</mml:mi><mml:mi>C</mml:mi></mml:msub><mml:msup><mml:mrow><mml:mrow><mml:mo stretchy="false">(</mml:mo><mml:mrow><mml:msub><mml:mi>C</mml:mi><mml:mi>t</mml:mi></mml:msub></mml:mrow><mml:mo stretchy="false">)</mml:mo></mml:mrow></mml:mrow><mml:mi>&#x3b3;</mml:mi></mml:msup></mml:mrow></mml:math>
</disp-formula>
<p>Where &#x3b1;, &#x3b2;, and &#x3b3; &gt;0, and represent the relative importance of weight, fat, and cost, respectively (e.g., &#x3b2;&gt;1\ &gt; 1&#x3b2;&gt;1 if carcass leanness is prioritized).</p>
<p>The biologically optimal slaughter week was defined as t<sub>D</sub>* = argmax D(t) (i.e., week t where D(t) is greatest).</p>
</sec>
<sec id="s2_3_2_5">
<label>2.3.2.5</label>
<title>Profit-based criterion</title>
<p>In addition to the biological desirability, a profit function that accounts for carcass revenue and feeding costs was computed (<xref ref-type="disp-formula" rid="eq6">Equation 6</xref>):</p>
<disp-formula id="eq6"><label>(6)</label>
<mml:math display="block" id="M6"><mml:mrow><mml:mi>&#x3a0;</mml:mi><mml:mrow><mml:mo stretchy="false">(</mml:mo><mml:mi>t</mml:mi><mml:mo stretchy="false">)</mml:mo></mml:mrow><mml:mo>=</mml:mo><mml:mi>P</mml:mi><mml:mo>.</mml:mo><mml:mi>m</mml:mi><mml:mrow><mml:mo stretchy="false">(</mml:mo><mml:mrow><mml:msub><mml:mi>G</mml:mi><mml:mi>t</mml:mi></mml:msub></mml:mrow><mml:mo stretchy="false">)</mml:mo></mml:mrow><mml:mo>&#xa0;</mml:mo><mml:mrow><mml:mo stretchy="false">(</mml:mo><mml:mrow><mml:mi>k</mml:mi><mml:mtext>&#xa0;</mml:mtext><mml:mo>&#xd7;</mml:mo><mml:mtext>&#xa0;</mml:mtext><mml:msub><mml:mi>W</mml:mi><mml:mi>t</mml:mi></mml:msub></mml:mrow><mml:mo stretchy="false">)</mml:mo></mml:mrow><mml:mo>&#x2013;</mml:mo><mml:msub><mml:mi>C</mml:mi><mml:mi>f</mml:mi></mml:msub><mml:mstyle displaystyle="true"><mml:munderover><mml:mo>&#x2211;</mml:mo><mml:mrow><mml:mi>&#x3c4;</mml:mi><mml:mo>=</mml:mo><mml:mn>1</mml:mn></mml:mrow><mml:mi>t</mml:mi></mml:munderover><mml:mrow><mml:msub><mml:mi>A</mml:mi><mml:mi>&#x3c4;</mml:mi></mml:msub><mml:mo>&#x2013;</mml:mo><mml:msub><mml:mi>C</mml:mi><mml:mrow><mml:mi>f</mml:mi><mml:mi>i</mml:mi><mml:mi>x</mml:mi></mml:mrow></mml:msub></mml:mrow></mml:mstyle></mml:mrow></mml:math>
</disp-formula>
<p>where P is the carcass price per kg, m(G<sub>t</sub>) is a multiplicative adjustment for backfat class (bonus/penalty), k is the dressing percentage, W<sub>t</sub> is the desired (target) live weight at week t, C<sub>f</sub> is the feed price per kg, A<sub>&#x3c4;</sub>&#x200b; is the feed consumed per week, and C<sub>fix</sub> refers to fixed costs, which were set to zero in this analysis to focus the economic optimization exclusively on variable feeding costs. The optimal week for profitability is: t<sup>*P</sup> = argmax &#x3a0;(t).</p>
</sec>
<sec id="s2_3_2_6">
<label>2.3.2.6</label>
<title>Relationship between the optimal biological and the optimal profit slaughter weeks</title>
<p>The relationship between the biological optimal slaughter week (t<sub>D</sub>) and the profit optimal slaughter week (t<sub>P</sub>) can be summarized as follows: t<sub>D</sub> is the week at which the animal simultaneously meets the desired ranges for live weight, backfat thickness, and feed efficiency; it is a biologically &#x201c;balanced&#x201d; optimum. In contrast, t<sub>P</sub> is the week at which economic return is maximized, because it also accounts for carcass price and cumulative feed cost. Depending on market conditions, these two weeks may coincide or not. When carcass payment systems apply strong discounts for excessive backfat, or when feed costs are high, the optimal profit week can occur earlier than the optimal biological week, indicating that it is economically better to slaughter the animal before it reaches its maximum biological expression. Conversely, when prices are stable and feed costs are moderate, t<sub>D</sub> and t<sub>P</sub> tend to converge, and animals can be kept on feed until they fully meet the biological targets without sacrificing profitability.</p>
</sec>
</sec>
</sec>
</sec>
<sec id="s3" sec-type="results">
<label>3</label>
<title>Results</title>
<sec id="s3_1">
<label>3.1</label>
<title>Growth curves fitted with GAM models</title>
<p>The analysis using GAMs provided a precise and flexible description of growth trajectories and backfat deposition throughout the production cycle across the four evaluated genetic lines. The fitted curves demonstrated a remarkable ability to capture nonlinear variations, revealing phases of acceleration and deceleration that were not always evident in linear or segmented models. Overall, Commercial and F1 lines reached their peaks in daily weight gain and backfat deposition at earlier ages, followed by a plateau and gradual decline, suggesting a relatively narrow optimal slaughter window. In contrast, ML1 and ML2 lines exhibited more prolonged curves with performance peaks shifted to older ages, particularly in males, indicating an extended growth potential before efficiency losses occur. This differential behavior across lines and sexes highlights the usefulness of GAMs for optimizing slaughter scheduling in a line- and sex-specific manner, considering not only final weight but also the joint dynamics of weight gain and fat deposition.</p>
<sec id="s3_1_1">
<label>3.1.1</label>
<title>Results of the GAM model parameters for live weight.</title>
<p><xref ref-type="table" rid="T1"><bold>Table&#xa0;1</bold></xref> summarizes the GAMs&#x2019; fits (penalized cubic splines, k = 3; REML) by genetic line and sex. The fit was excellent across all groups (R<sup>2</sup> = 0.943&#x2013;0.980), supporting the validity of the smoothed trajectories for operational inference. The smoothing parameter (&#x3bb;) values &#x200b;&#x200b;were consistently lower in the earlier-maturing lines (commercial and F1; &#x3bb;&#x2248;0.064&#x2013;0.116) and higher in the later-maturing lines (ML1 and ML2; &#x3bb;&#x2248;0.157&#x2013;0.197), indicating smoother and longer curves in the latter. Intercepts (expected weight at the model reference age) were highest in F1 and Commercial (&#x2248;53&#x2013;56 kg) and lowest in ML1 (&#x2248;46&#x2013;47 kg), consistent with faster weight spurt and gain in precocious lines. Within each line, males generally showed slightly higher intercepts than females (F1: 56.1 vs. 54.3 kg, respectively; Commercial: 53.3 vs. 52.9 kg, respectively), consistent with higher observed terminal weights. Observational counts (n = 552&#x2013;708) ensure dense longitudinal coverage; AIC values &#x200b;&#x200b;were low within each group, indicating adequate parsimony. Together, these parameter patterns are consistent with GAM curves: Commercial and F1 reach their daily gain peaks and stabilization earlier, while ML1 and ML2 maintain proper growth for longer, shifting the optimal profit window to older ages.</p>
<table-wrap id="T1" position="float">
<label>Table&#xa0;1</label>
<caption>
<p>Generalized Additive Model parameters for live weight by genetic line and sex.</p>
</caption>
<table frame="hsides">
<thead>
<tr>
<th valign="middle" align="center">Genetic line</th>
<th valign="middle" align="center">Sex</th>
<th valign="middle" align="center">k</th>
<th valign="middle" align="center">bs</th>
<th valign="middle" align="center">&#x3bb; (sp)</th>
<th valign="middle" align="center">Inter</th>
<th valign="middle" align="center">R<sup>2</sup></th>
<th valign="middle" align="center">AIC</th>
<th valign="middle" align="center">n</th>
</tr>
</thead>
<tbody>
<tr>
<td valign="middle" align="left">Commercial</td>
<td valign="middle" align="left">F</td>
<td valign="middle" align="left">3</td>
<td valign="middle" align="left">cs</td>
<td valign="middle" align="left">0.0925</td>
<td valign="middle" align="left">52.9</td>
<td valign="middle" align="left">0.976</td>
<td valign="middle" align="left">4298</td>
<td valign="middle" align="left">660</td>
</tr>
<tr>
<td valign="middle" align="left">Commercial</td>
<td valign="middle" align="left">M</td>
<td valign="middle" align="left">3</td>
<td valign="middle" align="left">cs</td>
<td valign="middle" align="left">0.0881</td>
<td valign="middle" align="left">53.3</td>
<td valign="middle" align="left">0.974</td>
<td valign="middle" align="left">4311</td>
<td valign="middle" align="left">648</td>
</tr>
<tr>
<td valign="middle" align="left">F1</td>
<td valign="middle" align="left">F</td>
<td valign="middle" align="left">3</td>
<td valign="middle" align="left">cs</td>
<td valign="middle" align="left">0.1160</td>
<td valign="middle" align="left">54.3</td>
<td valign="middle" align="left">0.967</td>
<td valign="middle" align="left">3870</td>
<td valign="middle" align="left">564</td>
</tr>
<tr>
<td valign="middle" align="left">F1</td>
<td valign="middle" align="left">M</td>
<td valign="middle" align="left">3</td>
<td valign="middle" align="left">cs</td>
<td valign="middle" align="left">0.0642</td>
<td valign="middle" align="left">56.1</td>
<td valign="middle" align="left">0.980</td>
<td valign="middle" align="left">3654</td>
<td valign="middle" align="left">564</td>
</tr>
<tr>
<td valign="middle" align="left">ML1</td>
<td valign="middle" align="left">F</td>
<td valign="middle" align="left">3</td>
<td valign="middle" align="left">cs</td>
<td valign="middle" align="left">0.1970</td>
<td valign="middle" align="left">50.9</td>
<td valign="middle" align="left">0.943</td>
<td valign="middle" align="left">5033</td>
<td valign="middle" align="left">708</td>
</tr>
<tr>
<td valign="middle" align="left">ML1</td>
<td valign="middle" align="left">M</td>
<td valign="middle" align="left">3</td>
<td valign="middle" align="left">cs</td>
<td valign="middle" align="left">0.1590</td>
<td valign="middle" align="left">53.1</td>
<td valign="middle" align="left">0.948</td>
<td valign="middle" align="left">4451</td>
<td valign="middle" align="left">624</td>
</tr>
<tr>
<td valign="middle" align="left">ML2</td>
<td valign="middle" align="left">F</td>
<td valign="middle" align="left">3</td>
<td valign="middle" align="left">cs</td>
<td valign="middle" align="left">0.1620</td>
<td valign="middle" align="left">45.9</td>
<td valign="middle" align="left">0.945</td>
<td valign="middle" align="left">4386</td>
<td valign="middle" align="left">624</td>
</tr>
<tr>
<td valign="middle" align="left">ML2</td>
<td valign="middle" align="left">M</td>
<td valign="middle" align="left">3</td>
<td valign="middle" align="left">cs</td>
<td valign="middle" align="left">0.1570</td>
<td valign="middle" align="left">47.0</td>
<td valign="middle" align="left">0.951</td>
<td valign="middle" align="left">3818</td>
<td valign="middle" align="left">552</td>
</tr>
</tbody>
</table>
<table-wrap-foot>
<fn>
<p>bs, cubic regression spline (cs); &#x3bb; (sp), smoothing parameter; Sex codes: F, female, M, male; R<sup>2</sup>, coefficient of determination; AIC, Akaike information criterion; n, records by line. All GAMs fitted with REML and default link on Weight ~ s(Age) (k = 3, reduced when group ages were insufficient).</p></fn>
</table-wrap-foot>
</table-wrap>
<p><xref ref-type="fig" rid="f1"><bold>Figure&#xa0;1</bold></xref> shows GAM-fitted live-weight trajectories by genetic line (rows) and sex (columns) using age in days as the predictor (k = 3, REML). Across groups, growth was monotonic yet clearly nonlinear, with faster gains from ~80&#x2013;140 days followed by a gradual deceleration toward slaughter ages (&#x2248;155&#x2013;170 days). Commercial lines (Commercial and F1) displayed steeper slopes between ~90&#x2013;140 days and reached high predicted weights earlier than ML1/ML2, consistent with earlier biological maturation. In contrast, ML1 and ML2 exhibited more prolonged curvature with later acceleration and a delayed approach to upper weights, indicating later-maturing profiles.</p>
<fig id="f1" position="float">
<label>Figure&#xa0;1</label>
<caption>
<p>Live weight trajectories modeled with GAM by genetic line and sex.</p>
</caption>
<graphic mimetype="image" mime-subtype="tiff" xlink:href="fanim-07-1768496-g001.tif">
<alt-text content-type="machine-generated">Grouped scatter plots with trend lines show weight in kilograms versus age in days for four genetic lines labeled Commercial, F1, ML1, and ML2, separated by sex: female (F) and male (M). Each panel displays individual data points and a blue line indicating growth trends, with males tending to gain more weight with age than females across all lines.</alt-text>
</graphic></fig>
<p>Sex differences were modest but consistent with the rest of our analyses. Within each line, females tended to reach the point of maximum slope earlier (earlier curvature change), whereas males sustained higher weights at the upper end of the age range. Uncertainty bands (95% CI of the mean prediction) were narrow across the dense central age range and widened at the extremes, reflecting data availability; the vertical &#x201c;bands&#x201d; of points mirror the planned biweekly weighing protocol. These patterns support line- and sex-specific slaughter scheduling, with earlier windows for Commercial/F1 and later windows for ML1/ML2, as refined below using backfat (GDD/GDU).</p>
</sec>
</sec>
<sec id="s3_2">
<label>3.2</label>
<title>Backfat dynamics curves with GAM models</title>
<p><xref ref-type="fig" rid="f2"><bold>Figure&#xa0;2</bold></xref> presents the smoothed trajectories of backfat thickness (BDD) as a function of age (days) for each line (rows) &#xd7; sex (columns) combination (GAM with k=3; REML). The Blue line is the smoothed prediction; the shaded area is the 95% CI of the prediction. A nonlinear increase with progressive deceleration was observed in all groups, consistent with an initial phase of more rapid lipid deposition followed by a plateau as slaughter age approaches. The basis dimension (<italic>k</italic> = 3) was selected to favor smooth, biologically plausible trajectories and to reduce the risk of overfitting, given the temporal resolution of the data. This choice is consistent with previous applications of GAMs in similar pig production systems, where dominant nonlinear biological patterns occur at low frequencies and do not require highly flexible smoothers (<xref ref-type="bibr" rid="B7">Herrera et&#xa0;al., 2026</xref>). Smoothness selection was controlled via REML penalization.</p>
<fig id="f2" position="float">
<label>Figure&#xa0;2</label>
<caption>
<p>Backfat curves modeled with GAM by genetic line and sex.</p>
</caption>
<graphic mimetype="image" mime-subtype="tiff" xlink:href="fanim-07-1768496-g002.tif">
<alt-text content-type="machine-generated">Scatterplots with trend lines show backfat thickness in millimeters versus age in days for different pig crossbreeds and both sexes. Each row represents a crossbreed group, and columns separate females (left) and males (right).</alt-text>
</graphic></fig>
<p>Among lines, Commercial and F1 show earlier increases and an earlier stabilization (&#x2248;110&#x2013;140 days), whereas ML1 and ML2 show a more prolonged increase and shifted plateaus to older ages (&#x2248;135&#x2013;160 days), suggesting later maturation profiles. The differences by sex are consistent; females tend to flatten the curve earlier and have slightly lower terminal values compared to males of the same line, consistent with the growth peaks observed in the weight curves. The uncertainty bands (95% CI of the prediction) are narrow in the central age range, where there are more observations, and widen at the extremes, reflecting lower data density.</p>
<p><xref ref-type="fig" rid="f2"><bold>Figure&#xa0;2</bold></xref> focuses on the purebred maternal lines (ML1 and ML2). The GAM weight curves (k = 3) show sigmoid trajectories with the later peak daily gain (ADG) than those observed in the terminal/commercial lines; in ML2, the peak is located practically at the same point for both sexes (~165 days, &#x2248;23.5 weeks), while in ML1 it occurs later (males ~177 days and females ~176 days, &#x2248;25 weeks). This chronology suggests a later productive maturity and a more extended finishing phase, especially in ML1. At the top of the curve, males tend to project somewhat higher terminal weights than females, although the difference in peak age is small (&#x2248;1 day in ML1 and zero in ML2). Operationally, these profiles support later exit-scheduling windows than in Commercial/F1. For ML2, the target window is around 22&#x2013;24 weeks (just after peak ADG) and, for ML1, around 24&#x2013;26 weeks, prioritizing dispatch when the curve slope begins to flatten.</p>
<p>In commercial lines (Commercial and F1), the GAM weight curves (k = 3; REML) show a clear sigmoid pattern with maximum daily gain concentrated around 164&#x2013;165 days in both sexes (dotted vertical lines in the figures). Between ~90 and 140 days, the slope is steepest, reflecting the phase of greatest growth efficiency; from ~160 days onwards, the curvature softens and marginal gain decreases, anticipating the onset of the plateau. Although the timing of the peak is very similar between sexes, females tend to flatten the curve slightly earlier, while males reach slightly higher terminal weights towards the right end. Compared with maternal lines (ML1/ML2), whose peaks occur later (~176&#x2013;177 days), Commercial and F1 mature earlier and present an earlier and relatively narrow profit window.</p>
<p>Operationally, these patterns, along with the average weight and consumption curves, are combined to propose the optimal schedule for slaughter plant release by line and sex, i.e., allow for defining benefit windows when the slope (dGDD/age) begins to decline steadily, when the GDD reaches the flock reference threshold, or both. In the current study, this occurs earlier in commercial/F1 and later in ML1/ML2, consistent with the differences in biological maturity described in relation to live weight. Because weight flattening typically coincides with a relative acceleration in fat deposition, it is appropriate to accompany these windows with close monitoring of GDD/GDU and, if necessary, dietary energy density adjustments as the upper limit is approached, to capture the target weight without penalties for excess fat. Operationally, the results support scheduling release between 22 and 24 weeks (&#x2248;154&#x2013;168 days), fine-tuning by sex: females closer to 22&#x2013;23 weeks and males closer to 23&#x2013;24 weeks, and synchronizing with backfat thresholds (GDD/GDU) and the average intake trajectory to avoid overshooting the fattening target once the ADG peak is passed.</p>
<sec id="s3_2_1">
<label>3.2.1</label>
<title>Backfat trajectory in pure maternal lines (ML1 and ML2)</title>
<p>In the pure maternal lines ML1 and ML2, the GAM backfat thickness (BFT) curves show an early peak in the deposition rate (dBFT/dAge) around 9&#x2013;10 weeks of age: ~67 days in ML1 (&#x2248;2.9 mm/d in males and &#x2248;4.5 mm/d in females) and ~64 days in ML2 (&#x2248;4.0 mm/d in males and &#x2248;3.6 mm/d in females). After this peak, the slope remains positive but with a slower acceleration, describing an almost linear increase in fat until the end of the observed period (&#x2248;170 days). At typical slaughter ages (160&#x2013;170 days), mean levels reach ~9&#x2013;11 mm in ML1 and ~9&#x2013;12 mm in ML2, with ML1 females showing a more intense initial deposition phase than males, while in ML2 the sex difference is smaller and tends to converge at later ages.</p>
<p>Operationally, these patterns indicate that pure lines differ in their precocity of adipose deposition: ML1 exhibits greater early momentum, while ML2 prolongs GDD growth with a somewhat more stable acceleration. Thus, if the slaughter plant objective is to limit GDD &#x2264; 13&#x2013;15 mm, ML1 can anticipate exit when the target live weight is reached (avoiding fat surpluses in females), and ML6 allows slightly later windows (&#x2265;160 d) without easily exceeding the threshold, especially in males. These differences by line and sex support a stratified slaughter schedule, aligned with the temporal dynamics of adipose tissue.</p>
</sec>
<sec id="s3_2_2">
<label>3.2.2</label>
<title>Backfat trajectory in commercial lines (commercial and F1)</title>
<p>In commercial lines, the backfat GAM curves show an early and clear pattern of acceleration followed by flattening. In F1, the maximum rate of change (peak dGDD/dAge) was reached around 54 days (peak value &#x2248; 1.2), indicating more rapid fat deposition at the beginning; the curve progressively flattens between 120&#x2013;140 days and tends to a plateau near 9&#x2013;11 mm of around 145&#x2013;155 days. In the Commercial line, the peak of change also occurs at &#x2248;54&#x2013;55 days, but with a smaller magnitude (&#x2248; 0.6&#x2013;0.8), and the plateau is slightly lower (&#x2248; 7&#x2013;9 mm), with flattening between 115&#x2013;135 days. In both lines, females tend to stabilize earlier and with somewhat lower final values &#x200b;&#x200b;than males, who maintain slight increases for longer and exhibit greater final thickness.</p>
<p>Operationally, this behavior suggests earlier profit windows in the Commercial and F1 lines, especially in females, since upon flattening (a sustained drop in the slope), the marginal efficiency of fattening decreases to the predominance of adipose tissue. These results are consistent with the live weight curves, which also place commercial lines as earlier relative to pure maternal lines.</p>
</sec>
</sec>
<sec id="s3_3">
<label>3.3</label>
<title>Average feed intake modeled with GAM</title>
<p>The GAM curves for average feed intake showed a clear nonlinear (saturating) pattern in all genetic lines and both sexes. Intake increased rapidly from the start of the growing&#x2013;finishing period and then tended to level off, with the 95% prediction bands becoming narrower in the age range with the highest data density (&#x2248;70&#x2013;140 d). Commercial lines (commercial and F1) reached the plateau earlier, around 120&#x2013;130 days, with mean intakes close to 2.8&#x2013;3.0 kg/d, whereas the maternal lines (ML1 and ML2) maintained a rising trajectory for longer and stabilized later (&#x2248;140&#x2013;160 d), indicating a more prolonged intake capacity. Within each line, females tended to plateau slightly earlier and at a marginally lower intake than males, consistent with their earlier growth peaks described for body weight and backfat. These trajectories support the intake ranges used in the desirability optimization (&#x2248;2.7&#x2013;3.2 kg/d) and confirm that, by the time the slaughter windows predicted by the GAMs (22&#x2013;23 weeks) are reached, most line and sex groups are already in the flat part of the intake curve, so additional days on feed contribute more to cost than to biological gain. (<xref ref-type="fig" rid="f3"><bold>Figure&#xa0;3</bold></xref>).</p>
<fig id="f3" position="float">
<label>Figure&#xa0;3</label>
<caption>
<p>Average daily feed intake modeled with GAM by genetic line and sex.</p>
</caption>
<graphic mimetype="image" mime-subtype="tiff" xlink:href="fanim-07-1768496-g003.tif">
<alt-text content-type="machine-generated">Grid of eight line charts comparing mean intake in kilograms per day by age in days for female (left, labeled F) and male (right, labeled M) animals across four groups: Commercial, F1, ML1, and ML2. Each chart shows a clear upward trend with mean intake increasing by age, leveling off at higher ages, and individual data points distributed along the fitted curve.</alt-text>
</graphic></fig>
</sec>
<sec id="s3_4">
<label>3.4</label>
<title>Optimization functions</title>
<p><xref ref-type="fig" rid="f4"><bold>Figure&#xa0;4</bold></xref> shows the weekly evolution of the mean global desirability value T(d) for each genetic line (F1, ML1, ML2, and commercial), separating trajectories for males (M) and females (F). In all lines, D(t) remained close to zero (0) up to approximately week 18 and then increased sharply from week 19 onwards, indicating that the most favorable combinations of live weight, backfat thickness, and feed intake are only reached during the last weeks of the growing&#x2013;finishing cycle. A noticeable sex effect was observed in the F1 line, where the biological optima differed between males and females, with females reaching high t(d) values slightly earlier than males. In contrast, the trajectories of ML1, ML2, and commercial pigs showed almost overlapping curves for both sexes, with the highest desirability peaks concentrated around week 23, where the biological optimal week (t*D) was located for most groups.</p>
<fig id="f4" position="float">
<label>Figure&#xa0;4</label>
<caption>
<p>Desirability curve and biological optimal slaughter week.</p>
</caption>
<graphic mimetype="image" mime-subtype="tiff" xlink:href="fanim-07-1768496-g004.tif">
<alt-text content-type="machine-generated">Four line graphs compare mean desirability D(t) over weeks for female and male subjects across four genetic lines: F1, ML1, ML2, and commercial. All plots show near-zero values until weeks twenty to twenty-three, where scores sharply increase, with minimal differences between sexes and genetic lines.</alt-text>
</graphic></fig>
</sec>
<sec id="s3_5">
<label>3.5</label>
<title>Biological optimal slaughter week</title>
<p><xref ref-type="table" rid="T2"><bold>Table&#xa0;2</bold></xref> summarizes the biological optimal slaughter week (t*D) estimated for each genetic line and sex combination, along with the mean live weight, backfat thickness, and desirability values reached at that week. The results indicate that the biologically optimal slaughter window is, on average, located between weeks 20 and 22, with modest shifts depending on genetic background and sex. However, the live weight values registered at t*D remain below current market specifications for slaughter pigs, indicating that this biologically optimal point does not necessarily coincide with market-driven targets. This confirms that most groups achieve the best technical balance, i.e., adequate weight, backfat within the target range, and acceptable intake, before the economic optimum, and that the model can differentiate slightly earlier optimal in the more precocious commercial and crossbred lines and in females.</p>
<table-wrap id="T2" position="float">
<label>Table&#xa0;2</label>
<caption>
<p>Optimization-derived optimal slaughter week by genetic line and sex.</p>
</caption>
<table frame="hsides">
<thead>
<tr>
<th valign="middle" align="center">Genetic line</th>
<th valign="middle" align="center">Sex</th>
<th valign="middle" align="center">n</th>
<th valign="middle" align="center">mean_tD</th>
<th valign="middle" align="center">sd_tD</th>
<th valign="middle" align="center">mean_weight</th>
<th valign="middle" align="center">mean_fat</th>
<th valign="middle" align="center">mean_D</th>
</tr>
</thead>
<tbody>
<tr>
<td valign="middle" align="left">F1</td>
<td valign="middle" align="left">F</td>
<td valign="middle" align="left">47</td>
<td valign="middle" align="left">21.08</td>
<td valign="middle" align="left">4.69</td>
<td valign="middle" align="left">102.67</td>
<td valign="middle" align="left">8.87</td>
<td valign="middle" align="left">0.25</td>
</tr>
<tr>
<td valign="middle" align="left">F1</td>
<td valign="middle" align="left">M</td>
<td valign="middle" align="left">47</td>
<td valign="middle" align="left">21.80</td>
<td valign="middle" align="left">3.94</td>
<td valign="middle" align="left">113.27</td>
<td valign="middle" align="left">9.39</td>
<td valign="middle" align="left">0.37</td>
</tr>
<tr>
<td valign="middle" align="left">ML1</td>
<td valign="middle" align="left">F</td>
<td valign="middle" align="left">59</td>
<td valign="middle" align="left">21.03</td>
<td valign="middle" align="left">4.82</td>
<td valign="middle" align="left">89.61</td>
<td valign="middle" align="left">8.18</td>
<td valign="middle" align="left">0.25</td>
</tr>
<tr>
<td valign="middle" align="left">ML1</td>
<td valign="middle" align="left">M</td>
<td valign="middle" align="left">52</td>
<td valign="middle" align="left">20.34</td>
<td valign="middle" align="left">5.27</td>
<td valign="middle" align="left">91.50</td>
<td valign="middle" align="left">8.52</td>
<td valign="middle" align="left">0.27</td>
</tr>
<tr>
<td valign="middle" align="left">ML2</td>
<td valign="middle" align="left">F</td>
<td valign="middle" align="left">52</td>
<td valign="middle" align="left">20.84</td>
<td valign="middle" align="left">4.76</td>
<td valign="middle" align="left">87.38</td>
<td valign="middle" align="left">9.11</td>
<td valign="middle" align="left">0.29</td>
</tr>
<tr>
<td valign="middle" align="left">ML2</td>
<td valign="middle" align="left">M</td>
<td valign="middle" align="left">46</td>
<td valign="middle" align="left">20.13</td>
<td valign="middle" align="left">5.57</td>
<td valign="middle" align="left">84.10</td>
<td valign="middle" align="left">8.30</td>
<td valign="middle" align="left">0.28</td>
</tr>
<tr>
<td valign="middle" align="left">Commercial</td>
<td valign="middle" align="left">F</td>
<td valign="middle" align="left">55</td>
<td valign="middle" align="left">19.94</td>
<td valign="middle" align="left">5.83</td>
<td valign="middle" align="left">92.71</td>
<td valign="middle" align="left">6.36</td>
<td valign="middle" align="left">0.27</td>
</tr>
<tr>
<td valign="middle" align="left">Commercial</td>
<td valign="middle" align="left">M</td>
<td valign="middle" align="left">54</td>
<td valign="middle" align="left">20.11</td>
<td valign="middle" align="left">5.67</td>
<td valign="middle" align="left">96.63</td>
<td valign="middle" align="left">6.53</td>
<td valign="middle" align="left">0.27</td>
</tr>
</tbody>
</table>
<table-wrap-foot>
<fn>
<p>n, number of animals; Desirability, week maximizing the multi-criteria desirability function; Profit, week maximizing economic margin. Sex: F, female; M, male.</p></fn>
</table-wrap-foot>
</table-wrap>
<p><xref ref-type="fig" rid="f5"><bold>Figure&#xa0;5</bold></xref> shows the weekly evolution of mean accumulated profit &#x3a0;(t) by genetic line and sex. In all groups, &#x3a0;(t) increases steadily across the finishing period, indicating that the economic value of the pigs grows with age as live weight and projected carcass yield improve. Profit trajectories display very similar slopes between males (M) and females (F) within each line, although males tend to reach slightly higher values in most cases, particularly in the ML1 and ML2 lines, likely due to their higher final weights. The F1 and Commercial lines exhibit the highest profit levels around week 23, whereas ML1 and ML2 show comparatively lower values. Across all genetic lines, the economic optimal slaughter weeks (t*P) fall within a narrow 21&#x2013;23-week window, indicating that this interval represents the point at which the economic return is maximized.</p>
<fig id="f5" position="float">
<label>Figure&#xa0;5</label>
<caption>
<p>Profit curve and optimal economic slaughter week.</p>
</caption>
<graphic mimetype="image" mime-subtype="tiff" xlink:href="fanim-07-1768496-g005.tif">
<alt-text content-type="machine-generated">Four line charts compare mean profitability in USD per ton across weeks for female and male chickens in genetic lines F1, ML1, ML2, and commercial. Profitability increases over time in all charts, with both sexes showing similar trends, though ML1 and ML2 display slightly higher male profitability near week twenty-three, while F1 and commercial lines show little difference. All charts use similar axes and legends, with a vertical dotted line marking week twenty-three.</alt-text>
</graphic></fig>
<p><xref ref-type="table" rid="T3"><bold>Table&#xa0;3</bold></xref> reports the optimal economic slaughter week (t*P) for each genetic line and sex combination, along with the mean profit, live weight, and backfat thickness reached that week. Across all groups, the economic optimum was located between 22 and 23 weeks, with low dispersion (SD &#x2248; 0.5&#x2013;1.2 weeks), indicating a very consistent point of maximum profitability. Differences between sexes were small; males tended to achieve slightly higher economic returns and heavier final weights, whereas females showed slightly lower backfat values. Overall, the results confirm that week 23 is the highest point of economic return for all genetic lines, providing a balanced combination of target weight, acceptable backfat, and accumulated feed intake. The lower variability of <italic>tP</italic> relative to <italic>tD</italic> is expected, as economic optimization integrates cost price constraints that restrict the optimal window and dampen biological variability.</p>
<table-wrap id="T3" position="float">
<label>Table&#xa0;3</label>
<caption>
<p>Economic optimum according to slaughter week.</p>
</caption>
<table frame="hsides">
<thead>
<tr>
<th valign="middle" align="center">Genetic Line</th>
<th valign="middle" align="center">Sex</th>
<th valign="middle" align="center">n</th>
<th valign="middle" align="center">mean_tP</th>
<th valign="middle" align="center">sd_Tp</th>
<th valign="middle" align="center">mean_profit</th>
<th valign="middle" align="center">mean_weight</th>
<th valign="middle" align="center">mean_fat</th>
</tr>
</thead>
<tbody>
<tr>
<td valign="middle" align="left">F1</td>
<td valign="middle" align="left">F</td>
<td valign="middle" align="left">47</td>
<td valign="middle" align="left">22.82</td>
<td valign="middle" align="left">0.81</td>
<td valign="middle" align="left">1018017.70</td>
<td valign="middle" align="left">112.92</td>
<td valign="middle" align="left">9.71</td>
</tr>
<tr>
<td valign="middle" align="left">F1</td>
<td valign="middle" align="left">M</td>
<td valign="middle" align="left">47</td>
<td valign="middle" align="left">22.87</td>
<td valign="middle" align="left">0.87</td>
<td valign="middle" align="left">1035168.15</td>
<td valign="middle" align="left">119.73</td>
<td valign="middle" align="left">9.86</td>
</tr>
<tr>
<td valign="middle" align="left">ML1</td>
<td valign="middle" align="left">F</td>
<td valign="middle" align="left">59</td>
<td valign="middle" align="left">22.76</td>
<td valign="middle" align="left">0.91</td>
<td valign="middle" align="left">842270.90</td>
<td valign="middle" align="left">96.81</td>
<td valign="middle" align="left">8.72</td>
</tr>
<tr>
<td valign="middle" align="left">ML1</td>
<td valign="middle" align="left">M</td>
<td valign="middle" align="left">52</td>
<td valign="middle" align="left">22.57</td>
<td valign="middle" align="left">1.27</td>
<td valign="middle" align="left">922760.65</td>
<td valign="middle" align="left">102.19</td>
<td valign="middle" align="left">9.58</td>
</tr>
<tr>
<td valign="middle" align="left">ML2</td>
<td valign="middle" align="left">F</td>
<td valign="middle" align="left">52</td>
<td valign="middle" align="left">22.69</td>
<td valign="middle" align="left">0.72</td>
<td valign="middle" align="left">844563.92</td>
<td valign="middle" align="left">95.06</td>
<td valign="middle" align="left">10.08</td>
</tr>
<tr>
<td valign="middle" align="left">ML2</td>
<td valign="middle" align="left">M</td>
<td valign="middle" align="left">46</td>
<td valign="middle" align="left">22.86</td>
<td valign="middle" align="left">0.49</td>
<td valign="middle" align="left">888867.25</td>
<td valign="middle" align="left">94.94</td>
<td valign="middle" align="left">9.14</td>
</tr>
<tr>
<td valign="middle" align="left">Commercial</td>
<td valign="middle" align="left">F</td>
<td valign="middle" align="left">55</td>
<td valign="middle" align="left">22.81</td>
<td valign="middle" align="left">0.79</td>
<td valign="middle" align="left">996869.22</td>
<td valign="middle" align="left">109.58</td>
<td valign="middle" align="left">7.41</td>
</tr>
<tr>
<td valign="middle" align="left">Commercial</td>
<td valign="middle" align="left">M</td>
<td valign="middle" align="left">54</td>
<td valign="middle" align="left">22.88</td>
<td valign="middle" align="left">0.46</td>
<td valign="middle" align="left">993047.32</td>
<td valign="middle" align="left">112.41</td>
<td valign="middle" align="left">7.60</td>
</tr>
</tbody>
</table>
<table-wrap-foot>
<fn>
<p>n, number of animals by sex; Sex: F, female; M, male; mean_tP, mean optimal economic slaughter; sd<bold>_</bold>tP, standard deviation optimal economic slaughter; mean<bold>_</bold>weight, live weight; mean_fat, backfat thickness reached that week.</p></fn>
</table-wrap-foot>
</table-wrap>
<p><xref ref-type="table" rid="T4"><bold>Table&#xa0;4</bold></xref> compares the optimal biological slaughter week (tD) and the optimal economic slaughter week (tP) for each genetic line and sex, including the mean difference and its standard deviation. In all groups, the economic week tP occurred after the biological week tD, with an average lag of 1 to 3 weeks, indicating that animals reach their best biological balance earlier than they do their maximum profitability.</p>
<table-wrap id="T4" position="float">
<label>Table&#xa0;4</label>
<caption>
<p>Comparison between the optimal biological and the optimal economic slaughter weeks.</p>
</caption>
<table frame="hsides">
<thead>
<tr>
<th valign="middle" align="center">Genetic line</th>
<th valign="middle" align="center">Sex</th>
<th valign="middle" align="center">n</th>
<th valign="middle" align="center">mean_tD</th>
<th valign="middle" align="center">mean_tP</th>
<th valign="middle" align="center">mean_diff</th>
<th valign="middle" align="center">sd_diff</th>
</tr>
</thead>
<tbody>
<tr>
<td valign="middle" align="left">F1</td>
<td valign="middle" align="left">F</td>
<td valign="middle" align="left">47</td>
<td valign="middle" align="left">21.08</td>
<td valign="middle" align="left">22.82</td>
<td valign="middle" align="left">1.74</td>
<td valign="middle" align="left">4.30</td>
</tr>
<tr>
<td valign="middle" align="left">F1</td>
<td valign="middle" align="left">M</td>
<td valign="middle" align="left">47</td>
<td valign="middle" align="left">21.80</td>
<td valign="middle" align="left">22.87</td>
<td valign="middle" align="left">1.06</td>
<td valign="middle" align="left">3.60</td>
</tr>
<tr>
<td valign="middle" align="left">ML1</td>
<td valign="middle" align="left">F</td>
<td valign="middle" align="left">59</td>
<td valign="middle" align="left">21.03</td>
<td valign="middle" align="left">22.76</td>
<td valign="middle" align="left">1.72</td>
<td valign="middle" align="left">4.27</td>
</tr>
<tr>
<td valign="middle" align="left">ML1</td>
<td valign="middle" align="left">M</td>
<td valign="middle" align="left">52</td>
<td valign="middle" align="left">20.34</td>
<td valign="middle" align="left">22.57</td>
<td valign="middle" align="left">2.23</td>
<td valign="middle" align="left">4.76</td>
</tr>
<tr>
<td valign="middle" align="left">ML2</td>
<td valign="middle" align="left">F</td>
<td valign="middle" align="left">52</td>
<td valign="middle" align="left">20.84</td>
<td valign="middle" align="left">22.69</td>
<td valign="middle" align="left">1.84</td>
<td valign="middle" align="left">4.53</td>
</tr>
<tr>
<td valign="middle" align="left">ML2</td>
<td valign="middle" align="left">M</td>
<td valign="middle" align="left">46</td>
<td valign="middle" align="left">20.13</td>
<td valign="middle" align="left">22.86</td>
<td valign="middle" align="left">2.73</td>
<td valign="middle" align="left">5.42</td>
</tr>
<tr>
<td valign="middle" align="left">Commercial</td>
<td valign="middle" align="left">F</td>
<td valign="middle" align="left">55</td>
<td valign="middle" align="left">19.94</td>
<td valign="middle" align="left">22.81</td>
<td valign="middle" align="left">2.87</td>
<td valign="middle" align="left">5.53</td>
</tr>
<tr>
<td valign="middle" align="left">Commercial</td>
<td valign="middle" align="left">M</td>
<td valign="middle" align="left">54</td>
<td valign="middle" align="left">20.11</td>
<td valign="middle" align="left">22.88</td>
<td valign="middle" align="left">2.77</td>
<td valign="middle" align="left">5.55</td>
</tr>
</tbody>
</table>
<table-wrap-foot>
<fn>
<p>n, number of animals by sex; Sex: F, female; M, male; mean_tD, mean optimal biological slaughter week; mean<bold>_</bold>tP, mean optimal economic slaughter; mean<bold>_</bold>diff, mean difference; sd<bold>_</bold>diff, standard deviation.</p></fn>
</table-wrap-foot>
</table-wrap>
<p>The Pareto-type plot displays the relationship between live weight and backfat thickness, with points colored according to the global desirability value T(d). This visualization allows seeing the trade-off between weight gain and fat accumulation, and identifying the region where desirability is highest.</p>
<p>The general Pareto plot (<xref ref-type="fig" rid="f6"><bold>Figure&#xa0;6</bold></xref>) shows the relationship between live weight and dorsal backfat of all animals in the study, with point color reflecting the global desirability T(d). This indicator combines the biological and economic objectives of the model (higher weight, lower backfat, and lower cumulative intake), so lighter/brighter colors represent animals closer to the optimal balance. The horizontal dashed lines that limit a transparent pink area mark the reference range of 13&#x2013;16 mm of backfat, where values below 13 mm are considered ideal, 13&#x2013;16 mm acceptable, and &gt;16 mm are higher than desired.</p>
<fig id="f6" position="float">
<label>Figure&#xa0;6</label>
<caption>
<p>General Pareto plot displaying weight vs. backfat.</p>
</caption>
<graphic mimetype="image" mime-subtype="tiff" xlink:href="fanim-07-1768496-g006.tif">
<alt-text content-type="machine-generated">Scatter plot showing fat thickness in millimeters versus weight in kilograms with data points colored according to a desirability scale from zero to one. Two horizontal red dashed lines mark fat values at approximately thirteen and sixteen millimeters. A vertical color bar on the right indicates the desirability gradient, labeled as Desirability D(t).</alt-text>
</graphic></fig>
<p>The plot shows an upward trend, with backfat increasing progressively as body weight increases. However, most animals are clustered in a favorable zone, between 70 and 120 kg of live weight and 5 to 12 mm of backfat, which corresponds to the area where the highest desirability values were observed. This confirms that the optimization procedure is aligned with commercial slaughter ranges and that most animals reached the target phenotype before being sent to the slaughter plant.</p>
<p><xref ref-type="fig" rid="f7"><bold>Figure&#xa0;7</bold></xref> shows Pareto-type plots for each genetic line (F1, ML1, ML2, and Commercial), relating live weight to backfat thickness, with point color representing the overall desirability value D(t). Across all groups, there is an upward trend between weight and fat, reflecting the expected relationship between growth and adipose deposition. The color scale shows that the highest desirability values concentrate in animals that reach higher market weights while keeping backfat within the desired range (&lt;13 mm). The F1 line shows the widest spread of data at higher weights (up to ~130 kg) and a cluster of points with backfat between 8 and 12 mm associated with the highest desirability. This indicates very good efficiency in animals that achieve high weight without excessive fat. ML1 displays a pattern similar to F1, though with a slight tendency toward higher backfat at the same live weight. Even so, a good number of points remain within the desired fat range (&#x2248;13&#x2013;16 mm). ML2 shows greater variability and a few outliers with higher backfat, although most animals group between 80&#x2013;100 kg and 7&#x2013;12 mm of fat. Moreover, the commercial animals show the most concentrated pattern, with low dispersion and high desirability in animals weighing 90&#x2013;110 kg and with 6&#x2013;10 mm of backfat, standing out for their uniformity.</p>
<fig id="f7" position="float">
<label>Figure&#xa0;7</label>
<caption>
<p>Pareto plots displaying weight vs. backfat by genetic line.</p>
</caption>
<graphic mimetype="image" mime-subtype="tiff" xlink:href="fanim-07-1768496-g007.tif">
<alt-text content-type="machine-generated">Four-panel scatter plot visualizing the relationship between weight in kilograms and fat in millimeters for four different genetic lines: F1, ML1, ML2, and commercial. Each point is colored according to a desirability scale from zero (purple) to approximately 0.75 (yellow-green), indicated by a vertical color bar labeled as desirability. Each plot features a black density ellipse and two red dashed horizontal lines around fifteen millimeters of fat. Panel titles identify genetic lines above or below each respective chart.</alt-text>
</graphic></fig>
</sec>
</sec>
<sec id="s4" sec-type="discussion">
<label>4</label>
<title>Discussion</title>
<p>The results describe biologically plausible nonlinear trajectories of growth and backfat deposition across four pig genetic lines, revealing a consistent maturation gradient (Commercial earlier, F1 intermediate, and ML1/ML2 later) and marked sex differences, with females reaching inflection points earlier than males. These patterns are consistent with longitudinal evidence showing that growth efficiency, fat accretion, and maturation rates depend strongly on genotype and sex, and that terminal crosses typically mature earlier than pure or maternal lines (<xref ref-type="bibr" rid="B16">Schinckel et&#xa0;al., 2009a</xref>; <xref ref-type="bibr" rid="B13">Pereira-Pinto et&#xa0;al., 2025</xref>).</p>
<p>Although females generally reach growth and fat deposition inflection points earlier than males, this pattern alone does not fully explain the sex-specific optima observed in ML1 and ML2. In maternal lines, females tend to exhibit earlier physiological maturity combined with more efficient fat deposition within commercially acceptable ranges, which can extend their economically optimal window despite lower absolute growth rates. In ML2, the higher biological optimum (tD) observed in females reflects an earlier stabilization of lean growth, coupled with sustained backfat accretion within target limits, whereas in males, lean growth continues beyond the point of maximal biological desirability. Similarly, in ML1, females reach the economic optimum (tP) later than males because they maintain profitability for a longer period, remaining within acceptable backfat thresholds while incremental feed costs are still compensated by carcass value. This sex-specific response in maternal genotypes is consistent with previous reports showing that females can exhibit distinct fat deposition dynamics and economic efficiency compared with males, particularly in lines selected for reproductive performance rather than terminal growth (<xref ref-type="bibr" rid="B16">Schinckel et&#xa0;al., 2009a</xref>, <xref ref-type="bibr" rid="B17">2009b</xref>; <xref ref-type="bibr" rid="B5">Fisher et&#xa0;al., 2003</xref>; <xref ref-type="bibr" rid="B13">Pereira-Pinto et&#xa0;al., 2025</xref>). These results highlight that biological maturity, fat accretion patterns, and economic optimization do not necessarily coincide and must be interpreted jointly within each line &#xd7; sex context.</p>
<p>Backfat GAM trajectories further support this differentiation. In Commercial and F1 lines, backfat slopes accelerate and flatten earlier (&#x2248;110&#x2013;140 days), indicating narrower and earlier windows in which carcass quality and efficiency are optimized. In contrast, ML1 and ML2 exhibit a more prolonged increase in backfat and a later plateau (&#x2248;135&#x2013;160 days), consistent with late-maturing maternal genotypes. Across lines, females tend to stabilize fat deposition earlier and at lower terminal values than males, reinforcing the need to stratify slaughter decisions by line &#xd7; sex. These patterns align with previous reports showing systematic genetic and sex-related differences in fat accretion dynamics and post-inflection behavior (<xref ref-type="bibr" rid="B17">Schinckel et&#xa0;al., 2009b</xref>; <xref ref-type="bibr" rid="B10">Liao et&#xa0;al., 2025</xref>).</p>
<p>The use of GAMs allowed flexible representation of these sigmoid trajectories and their inflection points without imposing a fixed parametric form. This approach is consistent with studies demonstrating that nonlinear models capture genotype-specific acceleration-deceleration phases of growth and tissue deposition, critical for identifying efficiency transitions relevant to management decisions (<xref ref-type="bibr" rid="B2">Coyne et&#xa0;al., 2015</xref>; <xref ref-type="bibr" rid="B20">Touma and Oyadomari, 2021</xref>).</p>
<p>Integrating the GAM-derived trajectories with a desirability function and an economic margin function revealed two distinct but closely related optima. The first, i.e., the biological or technical optimum (tD), which occurred earlier (&#x2248;19.4&#x2013;22.4 weeks), reflected the best compromise among weight, backfat, and intake within defined quality ranges. The economic optimum (tP) followed shortly thereafter (&#x2248;22.0&#x2013;22.9 weeks), when additional weight gain still offset incremental feed costs. This temporal separation between a quality-driven optimum and one that is profit-driven is consistent with multi-objective optimization frameworks in animal production, where biological and economic goals do not necessarily coincide (<xref ref-type="bibr" rid="B25">Yang, 2007</xref>; <xref ref-type="bibr" rid="B9">Lee and Kong, 2025</xref>). The narrow dispersion of tP across all line &#xd7; sex groups indicates a robust and operationally manageable economic window on farm.</p>
<p>Regarding limitations, our models were fitted to observational data collected under specific conditions (diet, health status, stocking density, microclimate, and management), so external validity to other production systems should be interpreted cautiously. Backfat trajectories may be affected by measurement error (operator, equipment, and anatomical site) and by the available age grid. In addition, modeling choices (e.g., GAM smoothers with k = 3 and the selected penalty) and optimization settings (thresholds and weights in the desirability function, as well as assumed prices and costs) can shift the estimated optima (t<italic>D</italic> and <italic>t</italic>P). Selection bias is also possible if females are retained as replacements or atypical animals are culled, potentially displacing growth and fat curves. Ideally, these findings should be confirmed through multi-site/seasonal validation and sensitivity analyses (e.g., varying &#x3b1;, &#x3b2;, &#x3b3; or price scenarios). Even so, the approach is directly actionable at the farm level: (i) schedule slaughter by line &#xd7; sex from 22.6 to 23.0 weeks, advancing earlier-maturing groups, and using t<italic>D</italic> as the technical trigger and <italic>t</italic>P as the economic check; (ii) periodically recalibrate thresholds and parameters and update prices/costs to match the processing slaughter plant and market payment grid; (iii) embed curves and optima in operations to allocate pens to slaughter slots and align transport; (iv) in maternal lines (ML1/ML2), apply the same rules to non-replacement animals and explicitly log retained females to avoid bias; and (v) strengthen data quality by increasing observations at age extremes and standardizing ultrasound (site protocol, calibration, training, and quality control. Overall, the framework balances quality and margin while making uncertainties explicit and provides guidance on how to manage them in farm-level decisions. Despite these limitations, the framework is directly applicable at the farm level. Results support scheduling slaughter primarily around 22&#x2013;23 weeks, advancing earlier-maturing line &#xd7; sex groups, using tD as a technical signal and tP as an economic check. Periodic recalibration of thresholds and prices, together with standardized data collection, would further enhance robustness. Overall, integrating growth and backfat GAM trajectories with desirability-based and economic optimization provides an innovative, practical and biologically grounded tool to align carcass quality, efficiency, and profitability in commercial pig production systems.</p>
<p>The higher tD observed in ML2 females relative to males, and the later tP in ML1 females, reflect line-specific interactions among maturation rate, fat deposition, and economic efficiency. In maternal and pure lines, females typically reach physiological maturity earlier, but may maintain acceptable backfat levels and efficient carcass composition for a longer period, particularly under commercial constraints on fat thickness (<xref ref-type="bibr" rid="B16">Schinckel et&#xa0;al., 2009a</xref>, <xref ref-type="bibr" rid="B17">2009b</xref>; <xref ref-type="bibr" rid="B5">Fisher et&#xa0;al., 2003</xref>). As a result, optimization criteria based on desirability (tD) or profitability (tP) may shift toward slightly later weeks or higher weights in females for specific lines, even when males exhibit higher absolute growth potential. This behavior has been reported in maternal or purebred populations where sex-related differences in fat accretion and efficiency persist beyond the biological inflection point (<xref ref-type="bibr" rid="B13">Pereira-Pinto et&#xa0;al., 2025</xref>). Importantly, when biological and economic objectives are jointly optimized, the resulting optima represent a compromise rather than a direct reflection of maximum growth rate, explaining the observed departures from uniform sex patterns across lines (<xref ref-type="bibr" rid="B3">Derringer and Suich, 1980</xref>; <xref ref-type="bibr" rid="B18">Soleimani et&#xa0;al., 2021</xref>).</p>
<p>The reported values of backfat change (e.g., up to 4.5 mm/day) correspond to the maximum slope of the GAM-fitted backfat trajectories (dBFT/dAge) and should not be interpreted as literal daily fat deposition rates. In pigs, actual backfat accretion occurs at much lower rates and reflects cumulative tissue deposition over extended periods rather than instantaneous daily gains (<xref ref-type="bibr" rid="B17">Schinckel et&#xa0;al., 2009b</xref>; <xref ref-type="bibr" rid="B5">Fisher et&#xa0;al., 2003</xref>). Therefore, these slope values are used here as relative indicators of acceleration and deceleration phases in fat deposition dynamics.</p>
<p>In maternal lines (ML1 and ML2), where adipose tissue deposition tends to be more pronounced, the combination of steeper GAM slopes and the commercially constrained acceptable backfat range (&#x2264;13&#x2013;15 mm) may accentuate apparent differences between sexes and shift the location of biological (tD) and economic (tP) optima. This explains why females in specific lines may show later or heavier optima without implying unrealistically high physiological fat accretion rates. Similar distinctions between biological growth dynamics and economically constrained optima have been reported in studies integrating growth modeling and multi-objective optimization (<xref ref-type="bibr" rid="B16">Schinckel et&#xa0;al., 2009a</xref>; <xref ref-type="bibr" rid="B3">Derringer and Suich, 1980</xref>; <xref ref-type="bibr" rid="B18">Soleimani et&#xa0;al., 2021</xref>).</p>
<p>Pareto analyses reinforced this interpretation, showing that the highest desirability clustered within practical marketing ranges (approximately 90&#x2013;120 kg live weight and 6&#x2013;12 mm backfat), particularly in commercial lines. Maternal lines exhibited slightly broader distributions, reflecting greater biological variability but still converging toward similar economic optima. Importantly, the optimization did not propose extreme slaughter weights, but rather fine-tuned slaughter timing around week 22&#x2013;23, advancing only the most precocious groups to this stage.</p>
<p>The results accurately describe the nonlinear phases of growth and tissue deposition in four commercial pig genetic lines, revealing a consistent gradient in peak age (Commercial earlier, F1 intermediate, and ML1/ML2 later) and sex-related differences (females earlier than males). The concordance between specific model slopes and the peak ages identified by GAM supports the biological plausibility of the observed trajectories and provides operational criteria to optimize slaughter timing, tailor feeding and management strategies by line/sex, and inform selection decisions aimed at carcass yield and quality.</p>
</sec>
</body>
<back>
<sec id="s5" sec-type="data-availability">
<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 id="s6" sec-type="ethics-statement">
<title>Ethics statement</title>
<p>The animal studies were approved by Bioethics Committee (CICUA) of the Faculty of Veterinary Medicine and Animal Science at the Instituci&#xf3;n Universitaria Visi&#xf3;n de las Am&#xe9;ricas (Colombia), under Act No. 58, project reference dated April 2023. The studies were conducted in accordance with the local legislation and institutional requirements. Written informed consent was obtained from the owners for the participation of their animals in this study.</p></sec>
<sec id="s7" sec-type="author-contributions">
<title>Author contributions</title>
<p>AH-R: Conceptualization, Data curation, Formal analysis, Investigation, Methodology, Project administration, Validation, Writing &#x2013; original draft, Writing &#x2013; review &amp; editing. LG-H: Data curation, Software, Validation, Writing &#x2013; review &amp; editing. OH-R: Conceptualization, Investigation, Methodology, Supervision, Validation, Writing &#x2013; review &amp; editing. PA: Conceptualization, Investigation, Project administration, Supervision, Validation, Writing &#x2013; review &amp; editing. OR: Conceptualization, Investigation, Methodology, Project administration, Resources, Writing &#x2013; original draft. JE: Conceptualization, Investigation, Validation, Writing &#x2013; original draft, Writing &#x2013; review &amp; editing. OM-B: Conceptualization, Funding acquisition, Investigation, Methodology, Resources, Supervision, Validation, Writing &#x2013; original draft, Writing &#x2013; review &amp; editing.</p></sec>
<ack>
<title>Acknowledgments</title>
<p>The authors express their gratitude to the participating farm and technical personnel for their valuable collaboration throughout the study.</p>
</ack>
<sec id="s9" sec-type="COI-statement">
<title>Conflict of interest</title>
<p>The authors AH-R, OH-R, PA, OR, JE, and OM-B were employed by the company Solla SA.</p>
<p>The remaining author(s) declared that this work was conducted in the absence of any commercial or financial relationships that could be construed as a potential conflict of interest.</p></sec>
<sec id="s10" sec-type="ai-statement">
<title>Generative AI statement</title>
<p>The author(s) declared that generative AI was used in the creation of this manuscript. During the preparation of this work, the authors used ChatGPT to improve the clarity and grammar of some paragraphs during manuscript preparation. All content was reviewed and edited by the authors to ensure scientific accuracy and originality.</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 id="s11" sec-type="disclaimer">
<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 id="s12" sec-type="supplementary-material">
<title>Supplementary material</title>
<p>The Supplementary Material for this article can be found online at: <ext-link ext-link-type="uri" xlink:href="https://www.frontiersin.org/articles/10.3389/fanim.2026.1768496/full#supplementary-material">https://www.frontiersin.org/articles/10.3389/fanim.2026.1768496/full#supplementary-material</ext-link></p>
<supplementary-material xlink:href="Table1.docx" id="SM1" mimetype="application/vnd.openxmlformats-officedocument.wordprocessingml.document"/></sec>
<ref-list>
<title>References</title>
<ref id="B1">
<mixed-citation publication-type="journal">
<person-group person-group-type="author">
<name><surname>Cisneros</surname> <given-names>F.</given-names></name>
<name><surname>Ellis</surname> <given-names>M.</given-names></name>
<name><surname>Miller</surname> <given-names>K. D.</given-names></name>
<name><surname>Novakofski</surname> <given-names>J.</given-names></name>
<name><surname>Wilson</surname> <given-names>E. R.</given-names></name>
<name><surname>McKeith</surname> <given-names>F. K.</given-names></name>
</person-group> (<year>1996</year>). 
<article-title>Comparison of transverse and longitudinal real-time ultrasound scans for predicting lean cut yields and fat-free lean content in live pigs</article-title>. <source>J. Anim. Sci.</source> <volume>74</volume>, <fpage>2566</fpage>&#x2013;<lpage>2576</lpage>. doi:&#xa0;<pub-id pub-id-type="doi">10.2527/1996.74112566x</pub-id>, PMID: <pub-id pub-id-type="pmid">8923171</pub-id>
</mixed-citation>
</ref>
<ref id="B2">
<mixed-citation publication-type="journal">
<person-group person-group-type="author">
<name><surname>Coyne</surname> <given-names>J. M.</given-names></name>
<name><surname>Berry</surname> <given-names>D. P.</given-names></name>
<name><surname>M&#xe4;ntysaari</surname> <given-names>E. A.</given-names></name>
<name><surname>Juga</surname> <given-names>J.</given-names></name>
<name><surname>McHugh</surname> <given-names>N.</given-names></name>
</person-group> (<year>2015</year>). 
<article-title>Comparison of fixed effects and mixed model growth functions in modelling and predicting live weight in pigs</article-title>. <source>Livest. Sci.</source> <volume>177</volume>, <fpage>8</fpage>&#x2013;<lpage>14</lpage>. doi:&#xa0;<pub-id pub-id-type="doi">10.1016/j.livsci.2015.03.031</pub-id>
</mixed-citation>
</ref>
<ref id="B3">
<mixed-citation publication-type="journal">
<person-group person-group-type="author">
<name><surname>Derringer</surname> <given-names>G.</given-names></name>
<name><surname>Suich</surname> <given-names>R.</given-names></name>
</person-group> (<year>1980</year>). 
<article-title>Simultaneous optimization of several response variables</article-title>. <source>J. Qual. Technol.</source> <volume>12</volume>, <fpage>214</fpage>&#x2013;<lpage>219</lpage>. doi:&#xa0;<pub-id pub-id-type="doi">10.1080/00224065.1980.11980968</pub-id>
</mixed-citation>
</ref>
<ref id="B4">
<mixed-citation publication-type="journal">
<person-group person-group-type="author">
<name><surname>De Vries</surname> <given-names>M.</given-names></name>
<name><surname>De Boer</surname> <given-names>I. J. M.</given-names></name>
</person-group> (<year>2010</year>). 
<article-title>Comparing environmental impacts for livestock products: a review of life cycle assessments</article-title>. <source>Livest. Sci.</source> <volume>128</volume>, <fpage>1</fpage>&#x2013;<lpage>11</lpage>. doi:&#xa0;<pub-id pub-id-type="doi">10.1016/j.livsci.2009.11.007</pub-id>
</mixed-citation>
</ref>
<ref id="B5">
<mixed-citation publication-type="journal">
<person-group person-group-type="author">
<name><surname>Fisher</surname> <given-names>A. V.</given-names></name>
<name><surname>Green</surname> <given-names>D. M.</given-names></name>
<name><surname>Whittemore</surname> <given-names>C. T.</given-names></name>
<name><surname>Wood</surname> <given-names>J. D.</given-names></name>
<name><surname>Schofield</surname> <given-names>C. P.</given-names></name>
</person-group> (<year>2003</year>). 
<article-title>Growth of carcass components and its relation with conformation in pigs of three types</article-title>. <source>Meat Sci.</source> <volume>65</volume>, <fpage>639</fpage>&#x2013;<lpage>650</lpage>. doi:&#xa0;<pub-id pub-id-type="doi">10.1016/S0309-1740(02)00266-8</pub-id>, PMID: <pub-id pub-id-type="pmid">22063259</pub-id>
</mixed-citation>
</ref>
<ref id="B6">
<mixed-citation publication-type="book">
<person-group person-group-type="author">
<name><surname>Hastie</surname> <given-names>T.</given-names></name>
<name><surname>Tibshirani</surname> <given-names>R.</given-names></name>
</person-group> (<year>1990</year>). <source>Generalized additive models</source> (
<publisher-name>Chapman and Hall London, UK</publisher-name>).
</mixed-citation>
</ref>
<ref id="B7">
<mixed-citation publication-type="journal">
<person-group person-group-type="author">
<name><surname>Herrera</surname> <given-names>A. C.</given-names></name>
<name><surname>Gonz&#xe1;lez-Herrera</surname> <given-names>L. G.</given-names></name>
<name><surname>Herr&#xe1;n-Ram&#xed;rez</surname> <given-names>O. L.</given-names></name>
<name><surname>Aguirre</surname> <given-names>P.</given-names></name>
<name><surname>Rojas</surname> <given-names>O. R.</given-names></name>
<name><surname>Escobar</surname> <given-names>J. D.</given-names></name>
<etal/>
</person-group>. (<year>2026</year>). 
<article-title>Prediction of fat-free lean percentage in pigs from four genetic lines using <italic>in vivo</italic> real-time ultrasonography applying different statistical approaches</article-title>. <source>Appl. Food Res.</source> <volume>6</volume> (<issue>1</issue>), <fpage>101624</fpage>. doi:&#xa0;<pub-id pub-id-type="doi">10.1016/j.afres.2025.101624</pub-id>
</mixed-citation>
</ref>
<ref id="B8">
<mixed-citation publication-type="journal">
<person-group person-group-type="author">
<name><surname>Kohn</surname> <given-names>R. A.</given-names></name>
<name><surname>Dinneen</surname> <given-names>M. M.</given-names></name>
<name><surname>Russek-Cohen</surname> <given-names>E.</given-names></name>
</person-group> (<year>2007</year>). 
<article-title>Using blood urea nitrogen to predict nitrogen excretion and efficiency of nitrogen utilisation in cattle, sheep, goats, horses, pigs, and rats</article-title>. <source>J. Anim. Sci.</source> <volume>85</volume>, <fpage>597</fpage>&#x2013;<lpage>607</lpage>. doi:&#xa0;<pub-id pub-id-type="doi">10.2527/jas.2006-421</pub-id>, PMID: <pub-id pub-id-type="pmid">15753344</pub-id>
</mixed-citation>
</ref>
<ref id="B9">
<mixed-citation publication-type="journal">
<person-group person-group-type="author">
<name><surname>Lee</surname> <given-names>C. W.</given-names></name>
<name><surname>Kong</surname> <given-names>C.</given-names></name>
</person-group> (<year>2025</year>). 
<article-title>Estimation of the standardized ileal digestible calcium and phosphorus requirements of broiler chickens from 10 to 21 days of age</article-title>. <source>J. Anim. Sci. Technol.</source> <volume>67</volume>, <fpage>1067</fpage>. doi:&#xa0;<pub-id pub-id-type="doi">10.5187/jast.2500071</pub-id>, PMID: <pub-id pub-id-type="pmid">41089362</pub-id>
</mixed-citation>
</ref>
<ref id="B10">
<mixed-citation publication-type="journal">
<person-group person-group-type="author">
<name><surname>Liao</surname> <given-names>T.</given-names></name>
<name><surname>Gan</surname> <given-names>M.</given-names></name>
<name><surname>Zhu</surname> <given-names>Y.</given-names></name>
<name><surname>Lei</surname> <given-names>Y.</given-names></name>
<name><surname>Yang</surname> <given-names>Y.</given-names></name>
<name><surname>Zheng</surname> <given-names>Q.</given-names></name>
<etal/>
</person-group>. (<year>2025</year>). 
<article-title>Carcass and meat quality characteristics and changes of lean and fat pigs after the growth turning point</article-title>. <source>Foods.</source> <volume>14</volume>, <fpage>2719</fpage>. doi:&#xa0;<pub-id pub-id-type="doi">10.3390/foods14152719</pub-id>, PMID: <pub-id pub-id-type="pmid">40807656</pub-id>
</mixed-citation>
</ref>
<ref id="B11">
<mixed-citation publication-type="journal">
<person-group person-group-type="author">
<name><surname>L&#xf3;pez</surname> <given-names>S.</given-names></name>
<name><surname>France</surname> <given-names>J.</given-names></name>
<name><surname>Gerrits</surname> <given-names>W. J. J.</given-names></name>
<name><surname>Dhanoa</surname> <given-names>M. S.</given-names></name>
<name><surname>Humphries</surname> <given-names>D. J.</given-names></name>
<name><surname>Dijkstra</surname> <given-names>J.</given-names></name>
</person-group> (<year>2000</year>). 
<article-title>A generalized Michaelis&#x2013;Menten equation for the analysis of growth</article-title>. <source>J. Anim. Sci.</source> <volume>78</volume>, <fpage>1816</fpage>&#x2013;<lpage>1828</lpage>. doi:&#xa0;<pub-id pub-id-type="doi">10.2527/2000.7871816x</pub-id>, PMID: <pub-id pub-id-type="pmid">10907823</pub-id>
</mixed-citation>
</ref>
<ref id="B12">
<mixed-citation publication-type="book">
<person-group person-group-type="author">
<name><surname>Myers</surname> <given-names>R. H.</given-names></name>
<name><surname>Montgomery</surname> <given-names>D. C.</given-names></name>
<name><surname>Anderson-Cook</surname> <given-names>C. M.</given-names></name>
</person-group> (<year>2016</year>). <source>Response surface methodology: process and product optimization using designed experiments</source> (
<publisher-name>John Wiley &amp; Sons</publisher-name>).
</mixed-citation>
</ref>
<ref id="B13">
<mixed-citation publication-type="journal">
<person-group person-group-type="author">
<name><surname>Pereira-Pinto</surname> <given-names>R.</given-names></name>
<name><surname>Ara&#xfa;jo</surname> <given-names>J. P.</given-names></name>
<name><surname>Cerqueira</surname> <given-names>J.</given-names></name>
<name><surname>Mata</surname> <given-names>F.</given-names></name>
<name><surname>Pires</surname> <given-names>P.</given-names></name>
<name><surname>Vaz-Velho</surname> <given-names>M.</given-names></name>
</person-group> (<year>2025</year>). 
<article-title>Raising entire male pigs: comparison of growth performance and meat quality of the B&#xed;sara breed and a terminal cross-a pilot study</article-title>. <source>Front. Anim. Sci.</source> <volume>6</volume>, <elocation-id>1433925</elocation-id>. doi:&#xa0;<pub-id pub-id-type="doi">10.3389/fanim.2025.1433925</pub-id>
</mixed-citation>
</ref>
<ref id="B14">
<mixed-citation publication-type="book">
<person-group person-group-type="author"><collab>R Core Team</collab>
</person-group> (<year>2024</year>). <source>R: A language and environment for statistical computing</source> (<publisher-loc>Vienna</publisher-loc>: 
<publisher-name>R Foundation for Statistical Computing</publisher-name>). Available online at: <uri xlink:href="https://www.R-project.org/">https://www.R-project.org/</uri> (Accessed <date-in-citation content-type="access-date">September 30, 2025</date-in-citation>).
</mixed-citation>
</ref>
<ref id="B15">
<mixed-citation publication-type="journal">
<person-group person-group-type="author">
<name><surname>Schinckel</surname> <given-names>A. P.</given-names></name>
<name><surname>de Lange</surname> <given-names>C. F. M.</given-names></name>
</person-group> (<year>1996</year>). 
<article-title>Characterisation of growth parameters needed as inputs for pig growth models</article-title>. <source>J. Anim. Sci.</source> <volume>74</volume>, <fpage>2021</fpage>&#x2013;<lpage>2036</lpage>. doi:&#xa0;<pub-id pub-id-type="doi">10.2527/1996.7492021x</pub-id>, PMID: <pub-id pub-id-type="pmid">8856458</pub-id>
</mixed-citation>
</ref>
<ref id="B16">
<mixed-citation publication-type="journal">
<person-group person-group-type="author">
<name><surname>Schinckel</surname> <given-names>A. P.</given-names></name>
<name><surname>Einstein</surname> <given-names>M. E.</given-names></name>
<name><surname>Jungst</surname> <given-names>S.</given-names></name>
<name><surname>Booher</surname> <given-names>C.</given-names></name>
<name><surname>Newman</surname> <given-names>S.</given-names></name>
</person-group> (<year>2009</year>a). 
<article-title>Evaluation of different mixed model nonlinear functions to describe the body weight growth of pigs of different sire and dam lines</article-title>. <source>PAS</source> <volume>25</volume>, <fpage>307</fpage>&#x2013;<lpage>324</lpage>. doi:&#xa0;<pub-id pub-id-type="doi">10.15232/S1080-7446(15)30723-3</pub-id>
</mixed-citation>
</ref>
<ref id="B17">
<mixed-citation publication-type="journal">
<person-group person-group-type="author">
<name><surname>Schinckel</surname> <given-names>A. P.</given-names></name>
<name><surname>Einstein</surname> <given-names>M. E.</given-names></name>
<name><surname>Jungst</surname> <given-names>S.</given-names></name>
<name><surname>Booher</surname> <given-names>C.</given-names></name>
<name><surname>Newman</surname> <given-names>S.</given-names></name>
</person-group> (<year>2009</year>b). 
<article-title>Evaluation of the growth of backfat depth, loin depth, and carcass weight for different sire and dam lines</article-title>. <source>PAS</source> <volume>25</volume>, <fpage>325</fpage>&#x2013;<lpage>344</lpage>. doi:&#xa0;<pub-id pub-id-type="doi">10.15232/S1080-7446(15)30724-5</pub-id>
</mixed-citation>
</ref>
<ref id="B18">
<mixed-citation publication-type="journal">
<person-group person-group-type="author">
<name><surname>Soleimani</surname> <given-names>T.</given-names></name>
<name><surname>Hermesch</surname> <given-names>S.</given-names></name>
<name><surname>Gilbert</surname> <given-names>H.</given-names></name>
</person-group> (<year>2021</year>). 
<article-title>Economic and environmental assessments of combined genetics and nutrition optimization strategies to improve the efficiency of sustainable pork production</article-title>. <source>J. Anim. Sci.</source> <volume>99</volume>, <fpage>skab051</fpage>. doi:&#xa0;<pub-id pub-id-type="doi">10.1093/jas/skab051</pub-id>, PMID: <pub-id pub-id-type="pmid">33587146</pub-id>
</mixed-citation>
</ref>
<ref id="B19">
<mixed-citation publication-type="journal">
<person-group person-group-type="author">
<name><surname>Sun</surname> <given-names>X.</given-names></name>
<name><surname>Wang</surname> <given-names>S.</given-names></name>
<name><surname>Xie</surname> <given-names>Q.</given-names></name>
<name><surname>Sun</surname> <given-names>C.</given-names></name>
<name><surname>Yu</surname> <given-names>H.</given-names></name>
<name><surname>Wang</surname> <given-names>W.</given-names></name>
</person-group> (<year>2025</year>). 
<article-title>Variations of multiple environmental factors and multi-objective optimisation control in a pig house</article-title>. <source>Biosyst. Eng.</source> <volume>259</volume>, <fpage>104300</fpage>. doi:&#xa0;<pub-id pub-id-type="doi">10.1016/j.biosystemseng.2025.104300</pub-id>
</mixed-citation>
</ref>
<ref id="B20">
<mixed-citation publication-type="journal">
<person-group person-group-type="author">
<name><surname>Touma</surname> <given-names>S.</given-names></name>
<name><surname>Oyadomari</surname> <given-names>M.</given-names></name>
</person-group> (<year>2021</year>). 
<article-title>Comparison of five growth curve models for describing the growth of okinawa agu boars</article-title>. <source>Jpn. J. Swine Sci./Nihon Yoton Gakkaishi.</source> <volume>58</volume>, <fpage>10</fpage>. doi:&#xa0;<pub-id pub-id-type="doi">10.5938/youton.58.1_10</pub-id>
</mixed-citation>
</ref>
<ref id="B21">
<mixed-citation publication-type="journal">
<person-group person-group-type="author">
<name><surname>Trocino</surname> <given-names>A.</given-names></name>
<name><surname>Cotozzolo</surname> <given-names>E.</given-names></name>
<name><surname>Zome&#xf1;o</surname> <given-names>C.</given-names></name>
<name><surname>Xiccato</surname> <given-names>G.</given-names></name>
</person-group> (<year>2020</year>). 
<article-title>Growth curves and productive performance of slow-growing broiler genotypes reared under different management systems</article-title>. <source>Animals</source>. <volume>10</volume>, <fpage>806</fpage>. doi:&#xa0;<pub-id pub-id-type="doi">10.3390/ani10050806</pub-id>, PMID: <pub-id pub-id-type="pmid">32384793</pub-id>
</mixed-citation>
</ref>
<ref id="B22">
<mixed-citation publication-type="journal">
<person-group person-group-type="author">
<name><surname>Winsor</surname> <given-names>C. P.</given-names></name>
</person-group> (<year>1932</year>). 
<article-title>The Gompertz curve as a growth curve</article-title>. <source>Proc. Natl. Acad. Sci.</source> <volume>18</volume>, <fpage>1</fpage>&#x2013;<lpage>8</lpage>. doi:&#xa0;<pub-id pub-id-type="doi">10.1073/pnas.18.1.1</pub-id>, PMID: <pub-id pub-id-type="pmid">16577417</pub-id>
</mixed-citation>
</ref>
<ref id="B23">
<mixed-citation publication-type="book">
<person-group person-group-type="author">
<name><surname>Wood</surname> <given-names>S. N.</given-names></name>
</person-group> (<year>2017</year>). <source>Generalized additive models: an introduction with R</source>. <edition>2nd ed</edition> (<publisher-loc>Boca Raton, FL</publisher-loc>: 
<publisher-name>CRC Press</publisher-name>).
</mixed-citation>
</ref>
<ref id="B24">
<mixed-citation publication-type="journal">
<person-group person-group-type="author">
<name><surname>Yan</surname> <given-names>F.</given-names></name>
<name><surname>Angel</surname> <given-names>R.</given-names></name>
<name><surname>Ashwell</surname> <given-names>C.</given-names></name>
<name><surname>Mitchell</surname> <given-names>A.</given-names></name>
<name><surname>Christman</surname> <given-names>M.</given-names></name>
</person-group> (<year>2005</year>). 
<article-title>Evaluation of the broiler&#x2019;s ability to adapt to an early moderate deficiency of phosphorus and calcium</article-title>. <source>Poultry Sci.</source> <volume>84</volume>, <fpage>1232</fpage>&#x2013;<lpage>1241</lpage>. doi:&#xa0;<pub-id pub-id-type="doi">10.1093/ps/84.8.1232</pub-id>, PMID: <pub-id pub-id-type="pmid">16156207</pub-id>
</mixed-citation>
</ref>
<ref id="B25">
<mixed-citation publication-type="journal">
<person-group person-group-type="author">
<name><surname>Yang</surname> <given-names>T. S.</given-names></name>
</person-group> (<year>2007</year>). 
<article-title>Environmental sustainability and social desirability issues in pig feeding</article-title>. <source>Asian-Australasian J. Anim. Sci.</source> <volume>20</volume>, <fpage>605</fpage>&#x2013;<lpage>614</lpage>. doi:&#xa0;<pub-id pub-id-type="doi">10.5713/ajas.2007.605</pub-id>
</mixed-citation>
</ref>
</ref-list>
<fn-group>
<fn id="n1" fn-type="custom" custom-type="edited-by">
<p>Edited by: <ext-link ext-link-type="uri" xlink:href="https://loop.frontiersin.org/people/1317769">Zhang Wang</ext-link>, Henan Agricultural University, China</p></fn>
<fn id="n2" fn-type="custom" custom-type="reviewed-by">
<p>Reviewed by: <ext-link ext-link-type="uri" xlink:href="https://loop.frontiersin.org/people/762128">Chandima Gajaweera</ext-link>, University of Ruhuna, Sri Lanka</p>
<p><ext-link ext-link-type="uri" xlink:href="https://loop.frontiersin.org/people/3325315">Fernando S&#xe1;nchez-Esquiliche</ext-link>, S&#xe1;nchez Romero Carvajal Jabugo SAU, Spain</p></fn>
</fn-group>
</back>
</article>