Intelligent indoor lighting control is essential for reducing building energy consumption and supporting sustainable building operations. However, conventional lighting systems often face challenges such as insufficient occupant perception accuracy and poor adaptability to dynamic indoor activities, which limit their control performance and energy-saving potential. To overcome these limitations, this study proposes an intelligent lighting control method that combines an improved YOLOv5 object detection model with a fuzzy logic-optimized Cerebellar Model Articulation Controller (CMAC) neural network. The enhanced YOLOv5 accurately perceives the number, distribution, and movement of occupants in real time, while the fuzzy-CMAC controller generates optimal dimming strategies based on the detected occupancy information, enabling precise and adaptive lighting regulation under varying indoor conditions. Experimental results demonstrate that the improved YOLOv5 achieves a detection accuracy of 94.28% with high recall, and the integrated control system attains over 98.20% detection accuracy and 98.15% lighting control precision under dynamic occupant scenarios, with 100% control accuracy under static conditions. Moreover, the proposed method improves energy-saving efficiency to 62.51% under dynamic conditions and 68.55% under static conditions, significantly surpassing conventional approaches. The experimental results show that the lighting control method proposed in this study achieves dual optimization of both accuracy and energy savings.