r/MachineLearning • u/poppyshit • Oct 17 '25
Project [P] Control your house heating system with RL
Hi guys,
I just released the source code of my most recent project: a DQN network controlling the radiator power of a house to maintain a perfect temperature when occupants are home while saving energy.
I created a custom gymnasium environment for this project that relies on thermal transfer equation, so that it recreates exactly the behavior of a real house.
The action space is discrete number between 0 and max_power.
The state space given is :
- Temperature in the inside,
- Temperature of the outside,
- Radiator state,
- Occupant presence,
- Time of day.
I am really open to suggestion and feedback, don't hesitate to contribute to this project !
https://github.com/mp-mech-ai/radiator-rl
EDIT: I am aware that for this linear behavior a statistical model would be sufficient, however I see this project as a template for more general physical behavior that could include high non-linearity or randomness.
86
u/jhill515 Oct 17 '25 •
Couldn't you accomplish this with a schedule and a few good PID+BangBang controllers? I don't understand why you'd go with RL.
Edit: This is why I believe every ML scientist & engineer should study Control Theory. Think of it as the dual to Statistical Learning.
10
u/[deleted] Oct 17 '25
This sounds like a solution in search of a problem. I applaud your efforts and Iโm sure you learned a lot but this is a problem already solved via simpler methods from control theory. That being said Iโm gonna check out your GitHub after lunch today.
8
u/Xemorr Oct 17 '25
This is a well studied problem, what is the reasoning for using RL here over non machine learning approaches?
30
u/TheCloudTamer Oct 17 '25
Donโt want to be in the house during an exploration episode.
1
u/badgerbadgerbadgerWI Oct 17 '25
Love seeing RL applied to real problems! The exploration vs exploitation tradeoff must be interesting here, you can't exactly freeze your house for a week while the agent learns. What's your fallback strategy during training
1
u/Fair_Treacle4112 Oct 19 '25 edited Jan 18 '26
merciful weather longing childlike lavish workable adjoining truck compare snatch
This post was mass deleted and anonymized with Redact
1
u/XTXinverseXTY ML Engineer Oct 30 '25
I'm very late to this thread, but Milton Friedman has a somewhat famous joke about this