Rail buckling remains a major safety concern in modern railway infrastructure, and the effective monitoring of rail temperature is essential for preventing thermal stress failures. However, the direct measurement of rail temperature is often costly, difficult to install in the railway field, and sensitive to various environmental disturbances. This paper presents a new AI-assisted soft sensing approach for indirect rail temperature estimation using a passive thermal sensor consisting of a steel bar with an embedded temperature probe. The approach evaluates seven raw sensor features alongside three engineered features that are designed to capture thermal dynamics and seasonal patterns. To this end, four machine learning models are trained to map the dynamic thermal response of the passive sensor to the underlying rail temperature. Field experiments conducted over a period of five months show that the proposed method achieves robust performance with a mean absolute error of 0.55°C, while reducing both system complexity and installation effort. The results demonstrate that combining passive thermal sensing with data-driven modeling provides a feasible and scalable solution for intelligent rail maintenance and safety monitoring. The approach contributes to AI-assisted instrumentation and measurement by offering a robust soft sensor design that supports improved decision-making for the prevention of rail buckling.