1 Introduction

As the essential base for human beings and economic growth, energy, and its security are among the critical issues in the sustainable development agenda of any country. Energy security may mean different things to different people due to distinct energy issues in different places in the world and across various periods (Cherp & Jewell, 2014; Le et al., 2019; Winzer, 2012). Although there is no common interpretation for this construct, contemporary energy security studies widely accept that energy security is not limited to the availability or physical existence of energy resources and the affordability of domestic and imported energy sources (due to prices). Instead, this concept has been expanded to entail the accessibility to energy sources (due to transportation and geopolitical obstacles), the environmental impacts of energy consumption, and the sustainability of the energy system (Fang et al., 2018; Le & Nguyen, 2019; Le & Park, 2021). In this regard, the energy security issues mainly arise from not only the discrepancy between the consumption and production of resources but also its social and environmental aspects. While only less than 20 countries are exporting primary energy sources (oil and gas), the energy demand from the rest of the world continuously increases due to rapid population growth and the thirst for economic development. The recent political tensions and the COVID-19 crisis further put a strain on energy security across countries due to transportation disruption and energy market volatility. On the other hand, climate change, global warming, and other environmental issues, as consequences of overusing energy, remain the bottlenecks of sustainability development agenda among countries for decades (UNEP, 2019). Regardless of the debates on what energy security means, more attention should be given to determinants of energy security, with its most comprehensive conceptualization.

The internet technology and the unstoppable growth of digital networks such as e-business and e-government are shaping behaviors and processes in both social life and production sectors. The COVID-19 pandemic has been further pushing more world segments to go online and hence accelerating digitalization at an unprecedented rate (OECD, 2020). Digitalization itself represents a form of technological advances that helps enhance human capital and foster firms’ innovation (Basu & Fernald, 2007; Ceccobelli et al., 2012; Ferro, 2011; Haini, 2019). The literature on digitalization–energy security linkage could be tracked through numerous empirical studies about either the positive influence (Florida, 1996; Green et al., 2012; Hauknes & Knell, 2009; Luzzini et al., 2015; Verspagen, 1997) or the rebound effects (Font Vivanco et al., 2014; Huberty et al., 2011; Sorrell, 2007) of technological innovation on energy consumption, energy efficiency, and environmental quality (Basu & Fernald, 2007; Ceccobelli et al., 2012; Ferro, 2011; Haini, 2019).

The literature provides inconclusive theoretical arguments about the direct linkage between digital technologies and different aspects of energy security. The study of Moyer and Hughes (2012) is among the first attempts to explain the association between digitalization and energy security. Based on the International Futures (IFs) integrated assessment system, Moyer and Hughes (2012) propose that the deployment of information and communications technologies can exert downward pressure on the energy system by improving productivity, negating energy intensity, and reducing renewable energy costs. From a broader perspective, Lange et al. (2020) assert that there are both positive and negative forces in the influence of Information and Communication Technology (ICT) on energy use among households and production sectors. In general, the adverse impact of digitalization on energy consumption would prevail. Nevertheless, this argument is merely based on an analytical model without the support of empirical evidence. In contrast, Loock (2020) argues that digital technologies facilitate business model innovation and hence tackle the bottlenecks of the sustainable energy transition. This implies the contribution of digitalization to the “sustainability” aspect of energy security. Another theoretical explanation about the linkage between digitalization and energy security is provided by El Bassam (2021). Specifically, by converting information into digital, the digital transformation in the energy market itself helps the energy suppliers better manage and balance the demand–supply grid.

Recent studies attempt to revisit the theoretical arguments about the digitalization–energy security linkage with empirical data. Using a substantial sample of Chinese manufacturing enterprises, Wen et al. (2021) examine the impact of digitalization on those firms' environmental performance proxied by the information and communications technology penetration in the industry. The study finds that industrial digitalization alleviates the ecological impacts of their production activities by increasing the introduction and integration of pipe-end pollutant treatment facilities and cleaner production technologies. Similarly, Ren et al. (2021) employ Chinese regional data to examine the environmental impact of internet technology. The finding indicates that although internet development positively affects energy consumption through economic growth, it also helps reduce energy consumption intensity through economic growth and the acceleration of R&D investment, human capital, financial development, and industrial structural upgrading. Ha (2022a) is another study that contributes directly to the literature about the nexus between digitalization in the business and governmental sectors and energy security. However, this paper is still limited since it only considers digitalization in the business and public sectors, while other dimensions, such as the prevalence of social digitalization, the level of human capital skills related to digitalization, are critical to explaining the sustainability of the energy system. Without considering these dimensions, this paper is limited to providing a comprehensive effect of digitalization on energy security. Furthermore, our article also highlights the importance of the security of the energy system in promoting the digital transformation process in the European region.

This study argues that digitalization may go beyond either internet development or information communication technologies. The integration of “digital” things in business models, governance, and human capital may also be crucial aspects of digitalization (Ha & Thanh, 2022; Myovella et al., 2020). Likewise, environmental impacts, energy consumption, and energy intensity or efficiency are among various dimensions of energy security, based on its contemporary conceptualization (Azzuni & Breyer, 2018; Le & Park, 2021). Since the literature provides contradicting theoretical arguments and empirical evidence about the impact of either internet development or information communications technology on different dimensions of energy security, it is necessary to examine the digitalization–energy security nexus with more comprehensive measures of the two constructs. In addition, previous studies mostly ignore the possible impact of energy security on digitalization. Specifically, the level of digitalization in a nation could be influenced by government policies, infrastructure, and human capital (Dasgupta et al., 1999; Khalifa, 2016; Wang & Feeney, 2014). Meanwhile, some dimensions of energy security, such as non-fossil energy consumption, primary energy consumption per capita, and renewable energy consumption, are found to influence the economic conditions of an economy (Le & Nguyen, 2019). Additionally, the environmental pressures from energy consumption also influence the decisions of businesses and governments to go digital (Liu et al., 2019; Renner et al., 2020).

Our research contributes to the existing knowledge about the relationship between digitalization and the security of the energy system in several ways. First, this study provides an updated answer for the impact of digitalization on energy security by employing more comprehensive measures and databases. This paper employs three measures to capture three aspects of energy security, including acceptability, develop-ability, and sustainability. The digital transition process is reflected by five indicators, including a level of digital connectivity, human capital with basic and advantaged digital skills, internet usage, digital business integration, and online public services. This paper applies diverse econometric techniques to a sample of 27 countries of the European Union (EU) from 2015 to 2019. Second, our contemporary methodologies also contribute more reliable findings of the digitalization–energy security nexus. Using a test on cross-section dependence, we confirm its existence in our database and then apply the panel-corrected standard errors (PCSE) model to investigate this relationship. To further check on our findings, the feasible generalized least square estimates (FGLS) model is employed to consider the presence of heteroscedasticity and fixed effects. All explanatory variables are lagged by one period to resolve an endogeneity issue. Furthermore, the dynamic fixed effect (DFE) estimator for the autoregressive distributed lag (ARDL) method is applied to measure short- and long-run effects. As contended by Canh and Thanh (2020), the DFE-ARDL method can address the time- and country-fixed effects. Third, our study represents the first attempt to provide insights into the interactions between digitalization and ES by additionally examining the impact of ES on digitalization.

The rest of the paper is structured as follows: Section 2 reviews relevant literature and develops hypotheses, while Sect. 3, in turn, introduces the model, data, and estimation method. Section 4 displays empirical results and discussion. We close the paper by providing conclusions in Sect. 5.

2 Literature review and hypothesis development

2.1 The concept of energy security

Although the term “energy security” has been repeatedly mentioned in many academic journals, reports, and press releases, there is a lack of consensus on what it means and how to measure it. Under the general definition of security that is “low probability of damage to acquired values” (Baldwin, 1997) and its three dimensions, including “Security for whom?”; “Security for which values?,” and “From what threats?” (Wolfers, 1952), it is observed that energy security may be perceived differently in different contexts and by different people (Esfahani et al., 2021). Specifically, the distinct energy security problems in different places would define the subject of energy security (Cherp & Jewell, 2014). In addition, from different perspectives of various stakeholders and in different periods, the threat of energy security also varies (Kruyt et al., 2009; Le et al., 2019). Based on the short-term approach, energy security is regarded as “an interrupted availability of energy sources at an affordable price” or the ability of the energy system to adapt to national energy needs (Kanellakis et al., 2013; Sovacool, 2011). This is also known as the traditional energy security concept that focuses on supply security threats arising from sudden disruption, disintegration, and price volatility (Stares, 2000). Meanwhile, long-term approaches concern the security of supply and other environmental and social issues arising from the energy supply and consumption (Kruyt et al., 2009; Simpson, 2007). In this regard, the expanded definition of energy security, also regarded as the non-traditional energy security concept, gives new concerns about the influence of energy policy on human well-being and the environmental ecosystem at large. Correspondingly, climate change, biodiversity loss, pollution, and erosion are among the new subjects of energy security. The definition of energy security as proposed by Asia Pacific Energy Research Centre (APERC) is deemed to be the most comprehensive since it encompasses both the traditional and non-traditional approaches. Specifically, energy security is conceptualized as “the ability of an economy to guarantee the availability of the supply of energy resources in a sustainable and timely manner with the energy price being at a level that will not adversely affect the economic performance of the economy” (APERC, 2007).

Due to the expansion of the energy security concept, the measurement of energy security also evolves accordingly. The four aspects of energy security (availability, affordability, accessibility, and acceptability) are frequently used as the primary dimensions of energy security in recent studies (Azzuni & Breyer, 2018; Le & Park, 2021). While the “availability” and “affordability” are rooted in the traditional approach of energy security (IEA, 2014), the “accessibility” and “acceptability” aspects reflect the newly added subjects of this construct. In more detail, availability (physical availability of various energy sources) and affordability (the affordability of domestic and imported energy sources in terms of prices) ensure that the energy demand of a specific country is timely met. On the other hand, accessibility, or the ability to access those energy sources in terms of transportation and geopolitical aspects, reflects more about the social aspect of energy security. The acceptability is embedded in sustainable energy consumption, which is centered on the long-run environmental impact of energy consumption. The four-A framework has been recently expanded to encompass the link between energy structure and carbon emissions from primary energy sources (develop-ability) and the sustainable development of the energy system through renewable energy consumption (sustainability) (Fang et al., 2018; Le & Nguyen, 2019). Among those factors, the availability, affordability, and accessibility dimensions of ES depend largely on the primary energy endowments, economic power, and geopolitical issues that may be time-consuming and difficult to change. Meanwhile, the acceptability and develop-ability aspects could be monitored more easily through technological development and behavioral changes among individuals and firms.

In an attempt to give insights into the relationship between digitalization, as a result of technology changes, and energy security, this study gives a primary focus on the acceptability, sustainability, and develop-ability dimensions. Specifically, the energy security is measured by the consumption of either non-fossil or fossil energy consumption, the emission of carbon dioxide, energy intensity (energy consumption per a produced product), emission intensity (carbon dioxide emission per energy unit), the consumption of renewable energy in total and per capita. The non-fossil energy may contain some sources of energy like hydroelectric power and nuclear power that indirectly cause environmental degradation (Lee et al., 2016). Hence, based on the US Energy Information Administration (US.EIA) reports, we focus on renewable energy such as biomass, geothermal, solar, and wind.

Digitalization is embedded in not only economic and social interactions but also production and management practices. The multifaceted impact of digitalization on energy security is, therefore, complicated with both positive and negative forces. The amount and type of energy consumption are closely associated with carbon dioxide emissions, while energy efficiency would affect the intensity of energy use and emissions. Therefore, this study examines the linkage between digitalization and energy security through its impacts on primary factors including energy efficiency, green consumption, and clean production as well as the rebound effects of technology on energy use and the environment.

2.2 Digitalization and energy efficiency

As a type of technological advance, digitalization may foster technological progress, and this effect could be explained by its enhancing impact on either human capital or financial development. First, the invention and widespread use of the Internet have promoted information's explosive growth. Given more efficient searching and low-cost access under the worldwide webs, people could obtain a substantial amount and a wide diversity of knowledge faster and more comprehensively. In addition to information acquisition, the rapid increase of cloud computing and big data and various communication channels also enable more effective and cheaper information transmission and integration among individuals and specialists regardless of time and space boundaries (Spiezia, 2011). That information, in turn, supports workers to improve their knowledge, conduct more R&D activities, and continuously acquire new professional skills. Consequently, human capital is enhanced and positively contributes to technological innovation activities (Ferro, 2011; Haini, 2019). This effect is not limited to a nation. Instead, the rapid information dissemination and exchange and employment migration under the internet platform facilitate cross-border knowledge and technological spillovers. This further maximizes the value of human capital and speeds up the introduction and diffusion of technology across various sectors at the international level during the technological progress (Basu & Fernald, 2007; Ceccobelli et al., 2012). Second, the technological progress and upgrading of the industrial structure are further supported by strong financial development in a digital world. The internet platform not only allows the emergence of various financial models and more credit channels but also facilitates the matching and transactions between the fund suppliers and firms across borders and time boundaries (Salahuddin & Alam, 2016; Salahuddin & Gow, 2016). The expansion of funding and credit sources, in turn, provides financial support to implement R&D activities, especially in green innovation, and comply with environmental regulations (Faisal et al., 2018; Owusu-Agyei et al., 2020; Salahuddin et al., 2015; Tamazian et al., 2009).

When the intelligence level of production equipment is increased, each production stage and the coordination between them are more efficient. In addition, technological advancement allows the replacement of low-energy equipment with high-energy ones (Airehrour et al., 2016) as well as the substitutes of technology-intensive products (with high technical content) for traditional resource-intensive products (Li et al., 2019). When the optimization of green production and green management practices in terms of new product development, productivity, and market expansion is realized, the internet technology facilitates the spillover effects spreading within the information technology production department and to other information technology use departments, and from digital firms to non-digital ones (Dunnewijk & Hultén, 2007). Moreover, since there is a significant gap in productivity between technology-intensive industrial industries and traditional resource-intensive ones, there would be a shift in resource allocation in which new resources are allocated to the more efficient technology-intensive sectors. This leads to upgrading the industrial structure with a higher share of technology-intensive industrial industries and the depletion of high-polluting and energy-intensive industries (Qin et al., 2017). Under digitalization, this process could be accelerated due to two forces, including the sharing of innovative knowledge among firms with lower costs and the stronger competition mechanism (Vassileva et al., 2012). Therefore, upgrading of industrial structure helps increase overall energy efficiency while reducing energy consumption. The positive impact of digitalization on the efficiency of energy is affirmed in much empirical research, including Collard et al. (2005) for French service sectors, Bernstein and Madlener (2010) and Ishida (2015) for European manufacturing sectors, Takase and Murota (2004) for Japan, and Ren et al. (2021) for China.

2.3 Digitalization and green production and consumption

Digitalization could encourage the consumption of clean and renewable energy among both individuals and firms. From the demand side, this could be explained by the contribution of digitalization to economic growth and globalization. First, digitalization, especially the evolution of e-commerce and e-business, fosters both national and international trade by reducing transaction costs and blurring the boundaries in terms of time, space, and between trade in goods and trade in services (Ahmedov, 2020; OECD, 2019; Shyla, 2020). On the other hand, the adoption of the e-government model helps improve institutional quality by reducing corruption and enhancing the effectiveness of governance (Adam, 2020; Ali et al., 2022). The contribution of digitalization to human capital, structural upgrading, trade, and institutional quality would spur economic growth and enhance national income. Given the well-developed economy and high income, a highly digitalized nation may be characterized by the rise of the demand for well-being and environmental responsibility among the public (Galeotti et al., 2008; Lee & Lee, 2009; Martínez-Zarzoso & Maruotti, 2011). Individuals would demand more environmentally friendly products, which consume less fossil fuel during their production and usage. On the other hand, the firms themselves switch their production toward environmentally friendly products and green production to sustain competitiveness, adapt to more demanding environmental regulation from the authorities, and gain better social acceptance (European Commission, 1999; International Trade Centre, 2001; Kennett & Steenblik, 2005; Sinclair-Desgagné, 2008). The application of environmental-related technologies, in turn, accelerates the replacement of “green” capital goods (with low environmental impacts) for “brown” capital goods (Kemp-Benedict, 2014). This leads to more consumption of non-fossil fuel, especially renewable energy uses among the production sectors. Nowadays, digitalization transforms societies, markets, and economies toward more globalization by reducing spatial transaction costs and eliminating information asymmetry. This may cause trade-induced technology innovation and further foster green production and consumption through R&D spillover effects (Ali et al., 2021). Specifically, under the economic and financial globalization, international trade flows of eco-products and FDI flows could accelerate the diffusion of green technologies for lower fossil fuel consumption throughout the supply chain (Bakhsh et al., 2017; Berkhout & Hertin, 2001; Bi et al., 2015; Franco & Marin, 2015; Haider Zaidi et al., 2019).

From the supply side, Moyer and Hughes (2012) argue that ICT encourages green consumption and production by reducing renewable energy costs. Specifically, the application of “smart grids,” a type of energy infrastructure for continuous monitoring and effective matching of the energy supply and demand, helps improve transmission efficiency, deal with intermittency, and reduce the costs of renewable energy production and consumption. This infrastructure also allows individuals and firms to make transactions to the grid. Similarly, Verma et al. (2020) contend that the achievements of a digital world could lead to the rapid growth of the share of renewable energy in the overall energy consumption by facilitating efficient production, distribution, and integration of renewable energy into the existing centralized energy system. More specifically, the advanced machine learning algorithms and other AI technologies could drive the decentralization of the energy system, improve weather forecasts, provide better analytics of consumption trends and the performance of technologies, foster effective engagement of members across the value chain, and allow the active participation of pro-consumers (who act as both energy consumer and producer of renewable energy).

Furthermore, the technical efficiency, cost efficiency, and the general growth of the bioenergy industry are backed by labor input, capital input, innovation systems, the connections of markets, and enabling environment (Abdulwakil et al., 2020; Alsaleh & Abdul-Rahim, 2018; Alsaleh et al., 2017, 2020a, 2020b). Digitalization, in the forms of either digital connectivity, digital business, digital government, or digital skills, could foster the development and penetration of bioenergy products in various ways. Specifically, such a relationship could be explained by its impacts on enhancing human capital (Spiezia, 2011), facilitating innovation activities and R&D spillover effects (Ceccobelli et al., 2012; Ferro, 2011; Haini, 2019), matching investors and traders across borders (Ahmedov, 2020; Salahuddin & Alam, 2016; Salahuddin & Gow, 2016), and improving institutional quality (Adam, 2020; Ali et al., 2022). Not only fostering the bioenergy industry, but digitalization would also create the transformation of business models where more environmentally related technologies are applied. This tackles the bottlenecks of the sustainable energy transition for more green production (Loock, 2020). Empirically, the information and communications technology penetration in Chinese manufacturing industries is found to induce more introduction and integration of pipe-end pollutant treatment facilities and cleaner production technologies, which in turn mitigate their environmental impacts (Wen et al., 2021).

2.4 Digitalization and the “rebound effects”

Due to the complex interrelationships among technological, social, and economic factors, digitalization with its multifaceted effects could also adversely affect the environment in several ways. The “rebound effects” of digitalization could be witnessed from its direct environmental impact of indirect influence on economic growth, trade, financial development, energy efficiency, and green innovation.

First, ICT production, usage, and disposal could directly raise energy demand and worsen environmental deterioration (Lange et al., 2020). Second, the development of the internet economy with more exchange transactions and its spillover effects to other digital technology use sectors may stimulate more production activities (Salahuddin & Gow, 2016). Hence, the increase of economic output and trade-facilitated economic growth may be attained at the expense of environmental costs (Ali et al., 2021; Lange et al., 2020). Third, while digitalization facilitates market transactions, it also increases the consumption of goods and services among individuals and households due to lower transaction costs and the rise of income (Blum et al., 2018; Jalas, 2009). The higher consumption among individuals puts more burdens on the environment. Fourth, improved energy efficiency lowers the market price of energy use and some resources and raises the demand for them among manufacturers and individuals (Yang & Li, 2017). Moreover, the consumption of goods, services, energy, and resources is even further backed up by the higher availability of funds and credits enabled by the digital platform. This would end up with overall higher total energy consumption. Fifth, the rebound effect could originate right from creating and applying green technologies. Specifically, the making and application of environmental-related technologies require the inputs of not only “green” capital goods but also “brown” capital goods (Jenkins et al., 2011; Kemp-Benedict, 2014). Moreover, the instalment and usage of green technologies may require the construction of new infrastructure systems (Font Vivanco et al., 2014). Therefore, green innovation may be associated with more energy consumption and carbon dioxide emissions (Huberty et al., 2011; Sorrell, 2007).

There is empirical evidence about the positive linkage between digitalization and either energy consumption or carbon dioxide emissions. The adoption of internet technology was found to be associated with higher electricity consumption among OECD countries in both the short run and long run (Salahuddin & Alam, 2016). Similarly, the development of ICT is found to positively correlate with electricity consumption in emerging countries (Sadorsky, 2012) and energy use in the USA (Takase & Murota, 2004). This relationship is further affirmed based on international panel data between 1990 and 2010 by Longo and York (2015).

Since there exist both positive and negative forces in the relationship between digitalization and energy security, there may be a change in the relative strength of one against the other by the degree of informality. This would form a nonlinear relationship between digitalization and energy security. In this study, we argue that the “rebound effects,” the rise of energy consumption, and environmental deterioration (due to expanding production and consumption activities and the use of “brow” inputs) may immediately occur as the level of digitalization increases. Meanwhile, the positive influences of digitalization on energy security are theoretically mediated through the diffusion of green technologies, the enhancement of human capital, financial development, and institutional quality that takes time to demonstrate significant changes. Hence, digitalization may threaten energy security in the initial phase of digital transformation. However, this relationship may turn out to be positive in the long run if digitalization reaches a sufficiently high level where significant changes in socioeconomic and institutional factors are attained. At this point, the rebound effects of digitalization are offset by sufficiently high energy efficiency and successful sustainable energy transitions. A recent study by Ha (2022a) also provides empirical evidence to show that digitalization can adversely affect the energy sector in the early phase of the digital transformation process. The favorable effects only appear when digitalization development reaches a certain level.

Based on our discussion, we hypothesize:

H1

There is a nonlinear relationship between digitalization and energy security.

On the other side of the coin, the development and application of information and communications technologies depend largely on government policies, infrastructure, and human capital (Dasgupta et al., 1999; Khalifa, 2016; Wang & Feeney, 2014). In this regard, a more developed country would be in better condition to foster digital transformation. As ES, especially non-fossil energy consumption, primary energy consumption per capita, and renewable energy consumption, fuels economic growth (Le & Nguyen, 2019), there may be a link between acceptability, develop-ability, and sustainability dimensions of ES and digitalization. Moreover, the environmental pressures from energy consumption as embedded in the acceptability aspects of ES may urge businesses and governments to go digital (Liu et al., 2019; Renner et al., 2020). We, therefore, shed more light on the nexus between these two factors by further examining the impact of ES on digitalization.

H2

Energy security affects digitalization.

2.5 Control variables

The literature on the energy–economic growth linkage suggests two hypotheses regarding the energy–economic growth nexus. Specifically, energy consumption is driven by economic output (the “conservation hypothesis”) or there may exist bidirectional causality between them (the “feedback hypothesis”) (Apergis & Payne, 2009; Apergis & Tang, 2013; Ozturk, 2010; Payne, 2010). Empirical evidence from Italy and Korea (Soytas & Sari, 2003), sub-Saharan African countries (Le, 2016), Nigeria (Rafindadi, 2016), and South Africa (Rafindadi & Ozturk, 2017) or a group of middle- and high-income countries (Huang et al., 2008) supports the “conservation hypothesis.” Meanwhile, the causal relationship between economic growth and either renewable or non-renewable energy consumption is affirmed with international evidence of 85 countries from 1990 to 2007 (Apergis & Payne, 2012). We, therefore, include national income as a control variable in our conceptual model and expect a positive linkage between this construct and energy security.

The endogenous growth models (Rivera-Batiz & Romer, 1991), the extended Cobb–Douglas function (Shahbaz et al., 2013), and relevant empirical test on the two frameworks (Ibrahim & Alagidede, 2018; Le, 2016; Le et al., 2016; Ruiz, 2018) suggest that capital accumulation, trade openness, and financial development are robust drivers of economic growth. Eventually, there is mounting evidence about the impacts of these constructs on the energy and ecological systems. First, the two-sided effects of capital accumulation are well documented in the literature. On the one hand, capital facilitates more consumption and production activities, hence raising primary energy consumption and carbon dioxide emissions (Forster, 1973; Rafindadi & Ozturk, 2015). On the other hand, it could also support green R&D activities and drive the sustainable energy transition in both the consumption and production sectors (Rafindadi & Ozturk, 2017). Similar mechanisms underlying the contradicting influence of FDI inflows on energy use and environmental quality are found in previous works, as embedded in the “pollution haven” and the “pollution halo” hypothesis. The former asserts that FDI may provide funding for more economic activities (Acheampong, 2019; Boutabba, 2014), especially the dirty industries, hence raising energy consumption and worsening environmental deterioration (Bakhsh et al., 2017). Empirically, emerging countries are found to suffer the “pollution heaven” due to the rise of FDI (Bakhsh et al., 2017; Rafindadi & Ozturk, 2015; Rafindadi et al., 2018; Yu et al., 2019; Zakarya et al., 2015). The latter advocates the environmental benefits of FDI based on the spillovers of green technologies and managerial practices that may help either increase energy efficiency or negate pollution (Bakhsh et al., 2017; Zaidi et al., 2019). This “pollution halo” effect is found to prevail in developed countries (Apergis et al., 2018; Zaidi et al., 2019).

An open economy may demand more energy to adapt to the foreign market and respond to competitive pressures (Amable, 2000; Le & Tran-Nam, 2018; Le et al., 2016). Nevertheless, the impact of trade openness on the environmental quality is not only resulted from increased economic activities under free trade mechanisms but also the national factor endowment (Tayebi & Younespour, 2012). Specifically, capital-abundant countries that tend to exchange more capital-intensive commodities (polluting goods) for more labor-intensive ones (cleaner goods) could reap environmental benefits from trade (Bi et al., 2015). Meanwhile, the labor-intensive nations suffer more environmental burdens as their trade volumes increase due to the imports of capital-intensive products (Jiang & Liu, 2015; Opoku & Boachie, 2020; Polloni-Silva et al., 2021; Rafindadi & Usman, 2020; Yu et al., 2019; Zakarya et al., 2015).

The structural change, from natural resource-based to a more industrialized economy, may also alter the extent to which humans consume energy and influence the ecological system. While the dominance of natural resource-based sectors is mostly associated with low energy use and hence low environmental impacts (Lapatinas et al., 2019), the industrialization process requires more energy consumption and results in severe environmental deterioration due to expanding production and more environmentally damaging product mix (Madlener & Sunak, 2011; Stern, 2004; Wang et al., 2011). Empirical studies affirm that the higher level of industrialization threatens either the environmental quality or energy security at large (Antoci et al., 2018; Li et al., 2019; Opoku & Aluko, 2021).

Based on the above discussion, we include national income, capital accumulation, FDI, trade openness, and the level of industrialization as control variables in our conceptual model.

3 Empirical methodology

The model used to investigate the nexus of digitalization (DIGI) and energy security (ES) can be written as follows:

$${ES}_{it}={\beta }_{0}+{\beta }_{1}{DIGI}_{i,t}+{\beta }_{2}{Y}_{i,t}+{{\beta }_{3}{TRADE}_{i,t}+{\beta }_{4}{FDI}_{i,t}+{\beta }_{5}{INDUSTRY}_{i,t}+{\beta }_{6}{DEMO}_{i,t}+{\beta }_{7}{CORR}_{i,t}+\varphi }_{t}+{\omega }_{i}+{\varepsilon }_{ijt,}$$
(1)

where i and t, respectively, represent country i and year t. \({\varphi }_{t}\) and \({\omega }_{i}\) are added into the model to capture the country- and year-fixed effects, and \({\varepsilon }_{ijt,}\) is the error term.

3.1 Energy security

We have six indicators that are used to describe the three characteristics of energy security, including acceptability, develop-ability, and sustainability, to analyze the interplay between digitalization and energy security. Regarding Availability, the ES1 is a proxy for a country's energy structure, as measured by the ratio of non-fossil energy consumption to total energy consumption. The non-fossil energy consumption reflects the acceptability aspect of energy security. These data are taken from the International Energy Statistics of US Energy Information Administration (U.S.EIA). ES1 measures the acceptability of energy security by reflecting the impact of its production and use on the economy and the environment (Fang et al., 2018). As expected, non-fossil energy consumption brings a positive impact on energy security. The development of non-fossil energies will enhance the country's energy supply capacity as well as improve the sustainability of the energy system (Fang et al., 2018). The higher this ratio, the better because it indicates lower non-renewable energy use, which means higher energy security. Regarding Acceptability, the ES2 variable measures the rate of energy consumption per capita. According to Fang et al. (2018), the ability to assess the development potential of energy security shows the sustainable development of the energy system in an optimal, clean, and low-carbon way. This index is a negative variable, implying that the higher it is, the greater the danger to the energy security system.

Regarding Develop-ability, the ES3 and ES4 are the ratios of carbon dioxide emissions to GDP and primary energy consumption, respectively (Fang et al., 2018). These two indicators reflect the develop-ability of energy security (Le & Nguyen, 2019). They show the link between energy structure and carbon emissions from oil, gas, and coal combustion. Carbon dioxide emissions negatively influence energy security. Regarding Sustainability, ES5 and ES6 indicate the share of renewable energy consumption in total final energy consumption and renewable consumption per capital, respectively. Unlike ES1 that captures the acceptability of energy security, ES5 and ES6 only consider the specific renewable energy consumption. According to the U.S.EIA, energy sources can be categorized into renewable, nonrenewable, and fossil fuels. Renewable energy includes biomass (wood biomass; municipal solid waste; landfill gas and biogas; ethanol; biodiesel), hydroelectric power, geothermal, solar, and wind that can affect the sustainability of energy security, while fossil fuels consist of petroleum, natural gas, and coal. ES1 covers both ES5, ES6, hydroelectric power other types of energy like nuclear power. There has been a continuous argument on the effects of hydroelectric power and nuclear power on the sustainability of energy security (Lee et al., 2016). As indicated by the U.S.EIA, nuclear energy's environmental influences are more complex than other clean or renewable energy sources. Although nuclear power does not produce less air pollution or carbon dioxide than fossil energy, the process of mining and refining uranium ore and making reactor fuel requires a massive amount of energy. There is also a large amount of metal and concrete that also require a vast amount of energy to manufacture. A considerable amount of energy consumption is directly related to pollution and carbon dioxide emissions. This type of energy potential potentially creates environmental contamination and long-time radioactive hazard regarding nuclear power. Indeed, nuclear energy has complicated safety and security features. To capture the sustainability of energy security more precisely, we only consider the effects of renewable energy sources in ES5 and ES6 indicators.

3.2 Digitalization

Following Ha (2022b, c), Ha and Thanh (2022), and Myovella et al. (2020), the main objective of this study was to investigate the relationship between digitization and ES. \({DIGI}_{i,t}=\left\{{DESI}_{i,t},{DIMEN}_{i,t}^{m}\right\}\) is the main explanatory variable, including composite index \({DESI}_{i,t}\) and the five dimensions reflecting the process of digital transition, including connectivity (Desi1), human capital with basic and advantaged digital skills (Desi2), internet usage (Desi3), digital business integration (Desi4), and online public services (Desi5). More specifically, Desi1 is a variable that represents the percentage of households that have a fixed broadband subscription or are in a 4G coverage area. Desi2 is the percentage of people with basic digital capabilities and those with advanced skills. Desi3 measures the number of Internet users on specific activities such as reading news, listening to music, watching videos and games, using video on demand, making video calls, using social networks, taking a course online, and performing online transactions such as banking, shopping, and selling. Desi4 shows data on companies using electronic information sharing software, social media, and big data, as well as the percentage of SMEs that sell online and their total revenue. Desi5 is the ratio of administrative processes related to important life events—like the birth of a baby, moving to a new home, or the rate of public services needed to start a company and conduct business activities—done online. Digitalization data are collected from various surveys, such as Eurostat's survey on the use of IT in households and individuals,Footnote 1 Eurostat’s survey in ICT Enterprises, and Government e-Reports.Footnote 2 These surveys were conducted on 27 member states of the European Union (including the UK) for the period 2015–2020. These indicators are expected to represent the performance of the digital transformation of European countries.

3.2.1 Control variables

We follow the empirical studies in the literature to choose explanatory variables. Following Le and Nguyen (2019), we examine the impact of several variables, including income (Y)—as measured by real GDP per capita (constant 2010 US dollar); the share of trade values to GDP (TRADE); the ratio of net inflows of FDI and GDP (FDI); and the contribution of the industrial sector to GDP (INDUS)—reflecting the industrialization level as measured by the value-added of the industry sector as a per cent of GDP. As in Le and Nguyen (2019), we also include institutional considerations in the study to increase its persuasiveness. As displayed in Eq. (1), two institutional indicators are the democratization index (DEMO)—measured by the democratization index—and the corruption prevalence (CORR)—measured by the corruption perception index. Economic data come from World Development Indicators (WDI), while DEMO comes from the Finnish Social Science Data Archive (FSSDA), and CORR comes from Transparency International. Table 1 summarizes the statistical descriptions of all included variables. After cleaning and merging all country data, the final sample consists of 27 countries from 2015 to 2019. The correlation matrix between all variables is displayed in Table 2. Table 2 reveals that there is evidence to believe in a positive association between digitalization and energy security measures.

Table 1 Description of variables
Table 2 Correlation coefficients

The data are then inspected for cross-sectional dependency by employing Pesaran's suggested cross-sectional dependency (CD) tests (Pesaran, 2021), and the results are reported in Table 3. The test results suggest the existence of CD in almost included variables. In the following step, to examine the stationarity of data with the existence of CD, we use the Levin–Lin–Chu unit-root test proposed by Levin et al. (2002) and the Im–Pesaran–Shin unit-root test proposed by Im et al. (2003). Table 3 summarizes the findings. We show that some variables in the level are not stationary but taking these variables in the first difference makes them stationary.

Table 3 Cross-sectional dependence tests and stationary tests

Along with the presence of CD and the stationarity of first-difference variables, we chose the panel-corrected standard error (PCSE) model for our samples, according to Beck and Katz (1995) and Canh and Thanh (2020). All explanatory variables are lagged by one period to resolve the endogeneity emerging from the simultaneous association between digitalization and energy security, as shown in Eq. (1). For further check, we reexamine our estimates by employing other econometric techniques, such as Feasible Generalized Least Squares (FGLS), to deal with heteroscedasticity and fixed effects as stated by Gala et al. (2018) and Sweet and Eterovic (2019).

In addition, the influence of digitalization on energy security in the short- and long-term is a topic identified in the literature. Hence, the autoregressive distributed lag (ARDL) technique is utilized (Pesaran & Smith, 1995). The dynamic fixed effects estimator (DFE) embedded into the ARDL model is used due to endogeneity emerging from the possible association between variables and heteroscedasticity throughout EU nations (Pesaran & Smith, 1995). Before running this model, we conduct the test for the cointegration relationship between the two variables by employing the Kao test, Pedroni and Westerlund cointegration test, in turn, developed by Kao (1999), Pedroni (2004), and Westerlund (2005). According to the Kao and Pedroni tests, Table 4 depicts the long-term cointegration between digitalization factors and each ES variable. However, it is worth noting that the variance ratio sometimes rejects this finding between Desi2, Desi3, and ES variables.

Table 4 Cointegration test

4 Empirical results

4.1 Baseline results

The PCSE model in Table 5 shows that the DESI overall index has a significant positive effect on the ES measures except for CO2 emissions (ES3). Notably, a promotion in digital transformation causes a significantly positive effect on the acceptability (ES1), sustainability of energy security (ES5 and ES6) but a negative impact on develop-ability (ES4) of energy security. The positive effects of digitalization on ES1 and ES5, ES6 provide interesting insights into which digitalization can enhance non-fossil and renewable energy usage. As Le and Nguyen (2019) indicated, a rise in usage of this type of energy helps countries experience stronger economic growth. Hence, digitalization indirectly enhances the growth of economies by using more green energy rather than fossil energy sources. In short, digitalization is beneficial for sustainable economic development. Given that digitalization helps enhance human capital (Spiezia, 2011), develop innovation systems (Ceccobelli et al., 2012; Ferro, 2011; Haini, 2019), foster global trade (Ahmedov, 2020; Salahuddin & Alam, 2016; Salahuddin & Gow, 2016), and improve institutional quality (Adam, 2020; Ali et al., 2022), our findings are also in line with several previous studies that find the positive impacts of labor input, innovation, governance indicators, global competitiveness factors, and enabling environment on the bioenergy industry growth (Abdulwakil et al., 2020; Alsaleh & Abdul-Rahim, 2018; Alsaleh et al., 2017, 2020a, 2020b).

Table 5 Effects of digitalization on energy security

However, Table 5 also implies that digitalization leads to high intensity of energy consumption (ES2) and a high level of carbon emission, implying that digitalization may not be good for the development of energy security in the case of European countries. Despite the multifaceted and contradicting impacts of digitalization’s dimensions on energy consumption, the prevalence of increasing effects and carbon emission is consistent with Lange et al. (2020). Specifically, the increased energy efficiency and sectoral changes as resulted from digitalization could not curve the rising energy use for the production, usage, and disposal of digital technologies themselves and more production and consumption activities as the digital economy grows. Similar findings are empirically affirmed in the literature. For example, Sadorsky (2012), Salahuddin and Alam (2016), and Longo and York (2015) reveal that digitalization leads to more consumption of energy, while the pollution emission results from energy use (Can & Gozgor, 2017; Oberschelp et al., 2019). When investigating the effect of each dimension of digital transformation, we reveal some crucial findings.

Regarding the acceptability of energy security, our estimates imply that digital connectivity (Desi1) and human capital with digital skills lead to a rise in non-fossil consumption (ES1), while the use of the internet (Desi3) and digital public service reduces the usage of non-fossil energy sources. Regarding the develop-ability of energy security, energy consumption (ES2) can be reduced by an improvement in the use of the internet. At the same time, both human capital and digital public service tend to drive this indicator up. Our estimation results also indicate that the degree of carbon emission can be reduced if countries employ more digital connectivity devices and integrate more digital technologies into the business. This could be explained by the positive influence of internet technology on human capital and financial development, which supports R&D activities and technological progress (Ferro, 2011; Haini, 2019; Salahuddin & Gow, 2016; Spiezia, 2011). The technological advancement, in turn, creates the upgrading of industrial structure from traditional resource-intensive to technology-intensive and allow the replacement of low-energy equipment to high-energy ones as well as the development of more eco-friendly technologies (Airehrour et al., 2016; Li et al., 2019; Ren et al., 2021). This would not only enhance energy efficiency but also reduce energy intensity and carbon dioxide emissions from production activities. Further, the development of digital business and various ICT would intensify those impacts by fostering technological and trade-related R&D spillover effects (Basu & Fernald, 2007; Ceccobelli et al., 2012; Dunnewijk & Hultén, 2007) and hence accelerating the diffusion of green technologies across sectors and countries.

Regarding the sustainability of energy security, our study highlights the importance of digital connectivity, digital skills, and digital public services in encouraging countries to rely more on renewable energy sources. While the digital connectivity and digital skills contribute to the human capital (Ferro, 2011; Haini, 2019) and facilitate more trade flows (Ahmedov, 2020; OECD, 2019; Shyla, 2020), digital public services help improve institutional quality and control corruption (Adam, 2020; Ali et al., 2022). This would foster economic growth, increase national income, and raise environmental awareness among the public (Galeotti et al., 2008; Lee & Lee, 2009; Martínez-Zarzoso & Maruotti, 2011). Therefore, renewable energy sources are more favored for clean production as the response to the rise of demand for well-being and sustainable development. Moreover, good institutions also help foster R&D activities and facilitate the application of innovation, especially green technologies, into practice (Busenitz et al., 2000; Tebaldi & Elmslie, 2013; Varsakelis, 2006). Meanwhile, the increase of international trade flows of eco-products could accelerate the diffusion of green technologies that employ renewable energy sources (Bi et al., 2015; Costantini & Crespi, 2008; Franco & Marin, 2015).

Switching to renewable energy consumption is also a strategy for firms to sustain competitiveness, adapt to more burdensome environmental regulations from the authorities, and gain better social acceptance (European Commission, 1999; International Trade Centre, 2001; Kennett & Steenblik, 2005; Sinclair-Desgagné, 2008). On the other hand, the improvement of digital connectivity and digital skills could reduce the renewable energy costs by optimizing the production and distribution of renewable energy sources while allowing efficient integration of renewable energy into the existing centralized energy system and hence leading to the rapid growth of the share of renewable energy in the overall energy consumption (Verma et al., 2020). By using the PGLS model, similar findings are indicated as in Panel B of Table 5.

We turn to analyze the effects of control variables on ES. In the PCSE model, real output growth (GDP), corruption perception index (CORR), and level of democratization (DEMO) have a significantly positive effect on the Energy Policy except Energy security 2. In opposition to CORR and GDP, FDI impacts ES2 positively. Besides, it also has a significant positive effect on ES4. Industrialization level has an insignificant effect on only ES3, and share of trade influences positively and significantly all dimensions of energy security.

On the other side of the coin, we concentrate on investigating the effect of energy security on digitalization, specifically a transformation of digitalization into the business sector (or digital business (Desi4)) and public sector (or digital public services (Desi5)). The reasons for our selection are as follows. While the development of e-commerce and e-business enhances human capital and fosters financial and trade flows (Ahmedov, 2020; OECD, 2019; Shyla, 2020), the adoption of digital public services helps improve institutional quality (Adam, 2020; Ali et al., 2022). This, in turn, will drive economic growth (Farhadi et al., 2012; Solomon & van Klyton, 2020). Moreover, the cointegration tests in the last column of Table 4 also suggest that the long-term relationship between digitalization and energy security is not stable. The estimated results on the association between energy security and these digitalization types are presented in Table 6. The estimation results demonstrate that all the dimensions of ES have a positive effect on the digital transformation in general, and most dimensions of ES also positively influence the digital transformation in business and the public sector in particular. More specifically, except for the ES3 variable, the variables of ES had a positive and statistically significant effect on DESI. Similarly, except for the ES3 variable in the model estimation on the digitalization index in the business sector and ES1 in the model estimation on the digitalization index in the public sector, the remaining variables positively influence ES on digitalization. Notably, we show the significant effects of renewable energy consumption on digitalization. As revealed by Blyth et al. (2014) and Le and Nguyen (2019), sustainable economic growth is attributed to the positive impacts of renewable energy consumption on the economic growth through its effect on the labor market (Blyth et al., 2014) and the stability of input prices in international markets (Apergis & Payne, 2010). The economic growth then determines the extent to which the government implements digitalization into different sectors of the economy (Nguyen et al., 2020; Visser, 2019). The findings in Panel B that we use the FGLS model display similar findings as those in Panel A.

Table 6 Effects of energy security on digitalization

In the following analysis, the study examines the short- and long-term effects of digitalization on ES. The results presented in Table 7 describe that, in the short term, the effects of digitalization are not evident. Digitalization positively impacts energy security in the long run, reflected by a rise in non-fossil and renewable energy consumption and a diminish in CO2 emissions. However, the results on the effects of digitalization on ES show interesting findings. While online transactions (Desi3) play a significant role in enhancing non-fossil energy consumption and reducing the emission of pollution, both online transactions and digital businesses encourage countries to consume renewable energy. This may be because the effect of digitalization in business and commerce is transmitted through the improvement of human capital (Ferro, 2011; Haini, 2019), the trade-related R&D spillovers (Ahmedov, 2020; OECD, 2019; Shyla, 2020), and the behavior of firms (Busenitz et al., 2000; Tebaldi & Elmslie, 2013; Varsakelis, 2006) and individuals (Galeotti et al., 2008; Lee & Lee, 2009; Martínez-Zarzoso & Maruotti, 2011) that take time to change and demonstrate a significant contribution to the energy security. Our finding confirms that digitalization plays a vital role in promoting countries to achieve sustainable economic development, especially in the long term.

Table 7 Digitalization and energy security: short-run and long-run effects

On the other side, we also examine the short- and long-term influences of ES on digitalization. The results described in Table 8 show no relationship both in the long run and in the short run between ES and DESI. However, we find evidence on the effects of ES on digitalization in the business sector. Particularly, setting energy security goals toward reducing energy consumption and pollution emission promotes the digital transformation process in the business sector of countries in the short run, whilst the promotion of renewable energy consumption can help countries to accelerate the digitalization process in the long run.

Table 8 Energy security and digitalization: Short-run and long-run effects

4.2 Nonlinear effects of online transactions and digital public services toward sustainable development

This section examines whether there are nonlinear impacts of digital activities, such as online transactions and digital public services, on energy securities. We focus on these two sectors since digitalization in these sectors adversely influences the sustainable development of the economy, as shown in Table 5. However, we argue that sustainable development requires digital transformation implementation to be achieved at a certain level and scale; thus, the negative impacts of digitalization on ES no longer exist. We believe that online transactions and digital public services have nonlinear effects on energy security. According to the estimations in Table 9, there is a nonlinear relationship between online transactions and ES1, ES3, ES5, and ES6 as revealed by significant and adverse effects of digitalization and significant and positive impacts of its squared term. The results imply that the initial rise in the digitalization index in online transactions negatively influences energy security. Still, those effects will turn out to be positive when online transactions increase to a certain extent. Likewise, the digital public services variable has the same effect on ES as the online transaction variable in terms of impact variables and direction of impact. In general, there is a nonlinear relationship between online transactions, digital public services, and energy security in the shape of the U curve. We use predictive margins analysis to display our conclusion in Fig. 1. ES decreases slightly concerning a given amount of increase in online transactions or digital public services as displayed in Panel A and Panel B, respectively. The acceptability, develop-ability, and sustainability of ES then increase when digitalization reaches a certain level. The negative impact of digitalization on energy security in the initial phase is consistent with our expectation about the “rebound effects” of digitalization. Specifically, the settings and usage of digital-based business and governance models, the expanding production and consumption activities as facilitated by digital technologies, and the production and application of green technologies may increase energy demand and worsen environmental deterioration (Font Vivanco et al., 2014; Jenkins et al., 2011; Kemp-Benedict, 2014; Lange et al., 2020). Nevertheless, the favorable impacts of digitalization on energy security could prevail in the latter stage due to two primary reasons. First, the “rebound effects” of digitalization may be offset by significant positive externalities of green technologies to energy efficiency and environmental quality in the long run. Second, digitalization needs to reach a sufficiently high level to create substantial changes on mediating factors such as human capital, innovation systems, trade openness, and institutional quality that could foster the growth and bioenergy industries (Abdulwakil et al., 2020; Alsaleh & Abdul-Rahim, 2018; Alsaleh et al., 2017, 2020a, 2020b). In this regard, our findings confirm the argument of Loock (2020) that digitalization-based business model innovation helps resolve the bottlenecks regarding the development and application of sustainable energy technologies and, therefore, drives forward sustainable energy transitions. Our empirical evidence aligns with Alsaleh and Abdul-Rahim (2021) that ICT development, as a dimension of digitalization, could foster bioenergy growth in EU economies and Moyer and Hughes (2012) regarding the positive influence of digitalization on renewable energy production and consumption in the long run.

Table 9 Nonlinear effects of online transactions and digital public services on energy securities
Fig. 1
figure 1

Predictive margin of digitalization on energy security. a Online transactions and energy security and b Digital public services and energy security

4.3 Nonlinear effects of sustainability of energy security on digitalization

On the other side of the coin, we concentrate on investigating the impacts of ES on digitization in this section. The results presented in Panel A in Table 10 describe the effect of ES on DESI. Non-fossil energy consumption and CO2 emissions have a statistically significant impact on DESI. Non-fossil and renewable energy consumption initially reduce DESI; however, when this indicator reaches a specific value, it will drive DESI up. The findings suggest that the impact of non-fossil and renewable energy consumption follows the U-shaped curve. Panel A also suggests the nonlinear inverted U-shaped effects of energy consumption and CO2 emissions on digitalization. Given that the digital transformation requires sufficient infrastructure, human capital, and a favorable institutional environment (Dasgupta et al., 1999; Khalifa, 2016; Wang & Feeney, 2014), this finding is in line with the “feedback hypothesis” about a bidirectional causality between energy consumption and economic growth (Apergis & Tang, 2013; Ozturk, 2010; Payne, 2010). In this regard, the supply and consumption of non-fossil and primary energy that fuels economic growth (Le & Nguyen, 2019) become a condition for digitalization. However, the significant change in the level of digitalization is only attained when the economic contribution of the energy system reaches a sufficiently high threshold.

Table 10 Nonlinear effects of energy security on digitalization

In the subsequent analysis, the study examines the nonlinear influence of ES on each dimension of digitalization. We focus on specific digital activities, including online transactions digitalization in the business and public sectors. The first thing worth noting is that the four elements of ES all have a nonlinear effect on online transactions. Non-fossil energy consumption and renewable energy consumption act in a U shape, while primary energy consumption and CO2 emissions affect in an inverted U shape. For the digital business, there is only one variable with the nonlinear influence, which is non-fossil energy consumption, and this effect is positive after non-fossil energy consumption reaches a particular value. The remaining ES variables show the nonlinear relationship as expected, but some variables are not statistically significant. Three factors that affect digital public services nonlinearly consist of non-fossil energy consumption, primary energy consumption, and CO2 emissions. While the non-fossil energy consumption has a positive effect after reaching a particular value, the remaining two variables have an inverted U shape. All the above results are illustrated through Panels A, B, C, and D in Fig. 2. This finding provides a different perspective about the impact of energy security on digitalization. Specifically, the rising energy consumption and carbon dioxide emissions, at sufficiently high levels, may constitute an alert or motivation that is strong enough for businesses and governments to go digital (Liu et al., 2019; Renner et al., 2020).

Fig. 2
figure 2

Predictive margin of energy security on digitalization. a DESI overall index, b online transactions, c digital businesses, and d digital public services

5 Conclusion and policy implications

We are the first to empirically analyze the nexus of digital transformation and energy security. By using the international sample of 27 European countries over the period from 2015 to 2019, we reveal interesting findings. First, a promotion in digital transformation causes a significantly positive effect on the acceptability and sustainability of energy security but a negative impact on develop-ability (ES4) of energy security. Notably, digitalization is beneficial for sustainable economic development, reflected by a positive effect on energy security reflected by a rise in non-fossil and renewable energy consumption and a decrease in CO2 emission. Second, ES has a positive impact on the digital transformation, especially the digital transformation in the business and public sectors. Third, setting energy security goals toward reducing energy consumption and pollution emission promotes the digital transformation process in the business sector of countries in the short run, while the promotion of renewable energy consumption can help countries to accelerate the digitalization process in the long run. Fourth, online transactions and digital public services have nonlinear effects on the acceptability, develop-ability, and sustainability of energy security. Similarly, the acceptability, develop-ability, and sustainability of ES have a nonlinear impact on digitalization.

This paper contributes new theoretical and empirical justifications about the influence of digitalization on energy security. While previous studies examine the linkage between digitalization and energy security based on insufficient proxies of the two constructs, our paper provides a more reliable answer based on more comprehensive measurements and updated international data. Specifically, digitalization may cause different impacts on different aspects of energy security. Those relationships also vary when the focus is given to different dimensions of digitalization. Moreover, the nonlinear effects of online transactions and digital public services, as two crucial dimensions of digitalization on the acceptability, develop-ability, and sustainability of energy security, as found in this research, help further explain the contradicting arguments and empirical evidence about the digitalization–energy security nexus (Ha, 2022a; Lange et al., 2020; Loock, 2020; Moyer & Hughes, 2012; Ren et al., 2021; Wen et al., 2021). Specifically, while digital connectivity, human capital with digital skills, and the use of the Internet help foster sustainable energy development, only the use of the Internet is found to reduce energy consumption. Those impacts occur immediately and become persistent in the long run. Nevertheless, it is noble that there is a time lag to witness the positive externalities of business digitalization and digital public services on energy security. In other words, it takes time to leverage the positive impacts of the digital transformation in business and government sectors on human capital, innovation, and institutional environment before favorable changes in renewable energy production and consumption could be witnessed. Moreover, it also needs time for sufficient energy efficiency to be achieved to offset the “rebound effects” of technological innovation in a digital world. The second novelty of this paper is to confirm the two-way interaction between digitalization and energy security by pointing out the existence of a nonlinear relationship between them. This provides insights into the nature of the digitalization–energy security nexus for the construction of more comprehensive management policies over the energy system.

Our findings suggest that managing the digital world could be a crucial tool to maintain energy security on the policy front. Despite that business digitalization and the launch of digital public services during their initial phases, the acquirement of digital skills and accelerating digital connectivity may endanger energy security in some aspects. The scale-up of digitalization could reduce the amount of carbon dioxide emission and foster the sustainable development of the energy system in the long run. Therefore, continuous investment in digital transformation across sectors is deemed to be beneficial to energy security. However, since energy consumption and carbon dioxide emissions may rise steeply and endanger energy security during the first phase of digitalization, the policies aiming at fostering digitalization among societies, businesses, and government sectors should accompany strict environmental regulations. In addition, the positive externalities of digitalization on the sustainable energy transitions could be witnessed sooner if the government provides a suitable enabling environment for the rapid enhancement of human capital, capital accumulation, and institutional quality that accelerates the bioenergy industry development and the diffusion of green technologies. On the other hand, our findings indicate that maintaining good energy security also fosters digitalization. In this regard, digitalization and energy security are complementary to each other. Combining strategies that encourage green R&D activities and renewable energy production and consumption while accelerating the digital transformation would constitute a win–win solution for overall sustainable development in the long term.

The findings of this study could be interpreted in light of limitations. First, we utilized archival data accumulated only for the European Union area. It is essential to consider the role of digitalization in enhancing the security of the energy system in developing countries, where there have been warnings about environmental degradation and energy overconsumption (Ha et al., 2021). However, surveys following stringent guidelines to collect information about the digital transformation process in developing economies are not available (Ha, 2022a). Second, there may be further channels through which digitalization affects energy security. It is necessary to consider levels of economic development and economic complexity performance, and the effectiveness of government policies. A study taking these channels into account is expected to provide insights for economists and policymakers in designing policy to promote digital transformation and energy security performance. Future research may explore the data sources to collect more information about digitalization in developing countries and examine the role of digitalization in this area.