Anesthesia consciousness monitoring is an important issue in basic neuroscience and clinical applications, which has received extensive attention. In this study, in order to find the indicators for monitoring the state of clinical anesthesia, a total of 14 patients undergoing general anesthesia were collected for 5 minutes resting electroencephalogram data under three states of consciousness (awake, moderate and deep anesthesia). Sparse partial least squares (SPLS) and traditional synchronized likelihood (SL) are used to calculate brain functional connectivity, and the three conscious states before and after anesthesia were distinguished by the connection features. The results show that through the whole brain network analysis, SPLS and traditional SL method have the same trend of network parameters in different states of consciousness, and the results obtained by SPLS method are statistically significant ( P<0.05). The connection features obtained by the SPLS method are classified by the support vector machine, and the classification accuracy is 87.93%, which is 7.69% higher than that of the connection feature classification obtained by SL method. The results of this study show that the functional connectivity based on the SPLS method has better performance in distinguishing three kinds of consciousness states, and may provides a new idea for clinical anesthesia monitoring.