The invention relates to a 
distracted driving behavior early warning method based on a cab near-
infrared camera. The method comprises the following steps of (1) 
face detection of a driver: acquiring the near-
infrared image data of a cab scene offline through the vehicle-mounted near-
infrared camera, marking the image data face area, and performing the offline training on an 
Adaboost classifier serving as a 
face detection classifier, and searching the face interested region by the 
face detection classifier; (2) dangerous driving behavior detection: based on the face interested region, adding abackground region, and performing the dangerous driving behavior detection by utilizing a deep 
convolution neural network; (3) dangerous driving behavior early warning: performing the multi-frame confirmation on the dangerous driving behaviors by means of the 
time sequence data, if the set continuous frame number threshold value reaches is reached, sending a visual early warning 
signal and / or an auditory early warning 
signal. By means of the method, the mental dangerous driving behaviors of the driver can be recognized and warned, so that a driver can be reminded to change the 
distraction behavior immediately, and the driver can keep the driving state in a normal standard, and the 
driving safety is improved.