Every year, hundreds of people die in traffic accidents all over the world. According to national statistics, human factors play a determining role in 90-95% of car accidents in Iran. Globally, 25% of accidents are caused by driver fatigue and around 60% of road accidents result in death or serious injury. In a National Transportation Research Institute (NTSRB) study of 107 randomly selected car crashes, fatigue accounted for 58% of all crashes. Drowsy driving is a major factor in serious road accidents that claim thousands of lives every year. The application of intelligent systems in automobiles has developed considerably in recent years. These systems use wireless sensor networks to monitor and transmit car and driver status. Smart cars that use software technology to control engine speed, steering, transmission, braking, etc. Management and control, the quality of management has been greatly improved. Ad hoc networks are the first systems to develop automatic navigation in cars. A notable weakness of these systems is that their response to changes in the environment is not in real time. This is especially important in driving, where time is a key factor in a driver's decision. On the other hand, another way to check driver fatigue is to monitor the physical condition and facial expression of the driver, which cannot be processed and transmitted accurately enough by wireless sensor networks. Driver fatigue is a major factor in a large number of road accidents. Recent statistics estimate that 1,200 deaths and 76,000 injuries are attributable to fatigue-related accidents each year.