Hands-On AIoT: Simple Linear Regression

In this tutorial, you are going to learn how to deploy a simple linear regression model. The model predicts the number of users of bike-sharing system. It is modeled in Python from scratch. Then, you are going to deploy this model as a TensorFlow.js application. You will also learn how to host this application on ESP32. You are going to deploy the model in C Arduino code, so the linear regression is  run on the ESP32. Finally, you are going to use sensor data as input to the model and plot predictions in real-time chart.

We are going to use several software technologies, such as Python, HTML, CSS (Bootstrap), and JavaScript (TensorFlow.js). On the hardware, we are going to use the WiFi of the ESP32, and DHT11 temperature and humidity sensor. At the end of this tutorial, you will be able to build the following system.

This tutorial teaches you how to build a simple linear regression model from the scratch. This process is quite useful, rather than you just read a little bit of the theory and then start using libraries. Because you will better understand how the algorithm works. Once you understand the algorithm, it is relatively easy to use any libraries. This tutorial is divided into several parts as follows. So, let’s get started.




If you benefit from this page, please make a small donation. I suggest $5, but you can choose the amount. We need your help to pay for web hosting and buy new components and equipment for new tutorials. Alternately, you can make a donation by sending me Bitcoin, at address 1JN3zEw8NqCr8bn4UQa3TfZXaz7UZnb5bH