Author Contributions
Conceptualization, G.L.; methodology, H.L., S.H., Z.W. and G.L.; software, H.L.; validation, H.L.; formal analysis, H.L. and Z.Q.; investigation, H.L. and T.A.; resources, S.H., Z.W. and G.L.; data curation, H.L.; writing—original draft preparation, H.L., Z.Q., T.A. and S.Z.; writing—review and editing, H.L., S.H., Z.W. and G.L.; visualization, H.L.; supervision, S.H., Z.W. and G.L.; project administration, S.H., Z.W. and G.L. All authors have read and agreed to the published version of the manuscript.
Figure 1.
(a) The top view (upper) and front/back PCB photographs (lower) showing the dual Tx/Rx antenna layout. (b) CIR magnitude profiles () across all four virtual channels for clean cedar shavings at 0% LMC and 50 cm antenna height (single frame). The Tx0/Rx0 channel (solid blue, shaded) serves as the primary channel. The peak amplitude () is annotated. Channel-dependent amplitude and multipath differences arise from the spatial separation of the Tx/Rx antenna pairs. All subsequent figures present results in terms of extracted features.
Figure 1.
(a) The top view (upper) and front/back PCB photographs (lower) showing the dual Tx/Rx antenna layout. (b) CIR magnitude profiles () across all four virtual channels for clean cedar shavings at 0% LMC and 50 cm antenna height (single frame). The Tx0/Rx0 channel (solid blue, shaded) serves as the primary channel. The peak amplitude () is annotated. Channel-dependent amplitude and multipath differences arise from the spatial separation of the Tx/Rx antenna pairs. All subsequent figures present results in terms of extracted features.
Figure 2.
Experimental setup. (a) Top-view schematic showing the UWB radar module mounted on an adjustable-height tripod above the bedding container at three heights (30, 50, 70 cm). The container internal dimensions are 30 cm × 25 cm × 12 cm with 10 cm bedding depth. (b) Side-view schematic showing the estimated antenna footprint at each height.
Figure 2.
Experimental setup. (a) Top-view schematic showing the UWB radar module mounted on an adjustable-height tripod above the bedding container at three heights (30, 50, 70 cm). The container internal dimensions are 30 cm × 25 cm × 12 cm with 10 cm bedding depth. (b) Side-view schematic showing the estimated antenna footprint at each height.
Figure 3.
Phase 4 measurement configuration with carcass present. (a) Top-view schematic showing the carcass in centered, breast-down position directly beneath the antenna. (b) Side-view schematic showing maximum body contact with the bedding surface.
Figure 3.
Phase 4 measurement configuration with carcass present. (a) Top-view schematic showing the carcass in centered, breast-down position directly beneath the antenna. (b) Side-view schematic showing maximum body contact with the bedding surface.
Figure 4.
Architecture of the final SVC-gated mixture-of-experts pipeline. A 6-class support vector classifier routes the 64-dimensional feature vector to six scene-specific SVR experts via soft probabilistic gating (Equation (2)).
Figure 4.
Architecture of the final SVC-gated mixture-of-experts pipeline. A 6-class support vector classifier routes the 64-dimensional feature vector to six scene-specific SVR experts via soft probabilistic gating (Equation (2)).
Figure 5.
Signal energy (E) versus LMC for each virtual channel (clean cedar shavings, 50 cm antenna height; each point is one UWB frame). All four channels show a monotonic increase in E with LMC, confirming that the moisture-induced permittivity contrast is captured across all spatial diversity paths.
Figure 5.
Signal energy (E) versus LMC for each virtual channel (clean cedar shavings, 50 cm antenna height; each point is one UWB frame). All four channels show a monotonic increase in E with LMC, confirming that the moisture-induced permittivity contrast is captured across all spatial diversity paths.
Figure 6.
Comparison of extracted feature values between water-moistened (Phase 1, blue) and simulant-moistened (Phase 2, red) bedding at three matched LMC levels. Error bars show ±1 SD. Asterisks denote significant differences (). Features are z-scored for visual comparability across different physical units.
Figure 6.
Comparison of extracted feature values between water-moistened (Phase 1, blue) and simulant-moistened (Phase 2, red) bedding at three matched LMC levels. Error bars show ±1 SD. Asterisks denote significant differences (). Features are z-scored for visual comparability across different physical units.
Figure 7.
Predicted versus actual LMC across Phases 1 and 2. (a) Phase 1 baseline model (SVR with RBF kernel) across three antenna heights (blue = 30 cm, green = 50 cm, orange = 70 cm). Red line shows linear fit; shaded band spans ±5% LMC. (b) Phase 1 model applied directly to simulant-moistened Phase 2 data, showing systematic overestimation at 30% LMC. (c) Retrained SVR with expanded 28-dimensional feature set on combined Phase 1 + 2 data. In (b,c), marker shape indicates LMC level (∘ = 10%, Δ = 30%, □ = 50%).
Figure 7.
Predicted versus actual LMC across Phases 1 and 2. (a) Phase 1 baseline model (SVR with RBF kernel) across three antenna heights (blue = 30 cm, green = 50 cm, orange = 70 cm). Red line shows linear fit; shaded band spans ±5% LMC. (b) Phase 1 model applied directly to simulant-moistened Phase 2 data, showing systematic overestimation at 30% LMC. (c) Retrained SVR with expanded 28-dimensional feature set on combined Phase 1 + 2 data. In (b,c), marker shape indicates LMC level (∘ = 10%, Δ = 30%, □ = 50%).
Figure 8.
PCA projections of the feature space at two progressive stages. (a) Phase 3 (48 dimensions): three structural states form distinct clusters along PC1 (67.0% variance), with marker shape indicating LMC level. Ellipses show 95% confidence regions. (b) Phase 4 (64 dimensions): six scene classes (3 structural states × 2 bird conditions; open = no carcass, filled = carcass present).
Figure 8.
PCA projections of the feature space at two progressive stages. (a) Phase 3 (48 dimensions): three structural states form distinct clusters along PC1 (67.0% variance), with marker shape indicating LMC level. Ellipses show 95% confidence regions. (b) Phase 4 (64 dimensions): six scene classes (3 structural states × 2 bird conditions; open = no carcass, filled = carcass present).
Figure 9.
Violin plots of frame-level feature distributions across three structural states (blue = loose, orange = compacted, red = caked) at each LMC level (Phase 3). Individual data points are overlaid as jittered strips. Asterisks denote significant pairwise differences (Tukey HSD, ).
Figure 9.
Violin plots of frame-level feature distributions across three structural states (blue = loose, orange = compacted, red = caked) at each LMC level (Phase 3). Individual data points are overlaid as jittered strips. Asterisks denote significant pairwise differences (Tukey HSD, ).
Figure 10.
Bland–Altman agreement plots for Phase 4 data. (a) Phase 3 MoE applied directly (no bird awareness): positive mean bias and wide limits of agreement ( SD), reflecting systematic overestimation caused by carcass obstruction. (b) Phase 4 MoE with 64 features and 6-class gate: near-zero bias and tight limits of agreement, confirming that the bird-aware architecture recovered estimation accuracy.
Figure 10.
Bland–Altman agreement plots for Phase 4 data. (a) Phase 3 MoE applied directly (no bird awareness): positive mean bias and wide limits of agreement ( SD), reflecting systematic overestimation caused by carcass obstruction. (b) Phase 4 MoE with 64 features and 6-class gate: near-zero bias and tight limits of agreement, confirming that the bird-aware architecture recovered estimation accuracy.
Figure 11.
Feature importance ranking from the SVC scene classifier (top 15 of 64 features, permutation importance). Each lollipop is colored by originating phase (blue = Phase 1, orange = Phase 2, green = Phase 3, red = Phase 4). The vertical dashed line marks the mean importance across all 64 features. Amplitude-domain features (peak magnitude, energy) and cross-channel MIMO features ranked highest.
Figure 11.
Feature importance ranking from the SVC scene classifier (top 15 of 64 features, permutation importance). Each lollipop is colored by originating phase (blue = Phase 1, orange = Phase 2, green = Phase 3, red = Phase 4). The vertical dashed line marks the mean importance across all 64 features. Amplitude-domain features (peak magnitude, energy) and cross-channel MIMO features ranked highest.
Figure 12.
Progressive RMSE across model development stages. Green bars show post-recovery performance; red bars show degradation when a prior model is applied to new conditions. The horizontal gray dashed line marks the Phase 1 baseline (RMSE = 2.48%). Improvement percentages are annotated between stages. The navy line plot (right y-axis) shows evolution across the same stages, illustrating the degradation–recovery pattern across all four experimental phases. downward arrow indicates a decrease and upward arrow indicates an increase.
Figure 12.
Progressive RMSE across model development stages. Green bars show post-recovery performance; red bars show degradation when a prior model is applied to new conditions. The horizontal gray dashed line marks the Phase 1 baseline (RMSE = 2.48%). Improvement percentages are annotated between stages. The navy line plot (right y-axis) shows evolution across the same stages, illustrating the degradation–recovery pattern across all four experimental phases. downward arrow indicates a decrease and upward arrow indicates an increase.
Table 1.
Radar module configuration parameters. SDK parameter names are listed for reproducibility.
Table 1.
Radar module configuration parameters. SDK parameter names are listed for reproducibility.
| Parameter | SDK Name | Value | Derived Quantity |
|---|
| Frame rate | FPS | 60 | – |
| Pulse period | PulsePeriod | 4 | PRF = 32.81 MHz |
| Pulses per iteration | PulsesPerIteration | 35 | 2240 pulses/frame |
| Iterations per frame | IterationsPerFrame | 64 |
| Mini-frames per pulse | MframesPerPulse | 4 | – |
| Transmit power | TxPower | 4 (max) | 2.5 dBm peak |
| Interleaved frames | InterleavedFrames | 5 | 12 sets/s |
| Tx channel sequence | TxChannelSequence | [0, 1] | Alternating Tx0/Tx1 |
| Rx mask sequence | RxMaskSequence | [3, 3] | Both Rx active (0b11) |
| DC removal | DCRemoval | false | Removed in software |
Table 2.
Phase 1 experimental matrix: baseline signal–moisture characterization.
Table 2.
Phase 1 experimental matrix: baseline signal–moisture characterization.
| Factor | Levels | Values |
|---|
| Moisture content | 6 | 0, 10, 20, 30, 40, 50% |
| Antenna height | 3 | 30, 50, 70 cm |
| Replicates | 5 | |
| Total measurements | 90 |
Table 3.
Summary of the experimental program across all four phases.
Table 3.
Summary of the experimental program across all four phases.
| Phase | Factors Varied | Conditions | Replicates | Total |
|---|
| 1: Baseline | 6 LMC × 3 heights | 18 | 5 | 90 |
| 2: Manure | 3 LMC | 3 | 5 | 15 |
| 3: Structure | 3 LMC × 3 structural states | 9 | 3 | 27 |
| 4: Stationary bird | 3 LMC × 2 structures × 2 carcass | 12 | 3 | 36 |
| Grand total | 168 |
Table 4.
Effect of antenna height on LMC estimation accuracy (Phase 1, SVR with RBF kernel). Values are mean ± standard deviation from 10× stratified 5-fold cross-validation.
Table 4.
Effect of antenna height on LMC estimation accuracy (Phase 1, SVR with RBF kernel). Values are mean ± standard deviation from 10× stratified 5-fold cross-validation.
| Antenna Height (cm) | | RMSE (% LMC) | MAE (% LMC) |
|---|
| 30 | 0.95 ± 0.02 | 3.24 ± 0.41 | 2.56 ± 0.33 |
| 50 | 0.97 ± 0.01 | 2.48 ± 0.31 | 1.89 ± 0.24 |
| 70 | 0.93 ± 0.02 | 3.92 ± 0.48 | 3.05 ± 0.38 |
Table 5.
Comparison of five regression algorithms for LMC estimation on Phase 1 data (clean bedding, 50 cm height, 16-dimensional feature vector, frame-level samples). Values are mean ± standard deviation from 10× stratified 5-fold cross-validation. The best result in each column is shown in bold.
Table 5.
Comparison of five regression algorithms for LMC estimation on Phase 1 data (clean bedding, 50 cm height, 16-dimensional feature vector, frame-level samples). Values are mean ± standard deviation from 10× stratified 5-fold cross-validation. The best result in each column is shown in bold.
| Algorithm | | RMSE (% LMC) | MAE (% LMC) |
|---|
| Ridge Regression | 0.92 ± 0.03 | 4.35 ± 0.52 | 3.41 ± 0.45 |
| SVR (RBF) | 0.97 ± 0.01 | 2.48 ± 0.31 | 1.89 ± 0.24 |
| LightGBM | 0.95 ± 0.02 | 3.12 ± 0.38 | 2.45 ± 0.30 |
| XGBoost | 0.96 ± 0.02 | 2.87 ± 0.35 | 2.21 ± 0.28 |
| GPR (RBF) | 0.96 ± 0.02 | 2.61 ± 0.33 | 2.02 ± 0.26 |
Table 6.
Progressive model performance on Phase 2 data. “Phase 1 model (direct)” used 16 features and was trained only on clean bedding. “Retrained (Phase 1 + 2)” used the expanded 28-dimensional feature set and was trained on combined data ( frame-level samples from 105 measurements) downward arrow indicates a decrease.
Table 6.
Progressive model performance on Phase 2 data. “Phase 1 model (direct)” used 16 features and was trained only on clean bedding. “Retrained (Phase 1 + 2)” used the expanded 28-dimensional feature set and was trained on combined data ( frame-level samples from 105 measurements) downward arrow indicates a decrease.
| Model | | RMSE (% LMC) | MAE (% LMC) |
|---|
| Phase 1 model (direct) | 0.82 | 6.73 | 5.21 |
| Retrained (Phase 1 + 2) | 0.95 | 3.41 | 2.68 |
| RMSE improvement | – | 3.32% LMC (↓49%) | – |
Table 7.
Progressive model performance on Phase 3 data. “Phase 1 + 2 model (direct)” used 28 features and was not exposed to structural variation during training. “MoE (Phase 1 + 2 + 3)” used the expanded 48-dimensional feature set with SVC-gated mixture of experts. downward arrow indicates a decrease.
Table 7.
Progressive model performance on Phase 3 data. “Phase 1 + 2 model (direct)” used 28 features and was not exposed to structural variation during training. “MoE (Phase 1 + 2 + 3)” used the expanded 48-dimensional feature set with SVC-gated mixture of experts. downward arrow indicates a decrease.
| Model | | RMSE (% LMC) | MAE (% LMC) |
|---|
| Phase 1 + 2 SVR (direct, 28 feat.) | 0.85 | 5.92 | 4.63 |
| MoE (Phase 1 + 2 + 3, 48 feat.) | 0.94 | 3.74 | 2.91 |
| RMSE improvement | – | 2.18% LMC (↓37%) | – |
Table 8.
Measured bulk density of cedar shaving bedding under three structural states at 30% LMC.
Table 8.
Measured bulk density of cedar shaving bedding under three structural states at 30% LMC.
| Structural State | Bulk Density (g/cm3) | Relative to Loose (%) |
|---|
| Loose | 0.08 ± 0.01 | 100 |
| Compacted | 0.14 ± 0.02 | 175 |
| Caked | 0.16 ± 0.02 | 200 |
Table 9.
Signal attenuation caused by centered breast-down carcass obstruction relative to the no-carcass reference. Values averaged across LMC levels, structural states, and replicates.
Table 9.
Signal attenuation caused by centered breast-down carcass obstruction relative to the no-carcass reference. Values averaged across LMC levels, structural states, and replicates.
| Configuration | Reduction (dB) | E Reduction (dB) |
|---|
| No carcass (reference) | 0.0 | 0.0 |
| Centered, breast-down | −8.7 | −10.2 |
Table 10.
Progressive model performance on Phase 4 data. “Phase 3 MoE (direct)” used the 48-feature, 3-class MoE pipeline. “Phase 4 MoE (64 feat.)” used the expanded 64-dimensional feature set with the 6-class SVC gate and six SVR experts.
Table 10.
Progressive model performance on Phase 4 data. “Phase 3 MoE (direct)” used the 48-feature, 3-class MoE pipeline. “Phase 4 MoE (64 feat.)” used the expanded 64-dimensional feature set with the 6-class SVC gate and six SVR experts.
| Model | Structure | | RMSE (% LMC) | MAE (% LMC) |
|---|
| Phase 3 MoE applied directly (48 features, 3-class gate): |
| Phase 3 MoE (direct) | All | 0.58 | 10.24 | 8.17 |
| Phase 3 MoE (direct) | Loose | 0.67 | 8.53 | 6.74 |
| Phase 3 MoE (direct) | Caked | 0.48 | 12.15 | 9.83 |
| Phase 4 MoE (64 features, 6-class gate, 6 experts): |
| Phase 4 MoE | All | 0.91 | 4.53 | 3.52 |
| Phase 4 MoE | Loose | 0.94 | 3.82 | 2.97 |
| Phase 4 MoE | Caked | 0.87 | 5.38 | 4.21 |
Table 11.
Confusion matrix for the SVC scene classifier (collapsed to bird detection). Evaluated by 5-fold cross-validation on all Phase 1–4 data.
Table 11.
Confusion matrix for the SVC scene classifier (collapsed to bird detection). Evaluated by 5-fold cross-validation on all Phase 1–4 data.
| | Predicted: No Bird | Predicted: Bird |
|---|
| Actual: No bird | 17,856 | 144 |
| Actual: Bird | 97 | 2063 |
Table 12.
Binary classification performance at the 25% LMC threshold (safe vs. at-risk) across experimental phases.
Table 12.
Binary classification performance at the 25% LMC threshold (safe vs. at-risk) across experimental phases.
| Phase | Accuracy (%) | Sensitivity (%) | Specificity (%) |
|---|
| Phase 1 (clean) | 98.9 | 100.0 | 97.8 |
| Phase 2 (contaminated) | 94.4 | 94.4 | 94.4 |
| Phase 3 (structural) | 92.6 | 93.3 | 91.7 |
| Phase 4 (stationary bird) | 89.8 | 91.7 | 87.5 |
Table 13.
Progressive model development summary. Each row shows the model performance when applied to a specific test condition. “Feat.” indicates feature dimensionality. In the final row, “Phase 4 (MoE)” denotes the pipeline trained on cumulative data from Phases 1 to 4. The SVC gate is fitted on all cumulative frames, and each SVR expert is fitted on its phase partition. “Phase 4 (CV)” denotes the Phase 4 cross-validation partition used for evaluation. The table reads top to bottom as baseline, degradation, recovery with feature expansion, degradation, recovery with MoE, catastrophic failure, recovery with full pipeline. downward arrow indicates a decrease and upward arrow indicates an increase.
Table 13.
Progressive model development summary. Each row shows the model performance when applied to a specific test condition. “Feat.” indicates feature dimensionality. In the final row, “Phase 4 (MoE)” denotes the pipeline trained on cumulative data from Phases 1 to 4. The SVC gate is fitted on all cumulative frames, and each SVR expert is fitted on its phase partition. “Phase 4 (CV)” denotes the Phase 4 cross-validation partition used for evaluation. The table reads top to bottom as baseline, degradation, recovery with feature expansion, degradation, recovery with MoE, catastrophic failure, recovery with full pipeline. downward arrow indicates a decrease and upward arrow indicates an increase.
| Training Data | Test Data | Feat. | | RMSE | Narrative |
|---|
| Phase 1 (SVR) | Phase 1 (CV) | 16 | 0.97 | 2.48 | Baseline |
| Phase 1 (SVR) | Phase 2 | 16 | 0.82 | 6.73 | ↓ Contamination |
| Phase 1 + 2 (SVR) | Phase 2 (CV) | 28 | 0.95 | 3.41 | ↑ +3 features |
| Phase 1 + 2 (SVR) | Phase 3 | 28 | 0.85 | 5.92 | ↓ Structure |
| Phase 1 + 2 + 3 (MoE) | Phase 3 (CV) | 48 | 0.94 | 3.74 | ↑ +5 feat. + MoE |
| Phase 3 MoE | Phase 4 | 48 | 0.58 | 10.24 | ⇓ Bird (failure) |
| Phase 4 (MoE) | Phase 4 (CV) | 64 | 0.91 | 4.53 | ⇑ +5 feat. + 6-class |
Table 14.
Comparison of litter and substrate moisture sensing methods. “Caked” indicates whether the method can measure subsurface moisture beneath a dry crust. “Birds” indicates whether the method was tested with a biological obstruction in the measurement path. RMSE values are in % moisture content.
Table 14.
Comparison of litter and substrate moisture sensing methods. “Caked” indicates whether the method can measure subsurface moisture beneath a dry crust. “Birds” indicates whether the method was tested with a biological obstruction in the measurement path. RMSE values are in % moisture content.
| Study | Technology | Contact | | RMSE | Caked | Birds |
|---|
| Xiong et al. [15] | Capacitive probe | Yes | 0.90–0.94 | — | No | No |
| Xiong et al. [15] | NIR reflectance | No | 0.97–0.99 | — | No | No |
| Reeves & Van Kessel [16] | NIR spectroscopy | No | 0.95 | 1.0 | No | No |
| Mowrer et al. [35] | NIR spectroscopy | No | 0.996 | — | No | No |
| Cockerill et al. [17] | Hyperspectral | No | 0.92–0.97 | 1.0–1.6 | No | No |
| Trabelsi & Nelson [24] | Microwave dielectric | Yes | — | <1.0 | No | No |
| Huisman et al. [21] | GPR (soil) | No | 0.90–0.95 | 1.5–3.0 | Yes | No |
| This work (Phase 1) | UWB radar | No | 0.97 | 2.48 | — | — |
| This work (Phase 3) | UWB radar + MoE | No | 0.94 | 3.74 | Yes | — |
| This work (Phase 4) | UWB radar + MoE | No | 0.91 | 4.53 | Yes | Yes |