Digital transformation played a vital role in smart cities because of its ability to process the different data to providing sustainability, connectivity, and mobility to data effectively. According to the diver operational productivity, preserving public safety government law enforcement integrated that face recognition is more important in smart cities. Traditional face recognition system fails to predict the exact facial features that leads to reduce the facial recognition accuracy. The false facial point detection process maximizes the computation complexity. Therefore, in this work, effective and artificial intelligence internet of things-based facial expression detection system is implemented to predict and match the face from the database. Initially, the facial images are captured from the internet of things sensor device, which is processed by applying the Perona-Malik diffusion algorithm. Then, face location is cropped from the image, geometric face shape model is created for predicting the exact face from the template face image. From the face shape, different facial features are extracted from various region using Fisher linear discriminant analysis. The derived features are trained with the help of convolution network and the face recognition process is done by using the adaboost large memory storage and retrieval neural network. The network successfully recognizes the face from the template, which is used to eliminate the safety related risk in smart cities.