1 Introduction

5G cellular networks aim to provide 1,000-fold capacity increases without higher additional costs on today's networks. Since network energy varies significantly during the day, 5G networks must be capable of changing power usage (Navarro-Ortiz et al. 2020). Massive MIMO is required to be the primary applicant technology capable of handling extremely high capacity. In a massive MIMO system, each Base Station (BS) employs hundreds of antennas to support tens of user equipment (UEs) on the same time–frequency resource (Gampala et al. 2018).

Massive-MIMO relies on spatial multiplexing, which requires adequate channel information from the base station on both the up-link and down-link. Massive MIMO increases capability tenfold or more while also improving the radiated energy efficiency on a request by a factor of a hundred. Adjustment of Energy Efficiency (EE) plays a critical role in developing 5G massive MIMO systems.EE is estimated by the number of bits that can be realistically transmitted per joule as mentioned in Eq. (1), which has become a significant performance metric in wireless-communications (Salh, et al. 2019; Zappone and Jorswieck 2015).

$$EE = \frac{{{\text{Throughput }}\left[ {{\text{bit}}/{\text{s}}/{\text{cell}}} \right]}}{{{\text{Power Consumption}}\left[ {\frac{{\text{W}}}{{{\text{cell}}}}} \right]}}$$
(1)

where the service quality and associated costs are compared to power consumption, it is now a metric for the network's bit-delivery reliability. From another side, Spectral Efficiency (SE) can be defined as "The average number of bits of information, that can reliably have transmitted under consideration over the channel (Miao et al. 2016)" as indicated in Eq. (2).

$$SE = \frac{{Data\, rate\, or\, Throughput\left( {pbs} \right)}}{{channel Bandwidth\left( {Hz} \right)}}$$
(2)

Massive (MIMO) systems, which employ many receiving antennas at each base station, significantly increase SE in the cell network (Gupta and Jha 2015), potentially improving EE over single-antenna techniques. The EE is reliant not only on the SE but also on Circuit Power (CP) utilization. The usage of large numbers of BS antennas in massive-MIMO will significantly increase the power consumption of radio-frequency (RF) circuits and digital signal processing (DSP), which has an apparent effect on the EE (Rusek et al. 2013; Sarajli´c et al. 2017).

EE is one of the most important goals established for fifth-generation communications. As a result, many academics across the globe have been driving many studies on EE in communication systems. Various wireless methods have been proposed in the literature to enhance the EE of communication networks. When the SNR is low, Zhang et al. (Zhang et al. 2014) developed an improved adaptive power allocation method that provides optimal EE. Due to greater SNRs, their suggested method outperforms the conventional power allocation technique.

MIMO methods may, according to Gong et al. (Gong et al. 2017), lead to fair trade between EE and SE. However, the radio frequency connectivity issue was disregarded. Liu et al. (Björnson et al. 2015) proposed a resource distribution method for various users with varying power levels. Nevertheless, it leads to a great degree of difficulty. In addition, the authors of Ng et al. (2012, 2013) suggested a resource-allocation power-efficient method to resolve the energy consumption downlink problem in OFDM networks with a large number of base stations.

An adaptive massive MIMO optimization technique based on optimizing energy efficiency at full spectral efficiency is proposed in this paper. In order to achieve the optimum EE, the number of active antennas is adjusted based on the number of active-users in each network cell. Finally, Simulation results indicate that the proposed method has adjusted the number of active antennas based on changed active users in order to maximise EE of the 5G network Massive MIMO system.

The leftover of this paper is organized as follows: In Sect. 2, the Problem Formulation and system model are introduced. In Sect. 3, simulation analysis and results are considered. The conclusion of this paper is presented in Sect. 4.

2 System design

In this paper, EE and SE conditions and boundaries for data transmission are mainly being studied (Ibrahim Salah et al. 2021). The proposed system model consists of a single-cell (Wyner 1994; Xiao, et al. 2015) where one Massive-MIMO antenna BS simultaneously serving a set of User Equipment UE as shown in Fig. 1.

Fig. 1
figure 1

The massive-MIMO cell

2.1 Impact of multiple BS antennas and users

While using Maximum Ratio (MR) combining with perfect channel information at the BS (Miao et al. 2016), the uplink (UL) SE of each UE is calculated according to Eq. (3)

$$SE_{0} = \log_{2} \left( {1 + \frac{M - 1}{{\left( {K - 1} \right) + K\overline{\beta } + \frac{{\sigma^{2} }}{{p\beta_{0}^{0} }}}}} \right)$$
(3)

where, M is the number of antennas per each base station, K is the number of user equipment’s UEs, p defines the transmit power, σ2 means the noise power, and β signify the average gain of channel of the active UE and it is assumed to be constant for all UEs in cell j. The corresponding EE of cell 0 is defined (Björnson et al. 2015) according to Eq. (4)

$$EE_{0} = \frac{{BKSE_{0} }}{{K\left( {\frac{M - 1}{{2^{{SE_{0} }} - 1}} - K\overline{\beta } + 1 - K} \right)^{ - 1} \nu_{0} + CP_{0} }}$$
(4)

where, B denotes the bandwidth, and \(v_{0}\) is evaluated according to Eq. (5)

$$v_{0} = \frac{{\sigma^{2} }}{{\mu \beta_{0}^{0} }}$$
(5)

where, \(\mu\) is a factor accounts for the Effective Transmit Power (ETP), \(0 < \mu < 1\).

The Circuit Power (CP) model consumed by single UE is estimated according to:

$$CP_{0 } = P_{FIX} + MP_{BS }$$
(6)

where, PFIX is the fixed power and PBS refers to the power utilized by the circuit components (e.g., DACs, ADCs, Q mixers /filters, Local Oscillator, OFDM modulation/demodulation), and I in which they are needed for the operation of each BS antenna.

In order to calculate the additional Circuit Power (CP) consumed by all the active UEs (Miao et al. 2016), CP0 is estimated according to Eq. (7)

$$CP_{0 } = P_{FIX} + MP_{BS} + KP_{UE}$$
(7)

where, PUE, refers to the power required by all circuit components (e.g., I/Q mixer, DAC, filter, and so forth) of each UE’s single-antenna.

Derivative of Eq. (4), is obtained to get the Maximum Energy Efficiency (Max EE), (Björnson et al. 2015) yields the expression:

$$\begin{gathered} \max EE = \frac{d}{dSE0} EE_{0} \hfill \\ \max EE \approx \frac{eB}{{\left( {1 + e} \right)}}\frac{{\log_{2} \left( {MP_{FIX} } \right)}}{{P_{FIX} }} \hfill \\ \end{gathered}$$
(8)

Equation (8) proves that, the maximum EE enhances logarithmically with the number of antennas per base station (M) and has an almost linear decreasing function with increasing PFIX.

The block diagram of the proposed system is depicted in Fig. 2. The Maximum Energy Efficiency Estimator block is firstly supplied by the number of active users (Ibrahim Salah et al. 2021; Mabrook et al. 2019) served by the cell (Zhong et al. 2020) using the base station database or using spectrum sensing techniques (Mabrook et al. 2019, 2020). Then, Eq. (4) is used to estimate Max. EE values for different M antennas. Secondly, an Antenna selector-based Genetic optimizer is initiated to evaluate the optimum number of active antennas according to the Genetic algorithm optimization technique.

Fig. 2
figure 2

Block diagram of the proposed adaptive antenna selection system

Finally, the RF chain switch operates the pre-evaluated number of active antennas and switches off the unnecessary antennas to maximize EE.

2.2 EE optimization based on Genetic Algorithm Artificial intelligence

In order to get the optimum number of massive MIMO antennas corresponding to the active users served by 5G cell, many optimization techniques are proposed [ 21]. However, GA optimization technique is mostly enrolled in massive MIMO networks as (Mabrook et al. 2020). GA technique supports selection, crossover, and mutation processes. GA's main concepts are focused on Charles Darwin's theory of evolution.

These concepts are then applied to a computational algorithm to find solutions to optimization problems with a given objective function. (Chou and Cheng 2017). A chromosome is a solution to such an optimization problem. Whereas a Population is a set of chromosomes.

The algorithm starts with an initial population of abnormal chromosomes, which are then determined using the fitness function (objective function) to choose the best ones, known as Parents Élite children have genes that donate the highest fitness value and are chosen to participate in the next generation. The remaining chromosomes would then be subjected to crossover and mutation processes to produce the next generation.

Regarding this mechanism, the target of the proposed technique is to optimize the EE in M-MIMO and improve the performance of 5G networks, as shown in Fig. 3 and Table 1.Then, the mentioned steps are refined till the optimum value of EE (the fitness function) is obtained. The number of antennas in M-MIMO grid is adopted to achieve the optimum EE in each cell. Therefore, we can reformat the optimization problem from Eq. (8) as,

$$\begin{gathered} {\text{Optimize }}\left\{ {{\text{max EE }}\left( {{\text{M}},{\text{ K}}} \right)} \right\} \hfill \\ {\text{Subjected to }}\left( {\text{no of active users in the cell K}} \right) \hfill \\ \end{gathered}$$
(9)
Fig. 3
figure 3

Block diagram of the GA adaptive antenna selection system

GA is mainly used to get the optimization of its input objective functions. Therefore, in this work, EE and the number of users’ K are considered. The GA optimizers are used to optimize the consumed energy per cell and improve the M-MIMO system's EE in 5G networks.

3 Simulation and results

Using Matlab (ver. R 2019 a) with Simulink tools, numerically how the number of UEs (K), affects the (EE-SE) trade-off at different inter-cell interference (\({ }\beta^{\prime}\)) values (-3db, -15db) has been evaluated. In this scenario, EE is estimated at different numbers of users [5, 10, 30, and 40 users], the maximum EE is evaluated at each case at a constant number of active antennas where there are ten active antennas per array, according to parameters presented in Table 2.

Figure 3 shows the estimated EE values versus SE at various users [5, 10, 30, 40] while using ten active antennas. It is observed that the maximum EE value is obtained while serving ten users. Whereas for the proposed setup, the maximum value for (K = 10) is obtained where the sum spectral efficiency is a slowly increasing function of K in case of M = 10, while each additional UEs increases the PC by PUE = 0.5 W. Hence, the degradation in EE for a given sum SE increases as K grows up.

Table 1 GA-based proposed algorithm steps
Table 2 The parameters of simulation

The proposed system is considered to be adaptive by changing the number of active-antennas while the change of the number of active-users to maintain the EE at its maximum point (EE = MaxEE).

Table 3, shows the estimates of EE based on different number of active-antennas while serving various number of users. It is observed that the maximum, highlighted values in each column, obtained energy efficiency is increased by increasing the number of active users at increased number of active antenna.

Table 3 The EE values for various active antennas and varied user numbers

For example, the optimum number of active antenna for serving 5 users is 20 antennas in which the (MaxEE = 3.1262). Whereas, serving 10 UEs requires 30 antennas to get the (MaxEE = 3.8233). In addition, 30 UEs need 60 antennas to get (MaxEE = 4.8691) and 40UEs require about 70 active-antennas to achieve (MaxEE = 5.1015).

From the other side, the increased number of users increases the maximum EE value with more active antennas.

As shown in Fig. 4 The EE is increased by increasing the number of antennas for a constant number of users K = (5,10,30,40) until reach the maximum value of EE at a suitable number of antennas before decreasing again by increasing number of active antennas,where red points represents maximum EE for different values of inter cell interference (-3db,-15db). Hence, the EE is enhanced by increasing number of antennas at maximum SE.

Fig. 4
figure 4

The SE and EE relation for different number of K UEs at -3db, -15 db inter-cell Interference respectively

When K = 10, the EE is shown in Fig. 5. For various values of the antenna-UE ratio M/K. The EE is an M/K unimodal function. It rises up to M/K = 2 for the investigated configuration and then gradually reduces as M/K becomes larger. In conclusion, servicing numerous UEs while concurrently expanding the number of BS antennas (to compensate for increased interference) may enhance network EE only if the advantages and costs of installing additional RF hardware are appropriately balanced.

Fig. 5
figure 5

EE versus No. of antennas for different number of users

We looked at the EE of Massive MIMO networks in the previous section at a constant number of UEs and a variable number of BS antenna. Hence, we consider the EE from a new perspective: we build the network to achieve maximum EE, without high-priority antennas for different UEs. This is accomplished via the use of adaptive antennas and GA optimization.

According to the simulation of the GA massive MIMO scheme for an active user (K = 10), the optimal number of active antennas at the optimum EE is determined to be (M = 20) at the best possible performance. However, when k = 20, M is estimated to be (M = 40). Therefore, this results is applicable as the antenna-UE ratio M/K = 2 as indicated in Fig. 6.

Fig. 6
figure 6

Sum SE and EE for various M/K antenna-UE values when K = 10

Additionally, every change in the number of active users results in a change in the number of antennas (M) in the 5G cell with the maximum EE while varying the number of active users. Based on the discussed simulation results, it has been proven that applying GA optimization algorithm on the proposed M-MIMO system improves the performance of the EE. However, the number of antennas in the M-MIMO grid is optimized based on the number of active users in the cell, as opposed to traditional wireless networks. It has also been possible to enhance the overall efficiency and dependability of the 5G system.

4 Conclusion

This paper suggests a scheme to minimize energy consumption in the 5G wireless network scenario where very complex antenna techniques such as massive MIMO technology are used. The proposed system has an adaptive number of active antennas in response to the change of the actual users within a cell. The number of available antennas is selected based on the maximum energy efficiency (EEmax) obtained using GA at a given spectral efficiency. By dynamically adjusting the number of antennas to achieve maximum energy efficiency, simulation results showed that the proposed system successfully saves energy and improves EE.