Skip to Content
MachinesMachines
  • Article
  • Open Access

23 November 2026

16 Pages

Research on Virtual Cabin Temperature Sensor Based on Multiple Linear Regression and Its Application in Automotive Air-Conditioning Systems

,
,
and
School of Mechanical Engineering, University of Science and Technology Beijing, Beijing 100083, China
*
Author to whom correspondence should be addressed.

Abstract

Real-time knowledge of the head-region cabin temperature is essential for occupant thermal-comfort control in automotive air-conditioning (A/C) systems, but direct measurement at the occupant head position is impractical in production vehicles, and single-point sensors suffer from vertical temperature stratification. This paper develops a virtual cabin temperature sensor based on multiple linear regression (MLR) that estimates the head-region temperature from routinely available signals (A/C operating state, ambient temperature, solar irradiance, and vehicle speed). Using 400 h of real-world road-test data, the MLR model reproduces the three characteristic stages of the cabin thermal response (initial hot-soak, rapid pull-down, and quasi-steady state) without visible phase lag, because its inputs act as leading variables of the cabin energy balance. Across typical A/C set points (24–30 °C), the steady-state estimation error remains within ±2 °C, satisfying the thermal-comfort requirement for cabin-temperature control, and cross-vehicle validation confirms transferability across platforms with similar cabin architecture. At A/C activation the initial-temperature error can reach ±7 °C under strong solar load; we show that this deviation has limited impact on comfort during the pull-down phase because it decays with the cabin time constant and affects the segment in which comfort control is least sensitive to absolute accuracy. The model is closed-form, stores only N + 1 coefficients, and is directly implementable on automotive microcontrollers. Future work will extend the validation to more ambient-temperature points and vehicle platforms.

1. Introduction

The cabin temperature serves as a fundamental basis for the design and control of air-conditioning systems in new energy vehicles (NEVs) [1,2]. As a core feedback parameter for thermal-comfort control, it also governs the energy consumption of the A/C system, which is one of the largest auxiliary loads and directly affects driving range [3,4]. The cabin thermal response follows a cyclic sequence of operating modes—rapid cool-down (pull-down) after a hot soak, intermittent compressor cycling near the set point, and quasi-steady maintenance—whose timing and intensity are determined by the cabin thermal state fed back to the controller [3,4]. Among the comfort-relevant quantities, the air temperature near the occupant’s head and upper body is the dominant local driver of perceived comfort; automotive practice and ANSI/ASHRAE Standard 55-2023 place a comfortable summer cabin air temperature at approximately 24–27 °C [5]. Timely and accurate cabin-temperature feedback is therefore the basis for jointly managing comfort and energy consumption, and errors in this feedback reduce occupant satisfaction and can induce thermal stress, fatigue, and distraction that impair driving safety [3,6].
However, physically installed in-cabin temperature sensors inevitably deviate from the thermal state actually experienced by the occupants. Their readings are affected by the fixed mounting position, localized heat sources, sensor thermal inertia, and the vertical temperature stratification between the sensor location and the occupant’s head, so the controlled temperature can diverge from the head-region state that matters for comfort [3,6]. These limitations also propagate to conventional control strategies—such as single-point feedback, feedforward/feedback control on the supply-air temperature, or on/off thermostat cycling—and constrain their performance.
A promising remedy is virtual sensing (soft sensing), in which a mathematical model estimates a primary variable that is difficult or costly to measure from readily measurable secondary variables [7]; it holds considerable promise for automotive air-conditioning applications, including temperature estimation, thermal-comfort evaluation, fault diagnosis, and energy-consumption optimization [4,8]. Virtual-sensor models for the cabin thermal state are commonly classified into physics-based white-box, data-driven black-box, and hybrid grey-box models [9,10,11,12,13]. White-box models, such as lumped-parameter thermal networks and computational fluid dynamics (CFD), offer physical interpretability and extrapolation capability but require detailed vehicle geometry and material data, laborious calibration, and computational costs that preclude on-board deployment [9,10]. Black-box models, ranging from classical regression to deep neural networks, learn directly from data and adapt to complex nonlinear behavior, but their accuracy depends on the quantity and quality of training data, their extrapolation beyond the training envelope is uncertain, and their structure lacks physical transparency [11,12,13]. Grey-box models mitigate these weaknesses by embedding physical constraints into data-driven structures, at the cost of increased complexity [13]. Independently of the modeling family, most existing studies rely on simulation, laboratory, or wind-tunnel data, and comparatively few have been validated on real road tests, where dynamically varying solar radiation, fluctuating vehicle speed, and diverse traffic conditions impose stringent accuracy and robustness requirements [2,14,15].
Among data-driven methods, multivariate regression is the earliest and most mature class applied to in-cabin temperature estimation [11,16]. It expresses the cabin temperature as a linear or polynomial combination of influencing variables—ambient temperature, solar irradiance, vehicle speed, and HVAC supply parameters—yielding a fast and transparent approximation of the cabin thermal state. Comparative evaluations consistently show that the accuracy gap between linear and nonlinear models is small, whereas their computational cost and transparency differ substantially. Hintea et al. [16] evaluated seven learning algorithms for occupant equivalent temperature and found that MLR attained an RMSE of 1.60 °C, only marginally above the 1.51 °C of random forest while being far cheaper and simpler; Warey et al. [4] reported test errors below 5% for linear regression, random forests, and artificial neural networks; support-vector-machine virtual sensing has been demonstrated for HVAC control [12]; and recent deep-learning models [2,17,18] improve accuracy only at the cost of substantially larger computational and memory demands and reduced interpretability. For production-vehicle deployment, the decisive criteria are not prediction accuracy alone but also computational overhead, development cost, validation feasibility, and ease of integration. Multivariate regression therefore offers three advantages: (i) its closed-form structure requires negligible computation and is naturally suited to low-cost automotive microcontrollers; (ii) its coefficients are physically interpretable and verifiable, facilitating calibration, diagnosis, and functional-safety review; and (iii) its lightweight, continuously refinable form matches the iterative over-the-air-update paradigm of software-defined vehicles [19,20].
Table 1 summarizes representative data-driven approaches for automotive A/C performance prediction. Together with the discussion above, it reveals three gaps. First, most prior studies target bulk cabin air temperature or system-level quantities (coefficient of performance, cooling capacity), whereas practical comfort control requires the occupant head-region temperature, whose relationship to the built-in sensor is governed by multiple interacting factors and is considerably harder to estimate [4,12,16,17,18,21,22,23,24]. Second, the majority of existing virtual sensors have been developed and validated with simulation, laboratory, or wind-tunnel data, so their robustness under dynamically varying real-road conditions remains unproven. Third, although nonlinear and deep models can slightly improve accuracy, their computational and memory cost and their black-box nature hinder on-board deployment and functional-safety certification [2,17,18].
Table 1. Data-driven approaches for automotive A/C performance prediction.
Motivated by these gaps, this study develops and validates a virtual cabin temperature sensor based on multiple linear regression, using 400 h of data collected exclusively from real-world road tests. The main contributions are threefold: (i) a head-region-oriented virtual sensing framework is established using only CAN-bus variables that are readily available on production vehicles; (ii) the model is trained and validated entirely on real road-test data rather than on simulation or laboratory experiments; and (iii) both the estimation accuracy and the embedded implementability are evaluated, including engineering protection strategies that contain occasional large deviations.
The remainder of this paper is organized as follows. Section 2 presents the materials and methods, including the system architecture, experimental setup, data preprocessing, the MLR model, the evaluation metrics, and the research questions and hypotheses. Section 3 presents and discusses the results, covering the dataset overview, MLR performance, accuracy and statistical significance, computational cost, cross-vehicle validation, and limitations. Section 4 concludes the paper.

2. Materials and Methods

2.1. System Architecture

The proposed virtual temperature sensing framework consists of three modules: (i) a data acquisition module that collects auxiliary signals from the vehicle CAN bus and the environmental sensors, (ii) a multiple linear regression module that maps the auxiliary variables to the in-cabin temperature, and (iii) a validation module that evaluates the estimation accuracy against reference measurements. The reference temperature was measured by a calibrated K-type thermocouple placed at the driver’s breathing zone, in accordance with common in-cabin thermal comfort measurement practice.
The choice of MLR over more complex machine-learning models (e.g., support vector regression, XGBoost, or conventional artificial neural networks) is deliberate. Although nonlinear models can capture more complex mappings, they require substantially more data to generalize, incur higher training and inference costs, and are less transparent for calibration and functional-safety review. Prior comparative studies indicate that for cabin-temperature estimation the accuracy gain of nonlinear models over MLR is marginal [16,17], whereas MLR offers a closed-form, physically interpretable structure that is directly deployable on automotive microcontrollers. Figure 1 shows the architecture of the proposed MLR virtual sensor, with the input features and the output explicitly indicated.
Figure 1. Schematic of the MLR-based virtual cabin temperature sensor.
To structure the validation, two research questions are formulated. RQ1: How accurately can the MLR virtual sensor reproduce the measured head-region cabin temperature relative to the reference physical sensor? RQ2: How does the MLR performance vary across environmental conditions and vehicle operating states? For RQ1, the null hypothesis H0 is that the mean estimation error is not significantly different from zero (paired t-test); the alternative H1 is that a systematic bias exists. For RQ2, H0 is that the mean error does not differ across the operating-condition groups (one-way ANOVA); H1 is that at least one group differs.

2.2. Experimental Setup and Data Acquisition

The experiments were conducted on a compact-class passenger vehicle equipped with an automatic A/C system. The reference output of the virtual sensor is the head-region (driver breathing-zone) air temperature, measured by a calibrated K-type thermocouple placed near the driver’s head (measurement point P1 in Figure 2) at a sampling frequency of 1 Hz. The auxiliary input variables, all acquired from the vehicle CAN bus at 1 Hz, include: the ambient air temperature outside the vehicle; the A/C vent outlet air temperature; the A/C vent outlet airflow rate; the solar irradiance; and the vehicle speed, which reflects convective heat transfer through the body. The vent outlet airflow rate and outlet temperature together characterize the A/C cooling capacity; the instantaneous cooling capacity is estimated as Q = m ˙ ·c_p·(T_recirc − T_outlet), where m ˙ is the air mass flow rate, c_p the air specific heat, T_recirc the recirculated air temperature, and T_outlet the vent outlet temperature [25].
Figure 2. Schematic of the vehicle cabin structure and measurement points (P1: driver head/breathing zone; P2: A/C vent outlet; P3: cabin interior).
The reference head-region temperature was measured with a calibrated K-type thermocouple and logged at 1 Hz; all auxiliary variables (ambient temperature, solar irradiance, A/C vent outlet air temperature and airflow, and vehicle speed) were read from the production-vehicle CAN bus using a CANape (VN1640, Vector Informatik GmbH: Stuttgart, Germany) data-acquisition system at 1 Hz.
The dataset mainly covered summer scenarios, including idling, urban driving (0–60 km/h), and highway driving (>60 km/h), with the A/C operating mainly in cooling. In total, 400 h of data were collected. The data were further divided into a training set (70%), a validation set (15%), and a test set (15%). The 70:15:15 split was adopted so that the training set retains the majority of the data for stable coefficient estimation, while the validation set supports feature/regularization selection and the test set provides an unbiased final estimate. The split was performed at the trip level—consecutive samples from the same trip were never distributed across subsets—so the three subsets are temporally independent and each driving scenario is proportionally represented in all of them. The 70:15:15 ratio is likewise a common convention in building/HVAC prediction studies, in which 70% is used for training, 15% for validation, and 15% for testing, with chronological (temporal) partitioning to avoid data leakage [26,27]; the choice of split ratio is also known to affect the stability and generalization of model performance estimates [28]. The reported results are insensitive to small variations in this ratio.

2.3. Data Preprocessing

Before model training, the collected data were cleaned and organized as follows. (i) Resampling: All signals were synchronized to a uniform sampling interval of 1 s, so that variables collected at the same moment could be aligned sample by sample. (ii) Removing abnormal data: A small number of abnormal samples were caused by sudden events (e.g., opening a door) or momentary sensor errors. These points were identified and removed using a combination of the 3σ rule and a Hampel filter: values that deviated too far from their neighboring readings were considered unreliable and discarded. (iii) Filling in missing values: If a signal was lost for a short period, the missing points were filled by linear interpolation between the two nearest valid readings. (iv) Normalization: Since the input variables have very different magnitudes (e.g., temperature in °C versus solar irradiance in W/m2), all inputs were scaled to zero mean and unit variance.
To ensure dataset reliability, the reference temperature sensors were calibrated before the campaign, all signals were time-synchronized, and the recordings were screened for sensor faults and data-logger dropouts. Duplicate data were removed as follows: repeated samples with identical timestamps were de-duplicated to a single value, and samples affected by sudden events (e.g., door opening) or momentary sensor errors were identified with the 3σ rule and a Hampel filter and discarded.

2.4. Multiple Linear Regression Model

The cabin temperature was estimated by a multiple linear regression model. Taking the auxiliary variables as inputs, the model is expressed as [16]
T = β 0 + ∑ i = 1 N β i x i
where T is the estimated head-region cabin temperature (°C), β0 is the intercept (°C), and βi (i = 1, …, N) are the regression coefficients (°C per unit of the corresponding input); xi are the standardized input variables (ambient temperature in °C, A/C outlet temperature in °C, outlet airflow rate, solar irradiance in W/m2, and vehicle speed in km/h). The coefficients are estimated by ridge regression, which minimizes the penalized least-squares objective:
β ^ = arg min β   { ‖ T − X β ‖ 2 2 + λ ‖ β ‖ 2 2 }
Feature selection and regularization: The candidate input variables were screened using pairwise correlation and the variance inflation factor (VIF); variables with VIF > 10 were removed to avoid multicollinearity. The ridge penalty λ was selected by five-fold cross-validation on the training set, minimizing the validation RMSE. The final fitted coefficients are reported in Table 4.
It should be noted that, in engineering practice, the raw model output is further constrained by protection strategies to prevent occasional large deviations from propagating to the A/C controller. Specifically, three tolerance measures are applied: (i) range limiting—the estimated temperature is clamped to the physically plausible interval [−40, 70] °C, which covers all possible automotive cabin states from extreme cold soak to extreme hot soak, and any estimate outside this range is treated as invalid and replaced by the last valid value; (ii) rate limiting—the change in the estimate between consecutive 1 s samples is restricted to 10 °C/s, because the cabin thermal inertia cannot physically produce faster changes, which suppresses abrupt spikes from momentary signal anomalies; and (iii) plausibility checking—the estimate is cross-checked against the HVAC operating mode (e.g., during rapid cooling the cabin temperature cannot rise substantially), and inconsistent values are smoothed or replaced by a first-order filter. These measures contain occasional large fitting deviations, a common practice in production-grade automotive software.

2.5. Model Evaluation Metrics

The following metrics are used to evaluate the virtual sensor: the root-mean-square error RMSE = [Σ( T ^ − T)2/n]^(1/2), the mean absolute error MAE = Σ| T ^ − T|/n, the coefficient of determination R2 = 1 − Σ( T ^ − T)2/Σ(T − T ¯ )2, and the maximum absolute error MaxAE = max| T ^ − T|, where T ^ and T are the estimated and measured head-region temperatures (°C) and n is the number of samples. RMSE and MAE quantify the overall deviation, R2 quantifies the explained variance, and MaxAE quantifies the worst-case instantaneous deviation, which is the most relevant quantity for the ±2 °C mounting criterion.

2.6. Uncertainty and Repeatability

It should be noted that, due to practical constraints, strictly identical test conditions cannot be guaranteed in road experiments. The ambient temperature, solar irradiance, and traffic conditions inevitably vary between runs, and the air-conditioning state may differ slightly at the start of each test. Therefore, instead of strict replication, each experimental scenario was repeated as many times as resources permitted (three runs on average), and the runs were arranged at similar times of day and under comparable weather conditions to minimize between-run variability.

3. Results and Discussions

3.1. Data Set Overview

All data used in this study were drawn from the road-test database accumulated by an automotive manufacturer. This database contains vehicle-level road-test records collected in summer days, covering a wide range of environmental conditions and driving scenarios. The data were recorded by on-board data acquisition systems (e.g., INCA and CANape) at sampling frequencies of 1–10 Hz, encompassing the operating parameters of the engine/motor, air-conditioning, battery, and body systems. Only the signals relevant to the present study (cabin temperature, ambient temperature, A/C outlet air parameters, solar intensity, and vehicle speed) were extracted.
For the present study, the data set comprised about 400 h of recordings, mainly covering summer scenarios at ambient temperatures above 20 °C. All signals were resampled to a uniform 1 Hz interval. According to the test design, the data were grouped into idle, urban (0–60 km/h), and highway (>60 km/h) conditions, each further divided by solar intensity into a strong-solar group (>800 W/m2) and a low-solar group (<300 W/m2). In each condition, the A/C system was operated in synchronous mode at a set temperature of 24 °C or higher. The data were partitioned at the trip level into a training set (70%), a validation set (15%), and a test set (15%), so that consecutive samples from the same trip were never split across subsets, and all vehicle-speed and A/C conditions were proportionally represented in each subset. Table 2 summarizes all the test cases considered in this study.
Table 2. Summary of the test cases.

3.2. MLR Performance Analysis

To provide an intuitive understanding of the model behavior, several representative conditions were selected for detailed analysis, as seen in Figure 3, together with the measured cabin temperature and MLR estimation. Figure 3a, for example, shows a typical condition in which the vehicle was parked in a summer hot-soak environment under direct solar load, with an initial cabin temperature exceeding 50 °C. After the air-conditioning system was activated, the cabin temperature decreased rapidly at a rate of approximately 4–5 °C/min during the initial pull-down phase, and then gradually converged toward the set temperature, entering a quasi-steady state. Three characteristic stages can be identified in the curve: (i) the initial high-temperature stage dominated by solar radiation and thermal storage of the cabin structure, (ii) the rapid pull-down stage governed by the cooling capacity of the HVAC system, and (iii) the quasi-steady stage in which the cooling effect and heat gains reach a balance [29]. Overall, the MLR estimation reproduces all three stages faithfully. The estimated curve tracks the measured pull-down trajectory closely, with no visible lag in the transient phase, and follows the small fluctuations in the quasi-steady stage. Quantitatively, the RMSE and R2 of this trip were 1.4 °C and 0.876, respectively. The maximum absolute error of 4.3 °C occurred during the initial stage (t = 10 min), where the temperature gradient was steepest.
Figure 3. Fitting performance at an ambient temperature above 20 °C. (a) Summer hot-soak parking condition with direct solar load; (b) High initial cabin temperature condition; (c) Low-amplitude steady fluctuation condition; (d) Slow temperature rise condition; (e) Multi-cycle temperature fluctuation condition; (f) Periodic heating and cooling condition.
According to the requirement of automotive manufacturers, an estimation error within ±2 °C is sufficient for the sensor to be mounted on production vehicles. The errors obtained in this trip are well within this threshold, and the protection strategies provide an additional safety margin against worst-case deviations, which is adequate for practical thermal-comfort control and satisfies the on-board application requirement.
For a virtual cabin temperature sensor, the estimation of the initial temperature is of particular importance. At the moment of A/C activation, the model has no direct measurement of the head-region thermal state; any initial estimation error acts as a displaced starting point of the predicted trajectory and directly affects the estimation accuracy during the subsequent pull-down phase. In this study, the initial temperature was estimated through a joint inference based on multiple-dimensional information available at A/C activation, mainly including the evaporator temperature, the HVAC duct temperature, the cabin temperature held from the end of the previous trip, as well as the ambient temperature, the solar intensity, and the key-off duration. By combining these signals, the initial temperature is inferred as the most plausible value consistent with the physical constraints of the pre-activation state, rather than by a single-variable mapping. Moreover, it can be seen from Figure 4, where Cases 1–7 correspond to a stepwise increase in solar intensity (0–150, 150–250, 250–500, 500–800, and >800 W/m2), that a larger initial estimation deviation was caused by higher solar intensity. This may be because the heat associated with solar irradiance is stored in the solid surfaces of the cabin, where the model cannot observe it; the stronger the irradiance, the more energy is hidden. As the initial temperature inference relies only on air-side signals, the deviation grows monotonically with irradiance.
Figure 4. Estimation error at different solar intensities (Cases 1–7 denote a stepwise increase in solar intensity).
Although a deviation of up to 7 °C exists in the initial estimation, its impact on occupant thermal comfort during the dynamic pull-down phase is limited in practice. This is because, during the pull-down phase, the cabin is in a strong thermal transient: the occupant’s comfort state is dominated by the rate of change in the thermal load (skin cooling rate) rather than by the absolute air temperature, so an estimation deviation of a few degrees at the beginning of the pull-down translates into only a small shift in the perceived comfort trajectory. On the other hand, the deviation decays exponentially with the cabin time constant, so the air temperature difference between the estimated and actual states narrows rapidly; by the time the cabin approaches the comfort zone, the estimation error has already fallen below the ±2 °C criterion. In other words, the initial deviation affects precisely the segment in which comfort control is less sensitive to temperature accuracy, while the ±2 °C accuracy requirement is met precisely in the segment where it matters. This misalignment between the error window and the comfort-sensitive window is the fundamental reason why the ±7 °C initial deviation is tolerable for the intended application: for control strategies that tolerate a coarse temperature estimate during the first minutes of pull-down, which is common practice as comfort requirements are relaxed during the pull-down phase, the initial accuracy is sufficient. Table 3 further compares the prediction errors reported in previous studies with the present model.
Table 3. Comparison of prediction errors with previous studies.
The up-to-7 °C initial deviation requires careful interpretation, because it is not a sensor-accuracy issue but a physical limitation of the information available at A/C activation: after a strong solar soak, part of the absorbed solar energy is stored in the interior surfaces and is invisible to the air-side signals used for the initial inference. Its impact on comfort is limited for three reasons. First, during the pull-down phase the occupant’s comfort state is dominated by the rate of skin cooling rather than by the absolute air temperature, so a few-degree offset at activation produces only a small shift in the perceived comfort trajectory. Second, the deviation decays with the cabin thermal time constant, so the error falls below ±2 °C well before the cabin enters the comfort zone. Third, the ±2 °C criterion applies to the quasi-steady segment in which accuracy matters for control, while the initial segment is precisely where comfort requirements are relaxed. This misalignment between the error window and the comfort-sensitive window is the fundamental reason why the initial deviation is tolerable for the intended application.

3.3. Accuracy Analysis

To examine the estimation deviation under representative operating conditions, the steady-state segments of the test trips were grouped into the six condition combinations defined in Table 2, which differ in vehicle speed and solar intensity, and the steady-state temperature deviation statistics were computed for each combination. As shown in Figure 5, the estimation accuracy was evaluated at typical A/C set points of 24 °C to 30 °C to characterize the associated estimation bias. It can be clearly seen that the mean steady-state deviation was within ±2 °C for these condition combinations, and the corresponding standard deviations did not exceed 0.5 °C, indicating that the deviation was stable rather than drifting within each condition.
Figure 5. Estimation error at the A/C set temperature of 24 °C (a), 26 °C (b), 28 °C (c), and 30 °C (d).
Hintea et al. [16] reported an RMSE of 1.60 °C with MLR for occupant equivalent temperature, and recent data-driven studies based on high-fidelity CFD simulation reported prediction errors of less than 5% for cabin air temperature; the accuracy of the present model is consistent with these studies, with the additional distinction that it was trained and validated exclusively on real-world road-test data rather than simulation or laboratory measurements. Direct numerical comparison across studies should nevertheless be interpreted with caution, since the reference quantities (head-region air temperature, physical sensor temperature, or hardware parameters), the test conditions, and the error metrics differ among studies. It is also worth comparing the proposed approach with the traditional sensor-based estimation of head-region temperature. In previous practice, the head-level thermal state was roughly inferred from single-point measurements, such as the A/C outlet temperature or an infrared-sensor reading, which inevitably deviates from the actual head-region temperature because of the vertical temperature stratification inside the cabin and the distance between the sensor location and the occupant head. In contrast, the proposed virtual sensor explicitly accounts for the multi-source information that determines the head-region thermal state (A/C operating state, solar load, ambient conditions, and the thermal memory of the cabin).
For completeness, the final fitted model with all coefficients is
T = β 0 + β 1 · T amb + β 2 · T outlet + β 3 · V air + β 4 · I solar + β 5 · V veh
The fitted coefficients are shown in Table 4, and their statistical significance is further introduced in Section 3.4.
Table 4. Fitted regression coefficients and statistical significance.

3.4. Statistical Significance of Regression Coefficients

The statistical significance of the MLR model and of each coefficient was assessed using hypothesis testing at the 0.05 significance level. The overall model was evaluated with the F-statistic; each coefficient was evaluated with a two-sided t-test of the null hypothesis H0: βi = 0 against H1: βi ≠ 0. Coefficients with p < 0.05 are interpreted as statistically significant contributors. In addition, a paired t-test was used to test whether the mean estimation error differs significantly from zero (RQ1), and a one-way ANOVA was used to test whether the mean error differs across the six operating conditions (RQ2). These parametric tests are appropriate given the large sample size and the approximately normally distributed residuals.

3.5. Computational Cost and Embedded Implementability

The trained MLR model is a closed-form linear mapping: each sample requires only N multiply–add operations (N = number of input features) and the model stores only N + 1 floating-point parameters, with no hidden layers, activation functions, or iterative solvers. The protection strategies add only a few comparisons per sample. This makes the sensor naturally suited to low-cost automotive microcontrollers and straightforward to integrate into existing A/C controller software.

3.6. Cross-Vehicle Validation

To assess the transferability of the proposed virtual sensor, the model was applied to another vehicle featuring a cabin structure similar to that of the present vehicle and equipped with an equivalent HVAC system, as shown in Figure 6. Cases 1–7 correspond to a stepwise increase in cabin temperature, achieved by progressively raising the HVAC set temperature. All data points presented in the figure were recorded after the cabin thermal environment had reached a quasi-steady state, ensuring that transient effects were excluded from the comparison.
Figure 6. Cross-vehicle estimation error at different A/C set temperatures.
From an estimation accuracy perspective, the cross-vehicle validation results confirm that the virtual sensor model maintains a steady-state estimation error within ±2 °C across the typical tested set points, which satisfies the accuracy requirement commonly specified for cabin thermal comfort control. From a thermal comfort standpoint, this level of accuracy is particularly meaningful given that the human thermal sensation threshold, defined as the minimum temperature difference perceptible to occupants, is typically on the order of 1–2 °C. Consequently, estimation errors below this threshold are unlikely to induce a detectable change in occupant thermal sensation or comfort perception. Comparable transferability was also reported by He et al. [30], whose zone-level soft-sensor model was trained and evaluated on two vehicles, supporting the feasibility of sensor-based cabin estimation across platforms of similar configuration.
From an engineering perspective, this result defines a clear adaptation path for platform deployment: once the cabin architecture and the HVAC box system are comparable, migrating the virtual sensor requires only a small-scale local calibration campaign rather than a full data-collection and retraining program, and the model structure, protection strategies, and ECU integration remain unchanged. This is consistent with the low adaptation cost expected in the software-defined vehicle development paradigm and distinguishes the proposed approach from simulation-based methods [31], which would require re-running high-fidelity cabin models for each new platform.

3.7. Limitations and Future Work

Several limitations should be noted. First, although the road-test data covered a wide range of conditions with ambient temperature above 20 °C, low-ambient-temperature conditions are under-represented, and the extrapolation reliability under such conditions remains to be verified. Second, relative humidity was not included because the available road-test data did not contain a reliable cabin humidity signal, and the coil-side (blower) airflow is not directly measurable on the CAN bus; the available vent outlet airflow rate was therefore used instead. Both quantities are expected to matter at the extremes of the comfort range. Third, the cross-vehicle validation was performed on a single vehicle with similar cabin architecture and equivalent A/C system, so generalization to substantially different cabin geometries or HVAC configurations remains to be verified. Fourth, the initial-temperature error under strong solar soak is an intrinsic limitation of the air-side information available at A/C activation, as discussed in Section 3.2.
Moving forward, the experimental scope will be extended to encompass more ambient-temperature conditions through on-road testing, and the model will be further transferred to additional vehicle platforms with different structural configurations. The overarching objective is to develop a highly generalizable virtual temperature sensor that demands only limited calibration effort when deployed on new platforms.

4. Conclusions

This study developed and validated a virtual cabin temperature sensor based on multiple linear regression for estimating the head-region temperature from routinely available on-board signals. The main conclusions are as follows:
(1)
The MLR model reproduces the three characteristic stages of the cabin thermal response—the initial high-temperature stage, rapid pull-down, and quasi-steady state—without visible lag. This is because its inputs (A/C outlet temperature, flow rate, ambient conditions, and vehicle speed) act as leading variables of the cabin energy balance.
(2)
The initial cabin temperature at A/C activation, inferred by jointly exploiting multi-dimensional information, was accurate within ±7 °C. Although this exceeds the ±2 °C mounting criterion in isolation, its impact on occupant thermal comfort during the pull-down phase is limited. The deviation was found to grow with the solar irradiance at activation, which reflects the thermal energy stored in the interior surfaces during parking and thus an intrinsic limitation of the information available at that moment.
(3)
Cross-vehicle validation of the virtual temperature sensor demonstrates that steady-state estimation accuracy remains within ±2 °C across typical tested set points, satisfying the thermal comfort requirement for cabin temperature control and supporting the model’s transferability across platforms.
(4)
Future work includes road testing at more ambient temperature set points and extending the model to additional vehicle platforms with different cabin architectures.

Author Contributions

Conceptualization, X.X. and G.W.; methodology, G.W.; software, G.W.; validation, G.W., Y.K. and J.Y.; formal analysis, G.W.; investigation, G.W.; resources, X.X.; data curation, G.W.; writing—original draft preparation, G.W.; writing—review and editing, X.X. and J.Y.; visualization, G.W.; supervision, X.X.; project administration, X.X.; funding acquisition, X.X. All authors have read and agreed to the published version of the manuscript.

Funding

This research was funded by the Major Science and Technology Project of Shanxi Province (Grant number 202301150401011), Key Research and Development Program Project of Shanxi Province (Grant No. 202402100101006) and Fundamental Research Funds for the Central Universities (QNXM20260011).

Data Availability Statement

The raw test data are not publicly available due to the confidentiality requirements of the automotive manufacturer.

Conflicts of Interest

The authors declare no conflict of interest.

References

  1. Yuan, R.; Fletcher, T.; Ahmedov, A.; Kalantzis, N.; Pezouvanis, A.; Dutta, N.; Watson, A.; Ebrahimi, K. Modelling and co-simulation of hybrid vehicles: A thermal management perspective. Appl. Therm. Eng. 2020, 180, 115883. [Google Scholar] [CrossRef] [Scilit]
  2. Lee, H.; Na, W.; Park, S. Development of virtual sensors for vehicle in-cabin temperature prediction using deep learning. Appl. Sci. 2026, 16, 300. [Google Scholar] [CrossRef] [Scilit]
  3. Alahmer, A.; Abdelhamid, M.; Omar, M. Design for thermal sensation and comfort states in vehicles cabins. Appl. Therm. Eng. 2012, 36, 126–140. [Google Scholar] [CrossRef] [Scilit]
  4. Warey, A.; Kaushik, S.; Khalighi, B.; Cruse, M.; Venkatesan, G. Data-driven prediction of vehicle cabin thermal comfort: Using machine learning and high-fidelity simulation results. Int. J. Heat Mass Transf. 2020, 148, 119083. [Google Scholar] [CrossRef] [Scilit]
  5. ANSI/ASHRAE Standard 55-2023; Thermal Environmental Conditions for Human Occupancy. American Society of Heating, Refrigerating and Air-Conditioning Engineers: Atlanta, GA, USA, 2023.
  6. Li, H.; Yu, D.; Braun, J.E. A review of virtual sensing technology and application in building systems. HVAC&R Res. 2011, 17, 619–645. [Google Scholar] [CrossRef] [Scilit]
  7. Gallareta, J.G.; González-Menorca, C.; Muñoz, P.; Vidak Vasic, M. Advancements in soft-sensor technologies for quality control in process manufacturing: A review. IEEE Sens. J. 2025, 25, 14575–14588. [Google Scholar] [CrossRef] [Scilit]
  8. Dvorak, D.; Krüger, V.; Wang, J. Innovative HMI and control concept for efficient thermal management of electric vehicles. IEEE Trans. Intell. Transp. Syst. 2022, 23, 21360–21377. [Google Scholar] [CrossRef] [Scilit]
  9. Zhao, J.; Xiong, S.; Luo, Z.; Ye, X.; Yakubu, A.U.; Xia, C.; Wen, M.; Yang, C. Occupant thermal comfort in electric vehicles: A CFD-thermal model-based investigation of key influencing factors. Appl. Therm. Eng. 2026, 293, 130489. [Google Scholar] [CrossRef] [Scilit]
  10. Mezrhab, A.; Bouzidi, M. Computation of thermal comfort inside a passenger car compartment. Appl. Therm. Eng. 2006, 26, 1697–1704. [Google Scholar] [CrossRef] [Scilit]
  11. Patonai, Z.; Kicsiny, R.; Géczi, G. Multiple linear regression based model for the indoor temperature of mobile containers. Heliyon 2022, 8, e12098. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  12. Pastre, G.G.; Balbinot, A.; Pedroni, R. Virtual temperature sensor using Support Vector Machines for autonomous uninterrupted automotive HVAC systems control. Int. J. Refrig. 2022, 144, 128–135. [Google Scholar] [CrossRef] [Scilit]
  13. Zong, S.; Wang, W.; Yin, X.; Song, Y.; Huang, L.; Cao, F.; Zhang, Z.; Wang, B. Evaluation of energy-saving potential and cabin thermal comfort for automobile CO2 heat pump. Appl. Therm. Eng. 2023, 228, 120339. [Google Scholar] [CrossRef] [Scilit]
  14. Ji, H.; Wang, L.; Du, Y.; Liu, Y.; Yang, Y.; Zhang, Z.; Xu, N. Cabin temperature prediction integrating meteorological information: SHAP interpretability analysis and application for automotive air conditioning. Appl. Sci. 2026, 16, 8600. [Google Scholar] [CrossRef] [Scilit]
  15. Zhang, L.; Qi, L.; Liu, J.; Wu, Q. Experimental study on dynamic thermal environment of passenger compartment based on thermal evaluation indexes. Sci. Prog. 2020, 103, 1–21. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  16. Hintea, D.; Brusey, J.; Gaura, E. A study on several machine learning methods for estimating cabin occupant equivalent temperature. In Proceedings of the ICINCO 2015—12th International Conference on Informatics in Control, Automation and Robotics; SciTePress: Setúbal, Portugal, 2015; Volume 1, pp. 629–634. [Google Scholar] [CrossRef] [Scilit]
  17. Warey, A.; Kaushik, S.; Khalighi, B.; Cruse, M.; Venkatesan, G. Prediction of vehicle cabin occupant thermal comfort using deep learning and computational fluid dynamics. SAE Int. J. Connect. Autom. Veh. 2021, 4, 269–278. [Google Scholar] [CrossRef] [Scilit]
  18. He, X.; Wang, Y.; Guo, F.; Zhang, X.; Duan, X.; Pei, J. Modeling for vehicle cabin temperature prediction based on graph spatial-temporal neural network in air conditioning system. Energy Build. 2022, 272, 112229. [Google Scholar] [CrossRef] [Scilit]
  19. Heidorn, C.; Hannig, F.; Riedelbauch, D.; Strohmeyer, C.; Teich, J. OpTC: Automatic compression and performance estimation for deployment of neural networks on AURIX TC3xx microcontrollers. In Communications in Computer and Information Science; Springer: Berlin/Heidelberg, Germany, 2026; Volume 2954, pp. 125–145. [Google Scholar] [CrossRef] [Scilit]
  20. Stümpfle, J.; Sigel, J.; Weiß, M.; Gül, B.C.; Dettinger, F.; Jazdi, N.; Hoßfeld, M.; Weyrich, M. The software-defined vehicle: A comprehensive study on current trends and challenges. IEEE Eng. Manag. Rev. 2025, 54, 89–107. [Google Scholar] [CrossRef] [Scilit]
  21. Kolachalama, S.; Malik, H. A NARX model to predict cabin air temperature to ameliorate HVAC functionality. Vehicles 2021, 3, 52. [Google Scholar] [CrossRef] [Scilit]
  22. Datta, S.P.; Das, P.K.; Mukhopadhyay, S. An optimized ANN for the performance prediction of an automotive air conditioning system. Sci. Technol. Built Environ. 2019, 25, 282–296. [Google Scholar] [CrossRef] [Scilit]
  23. Gavali, P.; Yadav, S.D. Predicting automotive air conditioning system performance through deep learning. FME Trans. 2024, 52, 340–350. [Google Scholar] [CrossRef] [Scilit]
  24. Hosoz, M.; Kaplan, K.; Aral, M.C.; Suhermanto, M.; Ertunc, H.M. Support vector regression modeling of the performance of an R1234yf automotive air conditioning system. Energy Procedia 2018, 153, 309–314. [Google Scholar] [CrossRef] [Scilit]
  25. Ding, Y.; Zito, R. Cabin heat transfer and air conditioning capacity. In Proceedings of the SAE 2001 World Congress; 2001-01-0284; SAE International: Warrendale, PA, USA, 2001. [Google Scholar] [CrossRef] [Scilit]
  26. Wen, Q.; Ismail, M.; Nasir, M.H.A. A LSTM-based model predictive control method for unlocking the potential of building energy flexibility in Malaysian commercial buildings. Sci. Rep. 2026, 16, 25217. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  27. Sivakumar, M.; Parthasarathy, S.; Padmapriya, T. Trade-off between training and testing ratio in machine learning for medical image processing. PeerJ Comput. Sci. 2024, 10, e2245. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  28. Xu, Y.; Goodacre, R. On splitting training and validation set: A comparative study of cross-validation, bootstrap and systematic sampling for estimating the generalization performance of supervised learning. J. Anal. Test. 2018, 2, 249–262. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  29. Zhou, X.; Lai, D.; Chen, Q. Thermal sensation model for driver in a passenger car with changing solar radiation. Build. Environ. 2020, 183, 107219. [Google Scholar] [CrossRef] [Scilit]
  30. He, X.; Zhang, X.; Zhang, R.; Liu, J.; Huang, X.; Pei, J.; Cai, J.; Guo, F.; Wang, Y. More intelligent and efficient thermal environment management: A hybrid model for occupant-centric thermal comfort monitoring in vehicle cabins. Build. Environ. 2023, 228, 109866. [Google Scholar] [CrossRef] [Scilit]
  31. Piovano, A.A.; Lorefice, L.M.; Scantamburlo, G. Modelling of car cabin thermal behaviour during cool down, using an advanced CFD/thermal approach. In Proceedings of the SAE 2016 World Congress and Exhibition; SAE Technical Paper 2016-01-0213; SAE International: Warrendale, PA, USA, 2016. [Google Scholar] [CrossRef] [Scilit]
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Article Metrics

Citations

Article Access Statistics

Article metric data becomes available approximately 24 hours after publication online.