Early warning method and system of building environmental security based on TinyML and CloudML technology