Based on the research problems of modern tunnel lighting control technology, a tunnel lighting intelligent control system based on ambient luminosity ratio is designed, which is characterized by “car close lights bright, car passing lights dark”, intelligent analysis of system failures, etc. The core technology is LED Tunnel light group brightness automatic adjustment, python data analysis, etc. The design of the core control unit of the system is based on the STC89C52 chip, which uses the numpy module in python to matrix the data in the database through the information collected by the sensor (the light intensity inside and outside the tunnel, the traffic condition of the vehicle in the tunnel, and the working condition of the tunnel lighting equipment, etc.) Level storage and use principal component analysis and other algorithms to perform a large number of calculations and processing on the obtained data. The controller generates a corresponding PWM signal to control the brightness of the LED tunnel light group to solve the problem of excessive lighting or insufficient brightness; through other controls The components exchange information, and the downstream controller performs calculation and processing according to the control instructions sent by the previous stage and the real-time signals detected by the sensors to realize the selective brightness and automatic brightness adjustment of the tunnel section lighting, and finally achieve intelligent control, energy saving and emission reduction the goal of. In addition, we use the seaborn library and matplotlib library in python to visually display the obtained tunnel lighting equipment working condition data, and send the results to the relevant road management department. This will play an important role in greatly improving the efficiency of activities such as equipment maintenance, collecting equipment work information, and optimizing the work structure of road management. To a certain extent, it is conducive to the implementation of specific work of relevant departments.