| Algorithm 1: Working of Hybrid Model | |
| 1: | Mount a camera on the dashboard of the vehicle and attach a GSR sensor on the fingers of the driver. |
| 2: | Capture the image and collect the reading of the skin conductance of the driver. |
| 3: | Detect the face in the captured images and forward the images to step 4 for feature extraction. |
| 4: | Extract facial features like the eyes and mouth from the images using MTCNN and convert the analog reading of skin conductance into digital form. |
| 5: | Forward the above results to step 6 for classification. |
| 6: | Classify the current state of the driver and forward the result to next step. |
| 7: | Generate an alarm if the driver is drowsy or restart the procedure at step 2. |