LSULSUM.S. Defense · Saeid Chahardoli
LSUDepartment of
Computer Science

M.S. in Computer Science · Non-thesis defense

Transfer Learning with a Transformer Adapter

for Personalized Thermal Comfort Prediction Using Wearable Heart Rate and Environmental Sensors

Saeid ChahardoliOctober 31, 2026
44,124
ASHRAE records
596
Local observations
3
Sensed signals
15
Participants

Committee · Dr. Mahmood Jasim (Chair) · Dr. Arup Bhattacharya · Dr. David C. Shepherd

Roadmap

Seven parts, one question

01

Introduction

Buildings often miss thermal comfort

And the standard model predicts the average occupant, not the person in the room.

<20%

of buildings reach 80% thermally satisfied occupants

Huizenga et al., 2006

40%
up to 60% saved
HVAC energy, conventional control = 100%
60%

HVAC energy saved, at most, by personalized conditioning in simulations

Veselý & Zeiler, 2014

PMV
air temp.radiant temp.air speedhumidityclothingmetabolic rate
6

inputs for the standard comfort model, several hard to measure continuously

Fanger, 1970; ISO 7730; ASHRAE 55

Illustrative votes in one room under one condition

environment
wearable
comfort votes
ML model
cool
neutral
warm

Group model · PMV

One number for everyone in the room

People under the same conditions vote differently. Under cooling and cold exposure, PMV was about 30% accurate.

Chen et al., 2023; Wu et al., 2021

Personalized model

Learn from each occupant

Often more accurate than PMV, but it needs many sensors and many labeled votes in every new building.

Ngarambe et al., 2020; Aerts, 2019; Čulić et al., 2021

Can thermal comfort be predicted with acceptable accuracy from a reduced set of practical sensors and only a small amount of locally labeled data?

The research question

02

Full sensing · Step 1

When we measure almost everything

A controlled chamber, August 2024: which signals track how warm people feel?

25 sessions5 participantssetpoints 22–30 °C at 40% RH15 min in the chamber per session
7

environmental signals

Air temp.RHCO₂COPM2.5VOCRadon
3

wearable signals · Empatica E4

Heart rateEDASkin temp.
1

thermal camera · FLIR A70

Forehead temp.

Spearman ρ with the vote

Air temperature carried the strongest signal

ρ 0.77

RH was held near 40%. Air-quality signals moved with the setpoints, so they are confounded.

Wearables

Heart rate is weak on its own

ρ −0.17

Step 2 never uses it alone: it is read with temperature and humidity.

After the chamber study

Kermit the Frog and hooded Evil Kermit meme
MeGreat. Now every occupant just needs a wristband, a thermal camera pointed at their forehead and a shelf of air-quality monitors.
Also me…or the smartwatch they already wear and a temperature-humidity logger on the wall.

Which is exactly Step 2.

03

Field data · Step 2

Two occupied rooms, everyday conditions

An office and a classroom at LSU, November 2023 – January 2024, with three sensed signals.

15 students (9 + 6)Fitbit Sense 2 heart rate10 HOBO · 3 Airthings · 1 GrayWolf per room21–24 °C · everyday clothing · desk work
596

synchronized observations, each 12 steps of 5 minutes

15 · 2

participants · rooms

<5%

uncomfortably warm: the rare class

Step 1 · what the chamber had

LSU environmental chamber

11 signals · 5 participants · 22–30 °C

Step 2 · what an occupied building affords

An occupied office and classroom

3 signals · 15 participants · 596 labels

Heart rate by room

Heart rate differed

82.9bpmOffice
74.9bpmClassroom

p < 0.001

Comfort by room

Comfort did not

Office
≈
Classroom

p = 0.82

read together,
never alone

7-point vote · not comparable to the later 3-class results

Indoor Air 2024

Local-only models stayed weak

50%
0%100%
ANNRNN-LSTM7-point vote · just above 50%

The idea

Borrow from 44,124 labels

Few labels, few inputs, a rare warm class and noisy votes: borrow knowledge from ASHRAE, then adapt it to the local sensors.

Meanwhile, by the pond

A conversation about small data

After the closing scene of Oppenheimer (2023)
Dialogue rewritten for 596 labels

Oppenheimer · me

When I came to you with those calculations, we thought an ANN and an RNN could learn comfort from 596 labels alone.

Einstein · a Transformer pretrained on ASHRAE

I remember it well. What of it?

Oppenheimer · me

I believe they couldn't. On a 7-point vote, the best one only got past 50%.

Einstein · a Transformer pretrained on ASHRAE

Then don't start from zero. I have already read 44,124 surveys. Give me a small adapter for your three sensors.

Einstein, leaving

And remember: God does not play dice. You will need three seeds.

04

Methods

Transfer from ASHRAE to one building

Pretrain on 44,124 survey records, then adapt to six local features.

Fewer labels

596 local labels

1.4%

of the 44,124 labeled records in ASHRAE DB II.

The strategy

Borrow, then adapt

Pretrain on the public database; train only a small adapter locally.

Source and target

Do the two datasets speak the same language?

𝒟S: XS∈ℝ12×17, NS=44,124𝒟T: XT∈ℝ12×6, NT=596

Each cell asks: is this local feature the same signal as that ASHRAE feature? Shuffled, it is noise.

Sorted by match

Five of 17 features match

Air temperature, humidity and the two season terms directly; clothing only as a season-based estimate.

The gap

Heart rate has no partner

So the pretrained input layer cannot be reused. An adapter learns the mapping into the model's space.

The source domain

ASHRAE Global Thermal Comfort Database II

44,124 records after cleaning, naturally ventilated buildings excluded, 7-point votes mapped to three classes.

Against the imbalance

Class-weighted cross-entropy

Rarer classes weigh more: Cool 1.28 · Warm 1.06 · Neutral 0.78.

Meanwhile, in my head

Kermit the Frog and hooded Evil Kermit meme
MeASHRAE only measured the survey moment. I should go back and record the real hour before each of the 44,124 surveys.
Also me…or synthesize it, one small Gaussian step at a time.

It is on the limitations list. Promise.

① Static ASHRAE record
● jittered over the hour
② Build the hour backward from the survey
③ Add first differences · ④ stack
Δxt = xt − xt−1
X ∈ ℝN × 12 × 17

① A snapshot

A survey record has no history

ASHRAE measured one moment: the survey. Both backbones read sequences.

② Backward from the survey

Each earlier step: the next one plus a little noise

For the five transient variables; static features are held constant.

③ Differences

12 base + 5 change features

Δxt = xt − xt−1 for the transient variables.

④ Stack

One tensor for 44,124 records

X ∈ ℝN × 12 × 17. The history is synthesized, not measured.

Input sequencesB × 12 × 17
Linear projection17 → 256→
+ Learnable positional embedding12 × 256 · LayerNorm
Multi-head self-attention8 heads × 32 dims
Dropout · Add & Norm
Feed-forward256 → 512 → 256 · ReLU
Dropout · Add & Norm
×6
Last-token poolingstep 12 → 256
Dropout 0.1 · Linear 256 → 3 · Softmax
CoolNeutralWarm

T3C

A Transformer encoder for comfort

Six encoder layers, eight heads, and the last step (the survey moment) pooled into three classes.

≈3.2M parameters

Aminorroayaei, Chahardoli et al., ASHRAE 2026

Self-attention

A similarity matrix over time

A=softmax(QK⊤32)∈ℝ12×12

Each step's query is scored against every step's key; each row sums to 1.

Illustrative values · Vaswani et al., 2017

The Transformer, formally · ① embed

Z(0)=LN(XWe+be+P)

Each step's 17 features become a 256-wide vector, plus its position.

② ③ attend

Qh=ZWhQ,  Kh=ZWhK,  Vh=ZWhV,Ah=softmax(QhKh⊤32)

Eight heads, each with its own 12 × 12 attention matrix.

④ ⑤ ⑥ mix, add, normalize · ×6

Z~=LN(Z+Drop(MHSA(Z))),Z(ℓ)=LN(Z~+Drop(FFN(Z~)))

Heads are concatenated and projected; a feed-forward network widens to 512 and back.

⑦ classify

y^=softmax(Drop(z12(6))Wc+bc)

Keep step 12, the survey moment, and map it to three class probabilities.

Baseline

A bidirectional LSTM

Two stacked layers, 256 per direction; the last step goes to three classes.

Shared recipe

Same training for both backbones

Class-weighted cross-entropy, Adam, 55 epochs, batch 64, three seeds.

The BiLSTM, formally

Gates decide what to keep

ct=ft⊙ct−1+it⊙gtht=ot⊙tanh(ct)

f, i and o are sigmoid gates; g is the candidate memory.

Seeing the past

One hop versus eleven gates

z12=∑j=112A12,jvj

Attention reaches every step directly; in recurrence, step k passes 12 − k forget gates.

A structural difference, not a controlled test · illustrative values

Training and evaluation

Three equations

Loss · class-weighted cross-entropy

Rare classes cost more

ℒw=−∑iwyilogpθ(yi∣Xi)∑iwyiwc=NKNc

Optimizer · Adam

Smoothed steps that shrink

θt=θt−1−ηtm^tv^t+ϵη0=10−4

Metric · macro-F1

Every class counts equally

Macro-F1=1K∑c=1KF1cF1c=2PcRcPc+Rc
① Pretrained T3C

Stage 1 · pretrain

Start from the pretrained T3C

θ*=argminθℒw(θ;𝒟Strain)

Stage 2 · swap

Replace the input layer

An adapter, 6 → 128 → 256, takes the place of the 17 → 256 projection learned on ASHRAE.

Stage 2 · freeze

Train the adapter and the top

minω,ϕ6,Wc,bcℒ(·;𝒟Ttrain)

17.6%of 3.2 M parameters trained

Inside the model

One input, end to end

frozen weightstrainable weights
Step 0 / 12
Overview
—
05

Results

Do the backbones differ, before and after transfer?

First the source baseline on ASHRAE, then adaptation to the field data.

Source baseline · ASHRAE DB II hold-out

T3C Transformer
71.06%

± 0.12 · macro-F1 0.709

BiLSTM
71.07%

± 0.09 · macro-F1 0.708

Difference
0.01 pp

smaller than the seed-to-seed variation: a tie

Per seed

On ASHRAE, the backbones tie

Neither enters adaptation with an advantage.

Learning curves

T3C fits training more closely

Its validation accuracy stays near 71% while training pulls ahead.

Per class · ASHRAE

Similar recall, small trade-offs

Summed over three seeds: 26,475 hold-out predictions.

Recall

Within about one point

BiLSTM slightly better on Neutral; T3C slightly better on both discomfort classes.

After transfer · local validation

Transformer adapter
73.33%

± 1.36 · macro-F1 0.667

BiLSTM adapter
67.78%

± 2.39 · macro-F1 0.580

Difference
+5.55 pp

+0.087 macro-F1, with lower seed variability

Paired by seed · accuracy

The Transformer adapter leads in every seed

Closest pair: 71.67% vs 70.83%, one validation observation apart.

Paired by seed · macro-F1

Ahead on every seed here too

0.667 against 0.580 on average; 120 validation observations per run.

Per class · local

Better on both discomfort classes

Uncomfortably Warm: 12 of 18 (Transformer) vs 9 of 18 (BiLSTM) over three runs.

The rare class

One warm case moves recall 16.7 pp

Six warm cases per run, so the error bars are wide.

Learning behavior

Consistent with a steadier transfer

The Transformer adapter's validation ends close to training; the BiLSTM adapter's stays about 4–5 pp below its own training curve.

The research question, answered

Fewer variables, far less data, a similar accuracy level

Different datasets and class balance: a comparable level, not a head-to-head test. Majority-class baseline: 42.5% on ASHRAE, 50% locally.

06

Discussion

Same source accuracy, different transferability

Why the backbones diverged, and what the evidence does not show.

01 · Connection point

Where the adapter plugs in

T3C keeps all six pretrained encoder layers (five frozen); the BiLSTM loses one of its two recurrent layers and retrains the other.

02 · Stability

Every seed favors T3C

Lower spread across seeds: SD 1.36 vs 2.39 pp.

03 · Signal

Heart rate: not isolated

Same inputs for both adapters; no run without heart rate yet.

Interpretations, not controlled tests: with three seeds the gap is not statistically established (paired t-test, p ≈ 0.14).

Limitations

What the evidence does not show

Data

15 people, 2 rooms, one winter; no separate test set, so scores may be optimistic.

Source model

Synthesized history; survey inputs likely flatter the 71%.

Comparison

Architecture and capacity confounded; no from-scratch baseline; three seeds.

Step 1 chamber

5 participants; air quality co-varied with temperature.

Every graduate student, always

Kermit the Frog and hooded Evil Kermit meme
Me73.33% on validation. Time to write it up.
Also me…just one more seed.
07

Conclusion

What the evidence says

Four answers, each with its caveat.

Reduced sensing
73.33%

Feasible here: three sensed signals plus date-derived features (± 1.36; macro-F1 0.667).

Little local data
1.4%

Transfer was feasible with 596 local observations; a no-pretraining baseline on the same split is still to run.

Backbone
+5.55 pp

May matter for transfer: tied on ASHRAE, ahead in all three seeds after transfer. Capacity not yet separated.

Full sensing
ρ 0.77

Consistent with the design: in the chamber, air temperature tracked sensation most strongly.

Contributions

01 · Data
596

observations from 15 occupants in 2 rooms; air temperature, RH and wrist heart rate

02 · Source model
44,124

ASHRAE records turned into 1-hour sequences for T3C (with H. Aminorroayaei)

03 · Transfer
17.6%

of T3C's parameters trained locally: 6 local features into a partly frozen Transformer

04 · Evaluation
3

classes scored with macro-F1 and per-class recall, over 3 seeds

Future work

Three directions

Stronger evaluation

Leave-one-participant-out · a baseline without pretraining · more warm-discomfort samples · source models without survey inputs

Richer data

A full year · wrist skin temperature · more rooms and climates

Toward control

Step-wise predictions for HVAC feedback · physics priors with a learned residual · an LLM reasoning layer grounded in ASHRAE 55 (ongoing)

Publications

From this line of work

Chahardoli, S., Aminorroayaei, H., Jasim, M., & Bhattacharya, A. Transfer learning with a Transformer adapter for personalized thermal comfort prediction using wearable heart rate and environmental sensors. In preparation.
2026this defense
Aminorroayaei, H., Chahardoli, S., et al. Transformer-based thermal comfort classification using the ASHRAE Global Thermal Comfort Database II for smart building applications. ASHRAE Annual Conference 2026.
2026source model
Chahardoli, S., Lesan, M., & Bhattacharya, A. Optimizing and predicting thermal comfort and energy consumption in a controlled environmental chamber. ASHRAE Winter Conference 2025.
2025Step 1
Chahardoli, S., Zhu, Y., & Bhattacharya, A. Data-driven prediction of thermal comfort using IR imaging and wearable sensor data. CLIMA 2025, Springer, 530–540.
2026Step 1
Chahardoli, S., Lesan, M., & Bhattacharya, A. Probing the health and thermal comfort of the occupants with respect to indoor environmental quality in a shared office space. Indoor Air 2024, Honolulu (poster).
2024Step 2 data
Aminorroayaei, H., Chahardoli, S., Jasim, M., & Bhattacharya, A. From comfort prediction to action: an LLM reasoning layer for proactive HVAC control grounded in ASHRAE Standard 55. ASHRAE Winter Conference 2027 (in progress).
2027next step

Thank you

Questions?

To my committee, Dr. Mahmood Jasim, Dr. Arup Bhattacharya and Dr. David C. Shepherd; to my co-authors Hamidreza Aminorroayaei and Dr. Yimin Zhu; and to every participant who wore a sensor and answered a survey.

Saeid Chahardoli · M.S. in Computer Science · Louisiana State University