Intelligent control of public lighting is nowadays one of the most challenging issues in smart city deployment. Lighting optimization entails a compromise between comfort, safety, and power consumption, affecting both vehicles and pedestrians. Smart solutions must estimate their characteristics to trade-off users' needs and energy requirements. This paper proposes an intelligent street lighting control system and the Receiver Operating Characteristic (ROC) curve method to evaluate the best number of street lamps to achieve a balance between public road user comfort and system power consumption. The control system is based on the detection of users, mainly pedestrians, using presence sensors. From the detection of a pedestrian by two or more consecutive street lamps it is possible to determine their speed. Knowing the pedestrian speed, allows the system to anticipate and adjust the light intensity of the remaining street lamps, and provide a comfortable view of the street. Using the ROC curve, we evaluate the control algorithm in terms of the number of previous street lamps used. We have tested the system and the method in a model of pedestrians walking down a street. The obtained results show that ROC analysis used to control street lighting allows measuring the whole control system's efficiency by providing a concrete number of previous street lamps.