Coastal wetland soil organic carbon (CW-SOC) is crucial for both “blue carbon” and carbon sequestration. It is of great significance to understand the content of soil organic carbon (SOC) in soil resource management. A total of 133 soil samples were evaluated using an indoor spectral curve and were categorized into silty soil and sandy soil. The prediction model of CW-SOC was established using optimized support vector machine regression (OSVR) and optimized random forest regression (ORFR). The Leave-One-Out Cross-Validation (LOO-CV) method was used to verify the model, and the performance of the two prediction models, as well as the models’ stability and uncertainty, was examined. The results show that (1) The SOC content of different coastal wetlands is significantly different, and the SOC content of silty soils is about 1.8 times that of sandy soils. Moreover, the characteristic wavelengths associated with SOC in silty soils are mainly concentrated in the spectral range of 500–1000 nm and 1900–2400 nm, while the spectral range of sandy soils is concentrated in the spectral range of 600–1400 nm and 1700–2400 nm. (2) The organic carbon prediction model of silty soil based on the OSVR method under the first-order differential of reflectance (R′) is the best, with the Adjusted-R2 value as high as 0.78, the RPD value is much greater than 2.0 and 5.07, and the RMSE value as low as 0.07. (3) The performance of the OSVR model is about 15~30% higher than that of the support vector machine regression (SVR) model, and the performance of the ORFR model is about 3~5% higher than that of the random forest regression (RFR) model. OSVR and ORFR are better methods of accurately predicting the CW-SOC content and provide data support for the carbon cycle, soil conservation, plant growth, and environmental protection of coastal wetlands.
Ultra-wideband (UWB) technology is widely used for high-precision indoor positioning due to its adaptability to various environments. However, in long linear areas, such as tunnels or corridors, the near-linear deployment of base stations caused by structural constraints significantly degrades UWB localization accuracy, rendering conventional algorithms ineffective. To address this issue, this study proposes a high-precision UWB+TOA-R positioning algorithm that incorporates Ridge estimation as a constraint condition. The algorithm introduces equivalent weights to refine the iterative computation of Ridge estimation, establishing an iteratively computed TOA-RR solution model. Experiments were conducted in a long linear corridor to compare the performance of three UWB localization models: the TOA-Least Squares (TOA-LS) model, the TOA-Ridge estimation (TOA-R) model, and the proposed TOA-Ridge estimation iterative (TOA-RR) model. The results indicate that the TOA-LS model suffers from significant coordinate distortions due to abnormalities in the inverse matrix of the coefficient matrix, regardless of the initial tag coordinates. The TOA-R model demonstrates improved accuracy and stability, particularly in cases of significant initial deviations, but still exhibits residual errors. In contrast, the TOA-RR model achieves enhanced stability and accuracy, with a positioning error of approximately 0.5 m. This study resolves the challenge of inaccurate UWB localization in long linear areas, providing a robust solution for such environments.