SYSTEM DIAGRAM
Control Flowchart
Python Implementation
Multi-thread Programming
Thread Communication
Threads need to communication and exchange data. For this end, we use Queue module. Which is especially useful in threaded programming when information must be exchanged safely between multiple threads.
We used 8 queues (could be reduced) in total, containing temperature & humidity information, thermostat stutus and data for machine learning Smart ControlBefore we implement Smart Control, we did simulation to test if our model designing and self-updating schema is reasonable, i.e. if our machine learning model gives rational prediction based on simulated training data, if our model is robust to outliers and will indeed update itself to adapt user signals. Our simulation result shows that our model gives stable prediction, and our model has changed quite significantly when use has changed the temperature to an extreme value.
Github For More Details |