<?xml version="1.0" encoding="UTF-8"?>
<article xmlns:xlink="http://www.w3.org/1999/xlink">
<front><article-meta>
<title-group><article-title>Shape-Constrained Additive Modelling of Total Petroleum Hydrocarbon Contamination: A Simulation-Based Comparison within a Gamma–Log Framework</article-title></title-group>
<contrib-group>
<contrib contrib-type="author"><name><surname>Kadriaj</surname><given-names>Mirlinda</given-names></name><xref ref-type="aff" rid="aff1"/></contrib>
<contrib contrib-type="author"><name><surname>Arapi</surname><given-names>Luan</given-names></name><xref ref-type="aff" rid="aff2"/></contrib>
<contrib contrib-type="author"><name><surname>Dervishi</surname><given-names>Raimonda</given-names></name><xref ref-type="aff" rid="aff3"/></contrib>
<aff id="aff1">Department of Business Informatics, Faculty of Technology Information, Tirana Business University College.</aff>
<aff id="aff2">Department of Applied Geology and Geoinformatics, Faculty of Geology and Mining, Polytechnic University of Tirana, Tirana, Albania.</aff>
<aff id="aff3">Department of Mathematical Engineering, Faculty of Mathematical Engineering and Physical Engineering, Polytechnic University of Tirana, Tirana, Albania.</aff>
</contrib-group>
<abstract><p>Total Petroleum Hydrocarbon (TPH) contamination poses a long-term threat to soil quality and ecosystem health in oil-producing regions. Accurate characterization of TPH drivers is challenging because environmental responses are frequently nonlinear, while available datasets are often sparse and uncertain. In this study, we evaluated whether incorporating process-informed shape constraints can improve statistical modelling of TPH concentrations. A common Gamma–log modelling framework was implemented and used to compare a Generalized Linear Model (GLM), a Generalized Additive Model (GAM), and a Shape-Constrained Additive Model (SCAM). The evaluation was performed using a site-informed simulation scenario that reflects established environmental expectations, in which TPH increases with Total Organic Carbon (TOC) and decreases with both distance from oil wells and soil depth. A synthetic dataset comprising 600 observations was generated through constrained random sampling over empirically informed covariate ranges. Model performance was examined using residual diagnostics, calibration analysis, and stratified 10-fold cross-validation. In contrast, uncertainty was assessed through Bias-Corrected and Accelerated (BCa) bootstrap intervals (B = 5,000) and local one-at-a-time sensitivity analysis (±10%). Results showed that SCAM achieved the most coherent monotonic response patterns and the strongest calibration performance, highlighting the value of integrating scientifically justified shape constraints into environmental regression models. Although conclusions remain conditional on the adopted simulation framework, the study demonstrates how constrained nonlinear models can improve interpretability and robustness in data-limited contamination assessments.</p></abstract>
<kwd-group kwd-group-type="author"><kwd>Gamma regression</kwd><kwd>Generalized additive models</kwd><kwd>Shape-constrained additive models</kwd><kwd>Monotonicity constraints</kwd><kwd>Simulation</kwd></kwd-group>
</article-meta></front>
<body>
<sec id="sec-1">
<p>study, Bootstrap uncertainty analysis.</p>
</sec>
<sec id="sec-2"><label>1</label><title>Introduction</title>
<p>The reliable statistical modelling of environmental concentration data remains challenging when empirical observations are limited, heterogeneous, and affected by substantial uncertainty. In many environmental applications, researchers must balance model flexibility against interpretability, particularly when scientific knowledge suggests directional relationships between predictors and response variables. This challenge is especially relevant for positive and right-skewed environmental variables, where the choice of functional form can substantially influence both inference and predictive performance <xref ref-type="bibr" rid="ref-1">[1–3]</xref>.</p>
<p>Among the available modelling approaches, Gamma regression with a log link provides a natural framework for strictly positive environmental responses. Within this family, Generalized Linear Models (GLMs) offer a parsimonious and interpretable benchmark when predictor effects are approximately linear on the link scale. Generalized Additive Models (GAMs) extend this framework by allowing nonlinear relationships through smooth functions, thereby increasing flexibility while retaining a probabilistic regression structure <xref ref-type="bibr" rid="ref-4">[4]</xref>, <xref ref-type="bibr" rid="ref-5">[5]</xref>. SCAMs further extend GAM methodology by incorporating scientifically motivated constraints such as monotonicity, convexity, or concavity into smooth functions <xref ref-type="bibr" rid="ref-6">[6–8]</xref>. Such constraints can improve interpretability and reduce unrealistic model behaviour when prior knowledge suggests a specific directional response.</p>
<p>Although GAMs and SCAMs have received increasing attention in environmental applications, comparatively few studies have examined their relative performance within controlled simulation settings where the underlying data-generating structure is known. Consequently, it remains unclear under which circumstances shape constraints provide meaningful advantages over unconstrained smooths or simpler parametric alternatives. Simulation studies provide an attractive framework for addressing this question because they allow model performance to be evaluated against a known reference structure while avoiding confounding effects introduced by measurement error, missing observations, or unknown ecological processes <xref ref-type="bibr" rid="ref-9">[9]</xref>, <xref ref-type="bibr" rid="ref-10">[10]</xref>. Environmental contamination by petroleum hydrocarbons offers a suitable context for exploring these methodological questions. Total Petroleum Hydrocarbons (TPH) represent a diverse group of organic compounds commonly associated with oil extraction, processing, and transportation activities. Numerous studies indicate that TPH concentrations often exhibit structured spatial and vertical gradients, with concentrations tending to decrease as distance from contamination sources and soil depth increase, while higher organic carbon content may enhance hydrocarbon retention through sorption processes <xref ref-type="bibr" rid="ref-11">[11–17]</xref>. Although the precise functional form of these relationships remains uncertain in many field settings, their expected direction is often supported by an understanding of environmental processes.</p>
<p>The Patos–Marinza oilfield in Albania provides a representative environmental motivation for this study. As one of the largest onshore oilfields in Europe, Patos–Marinza has experienced decades of hydrocarbon extraction and has been associated with documented environmental pressures affecting soil and water quality <xref ref-type="bibr" rid="ref-18">[18–20]</xref>. However, publicly available datasets simultaneously describing TPH concentrations, distance-to-source relationships, and depth-dependent contamination patterns remain limited. Rather than attempting to infer site-specific environmental processes from incomplete observations, the present study uses Patos– Marinza only as inspiration for defining plausible simulation assumptions regarding the direction and relative behaviour of key predictors.</p>
<p>Three predictors were selected to define the baseline simulation scenario: Distance to oil wells, Total Organic Carbon (TOC), and soil depth. These variables were chosen because they consistently appear in conceptual and empirical studies of petroleum-contaminated soils and exhibit well-established directional relationships with hydrocarbon concentrations <xref ref-type="bibr" rid="ref-13">[13–17]</xref>. Within the simulation framework, TPH is assumed to increase with TOC and decrease with both distance from wells and soil depth. These relationships constitute the predefined Data-Generating Mechanism (DGM) and are not treated as empirical findings.</p>
<p>A central objective of environmental modelling is not only to obtain accurate predictions but also to quantify uncertainty and evaluate model robustness. Bootstrap-based inference provides a flexible framework for uncertainty assessment without strong distributional assumptions, while sensitivity analysis helps determine how conclusions respond to perturbations in model inputs and assumptions <xref ref-type="bibr" rid="ref-10">[10]</xref>, <xref ref-type="bibr" rid="ref-21">[21–23]</xref>. Likewise, calibration analysis has emerged as an important complement to traditional goodness-of-fit metrics, as it assesses whether predicted responses remain consistent with observed outcomes across the response range <xref ref-type="bibr" rid="ref-24">[24]</xref>.</p>
<p>Against this background, this study develops a simulation-based comparative framework within a common Gamma–log regression family. Three candidate model classes are evaluated: A GLM, an unconstrained GAM, and an SCAM. By holding the distributional assumption constant and varying only the functional representation of predictor effects, the study isolates the contribution of nonlinearity and shape constraints to model performance. A synthetic dataset comprising n = 600 observations was generated through constrained random sampling over empirically informed predictor ranges, with monotonic relationships imposed through the underlying simulation mechanism.</p>
<p>Model performance is evaluated using residual diagnostics, calibration analysis, and stratified cross-validation. Uncertainty is quantified through Bias-Corrected and Accelerated (BCa) bootstrap confidence intervals based on 5,000 resamples, while robustness is assessed through local one-at-a-time sensitivity analysis using ±10% perturbations around the baseline scenario. All modelling approaches are evaluated under an identical simulation design to ensure a consistent comparison of predictive performance, calibration, effect recovery, and uncertainty propagation.</p>
<p>Significance and contributions: The contribution of this study is primarily methodological rather than environmental. Specifically, we provide a controlled comparison of GLM, GAM, and SCAM within a common Gamma–log framework and evaluate the extent to which shape constraints improve model interpretability, calibration, and robustness when the underlying signal is approximately monotonic. By combining simulation-based experimentation, bootstrap uncertainty assessment, calibration analysis, and sensitivity testing, the study establishes a transparent framework for evaluating structured nonlinear regression models under limited-data conditions. Although motivated by petroleum-contaminated soils, the proposed framework is intended to be transferable to a broader class of environmental and ecological modelling problems characterised by positive responses and scientifically motivated shape restrictions.</p>
<p>Objectives and hypotheses: The primary objective of this study is to compare the performance of GLM, GAM, and SCAM within a common Gamma–log framework under a controlled simulation environment. The simulation design assumes positive effects of TOC and negative effects of distance to wells and soil depth, thereby providing a known monotonic reference structure. Rather than testing these environmental relationships themselves, the study evaluates how effectively alternative model classes recover the imposed DGM.</p>
</sec>
<sec id="sec-3"><label>2</label><title>Research and Methods</title>
<sec id="sec-4"><label>2.1</label><title>Study Area and Context</title>
<p>This study employs a synthetic dataset generated under a site-informed simulation framework designed to represent plausible environmental conditions encountered in petroleum-impacted regions. The simulation scenario was motivated by characteristics of the Patos–Marinza oilfield in southwestern Albania, one of the largest onshore oilfields in Europe and a region where long-term hydrocarbon extraction has been associated with documented environmental pressures <xref ref-type="bibr" rid="ref-20">[20]</xref>, <xref ref-type="bibr" rid="ref-25">[25]</xref>, <xref ref-type="bibr" rid="ref-26">[26]</xref>.</p>
<p>Patos–Marinza provides an appropriate environmental context because decades of oil production, ageing infrastructure, produced-water management challenges, and enhanced oil recovery operations have created conditions under which petroleum-related contamination may occur <xref ref-type="bibr" rid="ref-20">[20]</xref>, <xref ref-type="bibr" rid="ref-27">[27]</xref>. Previous environmental assessments have reported soil and water quality concerns associated with leaking wells, sludge pits, surface runoff, and waste disposal practices <xref ref-type="bibr" rid="ref-25">[25]</xref>, <xref ref-type="bibr" rid="ref-26">[26]</xref>. In addition, satellite-based monitoring has identified localized ground deformation linked to long-term extraction activities <xref ref-type="bibr" rid="ref-20">[20]</xref>. These observations provide a realistic environmental motivation for the simulation design adopted in this study.</p>
<p>To increase ecological realism, the simulation incorporates two categorical descriptors commonly encountered in environmental monitoring programs:</p>
<p>Land use and soil texture: Land use is represented by four categories (agricultural, industrial, residential, and unused), reflecting broad classes of human activity that may influence contaminant exposure pathways and environmental receptors <xref ref-type="bibr" rid="ref-26">[26]</xref>, <xref ref-type="bibr" rid="ref-28">[28]</xref>. Soil Texture is represented using standard USDA-style texture classes <xref ref-type="bibr" rid="ref-29">[29]</xref>, acknowledging that physical soil properties may influence contaminant retention, transport, and degradation processes.</p>
<p>These variables were included primarily to create a more realistic modelling environment and to evaluate model behaviour under heterogeneous predictor structures. They are therefore treated as contextual covariates within the simulation rather than as empirically measured site characteristics. Because categorical variables may influence predictor distributions and model performance, cross-validation was stratified by both land use and Soil Texture to preserve class representation across training and validation subsets. This approach reduces the risk of fold-specific imbalances and provides a more stable basis for model comparison.</p>
</sec>
<sec id="sec-5"><label>2.2</label><title>Variables and Simulation Domain</title>
<p>A synthetic dataset was generated to provide a controlled framework for comparing alternative Gamma–log regression models under environmentally plausible conditions. The simulation scenario was informed by published studies of petroleum-contaminated soils and environmental information reported for the Patos– Marinza oilfield in Albania <xref ref-type="bibr" rid="ref-11">[11]</xref>, <xref ref-type="bibr" rid="ref-12">[12]</xref>, <xref ref-type="bibr" rid="ref-20">[20]</xref>, <xref ref-type="bibr" rid="ref-28">[28]</xref>. The objective was not to reproduce site-specific contamination patterns, but to define realistic predictor ranges and response magnitudes within which model behaviour could be evaluated.</p>
<p>The response variable was (TPHs; mg/kg), simulated as a strictly positive and right-skewed variable with concentrations ranging approximately from 20 to 10,000 mg/kg. Explanatory variables included distance to oil wells (0–3,000 m), TOC (0–5%), soil moisture (5–35%), sampling depth (5–120 cm), soil texture (clay, loam, sand, silt), and land use (agricultural, industrial, residential, unused). Predictor ranges were informed by environmental monitoring studies and technical guidance documents relevant to petroleum-contaminated soils <xref ref-type="bibr" rid="ref-13">[13]</xref>, <xref ref-type="bibr" rid="ref-16">[16]</xref>, <xref ref-type="bibr" rid="ref-17">[17]</xref>, <xref ref-type="bibr" rid="ref-30">[30]</xref>.</p>
<p>The DGM assumed positive effects of TOC and negative effects of both distance to wells and soil depth, reflecting established process-based expectations reported in the literature <xref ref-type="bibr" rid="ref-11">[11]</xref>, <xref ref-type="bibr" rid="ref-14">[14]</xref>, <xref ref-type="bibr" rid="ref-15">[15]</xref>, <xref ref-type="bibr" rid="ref-28">[28]</xref>.</p>
</sec>
<sec id="sec-6"><label>2.3</label><title>Baseline Simulation Scenario and Data-Generating Mechanism</title>
<p>A single baseline simulation scenario was adopted to provide a transparent, reproducible, and environmentally plausible benchmark for comparing alternative Gamma–log regression models. All analyses were conducted in R 4.3.1 <xref ref-type="bibr" rid="ref-31">[31]</xref> using a fixed random seed (SEED = 123) and relevant modelling packages <xref ref-type="bibr" rid="ref-5">[5]</xref>, <xref ref-type="bibr" rid="ref-7">[7]</xref>. A sample size of n = 600 was selected to ensure adequate coverage of continuous predictor domains and sufficient representation of Soil Texture and land use classes for stratified cross-validation, consistent with recommendations for simulation studies <xref ref-type="bibr" rid="ref-32">[32]</xref>, <xref ref-type="bibr" rid="ref-33">[33]</xref>.</p>
<p>Continuous predictors were generated from bounded probability distributions chosen to reflect realistic environmental variability. Distance to the nearest oil well was simulated from a truncated log-normal distribution over the interval 0–3,000 m, with approximate percentiles P10 = 165 m, P50 = 985 m, and P90 = 1,778 m <xref ref-type="bibr" rid="ref-34">[34]</xref>, <xref ref-type="bibr" rid="ref-35">[35]</xref>. Sampling depth was generated from a scaled Beta distribution over 5–120 cm, yielding approximate percentiles of 10, 30, and 100 cm. TOC was generated from a scaled Beta distribution on 0–5%, with corresponding percentiles of 0.82%, 1.97%, and 3.12% <xref ref-type="bibr" rid="ref-30">[30]</xref>. Soil moisture was simulated from a scaled Beta distribution on 5–35%, with a mean of approximately 30% and a standard deviation of approximately 6.5% <xref ref-type="bibr" rid="ref-11">[11]</xref>. To represent analytical measurement uncertainty, TOC and moisture values were subjected to a small multiplicative measurement error corresponding to a Coefficient of Variation (CV) of approximately Two categorical predictors were included to increase ecological realism. Soil Texture comprised four classes (clay, loam, sand, and silt) sampled with probabilities of 0.30, 0.30, 0.20, and 0.20, respectively <xref ref-type="bibr" rid="ref-29">[29]</xref>. Land use was represented by four categories (agricultural, industrial, residential, and unused) sampled with probabilities of 0.45, 0.20, 0.25, and 0.10 <xref ref-type="bibr" rid="ref-26">[26]</xref>, <xref ref-type="bibr" rid="ref-28">[28]</xref>. These proportions were selected to represent plausible environmental conditions.</p>
<p>The baseline DGM imposed a monotone increase of TPH with TOC, and a monotone decrease with both distance to wells and sampling depth, while moisture was assigned only a weak effect. These directional relationships were incorporated as assumptions of the simulation design based on established environmental process understanding <xref ref-type="bibr" rid="ref-11">[11]</xref>, <xref ref-type="bibr" rid="ref-12">[12]</xref>, <xref ref-type="bibr" rid="ref-14">[14–17]</xref>, <xref ref-type="bibr" rid="ref-28">[28]</xref>. Consequently, they should not be interpreted as empirical</p>
</sec>
</sec>
<sec id="sec-7"><title>findings.</title>
<p>Response values were generated under a Gamma distribution with a log link according to</p>
<p>Yi ~ Gamma(μi, φ) with log(μi) = ηi,</p>
<p>where μi denotes the conditional mean response, ηi is the linear predictor, and φ is the dispersion parameter. The conditional mean was therefore defined as</p>
<p>μi = exp(ηi).</p>
<p>A dispersion value of approximately φ = 0.13 was adopted, producing realistic variability while preserving the imposed predictor–response structure. In implementation, the Gamma response was generated using the shape</p>
<p>= 1/φ and scale = φ × μi, which ensures: E(TPHi | xi) = μi and Var(TPHi | xi) = φμi².</p>
<p>Simulated TPH concentrations were constrained to the interval 50–10,000 mg/kg to avoid unrealistic extremes while maintaining consistency with reported contamination ranges in petroleum-impacted environments <xref ref-type="bibr" rid="ref-11">[11]</xref>, <xref ref-type="bibr" rid="ref-12">[12]</xref>, <xref ref-type="bibr" rid="ref-28">[28]</xref>. The selected predictor domains, percentile anchors, and response bounds define a transparent and reproducible simulation framework informed by environmental evidence from petroleum-contaminated settings.</p>
<sec id="sec-8"><label>2.4</label><title>Modelling Framework and Estimation</title>
<p>TPH concentrations were modelled using Gamma regression with a log link, an appropriate choice for strictly positive and right-skewed environmental response variables <xref ref-type="bibr" rid="ref-1">[1]</xref>, <xref ref-type="bibr" rid="ref-36">[36]</xref>. For all models:</p>
<p>log(μi) = ηi,</p>
<p>where μi denotes the conditional mean response and ηi the linear predictor.</p>
<p>To isolate the contribution of functional form, three model specifications were evaluated within the same Gamma–log framework.</p>
<p>GLM: The GLM served as the parametric benchmark and included linear effects for distance, TOC, depth, and moisture, together with treatment contrasts for Soil Texture and land use <xref ref-type="bibr" rid="ref-36">[36]</xref>.</p>
<p>GAM: The GAM replaced linear effects with penalised smooth functions, allowing flexible nonlinear relationships between TPH and the continuous predictors while retaining the same distributional assumptions <xref ref-type="bibr" rid="ref-4">[4]</xref>, <xref ref-type="bibr" rid="ref-5">[5]</xref>.</p>
<p>SCAM. The SCAM extended the GAM by incorporating scientifically motivated monotonicity constraints. distance and depth were constrained to have decreasing effects, TOC was constrained to have an increasing effect, and moisture remained unconstrained <xref ref-type="bibr" rid="ref-6">[6]</xref>, <xref ref-type="bibr" rid="ref-7">[7]</xref>.</p>
<p>A complete mathematical specification of the three models is provided in the Appendix. The objective of the comparison was to evaluate how linear, unconstrained smooth, and shape-constrained smooth representations recover the known structure imposed by the simulation design.</p>
<sec id="sec-9"><label>2.4.1</label><title>Estimation and diagnostic evaluation</title>
<p>Model estimation and diagnostics were assessed uniformly across all model specifications and follow <xref ref-type="bibr" rid="ref-5">[5]</xref> unless otherwise stated.</p>
<p>Residual structure: Model adequacy was evaluated using deviance and standardised residuals plotted against fitted values, Quantile–Quantile (QQ) plots of deviance residuals, and scale–location diagnostics to assess residual spread across the fitted range.</p>
<p>Smooth sufficiency: Basis adequacy was assessed using the k-index diagnostic and associated p-values to identify potentially under-dimensioned spline bases. These diagnostics were evaluated primarily for the unconstrained GAM and, where compatible, for the SCAM using identical smooth-term specifications. Complexity and identifiability: Smooth complexity was quantified through Effective Degrees of Freedom (EDF). For the GAM, nonlinear dependence among smooth terms was assessed using the concurvity measures implemented in mgcv. Because no native concurvity diagnostic is available for SCAM, an exploratory concurvity proxy was computed as the coefficient of determination (R²) obtained by regressing each smooth term’s contribution to the linear predictor against the contributions of the remaining smooth terms. Higher values indicate greater nonlinear collinearity among smooth components <xref ref-type="bibr" rid="ref-6">[6]</xref>.</p>
<p>Calibration assessment: Calibration was evaluated by regressing observed log (TPH) values on the predicted linear predictor (η̂), with ideal calibration corresponding to an intercept of 0 and a slope of 1. Estimates, standard errors, confidence intervals, and p-values were reported for both coefficients. In addition, smooth calibration curves with loess overlays were inspected to identify potential local departures from calibration across the prediction range <xref ref-type="bibr" rid="ref-24">[24]</xref>.</p>
<p>Dispersion and residual behaviour: Model dispersion was evaluated using Gamma dispersion estimates obtained from model summaries, together with Pearson residual summaries and exceedance rates Pr(|rₚ| &gt; c), where rₚ denotes the Pearson residual and c represents a predefined diagnostic threshold <xref ref-type="bibr" rid="ref-1">[1]</xref>, <xref ref-type="bibr" rid="ref-36">[36]</xref>.</p>
<p>Because the baseline DGM incorporates monotone relationships that are broadly compatible with the nonlinear regressions, model performance is interpreted in terms of calibration, diagnostic behaviour, and recovery of the imposed structure within the assumed simulation scenario.</p>
</sec>
</sec>
<sec id="sec-10"><label>2.5</label><title>Cross–Validation and Model Comparison</title>
<p>We used stratified 10-fold cross-validation, stratifying on the Soil Type × land use combination to preserve subgroup representation across folds. The same fold assignments were used for the GLM, GAM, and SCAM to ensure a fair comparison. Out-of-sample performance was summarized using Root Mean Squared Error (RMSE), Mean Absolute Error (MAE), mean per-observation deviance, and mean log-likelihood. In-sample model summaries included AIC (ML), deviance explained (%), and the log-likelihood. By holding the distributional family and link constant (Gamma–log) across models, observed performance differences can be attributed primarily to differences in functional form (linear vs. smooth vs. constrained smooth) rather than to the assumed error structure <xref ref-type="bibr" rid="ref-5">[5]</xref>, <xref ref-type="bibr" rid="ref-37">[37]</xref>, <xref ref-type="bibr" rid="ref-38">[38]</xref>.</p>
</sec>
<sec id="sec-11"><label>2.6</label><title>Sensitivity and Uncertainty Analysis</title>
<p>To evaluate the robustness of model predictions and the stability of estimated effects, local sensitivity analysis and bootstrap-based uncertainty quantification were conducted for the SCAM model. This additional analysis was performed after the comparative evaluation of GLM, GAM, and SCAM because SCAM provided the most coherent representation of the monotonic structure imposed in the baseline DGM. Consequently, uncertainty assessment focused on the model selected for detailed interpretation within the simulation framework.</p>
<p>Local sensitivity analysis: Local sensitivity analysis was performed using a One-at-a-Time (OAT) perturbation design <xref ref-type="bibr" rid="ref-9">[9]</xref>, <xref ref-type="bibr" rid="ref-10">[10]</xref>. Continuous predictors selected for interpretation in the fitted SCAM (distance to wells, TOC, and depth) were individually perturbed by ±10% around a common baseline defined by median predictor values. During each perturbation, all remaining continuous predictors were held at their median values and categorical predictors at their reference levels. For each perturbation, changes in the expected response (μ) and corresponding local elasticities were computed relative to the baseline condition. This approach provides an interpretable assessment of predictor influence while avoiding confounding effects associated with simultaneous perturbation of multiple inputs <xref ref-type="bibr" rid="ref-9">[9]</xref>, <xref ref-type="bibr" rid="ref-10">[10]</xref>.</p>
<p>Bootstrap resampling: We quantified uncertainty via nonparametric bootstrap (B = 5,000) by resampling rows (sites) with replacement and refitting the SCAM on each resample (same monotonicity constraints; REML smoothing). For every refit, we recomputed: 1) scenario means for eight decision–relevant combinations crossing TOC (low p10 / high p90), distance (near p10 / far p90), and depth (shallow P10 / deep P90), and 2) centered partial effects at the 10th/50th/90th percentiles (other predictors held at baseline). We formed 95% BCa intervals using jackknife–based bias correction and acceleration, with a percentile fallback if BCa was unavailable <xref ref-type="bibr" rid="ref-21">[21–23]</xref>. Resampling at the row level preserves the joint covariate structure for scenario predictions. We report the bootstrap mean and BCa interval alongside the non–resampled model mean to assess bootstrap bias. Uncertainty bands are shown on the response scale (mg/kg) for scenarios and on the link scale for partial effects.</p>
</sec>
</sec>
<sec id="sec-12"><label>3</label><title>Results</title>
<sec id="sec-13"><label>3.1</label><title>Model Coefficients and Performance Comparison</title>
<p>Covariate effects and functional forms: The Gamma–log regression models (GLM, GAM, and SCAM) yielded broadly consistent estimates across specifications, with convergence in both the direction and magnitude of effects. <xref ref-type="table" rid="tab1">Table 1</xref> summarises areas of agreement as well as model specifications differences in predictor effects. Intercept terms were statistically significant in all three models. However, these results should be interpreted primarily as model constants under the chosen parameterisation rather than as substantively meaningful estimates of contamination independent of the covariates.</p>
<p>Organic carbon (TOC) was the most robust predictor. In the GLM, TOC was strongly positive and statistically significant (β = 0.160, p &lt; 0.001), implying that each one unit increase in TOC is associated with ≈17% higher expected TPH (exp(0.160) ≈ 1.174). The GAM and SCAM smooths supported the same positive direction: TOC only limited nonlinearity in the GAM (edf = 1.949, p &lt; 0.001) and was essentially linear in the SCAM (edf ≈ 1.000, p &lt; 0.001), consistent with the baseline simulation design.</p>
<p>Spatial and vertical covariates also exhibited clear patterns. Distance to the oil well had a significant negative effect in the GLM (p &lt; 0.001), while the GAM (edf = 2.926, p &lt; 0.001) and SCAM (edf = 2.183, p &lt; 0.001) confirmed nonlinear decreases in TPH with increasing distance. Similarly, depth was consistently negative (GLM: β = −0.006, p &lt; 0.001), implying ≈0.6% lower expected TPH per centimetre; GAM/SCAM smooths again supported gentle monotone declines (edf = 2.530 and 2.101; both p &lt; 0.001). These results are directionally coherent with the adopted monotone baseline scenario, in which TPH was generated to decline with both source distance and sampling depth. In contrast, moisture was not statistically significant at the 0.001 level in any specification (GLM: p = 0.070; GAM: p = 0.088; SCAM: p = 0.077), suggesting limited independent contribution after accounting for TOC, soil type, and spatial gradients. While moisture can influence hydrocarbon degradation, its effect is often contingent on microbial and site conditions.</p>
<p>For soil texture (reference = clay), sand was consistently negative and statistically significant (GLM: β = −0.117, p = 0.003; GAM: β = −0.121, p = 0.002; SCAM: β = −0.123, p = 0.002), whereas loam and silt were not significant. Regarding land use (reference = agricultural), industrial areas showed modest positive associations (GLM: β = 0.084, p = 0.034; GAM: p = 0.056; SCAM: p = 0.053), residential areas were not significant (GAM: p = 0.469; SCAM: p = 0.416), and unused land showed negative associations (GLM: β = −0.135, p = 0.010; GAM: β = −0.149, p = 0.004; SCAM: β = −0.143, p = 0.006). Overall, TOC, soil texture, distance, and depth appear more influential than land-use categories within the baseline simulated scenario.</p>
<table-wrap id="tab1"><label>Table 1</label><caption><p>Estimated coefficients and significance levels for Gamma, log link regression models under the baseline simulated scenario. Reference levels are clay soil for soil type and agricultural land for land use.</p></caption><graphic content-type="pdf-region" xlink:href="pdf-region:7:66,487.3,537.1,680.5"/><p content-type="note">This table is shown in the PDF version of the article.</p></table-wrap>
<p>between fit, calibration, and structural parsimony.</p>
<p>Model comparison (Gamma log) and cross–validation. As summarized in <xref ref-type="table" rid="tab2">Table 2</xref>, the SCAM achieved the lowest AIC (7106), outperforming the GAM (7111; ΔAIC = 4.250) and the GLM (7137; ΔAIC = 30.200). The GAM obtained the highest log-likelihood (−3538) and a slightly higher fraction of deviance explained (47.6%) than SCAM (−3539; 47.4%), but after accounting for model complexity, the AIC criterion favored SCAM. Out-of-sample performance from cross-validation showed modest yet consistent advantages for SCAM: CV-RMSE was tied for GAM and SCAM (105) and better than GLM (107); CV-MAE was lowest for SCAM (76.9 vs 77.8 for GAM and 79.1 for GLM); CV-Deviance was lowest for SCAM (0.122 vs 0.123 and 0.128); and CV-LogLik was least negative for SCAM (−5.920 vs −5.930 and −5.950). These differences are modest in magnitude, but they are directionally consistent across several criteria. Under the baseline monotone simulated scenario considered in the study, they suggest that SCAM provided the best balance Residual diagnostics, dispersion, and calibration. Diagnostic panels (<xref ref-type="fig" rid="fig1">Fig. 1</xref>) showed no systematic structure in residuals across models; QQ-plots of deviance residuals adhered closely to the reference line, and scale– location plots indicated stable dispersion over the fitted mean with only minor widening at the extremes, a pattern consistent with a Gamma–log mean–variance relation. Correspondingly, dispersion estimates decreased from φ=0.125 (GLM) to 0.119 (GAM, SCAM). Distributions of residuals were well-behaved (e.g., q95(|rPearson|)=0.683, 0.693, 0.692; q99(∣rPearson∣)= 1.076, 1.087, 1.070 for GLM, GAM, SCAM, respectively), and the proportion of observations with absolute Pearson residuals greater than 2 or greater than 3 was 0.00% for all models. Calibration was strong across specifications: calibration intercepts were close to zero (−0.061, −0.118, −0.038) and slopes close to one (1.000, 1.011, 0.996) with non–significant tests of H₀: Slope = 1 (<xref ref-type="table" rid="tab3">Table 3</xref>).</p>
<table-wrap id="tab2"><label>Table 2</label><caption><p>Model comparison under Gamma–log models (GLM, GAM, SCAM) for the baseline simulated scenario.</p></caption><graphic content-type="pdf-region" xlink:href="pdf-region:7:66,183.4,537.1,282.3"/><p content-type="note">This table is shown in the PDF version of the article.</p></table-wrap>
<fig id="fig1"><label>Figure 1</label><caption><p>Diagnostic panels for Gamma–log models. Rows correspond to the three fitted models (GLM (Gamma–log), GAM (Gamma–log), and SCAM (Gamma–log)), and columns show; a. residuals vs fitted (standardized residuals with zero reference line), b. QQ-plot of deviance residuals (with reference line), and c. scale–location plot (standardized residuals r* vs fitted μ).</p></caption><graphic content-type="pdf-region" xlink:href="pdf-region:8:66,494.8,537.1,778.7"/><p content-type="note">This figure is shown in the PDF version of the article.</p></fig>
<table-wrap id="tab3"><label>Table 3</label><caption><p>Residual diagnostics, dispersion, and calibration under Gamma–log models (GLM, GAM, SCAM) for the baseline simulated scenario.</p></caption><graphic content-type="pdf-region" xlink:href="pdf-region:8:66,53.4,537.1,246.1"/><graphic content-type="pdf-region" xlink:href="pdf-region:9:66,628.5,537.1,756.3"/><p content-type="note">This table is shown in the PDF version of the article.</p></table-wrap>
<p>Nonlinear effects and smooth diagnostics. Distance and depth exhibited gentle nonlinearity (GAM edf = 2.93, 2.53; SCAM edf = 2.18, 2.10), whereas TOC was near–linear (GAM edf = 1.949; SCAM edf ≈ 1.000). Basis–sufficiency was adequate for distance (GAM: k–index = 0.983, p = 0.453; SCAM: k–index = 0.982, p = 0.448) and suggested mild under–dimensioning for depth (GAM: k–index = 0.914, p = 0.035; SCAM: k– index = 0.911, p = 0.022), though the fitted trends remained stable and no material change in substantive conclusions was observed. Concurvity proxies for SCAM were near zero (distance = 0.0095; depth = 0.0077); the GAM observed concurvity metric equals 1.000 by construction and is not directly comparable (<xref ref-type="table" rid="tab3">Table 3</xref>). In SCAM, three covariates remained FDR significant—distance to oil wells, TOC, and depth—with monotone, interpretable partial effects on log(TPH) and pointwise 95% intervals (<xref ref-type="fig" rid="fig2">Fig. 2</xref>): expected TPH decreased with distance and depth and increased with TOC.</p>
<fig id="fig2"><label>Figure 2</label><caption><p>SCAM (Gamma, log link) partial effects for distance to oil well and depth (shape-constrained smooths); TOC enters linearly. Points show partial residuals; lines show estimated effects with pointwise 95% intervals (±2 SE) on the log(TPH) scale.</p></caption><graphic content-type="pdf-region" xlink:href="pdf-region:9:66,256.7,537.1,477.3"/><p content-type="note">This figure is shown in the PDF version of the article.</p></fig>
</sec>
<sec id="sec-14"><label>3.2</label><title>Sensitivity and Uncertainty Analysis</title>
<p>Sensitivity and bootstrap-based uncertainty analyses were conducted for SCAM as the primary scenario-interpretation model, after all three candidate models had first been compared using the same Gamma–log framework, diagnostics, calibration, and cross-validation procedures. These additional analyses are therefore intended to characterize uncertainty within the constrained baseline simulation scenario, rather than to serve as the sole basis for ranking model classes. Sensitivity analysis was restricted to the covariates that were FDR– significant in the SCAM (distance to wells, TOC, depth); all other covariates were held at their baseline values. At the common baseline (distance = 983 m, depth = 30 cm, TOC = 1.97%), one-at–a–time ±10% perturbations indicate directionally coherent and locally modest effects on predicted TPH under the SCAM (Gamma–log) model (<xref ref-type="table" rid="tab4">Table 4</xref>). Shortening the distance to wells by 10% increases mean TPH by 4.1% (absolute +11.2 mg/kg), whereas lengthening the distance by 10% decreases it by 3.6% (−9.8 mg/kg), implying a central elasticity of approximately −0.382 (i.e., a 1% increase in distance reduces the expected mean μ by ~0.38%). Soil depth shows a weaker negative influence: Making soils 10% shallower raises TPH by 2.4% (+6.6 mg/kg), while making soils 10% deeper lowers it by 2.2% (−6.1 mg/kg), corresponding to an elasticity of approximately −0.218. In contrast, TOC exerts a positive effect: A 10% reduction in TOC lowers TPH by 3.1% (−8.5 mg/kg) and a 10% increase in TOC raises it by 3.2% (+8.8 mg/kg), with elasticity approximately +0.327. These perturbation results are internally coherent with the baseline simulation design and indicate that, around the median baseline condition, distance and TOC have the largest local influence on predicted TPH, while depth has a smaller but still directionally consistent effect.</p>
<table-wrap id="tab4"><label>Table 4</label><caption><p>Local sensitivity analysis (±10%) for the SCAM (Gamma–log) under the baseline simulated scenario. Percentage change in predicted soil TPH (response scale, mg/kg) is reported relative to the common baseline while all non-target covariates are held fixed.</p></caption><graphic content-type="pdf-region" xlink:href="pdf-region:10:66,417.4,537.1,582.1"/><p content-type="note">This table is shown in the PDF version of the article.</p></table-wrap>
<p><xref ref-type="fig" rid="fig3">Fig. 3</xref> displays the local ±10% perturbations as dumbbell plots around the common baseline under the SCAM (Gamma–log) model. Responses are directionally coherent and only mildly nonlinear: shortening the distance to wells increases mean TPH, increasing depth lowers it, and increasing TOC raises it. Magnitudes are small to moderate at the baseline (single–digit percent changes), with distance and TOC exerting the largest local influence and depth the smallest, an ordering consistent with the SCAM partial–effect results and with physical expectations. The slight asymmetry between −10% and +10% shifts is consistent with curvature in the fitted constrained smooths rather than with instability in the model.</p>
<fig id="fig3"><label>Figure 3</label><caption><p>Local sensitivity analysis (±10%) for the SCAM (Gamma–log) around a common baseline (left: relative change (%); right: absolute change (mg/kg)).</p></caption><graphic content-type="pdf-region" xlink:href="pdf-region:10:66,100.2,537.1,305.3"/><p content-type="note">This figure is shown in the PDF version of the article.</p></fig>
<p>To quantify uncertainty in the fitted SCAM, we used nonparametric bootstrap resampling (B=5,000) with BCa 95% confidence intervals. Smooth effects were evaluated on the link scale (η = log μ) at the 10th, 50th, and 90th percentiles of each covariate, holding other predictors at baseline. Positive deviations indicate higher log(TPH) relative to the median condition. The common baseline at P50 is η approximately 5.62 (95% BCa: 5.5292–5.7241), as shown in <xref ref-type="fig" rid="fig4">Fig. 4</xref> and <xref ref-type="table" rid="tab5">Table 5</xref>.</p>
<table-wrap id="tab5"><label>Table 5</label><caption><p>SCAM (Gamma–log) partial effects at covariate quantiles. Estimated effects are reported on the link scale (η = log μ), evaluated at the 10th/50th/90th percentiles, with other continuous predictors at their medians and factors at reference levels. Intervals are BCa 95% bootstrap confidence intervals (B=5,000).</p></caption><graphic content-type="pdf-region" xlink:href="pdf-region:11:66,465.4,537.1,620.1"/><p content-type="note">This table is shown in the PDF version of the article.</p></table-wrap>
<p>Distance to oil wells shows the expected near-field elevation in TPH. At the 10th percentile of distance (approximately 163 m), η is approximately 5.99 (95% BCa: 5.9013–6.1177), which is about 0.37 higher than the median and corresponds to an estimated increase of roughly 45% on the response scale. At the 90th percentile of distance (approximately 1,777 m), η is approximately 5.46 (95% BCa: 5.3739–5.5613), or about 0.16 lower than the median, equivalent to an estimated decrease of about 15%. Soil depth exhibits a similar attenuation pattern. At shallow sampling depths (around 10 cm), η is approximately 5.79 (95% BCa: 5.6998– 5.8762), which is about 0.17 above the median, corresponding to an increase of roughly 19%. At deeper sampling depths (around 100 cm), η is approximately 5.28 (95% BCa: 5.1772–5.3859), which is about 0.34 below the median, corresponding to an estimated decrease of roughly 29%. TOC shows a strong increasing effect. At low TOC (about 0.82%), η is approximately 5.43 (95% BCa: 5.3412–5.5448), which is about 0.19 below the median (an estimated decrease of roughly 17%). At high TOC (about 3.12%), η is approximately 5.80 (95% BCa: 5.7020–5.9167), which is about 0.18 above the median (an estimated increase of roughly 20%). Across all three covariates, sign-stability was 100%, which supports the internal consistency of the constrained smooths under resampling within the adopted baseline scenario.</p>
<p>Bootstrap–based mean predictions for eight representative scenarios (<xref ref-type="table" rid="tab6">Table 6</xref> and <xref ref-type="fig" rid="fig5">Fig. 5</xref>) confirm a coherent and physically plausible ordering of TPH on the response scale. Across all combinations of distance, depth, and TOC, high–TOC scenarios produce higher predicted TPH than low–TOC scenarios; locations near wells produce higher TPH than locations far from wells; and shallow soils produce higher TPH than deeper soils. Bootstrap means range from 142 mg/kg (low TOC, far from wells, deep sampling depth; 95% BCa: 126.0– 158.2 mg/kg) to 568 mg/kg (high TOC, near wells, shallow depth; 95% BCa: 502.0–641.2 mg/kg).</p>
<fig id="fig4"><label>Figure 4</label><caption><p>SCAM (Gamma–log) partial effects at the 10th/50th/90th percentiles of distance to oil wells, soil depth, and TOC under the baseline simulated scenario. Effects are shown on the link scale (η = log μ); vertical whiskers denote BCa 95% CIs (B = 5,000; percentile fallback where BCa was unavailable).</p></caption><graphic content-type="pdf-region" xlink:href="pdf-region:12:66,579,537.1,778.7"/><p content-type="note">This figure is shown in the PDF version of the article.</p></fig>
<table-wrap id="tab6"><label>Table 6</label><caption><p>Bootstrap-based mean predictions of soil TPH (mg/kg) for eight representative scenarios combining TOC (low ≈ P10, high ≈ P90), distance to oil wells (near ≈ P10, far ≈ P90), and soil depth (shallow ≈ P10, deep ≈ P90).</p></caption><graphic content-type="pdf-region" xlink:href="pdf-region:12:66,351.6,537.1,474.6"/><p content-type="note">This table is shown in the PDF version of the article.</p></table-wrap>
<p><xref ref-type="fig" rid="fig5">Fig. 5</xref> visualizes these eight scenarios. Filled points represent bootstrap means with their BCa 95% confidence intervals, and open points represent model means obtained without resampling. In all cases, the model means fall within the corresponding bootstrap intervals. The absolute differences between the model means and the bootstrap means are small (≤ 6 mg/kg, corresponding to ≤ 2%), indicating negligible bootstrap bias and stable estimates. The proportional contrasts are substantial and internally consistent with a multiplicative Gamma–log mechanism. Increasing TOC from approximately 0.82% to approximately 3.12% increases the predicted mean TPH by roughly 45% in every distance × depth combination (e.g., from 234 to 341 mg/kg, from 142 to 206 mg/kg, from 390 to 568 mg/kg, and from 236 to 343 mg/kg). Increasing sampling depth from about 10 cm to about 100 cm lowers the predicted mean TPH by roughly 39% to 40% (e.g., from 390 to 236 mg/kg, from 568 to 343 mg/kg, from 234 to 142 mg/kg, and from 341 to 206 mg/kg). Moving from near wells (around 163 m) to far from wells (around 1,777 m) lowers the predicted mean TPH by roughly 40% under otherwise comparable conditions (e.g., from 390 to 234 mg/kg and from 343 to 206 mg/kg). These response-scale contrasts provide interpretable scenario summaries under the constrained baseline design.</p>
<fig id="fig5"><label>Figure 5</label><caption><p>Forest plot of bootstrap-based mean predictions (B = 5,000) for eight SCAM-based scenarios crossing TOC (low/high), distance to oil wells (near/far), and soil depth (shallow/deep).</p></caption><graphic content-type="pdf-region" xlink:href="pdf-region:13:66,588.3,537.1,778.4"/><p content-type="note">This figure is shown in the PDF version of the article.</p></fig>
<p>On the log–link scale, these contrasts correspond to shifts of approximately the same magnitude reported in the smooths. Moving from near wells (∼163 m) to far wells (∼1,778 m) reduces the linear predictor by about 0.53 (Δη ≈ −0.53), which corresponds to an approximate 41% decrease in the mean on the response scale. Increasing depth from shallow (∼10 cm) to deep (∼100 cm) reduces the linear predictor by about 0.51 (Δη ≈ −0.51), or roughly a 40% decrease on the response scale. Increasing TOC from ∼0.82% to ∼3.12% raises the linear predictor by about 0.37 (Δη ≈ +0.37), which corresponds to an increase of about 45% in the mean. The consistency between link-scale contrasts, response-scale contrasts, and bootstrap ordering suggests that the SCAM captured the imposed baseline gradients in a clear and interpretable manner within the adopted simulation framework.</p>
</sec>
</sec>
<sec id="sec-15"><label>4</label><title>Discussion</title>
<p>This study demonstrates how a simulation-based framework can be used to evaluate alternative Gamma–log regression models under controlled conditions where the underlying DGM is known. Rather than attempting to infer environmental processes from observational data, the objective was to compare how effectively GLM, GAM, and SCAM recover a predefined monotonic structure motivated by environmental process understanding. Within the adopted simulation framework, TOC, distance to oil wells, and soil depth constituted the dominant components of the imposed signal, whereas soil texture, land use, and moisture contributed comparatively little explanatory information. Across all model specifications, effect directions were recovered consistently, with positive effects of TOC and negative effects of both distance and depth. SCAM provided the clearest representation of these relationships, together with the strongest calibration, the most favourable information criteria, and modest but consistent improvements in cross-validated predictive performance.</p>
<p>Methodologically, the comparison highlights the progressive trade-off between simplicity, flexibility, and structural knowledge. The GLM provided a transparent benchmark but was limited in its ability to represent nonlinear behaviour <xref ref-type="bibr" rid="ref-1">[1]</xref>, <xref ref-type="bibr" rid="ref-36">[36]</xref>. The GAM improved model flexibility by allowing smooth nonlinear effects and produced systematic gains in fit and predictive accuracy <xref ref-type="bibr" rid="ref-4">[4]</xref>, <xref ref-type="bibr" rid="ref-5">[5]</xref>. SCAM further incorporated prior structural information through monotonicity constraints, yielding effect profiles that were both scientifically coherent and highly interpretable <xref ref-type="bibr" rid="ref-6">[6]</xref>, <xref ref-type="bibr" rid="ref-7">[7]</xref>. The baseline DGM contained monotonic relationships; consequently, the results should be interpreted as a demonstration of the potential benefits of shape constraints when reliable prior knowledge about effect direction is available <xref ref-type="bibr" rid="ref-5">[5]</xref>, <xref ref-type="bibr" rid="ref-6">[6]</xref>.</p>
<p>Sensitivity and bootstrap analyses provided an additional assessment of model stability. Local one-at-a-time perturbations, bootstrap partial effects, and scenario-based predictions produced highly consistent results, indicating that the fitted SCAM stably recovered the imposed monotonic structure. The agreement between sensitivity measures, bootstrap confidence intervals, and scenario predictions provides an internal consistency check for the modelling framework and supports the robustness of the resulting interpretations. Because these analyses were performed on a synthetic dataset, however, they quantify stability within the adopted simulation framework rather than uncertainty associated with real-world contamination processes <xref ref-type="bibr" rid="ref-9">[9]</xref>, <xref ref-type="bibr" rid="ref-10">[10]</xref>, <xref ref-type="bibr" rid="ref-21">[21]</xref>, <xref ref-type="bibr" rid="ref-22">[22]</xref>.</p>
<p>A limitation of this study is that the comparison was conducted under a single site-informed simulation scenario in which monotonic relationships were embedded directly within the DGM. Consequently, the observed advantages of SCAM should be interpreted within the context of the assumed simulation framework rather than as evidence of universal superiority across all environmental applications. In addition, the analysis did not explicitly model spatial dependence or temporal variability, and the findings therefore reflect model behaviour under controlled conditions rather than real-world system complexity. Future work should extend the framework to alternative simulation scenarios, including non-monotonic relationships, heterogeneous uncertainty, and observational datasets, to evaluate the robustness and generality of the conclusions.</p>
<p>By holding the distributional assumption constant and varying only the functional representation of predictor effects, the study isolates the marginal value of nonlinearity and shape constraints within a common Gamma– log framework. The results suggest that SCAMs can improve calibration, interpretability, and recovery of known monotonic structures while maintaining competitive predictive performance. These findings are consistent with broader arguments favouring transparent and interpretable modelling approaches when scientific understanding, accountability, and decision support are important considerations <xref ref-type="bibr" rid="ref-39">[39]</xref>, <xref ref-type="bibr" rid="ref-40">[40]</xref>. More broadly, the proposed workflow provides a transparent template for comparing structured regression models in settings where empirical data are limited but scientifically motivated assumptions about effect direction are available.</p>
<p>Similar simulation-based comparisons could be applied to a broad range of environmental, ecological, and geoscientific problems involving positive responses, nonlinear effects, and prior expectations regarding monotonic behaviour. Any operational application, however, would require validation and recalibration using observed field data before site-specific conclusions could be drawn. Consequently, the findings should be interpreted as evidence regarding model behaviour under a controlled simulation environment rather than as direct evidence about contamination dynamics in a particular field setting.</p>
</sec>
<sec id="sec-16"><label>5</label><title>Conclusion</title>
<p>This study developed a simulation-based framework for comparing Gamma–log GLM, GAM, and SCAM models under a common DGM. By holding the distributional assumption constant and varying only the functional representation of predictor effects, the framework enabled a direct assessment of the contribution of linear, unconstrained nonlinear, and shape-constrained nonlinear modelling strategies.</p>
<p>The results showed that all three approaches recovered the imposed directional structure, but SCAM provided the most coherent representation of the assumed monotonic relationships, together with favourable calibration, information criteria, and predictive performance. These findings suggest that shape constraints can be beneficial when reliable prior knowledge supports monotonic behaviour in the underlying process. The main contribution of this work is the development of a transparent methodological framework for evaluating structured regression models under limited-data conditions. Although motivated by petroleum-contaminated soils, the proposed approach is transferable to a broader range of environmental and geoscientific applications involving positive responses, nonlinear effects, and scientifically justified directional assumptions. Future work should evaluate the framework under alternative simulation scenarios and observational datasets to assess the generality of the conclusions.</p>
</sec>
<sec id="sec-17"><title>Acknowledgments</title>
<p>Not applicable.</p>
</sec>
<sec id="sec-18"><title>Author Contributaion</title>
<p>Conceptualization, K. M., and A. L.; methodology, K. M., and D. R.; software, A. L.; validation, A. L., K. M., and D. R.; formal analysis, De. R.; investigation, A. L., and K. M.; writing-creating the initial design, A. L.; writing-reviewing and editing, K. M.; visualization, K. M.; monitoring, K. M., and A. L. All authors have read and agreed to the published version of the manuscript.</p>
</sec>
<sec id="sec-19"><title>Data Availability</title>
<p>The study is based on theoretical simulation; no new data were created. The simulated code is available from the corresponding author upon reasonable request.</p>
</sec>
<sec id="sec-20"><title>Funding</title>
<p>Not applicable.</p>
</sec>
<sec id="sec-21"><title>Conflicts of Interest</title>
<p>The authors declare no conflict of interest.</p>
</sec>
<sec id="sec-22"><title>Consent for Publication</title>
<p>The author confirms consent for the publication of this work</p>
</sec>
<sec id="sec-23"><title>Ethics Approval and Consent to Participate</title>
<p>This article does not contain any studies with human participants performed by the author.</p>
</sec>
<sec id="sec-24"><title>Appendix</title>
<sec id="sec-25"><title>Distribution and link</title>
<p>We model the positive response Yi&gt;0 using a Gamma distribution with a log link:</p>
<p>, , , ,</p>
<p>with dispersion &gt;0 and linear predictor <xref ref-type="bibr" rid="ref-36">[36]</xref>.</p>
<p>I. (GLM, Gamma–log).</p>
<p>where xi contains distance, TOC, depth, moisture (on natural scales), and treatment contrasts for Soil Type and land use. Model parameters were obtained by maximum-likelihood estimation within the Gamma-family GLM framework <xref ref-type="bibr" rid="ref-1">[1]</xref>, <xref ref-type="bibr" rid="ref-36">[36]</xref>.</p>
<p>II. (GAM, Gamma–log).</p>
<p>where sj(⋅) are penalised cubic regression splines. Estimation proceeds by maximising a penalised likelihood with smoothing parameters λj typically estimated from the data (e.g., via REML) <xref ref-type="bibr" rid="ref-4">[4]</xref>, <xref ref-type="bibr" rid="ref-5">[5]</xref>. At convergence of penalised Iteratively Reweighted Least Squares (IRLS), the model influence (smoother) matrix is defined as in <xref ref-type="bibr" rid="ref-5">[5]</xref>, and effective degrees of freedom for each smooth are obtained from the corresponding partial influence matrix.</p>
<p>III. (SCAM, Gamma–log).</p>
<p>where each smooth has a spline basis expansion as in GAM</p>
<p>but are estimated to be subject to shape constraints:</p>
<p>subject to ,</p>
<p>with ℓ(θ) the Gamma log-likelihood, Sj penalty matrices, λj smoothing parameters, and Cjθj≥0 encoding monotonicity constraints. For monotonicity, constraints can be expressed as derivative sign restrictions on the smooths. Fitted shapes are verified by evaluating each smooth on a fine grid over the central 80% of covariate support and checking the sign of finite-difference derivatives <xref ref-type="bibr" rid="ref-6">[6]</xref>.</p>
</sec>
<sec id="sec-26"><title>Deviance and comparison metrics</title>
<p>Gamma unit deviance. The unit deviance is:</p>
<p>with total deviance , and mean deviance <xref ref-type="bibr" rid="ref-1">[1]</xref>, <xref ref-type="bibr" rid="ref-36">[36]</xref>.</p>
<p>Error metrics.</p>
<p>RMSE = , MAE = .</p>
<p>Mean log-likelihood. Let ℓ( ) be the maximized log-likelihood and ℓi( ) the per-observation contribution, report .</p>
<p>AIC (ML).</p>
<p>AIC = –2 +2k,</p>
<p>where k is the number of estimated parameters.</p>
<p>Deviance explained. Using the null deviance Dnull,</p>
<p>Calibration (intercept/slope). We assessed calibration by regressing the observed log-response on the predicted linear predictor:</p>
<p>We then tested H0: a=0, H0: b=1, using standard OLS t-tests on the regression coefficients, with test statistics:</p>
<p>Well-calibrated models have a ≈ 0 and b ≈ 1 <xref ref-type="bibr" rid="ref-24">[24]</xref>.</p>
</sec>
<sec id="sec-27"><title>Local sensitivity (one-at-a-time, ±10%)</title>
<p>Let be the predicted mean (response scale) from SCAM at a baseline X0.</p>
<p>For covariate xj, define symmetric ±10% perturbations with step h=0.10:</p>
<p>holding all other covariates at numeric medians (factors at modal levels).</p>
<p>The Percent change in the mean is</p>
<p>A unit-free central elasticity (comparable across covariates) is:</p>
<p>which approximates the local log-derivative around X0 <xref ref-type="bibr" rid="ref-9">[9]</xref>, <xref ref-type="bibr" rid="ref-10">[10]</xref>.</p>
</sec>
<sec id="sec-28"><title>Bootstrap uncertainty for scenarios</title>
<p>For each scenario, we compute BCa 95% intervals from B bootstrap refits. Let be the point estimate and the bootstrap replicates.</p>
<p>Bias-correction. Define the empirical Cumulative Distribution Function (CDF) at :</p>
<p>and set where Φ is the standard normal CDF.</p>
<p>Acceleration (jackknife). Using jackknife leave-one-out estimates and their mean ,</p>
<p>Adjusted quantiles. With nominal tails αL=0.025, αU=0.975 and zα=Φ−1(α)</p>
<p>BCa interval. Let denote the q-th empirical quantile of the bootstrap replicates (via the corresponding order statistic). The BCa 95% interval is</p>
<p>In this study, we set B=5,000, and follow standard BCa construction <xref ref-type="bibr" rid="ref-21">[21–23]</xref>.</p>
</sec>
</sec>
<sec id="sec-figures"><title>Figures</title>
</sec>
</body>
<back><ref-list><title>References</title>
<ref id="ref-1"><label>1</label><mixed-citation>Dobson, A. J., &amp; Barnett, A. G. (2018). An introduction to generalized linear models. Chapman and Hall/CRC. <ext-link ext-link-type="uri" xlink:href="https://doi.org/10.1201/9781315182780">https://doi.org/10.1201/9781315182780</ext-link></mixed-citation></ref>
<ref id="ref-2"><label>2</label><mixed-citation>Helsel, D. R. (2011). Statistics for censored environmental data using Minitab and R. John Wiley &amp; Sons. <ext-link ext-link-type="uri" xlink:href="https://doi.org/10.1002/9781118162729">https://doi.org/10.1002/9781118162729</ext-link></mixed-citation></ref>
<ref id="ref-3"><label>3</label><mixed-citation>Zuur, A. F., Ieno, E. N., Walker, N. J., Saveliev, A. A., &amp; Smith, G. M. (2009). Mixed effects models and extensions in ecology with R (Vol. 574, p. 574). New York: Springer. <ext-link ext-link-type="uri" xlink:href="https://doi.org/10.1007/978-0-387-87458-">https://doi.org/10.1007/978-0-387-87458-</ext-link></mixed-citation></ref>
<ref id="ref-4"><label>4</label><mixed-citation>Hastie, T., &amp; Tibshirani, R. (1986). Generalized additive models. Statistical science, 1(3), 297–310. <ext-link ext-link-type="uri" xlink:href="https://doi.org/10.1214/ss/1177013604">https://doi.org/10.1214/ss/1177013604</ext-link></mixed-citation></ref>
<ref id="ref-5"><label>5</label><mixed-citation>Wood, S. N. (2017). Generalized additive models: An introduction with R. Chapman and Hall/CRC. <ext-link ext-link-type="uri" xlink:href="https://doi.org/10.1201/9781315370279">https://doi.org/10.1201/9781315370279</ext-link></mixed-citation></ref>
<ref id="ref-6"><label>6</label><mixed-citation>Pya, N., &amp; Wood, S. N. (2015). Shape constrained additive models. Statistics and computing, 25(3), 543–559. <ext-link ext-link-type="uri" xlink:href="https://doi.org/10.1007/s11222-013-9448-7">https://doi.org/10.1007/s11222-013-9448-7</ext-link></mixed-citation></ref>
<ref id="ref-7"><label>7</label><mixed-citation>Pya, N. (2016). Scam: Shape constrained additive models (R package version 1.x). <ext-link ext-link-type="uri" xlink:href="https://cran.r-project.org/package=scam">https://cran.r-project.org/package=scam</ext-link></mixed-citation></ref>
<ref id="ref-8"><label>8</label><mixed-citation>Arnqvist, N. P. (2024). On some extensions of shape-constrained generalized additive modelling in R. <ext-link ext-link-type="uri" xlink:href="https://doi.org/10.48550/arXiv.2403.09438">https://doi.org/10.48550/arXiv.2403.09438</ext-link></mixed-citation></ref>
<ref id="ref-9"><label>9</label><mixed-citation>Saltelli, A., Ratto, M., Andres, T., Campolongo, F., Cariboni, J., Gatelli, D., ... &amp; Tarantola, S. (2008). Global sensitivity analysis: The primer. John Wiley &amp; Sons. <ext-link ext-link-type="uri" xlink:href="https://doi.org/10.1002/9780470725184">https://doi.org/10.1002/9780470725184</ext-link></mixed-citation></ref>
<ref id="ref-10"><label>10</label><mixed-citation>Iooss, B., &amp; Lemaître, P. (2015). A review on global sensitivity analysis methods. In Uncertainty management in simulation-optimization of complex systems: Algorithms and applications (pp. 101–122). Springer. <ext-link ext-link-type="uri" xlink:href="https://doi.org/10.1007/978-1-4899-7547-8_5">https://doi.org/10.1007/978-1-4899-7547-8_5</ext-link></mixed-citation></ref>
<ref id="ref-11"><label>11</label><mixed-citation>Registry., A. for T. S. and D. (1999). Toxicological profile for total petroleum hydrocarbons (TPH). <ext-link ext-link-type="uri" xlink:href="https://www.atsdr.cdc.gov/toxprofiles/tp123.pdf">https://www.atsdr.cdc.gov/toxprofiles/tp123.pdf</ext-link></mixed-citation></ref>
<ref id="ref-12"><label>12</label><mixed-citation>Canadian Council of Ministers of the Environment. (2008). Canada-wide standard for petroleum hydrocarbons (PHC) in soil: Scientific rationale: Supporting technical document. <ext-link ext-link-type="uri" xlink:href="https://ccme.ca/en/res/cws_phc_user_guide_1.1_e.pdf">https://ccme.ca/en/res/cws_phc_user_guide_1.1_e.pdf</ext-link></mixed-citation></ref>
<ref id="ref-13"><label>13</label><mixed-citation>Doucette, W. J. (2003). Quantitative structure-activity relationships for predicting soil-sediment sorption coefficients for organic chemicals. Environmental toxicology and chemistry, 22(8), 1771–1788. <ext-link ext-link-type="uri" xlink:href="https://doi.org/10.1897/01-362">https://doi.org/10.1897/01-362</ext-link></mixed-citation></ref>
<ref id="ref-14"><label>14</label><mixed-citation>Palma, P., Fialho, S., Alvarenga, P., Santos, C., Brás, T., Palma, G., ... &amp; Neves, L. A. (2016). Membranes technology used in water treatment: Chemical, microbiological and ecotoxicological analysis. Science of the total environment, 568, 998-1009. <ext-link ext-link-type="uri" xlink:href="https://doi.org/10.1016/j.scitotenv.2016.04.208">https://doi.org/10.1016/j.scitotenv.2016.04.208</ext-link></mixed-citation></ref>
<ref id="ref-15"><label>15</label><mixed-citation>Karickhoff, S. W., Brown, D. S., &amp; Scott, T. A. (1979). Sorption of hydrophobic pollutants on natural sediments. Water research, 13(3), 241–248. <ext-link ext-link-type="uri" xlink:href="https://doi.org/10.1016/0043-1354(79)90201-X">https://doi.org/10.1016/0043-1354(79)90201-X</ext-link></mixed-citation></ref>
<ref id="ref-16"><label>16</label><mixed-citation>Yu, L., Wang, J., Li, Y., &amp; Chen, B. (2019). Distribution and migration of petroleum hydrocarbons around oil wells in contaminated soils. Environmental monitoring and assessment, 191(502), 13. <ext-link ext-link-type="uri" xlink:href="https://doi.org/10.1007/s10661-019-7659-9">https://doi.org/10.1007/s10661-019-7659-9</ext-link></mixed-citation></ref>
<ref id="ref-17"><label>17</label><mixed-citation>Zhu, L., Li, W., &amp; Pan, L. (2015). Horizontal and vertical migration of petroleum hydrocarbons in oilfield soils. Environmental science: Processes &amp; impacts, 17(3), 659–667. <ext-link ext-link-type="uri" xlink:href="https://doi.org/10.1039/C4EM00628J">https://doi.org/10.1039/C4EM00628J</ext-link></mixed-citation></ref>
<ref id="ref-18"><label>18</label><mixed-citation>Seiti, B., Topi, D., Lame, A., &amp; Drushku, S. (2010). The evaluation of environmental situation due to the oil industry activity in Albania. BALWOIS 2010 conference, Ohrid, North Macedonia (p. 469). BALWOIS / Balkan Institute for Water and Environment (IB2E). <ext-link ext-link-type="uri" xlink:href="https://www.researchgate.net/publication/348434478_The_Evaluation_of_Environmental_Situation_due">https://www.researchgate.net/publication/348434478_The_Evaluation_of_Environmental_Situation_due</ext-link> _to_the_Oil_Industry_Activity_in_Albania</mixed-citation></ref>
<ref id="ref-19"><label>19</label><mixed-citation>Beqiraj, I., &amp; Topi, D. (2016). Soil pollution from oil fields’ exploitation in Albania-incidence of the marinza oil well explosion. Mechanical engineering scientific journal (SKOPJE), 34(1), 85–90. <ext-link ext-link-type="uri" xlink:href="http://www.mesj.ukim.edu.mk/archive">http://www.mesj.ukim.edu.mk/archive</ext-link></mixed-citation></ref>
<ref id="ref-20"><label>20</label><mixed-citation>Métois, M., Benjelloun, M., Lasserre, C., Grandin, R., Barrier, L., Dushi, E., &amp; Koçi, R. (2020). Subsidence associated with oil extraction, measured from time series analysis of Sentinel-1 data: Case study of the Patos-Marinza oil field, Albania. Solid earth, 11(2), 363–378. <ext-link ext-link-type="uri" xlink:href="https://doi.org/10.5194/se-11-363-2020">https://doi.org/10.5194/se-11-363-2020</ext-link></mixed-citation></ref>
<ref id="ref-21"><label>21</label><mixed-citation>Efron, B. (1987). Better bootstrap confidence intervals. Journal of the American statistical association, 82(397), 171-185. <ext-link ext-link-type="uri" xlink:href="https://doi.org/10.1080/01621459.1987.10478410">https://doi.org/10.1080/01621459.1987.10478410</ext-link></mixed-citation></ref>
<ref id="ref-22"><label>22</label><mixed-citation>DiCiccio, T. J., &amp; Efron, B. (1996). Bootstrap confidence intervals. Statistical science, 11(3), 189–228. <ext-link ext-link-type="uri" xlink:href="https://doi.org/10.1214/ss/1032280214">https://doi.org/10.1214/ss/1032280214</ext-link></mixed-citation></ref>
<ref id="ref-23"><label>23</label><mixed-citation>Efron, B., &amp; Narasimhan, B. (2020). The automatic construction of bootstrap confidence intervals. Journal of computational and graphical statistics, 29(3), 608–619. <ext-link ext-link-type="uri" xlink:href="https://doi.org/10.1080/10618600.2020.1714633">https://doi.org/10.1080/10618600.2020.1714633</ext-link></mixed-citation></ref>
<ref id="ref-24"><label>24</label><mixed-citation>Steyerberg, E. W. (2019). Clinical prediction models. Cham: Springer International Publishing. <ext-link ext-link-type="uri" xlink:href="https://doi.org/10.1007/978-3-030-16399-0">https://doi.org/10.1007/978-3-030-16399-0</ext-link></mixed-citation></ref>
<ref id="ref-25"><label>25</label><mixed-citation>Qiriazi, P., &amp; Sala, S. (2000). Environmental problems of Albania. In Remote sensing for environmental data in Albania: A strategy for integrated management (pp. 13–30). Springer. <ext-link ext-link-type="uri" xlink:href="https://doi.org/10.1007/978-94-011-4357-8_4">https://doi.org/10.1007/978-94-011-4357-8_4</ext-link></mixed-citation></ref>
<ref id="ref-26"><label>26</label><mixed-citation>National Environment Agency of Albania. (2019). Report on the state of the environment 2019. <ext-link ext-link-type="uri" xlink:href="https://akm.gov.al/ova_doc/raport-per-gjendjen-e-mjedisit-2019/">https://akm.gov.al/ova_doc/raport-per-gjendjen-e-mjedisit-2019/</ext-link></mixed-citation></ref>
<ref id="ref-27"><label>27</label><mixed-citation>Gropa, O., Karamani, E., &amp; Zema, R. (2025). Heavy oil production in the Patos-Marinza field: Mitigating high-viscosity constraints and enhancing recovery efficiency. International journal of innovative research in science, engineering and technology, 14(7), 17090–17096. <ext-link ext-link-type="uri" xlink:href="https://doi.org/10.15680/IJIRSET.2025.1407002">https://doi.org/10.15680/IJIRSET.2025.1407002</ext-link></mixed-citation></ref>
<ref id="ref-28"><label>28</label><mixed-citation>Interstate Technology &amp; Regulatory Council (ITRC). (2018). TPH risk evaluation at petroleum-contaminated sites (TPHRisk-1). <ext-link ext-link-type="uri" xlink:href="https://tphrisk-1.itrcweb.org">https://tphrisk-1.itrcweb.org</ext-link></mixed-citation></ref>
<ref id="ref-29"><label>29</label><mixed-citation>Ditzler, C., Scheffe, K., &amp; Monger, H. C. (2017). Soil survey manual. Government Printing Office. <ext-link ext-link-type="uri" xlink:href="https://bibliotecadigital.ciren.cl/handle/20.500.13082/148329">https://bibliotecadigital.ciren.cl/handle/20.500.13082/148329</ext-link></mixed-citation></ref>
<ref id="ref-30"><label>30</label><mixed-citation>Programme., U. N. E. (2017). Environmental assessment of Ogoniland. <ext-link ext-link-type="uri" xlink:href="https://www.unep.org/ogoniland">https://www.unep.org/ogoniland</ext-link></mixed-citation></ref>
<ref id="ref-31"><label>31</label><mixed-citation>Team, R. C. (2020). RA language and environment for statistical computing, R foundation for statistical. Computing. <ext-link ext-link-type="uri" xlink:href="https://cir.nii.ac.jp/crid/1370298755636824325">https://cir.nii.ac.jp/crid/1370298755636824325</ext-link></mixed-citation></ref>
<ref id="ref-32"><label>32</label><mixed-citation>Burton, A., Altman, D. G., Royston, P., &amp; Holder, R. L. (2006). The design of simulation studies in medical statistics. Statistics in medicine, 25(24), 4279–4292. <ext-link ext-link-type="uri" xlink:href="https://doi.org/10.1002/sim.2673">https://doi.org/10.1002/sim.2673</ext-link></mixed-citation></ref>
<ref id="ref-33"><label>33</label><mixed-citation>Morris, T. P., White, I. R., &amp; Crowther, M. J. (2019). Using simulation studies to evaluate statistical methods. Statistics in medicine, 38(11), 2074–2102. <ext-link ext-link-type="uri" xlink:href="https://doi.org/10.1002/sim.8086">https://doi.org/10.1002/sim.8086</ext-link></mixed-citation></ref>
<ref id="ref-34"><label>34</label><mixed-citation>Limpert, E., Stahel, W. A., &amp; Abbt, M. (2001). Log-normal distributions across the sciences: Keys and clues: On the charms of statistics, and how mechanical models resembling gambling machines offer a link to a handy way to characterize log-normal distributions, which can provide deeper insight into v. BioScience, 51(5), 341–352. <ext-link ext-link-type="uri" xlink:href="https://doi.org/10.1641/0006-3568(2001)051[0341:LNDATS]2.0.CO;2">https://doi.org/10.1641/0006-3568(2001)051[0341:LNDATS]2.0.CO;2</ext-link></mixed-citation></ref>
<ref id="ref-35"><label>35</label><mixed-citation>Millard, S. P. (2013). EnvStats: An R package for environmental statistics. Springer Science &amp; Business Media. <ext-link ext-link-type="uri" xlink:href="https://doi.org/10.1007/978-1-4614-8456-1">https://doi.org/10.1007/978-1-4614-8456-1</ext-link></mixed-citation></ref>
<ref id="ref-36"><label>36</label><mixed-citation>McCullagh, P. (2019). Generalized linear models. Routledge. <ext-link ext-link-type="uri" xlink:href="https://doi.org/10.1007/978-1-4899-3242-6">https://doi.org/10.1007/978-1-4899-3242-6</ext-link></mixed-citation></ref>
<ref id="ref-37"><label>37</label><mixed-citation>Kohavi, R. (1995). A study of cross-validation and bootstrap for accuracy estimation and model selection. International joint conference on artificial intelligence (IJCAI) (Vol. 14, No. 2, pp. 1137-1145). IJCAI. <ext-link ext-link-type="uri" xlink:href="https://www.ijcai.org/Proceedings/95-2/Papers/016.pdf">https://www.ijcai.org/Proceedings/95-2/Papers/016.pdf</ext-link></mixed-citation></ref>
<ref id="ref-38"><label>38</label><mixed-citation>Hastie, T. (2009). The elements of statistical learning: Data mining, inference, and prediction. Springer. <ext-link ext-link-type="uri" xlink:href="https://doi.org/10.1007/978-0-387-84858-7">https://doi.org/10.1007/978-0-387-84858-7</ext-link></mixed-citation></ref>
<ref id="ref-39"><label>39</label><mixed-citation>Rudin, C. (2019). Stop explaining black box machine learning models for high stakes decisions and use interpretable models instead. Nature machine intelligence, 1(5), 206–215. <ext-link ext-link-type="uri" xlink:href="https://doi.org/10.1038/s42256-019-0048-x">https://doi.org/10.1038/s42256-019-0048-x</ext-link></mixed-citation></ref>
<ref id="ref-40"><label>40</label><mixed-citation>Molnar, C. (2020). Interpretable machine learning. Lulu. Com. <ext-link ext-link-type="uri" xlink:href="https://christophm.github.io/interpretable-ml-book/">https://christophm.github.io/interpretable-ml-book/</ext-link></mixed-citation></ref>
</ref-list></back>
</article>