In recent years, IOT (Internet of Things) has been widely used in the field of smart homes. IOT technology is an important stage in the development process of the "digital information age", with a history of more than ten years of development. It is widely used in the communication industry, especially in the field of smart homes. The basic principle of DL is to establish a multi-layer neural learning network, which learns a large amount of data to obtain better features and improve the accuracy of classification and recognition. This article conducts research on the visual perception of smart homes based on DL (Deep Learning) and IOT. Utilizing an intelligent gateway to achieve the mutual conversion of the underlying ZigBee protocol and in ternet protocol, the cloud service platform is interacted with by the Netty middleware and gateway. The entire system is centered around the Internet cloud platform, connecting the underlying IOT devices and the mobile network platform of the application layer to achieve the construction of a smart home system. The device then collects the user's EEG signals in real-time and hands them over to a trained specific network for classification. Finally, based on the classification results, the serial device sends signals to the smart home terminal to achieve the final practical operation actions, such as turning on the lights and fans.