Open Access
Sust. Build.
Volume 7, 2024
Article Number 1
Number of page(s) 8
Section Advanced Daylight Systems and Lighting Performance
Published online 22 April 2024

© Q. Yang and Z. Yue, Published by EDP Sciences, 2024

Licence Creative CommonsThis is an Open Access article distributed under the terms of the Creative Commons Attribution License (, which permits unrestricted use, distribution, and reproduction in any medium, provided the original work is properly cited.

1 Introduction

With the accelerated progressing in both economy and society, the issue of energy saving is becoming prominent [1]. There is a significant amount of energy waste in different fields. Therefore, how to save energy and how to maximize the energy utilization rate is always a challenge [2]. Due to the demand of housing for social development, the real estate industry continues to expand, and the quantity of high-rise buildings is experiencing an increase [3]. In the overall energy usage of society, a significant portion is attributed to building energy consumption [4], and lighting energy consumption is one of its main components [5]. Most of the current buildings employ manual lighting control, leading to unnecessary high light level and considerable energy inefficiency. If real-time adjustment of lamp light output is implemented based on task illuminance, energy could be effectively saved.

Energy-saving control of the lighting system has been widely studied. Sun et al. [6] put forward an indoor lighting control approach based on a framework to control lamps and window blinds. They demonstrated the intelligence of the method through computer simulation experiments. Futagami et al. [7] introduced a progressive lighting control approach using motion sensors, which can dim the light levels of the fixtures above the occupants in light of daylight availability for daylight harvesting. They evaluated the potential of that approach for reducing energy use while enhancing occupants' comfort. Farkas et al. [8] investigated the energy-saving control of outdoor lighting systems based on power line communication (PLC) technology to achieve energy savings and reduce operation and maintenance costs. Cesari et al. [9] analyzed the influence of the window size and glazing type in buildings on electric lighting use. They found that using broader windows with suitable glazing, along with a specific dimming strategy of the electric lighting, resulted in a significant reduction of approximately 17% in primary energy consumption.

In this paper, a lighting control approach based on an improved proportion, integration, and differentiation (PID) control algorithm was designed for the energy-efficient lighting of high-rise buildings. This approach integrates the traditional PID control algorithm with fuzzy logic to fuzzify the parameters and utilizes the whale optimization algorithm (WOA) for self-tuning of these parameters, thereby further improving the control performance. The effectiveness of the approach in energy saving was proven by experimental analysis. This paper provides a novel approach for lighting control in high-rise buildings and offers some theoretical support for implementing the PID control algorithm in other lighting systems.

2 Materials and methods

2.1 Analysis of lighting in high-rise building

In the current high-rise building, the traditional lighting control method, mostly manual control, is predominantly used. Under manual control, the lighting equipment is regularly switched on or off, and the brightness is kept consistent. In this case, users often forget to turn off the lights. In addition, in the case of good natural light conditions, it becomes impossible to adjust the brightness, resulting in a significant waste of energy. The most crucial aspect of energy-saving lighting control is to regulate light brightness based on real-time illuminance measured by the light sensor to minimize lighting energy consumption. Compared with traditional lighting control, energy-saving lighting control offers the following advantages.

  • Energy-saving: Lighting brightness is adjusted according to the changes in natural light to achieve energy savings.

  • Prolonging the lifespan of lamps: The lifespan of lamps is linked to the length of time they are illuminated. By implementing energy-saving lighting controls, the duration of lighting can be shortened, thereby extending the lifespan of the lamps.

At present, various algorithms are commonly used for controlling energy-saving lighting, including classical control algorithms (such as PID), reinforcement learning methods, neural network methods, and others [10]. This paper mainly studied the PID control algorithm. Taking a high-rise office building project in Jiangsu Province as an example, the building is 92 m meters tall, comprising 19 floors, including three podium floors and three underground floors, and its energy-saving lighting control was analyzed.

First of all, according to the “Standard for Lighting Design of Buildings” (GB50034-2013), the lighting standard requirements for high-rise office buildings are presented in Table 1.

According to the actual situation, the most prevalent room in this high-rise office building was the general office; therefore, this paper primarily focuses on studying the energy-saving lighting control algorithm for general offices. When selecting lamps, the commonly used lighting sources are listed in Table 2.

In Table 2, LED lamps exhibit significantly superior luminous efficacy compared to incandescent and fluorescent lamps, as well as high color temperature and color rendering index. Additionally, their service life is sufficient for practical applications. Therefore, this paper used LED lamps as the lighting source for the high-rise office building. The dimming methods of LED lamps are as follows.

  • Segmented switch dimming: LED lamps are divided into different groups. By turning on and off different groups of LED lamps, all on, partial on, and all off are realized.

  • Analog linear dimming: By adjusting the resistance of the adjustable resistor, the operating current of LED lamps is altered.

  • Pulse-width modulation (PWM) dimming: Dimming is achieved by adjusting the average output current.

PWM dimming offers the advantages of swift response and exceptional dimming accuracy [11]. Therefore, PWM dimming technology was used in this study, and the specific scheme is shown in Figure 1. The actual illuminance of the office under natural light was obtained using the illumination sensor and compared with the preset value. The LED dimming was achieved by utilizing the PID control algorithm to generate PWM dimming signals.

Table 1

Standard values for office building lighting.

Table 2

Comparison of incandescent, fluorescent, high-pressure sodium, and LED lamps

thumbnail Fig. 1

Energy saving lighting control scheme based on PWM dimming and PID control.

2.2 PID control algorithm

The PID algorithm is a very common algorithm [12] with simple principle and good control effect, which has been widely employed in the industrial field [13]. Assuming that the preset value of the system is r(t) and the actual output value of the controlled object is y(t). The deviation is:

The output of PID is:


where Kp stands for the proportionality coefficient, TI stands for the integration time constant, and TD represents the differential time constant.

The transfer function of PID is expressed as:


where KI stands for the integral coefficient, KIKI = Kp/TI, and KD denotes the differential coefficient, KD = Kp/TD.

When PID is applied to digital control signal, it first needs to be discretized to obtain digital PID. In this paper, incremental PID [14] was used, and the PID after discretization at time k is written as:


The incremental PID control algorithm can be obtained by u(k) − u(k − 1):


where e(k), e(k − 1), and e(k – 2) refer to the system deviation value at time k, k–1, and k – 2.

2.2.1 Fuzzy PID control algorithm

The PID control algorithm requires parameter reconfiguration for each tuning session, lacking automatic adjustment capability, which can impact the overall effectiveness of energy-saving lighting control. Therefore, expert experience is incorporated into fuzzy reasoning to achieve the adjustment of PID parameters, resulting in the fuzzy PID control algorithm [15].

Compared with PID, fuzzy PID fuzzifies all parameters in PID by fuzzy method and takes deviation e between the actual illuminance and the preset illuminance obtained by the lighting sensor and deviation change rate ec as the input. According to the standard value of illuminance in ordinary offices, the fuzzy domain of e is set as [–300,300], and its basic domain is [–3,3]; the fuzzy domain of ec is [–100,100], and its basic domain is [–3,3]. Seven fuzzy subsets are used to represent the input and output parameters of PID:

which are corresponding to negative large, negative medium, negative small, zero, positive small, positive medium, and positive large.

Given the extensive computational requirements, the input and output of PID use triangular membership function [16], which has good resolution and high sensitivity. Then, in terms of fuzzy rules, considering the stability and overshoot of the system, it is appropriate to increase Kp and Kd and decrease Ki in the initial stage, and then decrease Kp and Kd and increase Ki in the middle and late stages to obtain better steady-state accuracy. Finally, the fuzzy rules for energy-saving lighting control are shown in Table 3.

The output obtained after fuzzy reasoning needs to be defuzzified. In this paper, the centroid approach was used:


where μB(μj) is the membership degree when the input is μj.

After defuzzification, the actual parameters of PID can be obtained:


where Kpo, Kio, and Kdo represent a set of initial PID parameters determined by trial and error.

Table 3

Fuzzy rules of Kp, Ki, and Kd

2.2.2 Whale optimization algorithm

In fuzzy PID control, the proportionality factor and quantization factor are generally determined based on experience and may need to be readjusted when the operating conditions change. In order to achieve self-tuning of parameters, this paper introduced the WOA [17] to improve the fuzzy PID control algorithm and develop the WOA-fuzzy PID control algorithm.

First, the location of the whole population is initialized:


where ub and lb indicate the upper and lower boundaries of of the search space and r and indicates a random numerical value between 0 and 1.

WOA uses three steps to hunt prey, that is, to find the optimal solution, as follows.

(1) Hunting

Let the best whale position be X*(t) and the position of the other whales be Xi(t). Then, the other whales move closer to the best position, which can be written as:






where Xi(t + 1) stands for the search location of the ith whale at the t + 1-th time of iteration, D is the distance between the current position and the best position, A and C are random parameters, r is a random number in [0,1], t and T are the current and maximum count of iterations.

(2) Bubble net attack

Whales engage in bubble predation using including contraction encircling and spiral encircling. The probability of whales choosing either of these two methods is 50%. The details of the two methods are as follows:

① contraction encircling: similar to hunting, and ;

② spiral encircling: Xi (t + 1) = |X* (t) − Xi (t) |ebl ⋅ cos(2πl) + X* (t),

where b indicates logarithmic spiral shape constant and l is a random number in [–1,1].

(3) Random search

When individuals are far away from the best position, they will use random search to get closer to enhance the capability of global search. The formulas are written as:



where Xr and (t) is the current random individual position and D stands for the distance between the current random individual and the best position.

Figure 2 shows the process of obtaining the optimal fuzzy PID parameters using the WOA.

Figure 3 illustrates the flowchart of the WOA-fuzzy PID control algorithm.

  • The illuminance of the general office is preset to be 300 lx, and deviation e and deviation change rate ec are obtained by comparing it with the actual illuminance of the light sensor.

  • The WOA population is initialized, and the fitness is calculated: , where fITAE stands for integral time absolute error [18].

  • Whether the termination condition is satisfied is determined. If the condition for termination is satisfied, the optimal fuzzy PID parameters are output. If not, the next step is initiated.

  • The position of the whale is continuously updated using the WOA, and the fitness value is calculated until the optimal parameters are found.

  • The PWM dimming signal outputted by the PID controller is transmitted to the LED lamp to achieve dimming.

(3) Experiments and results

Firstly, the optimization performance of the WOA was analyzed. It was compared with the particle swarm optimization (PSO) and grey wolf optimization (GWO) algorithms using five unimodal benchmark functions. Table 4 shows these functions.

Each algorithm was repeated 30 times independently. The optimal values obtained by these algorithms are shown in Table 5.

It can be found from Table 5 that the WOA obtained the optimal values when optimizing f1 - f4, suggesting significantly better performance compared to the PSO and GWO algorithms. The results revealed that the WOA had better convergence precision and speed, as well as a robust optimization capacity. Therefore, the selection of the WOA for fuzzy PID parameter optimization was dependable.

To assess the usability of the proposed approach for energy-saving lighting control in general offices, PID, fuzzy PID, and WOA-fuzzy PID control models were developed using the Simulink model in MATLAB. The simulation results are illustrated in Figure 4.

Based on Figure 4, the performance of different models was compared in Table 6.

Combining Figure 4 and Table 6, it can be found that the PID model required the longest stabilization time, tending to stabilize after 12.37 s. In contrast, the fuzzy PID model had a stabilization time of 8.62 s, which was 30.32% shorter than that of the PID model. After optimization by the WOA, the WOA-fuzzy PID model achieved the shortest stabilization time of 6.77 s. This time was 45.27% shorter than that of the PID model and 21.35% shorter than the fuzzy PID model. These results suggested that the WOA-fuzzy PID model had a good response speed.

The maximum overshoot refers to the maximum deviation from the target value that a system experiences after reaching the target value, expressed as a percentage. The comparison of the maximum overshoots indicated that the maximum overshoot of the PID model was the highest, which was 13.87%, followed by the fuzzy PID model at 11.24%. The maximum overshoot of the WOA-fuzzy PID model was the smallest, at only 3.12%, which was 10.75% lower than that of the PID model and 8.12% lower than that of the fuzzy PID model. Through comparison, it can be found that under the same conditions, the WOA-fuzzy PID model had a shorter stabilization time and lower overshoot, suggesting a superior control effect.

To determine the interference effect of the model, an interference signal was added at t = 20 s, and the simulation results are presented in Figure 5.

From Figure 5, it can be found that after adding the interference signal, the system under PID control exhibited two oscillations, indicating poor anti-interference ability, while the systems under the fuzzy PID and WOA-fuzzy PID models showed only one oscillation. In comparison, the time required for the WOA fuzzy PID model to restore the steady state was shorter, indicating that its anti-interference ability was better than that of the fuzzy PID model. These results demonstrate the reliability of enhancing the fuzzy PID model by incorporating WOA.

Ten ordinary offices with similar natural light levels in the high-rise building under investigation were chosen for the experiment. Each office had the same area, and an equal number of LED lamps were installed in identical positions in these offices. Five of them were used as Group A for traditional lighting control, where the lamps were controlled by a switch, and the brightness was not adjustable. Additionally, five rooms were designated as Group B for energy-saving lighting control, utilizing the WOA-fuzzy PID algorithm. The test period lasted from 8:00 to 17:00 and ran continuously for one month. The results are displayed in Table 7.

Table 7 shows that under the traditional lighting control, the average indoor illuminance was consistently high at 500 lx, indicating excessive lighting, and the monthly electricity consumption reached 40.34 kWh. Under the WOA-fuzzy PID algorithm, the average indoor illuminance was 312 lx, meeting the requirements of GB50034-2013. The monthly electricity consumption was 22.71 kWh, which was 43.7% less than that of Group A. These results demonstrate the effectiveness of the WOA-fuzzy PID algorithm in energy-saving lighting control.

thumbnail Fig. 2

The flowchart of optimizing the fuzzy PID parameter by the WOA.

thumbnail Fig. 3

The flowchart of the energy-saving illumination control based on the WOA-fuzzy PID control algorithm.

Table 4

Test functions for algorithm optimization performance.

Table 5

Optimization results of the PSO algorithm, GWO algorithm, and WOA for five functions.

thumbnail Fig. 4

Simulation results of the PID, fuzzy PID, and WOA-fuzzy PID models for energy-saving lighting control

Table 6

Comparison of stabilization time and maximum overshoot between different models.

thumbnail Fig. 5

Anti-jamming simulation results of the PID, fuzzy PID, and WOA-fuzzy PID models.

Table 7

Comparison between the actual application results of the WOA-fuzzy PID algorithm and the traditional lighting control results.

4 Discussion and conclusion

The lighting of high-rise buildings consumes a significant amount of energy, making it an increasingly important focus in energy-saving research. The reliability of LED lighting in terms of energy efficiency has been demonstrated through the results of 52 pilot projects by Omran et al. [19]. Barkhordar's study [20] also confirms the significant role played by LED lights in energy-saving illumination. Therefore, this paper investigated the control of energy-saving lighting in high-rise buildings using LED lights.

The advancement of intelligent algorithms has enabled the possibility of achieving intelligent control of lighting. Liu et al. [21] utilized genetic algorithms to achieve optimal illumination compensation in dark environments, thereby realizing intelligent light compensation. Yi et al. [22] developed a Bluetooth-based smart lighting controller that enables switch control, brightness adjustment, and various lighting mode transformations through Bluetooth connectivity. Li et al. [23] proposed an intelligent method for illuminance measurement based on binocular stereoscopic vision, allowing for dynamic monitoring and control of illuminance. From current research, it is evident that intelligent lighting control has been extensively studied. However, there is limited discussion regarding the energy-saving effects of intelligent lighting control and even fewer studies focusing on high-rise buildings as a whole. Therefore, this paper specifically analyzed the energy-saving situation in ordinary offices located in high-rise buildings within the context of intelligent lighting control. By combining the fuzzy PID algorithm with the WOA, parameter optimization was achieved to further enhance the algorithm's control performance. The results showed that the WOA was a robust optimization algorithm that demonstrates consistent performance in fuzzy PID parameter optimization. The simulation findings indicated that, compared to the PID and fuzzy PID algorithms, the WOA-fuzzy PID algorithm demonstrated a faster response and smaller overshoot, proving its effectiveness in light control in terms of speed and accuracy. Lastly, the application results indicated that when using this algorithm for energy-saving lighting control, it reduced monthly electricity consumption by 43.7% while still meeting the preset illuminance requirements.

The experimental results demonstrate the effectiveness of the approach proposed in this paper for energy-saving lighting control in high-rise buildings. This approach can be implemented in real office spaces within high-rise buildings and can help reduce building energy consumption. However, there are some limitations in this study. For example, the experimental time was relatively short during practical application experiments, and there are also many other areas in high-rise buildings with different illuminance requirements. In future research, it is necessary to simulate more complex lighting scenarios in high-rise buildings to further validate the applicability of the approach proposed in this paper.


This research received no external funding.

Conflict of interest

The authors have nothing to disclose.

Data availability statement

The data that support the findings of this study are available from the corresponding author upon reasonable request.

Author contribution statement

Conceptualization, Qiong Yang; Methodology, Zixuan Yue; Software,Zixuan Yue; Validation, Qiong Yang; Formal Analysis, Zixuan Yue; Investigation, Qiong Yang; Resources, Zixuan Yue; Data Curation, Zixuan Yue; Writing-Original Draft Preparation, Qiong Yang; Writing-Review & Editing, Qiong Yang; Visualization, Zixuan Yue; Supervision, Qiong Yang; Project Administration, Qiong Yang; Funding Acquisition, Zixuan Yue.


  1. M. Tomita, K. Shimoyama, Y. Ehara, S. Yamada, T. Kokuryo, Rule extraction of home-energy devices in a smart home system, Trans. JSME 84, 1–9 (2018) [Google Scholar]
  2. J. García-Sanz-Calcedo, A. Al-Kassir, T.F. Yusaf, Economic and environmental impact of energy saving in healthcare buildings, Appl. Sci. 8, 1–13 (2018) [Google Scholar]
  3. B. Shirkhanghah, H.E. Kalehsar, The effect of soil-structure interaction on the along-wind response of high-rise buildings, ICE Proc. Struct. Build. 175, 1–38 (2022) [Google Scholar]
  4. S. Wenninger, C. Kaymakci, C. Wiethe, Explainable long-term building energy consumption prediction using QLattice, Appl. Energ. 308, 1–13 (2022) [Google Scholar]
  5. A. Kaminska, A. Ożadowicz, Lighting control including daylight and energy efficiency improvements analysis, Energies 11, 1–18 (2018) [Google Scholar]
  6. F. Sun, J. Yu, Indoor intelligent lighting control method based on distributed multi-agent framework, Int. J. Light Electron Opt. 213, 1–10 (2020) [Google Scholar]
  7. T. Futagami, T. Yano, C. Huang, T. Enohara, Experimental evaluation for daylight-linked gradation lighting control using image‐based motion sensors, IEEJ T. Electr. Electr. 15, 723–732 (2020) [Google Scholar]
  8. T.D. Farkas, T. Király, T. Pardy, T. Rang, G. Rang, Application of power line communication technology in street lighting control, Int. J. Design Nature Ecodyn. 13, 176–186 (2018) [Google Scholar]
  9. S. Cesari, P. Valdiserri, M. Coccagna, S. Mazzacane, The energy saving potential of wide windows in hospital patient rooms, optimizing the type of glazing and lighting control strategy under different climatic conditions, Energies 13, 1–24 (2020) [Google Scholar]
  10. S. Smys, A. Basar, H. Wang, Artificial neural network based power management for smart street lighting systems, J. Artif. Intell. Capsule Netw. 2, 42–52 (2020) [Google Scholar]
  11. G.Z. Abdelmessih, J. Marcos Alonso, M.A. Dalla Costa, Analysis, design, and experimentation of the active hybrid-series-parallel PWM dimming scheme for high-efficient off-line LED drivers, IET Power Electr. 12, 1697–1705 (2019) [Google Scholar]
  12. M. Li, W. Wu, X. Yang, Research on fuzzy fractional order pid control of liquid temperature in displacement digester, J. Korea Techn. Assoc. Pulp Paper Ind. 52, 15–30 (2020) [Google Scholar]
  13. V. Tharanidharan, R. Sakthivel, Y. Ren, S.M. Anthoni, Robust finite-time PID control for discrete-time large-scale interconnected uncertain system with discrete-delay, MATCOM 192, 370–383 (2022) [Google Scholar]
  14. T. Znang, P. Lu, Design of brushed motor position loop control system based on incremental PID, Proc. Int. Conf. Artif. Life Robot. 26, 667–670 (2021) [Google Scholar]
  15. Y. Arya, Automatic generation control of two-area electric power systems via optimal fuzzy PID with filter plus double integral controller, J. Franklin Instit. 355, 4583–4617 (2018) [Google Scholar]
  16. W. Zeng, Q. Jiang, J. Xie, T. Yu, A functional variable universe fuzzy PID controller for load following operation of PWR with the multiple model, Ann. Nucl. Energy 140, 1–6 (2020) [Google Scholar]
  17. M.S. Jalaee, A. Ghaseminejad, S.A. Jalaee, N.A. Zarin, R. Derakhshani, A novel hybrid artificial intelligence approach to the future of global coal consumption using whale optimization algorithm and adaptive neuro-fuzzy inference system, Energies 15, 1–14 (2022) [Google Scholar]
  18. D. Sain, Real-time implementation and performance analysis of robust 2-DOF PID controller for Maglev system using pole search technique, J. Ind. Inf. Integr. 15, 183–190 (2018) [Google Scholar]
  19. M.M. Omran, V. Aziz, K. Youssef, Energy efficient lighting system, in 2019 21st Int. Middle East Pow. Syst. Conf. (MEPCON) (2019) pp. 307–310 [Google Scholar]
  20. Z.A. Barkhordar, Evaluating the economy-wide effects of energy efficient lighting in the household sector of Iran, Energy Policy 127, 125–133 (2019) [Google Scholar]
  21. H. Liu, N. Zheng, Y. Wang, J. Li, Z. Zhang, Y. Li, J. Lan, Development of a face recognition system and its intelligent lighting compensation method for dark-field application, IEEE Trans. Instrum. Meas. 70, 1–16 (2021) [Google Scholar]
  22. S. Yi, J. Li, X. Ou, Q. Zhou, J. Li, Design of intelligent lighting controller based on bluetooth, in 2019 IEEE Int. Conf. on Service Operations and Logistics, and Informatics (SOLI) (2019), pp. 1–4 [Google Scholar]
  23. L. Li, J. Wang, S. Yang, H. Gong, Binocular stereo vision based illuminance measurement used for intelligent lighting with LED, Optik − Int. J. Light Electron. Opt. 237, 1–17 (2021) [Google Scholar]

Cite this article as: Q. Yang and Z. Yue: Research on energy-saving lighting control of high-rise building by the PID control algorithm. Sust. Build. 7, 1 (2024).

All Tables

Table 1

Standard values for office building lighting.

Table 2

Comparison of incandescent, fluorescent, high-pressure sodium, and LED lamps

Table 3

Fuzzy rules of Kp, Ki, and Kd

Table 4

Test functions for algorithm optimization performance.

Table 5

Optimization results of the PSO algorithm, GWO algorithm, and WOA for five functions.

Table 6

Comparison of stabilization time and maximum overshoot between different models.

Table 7

Comparison between the actual application results of the WOA-fuzzy PID algorithm and the traditional lighting control results.

All Figures

thumbnail Fig. 1

Energy saving lighting control scheme based on PWM dimming and PID control.

In the text
thumbnail Fig. 2

The flowchart of optimizing the fuzzy PID parameter by the WOA.

In the text
thumbnail Fig. 3

The flowchart of the energy-saving illumination control based on the WOA-fuzzy PID control algorithm.

In the text
thumbnail Fig. 4

Simulation results of the PID, fuzzy PID, and WOA-fuzzy PID models for energy-saving lighting control

In the text
thumbnail Fig. 5

Anti-jamming simulation results of the PID, fuzzy PID, and WOA-fuzzy PID models.

In the text

Current usage metrics show cumulative count of Article Views (full-text article views including HTML views, PDF and ePub downloads, according to the available data) and Abstracts Views on Vision4Press platform.

Data correspond to usage on the plateform after 2015. The current usage metrics is available 48-96 hours after online publication and is updated daily on week days.

Initial download of the metrics may take a while.