Making houses more inclusive, safer, resilient and sustainable is an important requirement that must be achieved in every society. Gas leakage and fires in smart houses are serious issues that are causing people's death and properties losses. Currently, preventing and alerting systems are widely available. However, they are generally individual units having elementary functions without adequate capabilities of multi-sensing and interaction with the existing Machine-to-Machine (M2M) home network along with the outside networks such as Internet. Indeed, this communication paradigm will be clearly the most dominant in the near future for M2M home networks. In this paper, we are proposing an efficient system model to integrate the gas leakage and fire detection system into a centralized M2M home network using low cost devices. Then, through machine learning approach, we are involving a data mining method with the sensed information and detect the abnormal air state changes in hidden patterns for early prediction of the risk incidences. This work will help to enhance safety and protect property in smart houses.