Introduction

Wireless Sensor Networks (WSNs, WSN is a self-organizing network formed by a large number of distributed sensor nodes through wireless communication. Its core objective is to sense, collect, and transmit information from the physical world, such as temperature, humidity, vibration, etc., and send the data to base stations or user terminals)1 consist of numerous sensor nodes capable of monitoring, sensing, and collecting data from their surrounding environment. These nodes are integral in various applications, including military surveillance2, disaster warning systems3, medical monitoring4, and smart markets5. However, the significant energy limitations of sensor nodes prevent continuous operation, posing a major challenge to the long-term functionality of WSNs. The advent of wireless charging technology has alleviated the energy challenges faced by WSNs, leading to the rapid development of Wireless Rechargeable Sensor Networks (WRSNs, WRSN is an extension of WSN that addresses the energy limitations of traditional WSNs by introducing mobile charging devices such as mobile charging vehicles, drones, or fixed charging infrastructure to provide wireless energy replenishment to sensor nodes. Its core concept is to replace “battery replacement” with “charging” to achieve long-term sustainable network operation)6,7. In this context, wireless power transfer (WPT)8 has emerged as a crucial area of research, offering a more effective solution compared to energy harvesting and node energy-saving techniques.

Within the realm of wireless charging for sensor nodes, two primary charging methodologies have emerged: static charging by a mobile charging cart (MC) and dynamic charging by a mobile charging cart (MC).

Static charging

Static charging9schemes typically involve the use of an MC to charge sensor nodes at fixed locations. A hybrid variable optimization algorithm based on the fireworks algorithm, proposed in Ref. 10, experimentally demonstrates the feasibility of static charging planning. However, in large-scale networks, it becomes challenging for the MC to visit all nodes within a given timeframe, leading to some nodes depleting their energy reserves and failing to operate. Another approach, outlined in Ref. 11, proposes a path-planning method for the MC that divides the sensor network into multiple cells. The MC periodically charges and collects data from the cells containing sensor nodes, optimizing the amount of data collected per unit of energy and ensuring continuous network operation. However, this strategy lacks an effective mechanism for adaptive adjustments in response to significant changes in the network topology or node states, which may necessitate re-planning anchor points and increasing the algorithm’s computational complexity. Additionally, the Mayfly Algorithm (MA) introduced in Ref. 12. addresses energy management by notifying the base station (BS) when the first node’s energy drops below a threshold. The BS then dispatches the MC to recharge all nodes within the same cycle. While this strategy ensures full recharging, it does not explore the potential benefits of partial charging, which might be more efficient in certain scenarios where energy utilization efficiency is a priority.

Dynamic charging

Dynamic charging13strategies aim to enhance the effectiveness of static charging schemes. For example, the strategy proposed in Ref. 14 deploys a single wireless charging device that charges nodes one by one in planar WRSNs. The scheme introduces an energy consumption rate prediction mechanism for each node, along with a dynamic threshold to minimize the charging device’s movement and reduce charging delays.However, this approach’s cluster head rotation mechanism primarily considers the residual energy and the distance to the cluster center, neglecting other critical factors such as communication and processing capabilities of the nodes. In contrast, the dynamic charging method proposed in Ref. 15 uses a non-static charging strategy based on data rate variation. The method sets an attraction function for each node based on residual energy and distance, ensuring that the wireless charging device (WCE) always charges the node with the highest attraction value. While this strategy demonstrates its dynamic charging path selection, its adaptability and efficiency in large-scale WRSNs with complex node distributions require further verification. Additionally, the approach in Ref. 16 combines a non-dominated sorting genetic algorithm with multi-attribute decision-making to coordinate multiple MCs, charging nodes based on proximity. However, this strategy does not fully address the fairness of the charging response.

Fairness in charging response

Fairness in charging response is crucial in WRSNs. Many existing studies assume uniformity in node structure and energy consumption, overlooking the inherent heterogeneity and dynamic energy consumption rates in WRSNs. Such assumptions significantly deviate from practical implementations and complicate the optimization of charging schedules2,17,18,19,20,21,22. This lack of consideration for dynamic factors, such as varying energy consumption rates and time constraints, can reduce the charging efficiency of the MC, leading to imbalanced energy distribution and an increased node mortality rate.

Proposed DICCS strategy

To address the energy challenges in WRSNs, this paper introduces the Dynamic Inhomogeneous Clustering Charging Strategy (DICCS), which incorporates several key innovations:

  1. 1.

    Dynamic Uneven Clustering: The strategy dynamically clusters the sensor network, allowing multiple nodes to be charged simultaneously. This reduces the mobile charging cart’s energy consumption and minimizes node waiting times during the charging process.

  2. 2.

    Energy Consumption and Location-Aware Charging: The DICCS strategy takes into account differences in the energy consumption rates of nodes and their spatial locations when determining the MC’s charging stopping points. This ensures more balanced energy distribution across the network.

  3. 3.

    Double Thresholds for Charging Prioritization: The strategy sets double thresholds that consider factors such as node distance, residual energy, and energy consumption rate. This prioritization ensures that high-priority nodes are charged first, thereby enhancing the fairness of the charging process.

By considering these factors, DICCS aims to address the fundamental energy dilemma of WRSNs, improve charging scheduling efficiency, and significantly reduce node mortality, thus extending the overall network lifespan and enhancing operational stability.

Related work

Sensor nodes have very limited energy and premature energy depletion of some nodes can cause the network to fail to operate continuously. It has become a bottleneck in the field of wireless sensor networks. Literature23 proposes a charging path planning based on DQN and a dynamic dwell time adjustment algorithm with LSTM-TD3, but both DQN and LSTM-TD3 are complex deep reinforcement learning models, which require a large amount of computational resources and training time, and are difficult to be directly deployed in resource-constrained sensor nodes or embedded devices. Literature24 proposes a charging strategy for wireless sensor networks with a single energy-constrained MCD that minimizes the network outage time and maximizes the charging efficiency. However, the strategy is based on a single MCD and does not consider multiple MCDs co-scheduling scenarios (e.g., path conflict, task assignment), which may be inefficient in real large-scalenetworks. Literature25 proposes a greedy heuristic approximation solution for deploying sensors using the aggregation effect (GHDSAE). Then, a greedy heuristic (GH) solution and a particle swarm optimization (PSO) solution are proposed for P2. It is more cost-effective to deploy sensors and chargers jointly using the GHDSAE solution and the PSO solution.The PSO algorithm has a time complexity of 1 and may face high computational overhead in large-scale networks, affecting real-time performance. Literature26 proposes a Deep Reinforcement Learning approach for JCSCT with Hybrid Action Space (DRLH-JCSCT), which utilizes Deep Q Networks (DQNs) to generate charging sequences and Deep Deterministic Policy Gradients (DDPGs) to determine the charging time. The proposed method improves the charging performance with longer network lifetime and fewer fault sensors. However, the parameter settings are specific to the network characteristics. The number of neurons and layers in the neural network must be balanced with the reward value and training time. The learning rate significantly affects the convergence of the neural network training process. If the learning rate is too high, the network may converge to a local optimum. If it is too low, it may take a long time to train.

In literature27, Cheng Pengjiang et al. proposed an improved deep Q network approach for CSCE (IDQN-CSCE), where MC acts as an agent to explore the WRSN and determine the charging strategy based on the charging demand of the sensors.IDQN-CSCE uses Q learning and deep Q networks (DQN) to train both Q tables and DQN networks. Literature28 proposes a new model-free deep reinforcement learning algorithm, Multi-stage Exploratory Deep Q Network (MEDQN), where MC is designed as an agent to explore the online charging schedule through a new multi-stage exploration strategy to maximize the network QSC based on the real-time network state. however, the computational complexity is high. Literature29 proposes a QoS-based on-demand charging scheduling (or QOCS) model in which a charging vehicle carries multiple removable battery-powered chargers. In the novel QoS-based billing model, the billing scheduling problem of requesting nodes is investigated to ensure the integrity of network data collection and to maximize the satisfaction of billing services.

Literature30 proposes a Wireless Mobile Charger Offset Optimization (WMCEO) algorithm that aims to optimize the movement trajectory and charging time of the WMC at each stay location to achieve higher energy efficiency and network lifetime. A Wireless Mobile Charger Offset Optimization (WMCEO) algorithm designed to optimize the movement trajectory and charging time of the WMC at each stay position to achieve higher energy efficiency and network lifetime. Literature31 proposes a new WRSN on-demand billing scheduling scheme. First, an efficient network partitioning method is proposed for allocating MCs in order to evenly balance their workloads. Next, fuzzy logic, which mixes various network attributes is employed to determine the charging schedule of MCs. We also develop an expression to determine the charging threshold of a node, which varies according to its energy consumption rate. However, in large-scale networks, MC’s mobility path planning may face the combinatorial explosion problem, and the trade-off between charging delay and energy consumption needs to be addressed. Reference 32 addresses the problem of finding the global optimum in clustering algorithms for wireless sensor networks and the issue of uneven energy consumption in non-uniform clustering algorithms, proposing a new clustering algorithm. The algorithm first employs the flood tree algorithm to determine the network’s optimal value and uses it to calculate the competitive radius of nodes. It then applies the concept of non-uniform clustering to construct clusters of varying sizes. This algorithm achieves significant improvements in energy consumption and energy balance, ultimately extending the network’s lifespan. However, the cluster structure remains relatively fixed once established, without considering dynamic changes in node energy, position shifts, or network topology evolution. When there are significant differences in node energy consumption rates, the static cluster structure may lead to premature death of some cluster heads. To address this, this paper designs a dynamic clustering mechanism.

Reference 33 addresses the issue of limited energy in wireless sensor networks by proposing an energy-efficient non-uniform clustering routing algorithm. The algorithm first elects transmission nodes within “hot zones,” effectively resolving the issue of load imbalance within these zones. This approach reduces energy consumption, improves sensor network performance, and extends network lifetime. However, the algorithm elects cluster heads based on fixed competition radii and remaining energy, and the cluster structure does not adjust after establishment in response to changes in node energy, position shifts, or topological evolution (such as node failure or addition). The DICCS proposed in this paper improves the k-means algorithm to iteratively optimize cluster partitioning in real-time based on node energy, position, and energy consumption rates. Reference 34 proposes a non-uniform cluster-based dual cluster head algorithm for wireless sensor networks (UDCH). This algorithm first comprehensively considers various node information (such as remaining node energy, distance from the node to the base station, and the parity of the number of operation cycles) to elect cluster heads, dividing the entire network into clusters of unequal sizes. Simulation results show that the UDCH routing algorithm performs excellently in balancing node energy consumption in WSNs. However, the election of sub-cluster heads is limited to a single dimension, and there are constraints associated with the switching of odd and even rounds.

Reference 35 addresses the shortcomings of traditional wireless sensor routing algorithms and improves node energy utilization by proposing an energy-balanced wireless sensor clustering routing algorithm. First, the artificial fish school algorithm is employed to solve for the optimal network partitioning line, ensuring the uniformity of the entire network clustering. Then, the threshold for selecting cluster head nodes is improved to reduce the probability of low-remaining-energy nodes becoming cluster head nodes. Additionally, an adaptive dynamic data communication method is adopted to reduce communication energy consumption. Experimental results show that compared to current classical wireless sensor network routing algorithms, the proposed algorithm not only makes cluster head node selection more reasonable but also improves node energy utilization efficiency and ensures network energy consumption balance. However, for uniform clustering, non-uniform clustering can better adapt to the uneven energy consumption of sensor nodes. Therefore, the proposed non-uniform clustering strategy is designed to adapt to the uneven energy consumption of sensor nodes.

Reference 36 addresses the issue of energy holes caused by uneven clustering in wireless sensor networks and proposes an improved routing algorithm for wireless sensor networks with uneven clustering. The algorithm first elects cluster heads based on factors such as remaining node energy, distance from the node to the base station, node “degree,” and distance from the node to the cluster head. Simulation results indicate that this routing algorithm can effectively conserve energy and balance node energy consumption, thereby extending the network’s lifespan. However, the cluster head election cycle is fixed and does not dynamically adjust based on node energy fluctuations, and the algorithm has a relatively high complexity.

Network model

The wireless rechargeable sensor network model is shown in Fig. 1, where the sensor nodes are randomly scattered in a \(M \times M\) within the rectangular region of the Sensor Node Collection \(S=\left\{ {{S_1},{S_2}, \cdots {S_N}} \right\}\), A mobile charging cart (MC, In wireless rechargeable sensor networks, mobile charging vehicles are devices used to replenish energy for sensor nodes), and a base station (BS, In wireless rechargeable sensor networks, base stations are key hub nodes connecting sensor networks to external networks, such as the Internet and cloud computing centers. They typically have stronger computing power, storage capacity, and communication capabilities, and are responsible for collecting and processing data from sensor nodes and transmitting it to remote servers or user terminals) located at the center of the sensor network are arranged in the sensor network, and the mobile charging cart uses magnetically coupled resonant37,38,39 charging to charge the sensor nodes in the network.

The MC as well as the sensor nodes are equipped with repeaters, and the sensor nodes are able to transmit the monitored data, such as temperature, humidity, air pressure, light intensity and other relevant data of the field environment to the base station, which transmits the received data monitored by the sensors to the terminal. The initial energy of the sensor node is \({E_{in}}(i)\), Wireless rechargeable sensor networks consist of a large number of sensor nodes \({S_i}\left( {i=1,2, \cdots N} \right)\), Mobile charging trolley and base station together.

Figure 1
figure 1

Network model.

During the network operation, the sensor nodes continuously monitor their residual energy. Once the residual energy of a node drops below the charging request threshold, it immediately transmits its relevant information to the cluster head node. Subsequently, the cluster head node is responsible for summarizing and integrating the information of these nodes that need to be recharged. The information data aggregated by the cluster head node contains \(\left( {CO{S_i},{P_i},{\mu _{stay}},{T_i},{E_{rei}}} \right)\), where is the location information of the sensor node i.e., the coordinates of the sensor node \(i \to \left( {{x_i},{y_i}} \right)\), \({P_i}\) is the energy consumption rate of the sensor node, \({\mu _{stay}}\) is the coordinate information of the location of the charging stopping point within the cluster (where the MC travels to the charging cluster to stop), \({T_i}\) is the timestamp of the node when the node sends a request for a charging message, and \({E_{rei}}\) is the remaining energy at the time of the node sending the request for a charging messag.

Energy model

Node energy consumption model

The energy consumption of wireless sensor networks mainly consists of three parts: sensing energy, computing energy and communication energy, sensing energy and computing energy is much lower than the communication energy, so in this paper, only the communication energy is considered.

The free space model and multipath fading model are set according to the communication distance between the sending and receiving nodes.The energy consumed by a node to send l bits of data is shown in Eq. (1).

$$E_{TX}(l,d)=\left\{ {\begin{array}{*{20}{c}} {{lE_{elec} + l\varepsilon _{fs} d^2 , d<{d_0} } } \\ {{lE_{elec} + l\varepsilon _{mp} d^4 , d. .{d_0}} } \end{array}} \right.$$
(1)

where, \({E_{TX}}(l,d)\)denotes the energy consumed by the transmitting node i to send l bits of data to the receiving node j which is at a distance of d from the transmitting node; \(l{\varepsilon _{fs}}{d^2}\) is the energy lost by the transmitting circuit; \({\varepsilon _{fs}}\) and \({\varepsilon _{mp}}\) are the power amplification energy losses in the free space model and multipath fading model respectively, and \({d_0}=\sqrt {{\varepsilon _{fs}}/{\varepsilon _{mp}}}\) is the distance threshold.

The energy consumed by the node to receive l bit of data is shown in Eq. (2).

$${E_{RX}}=l{E_{elec}}$$
(2)

where, \({E_{RX}}\)is the energy consumed by the node to receive l bits of data and \({E_{elec}}\) is the energy consumed per unit of bit by the node to send or receive (here it is assumed that the energy consumed for sending and receiving is the same).

The cluster head node is mainly responsible for collecting the data information from the nodes in the cluster to send to the relay nodes, then the energy consumption of the cluster head node is:

$${E_{CN}}=\gamma l({\delta _i} - 1)$$
(3)

where: \({\delta _i}\)-Number of nodes in the cluster,\(\gamma\)-Energy consumed by cluster head node to collect l bit data.

Node charging model

In the wireless rechargeable sensor network system, the energy loss of sensor nodes mainly originates from the data collection and data transmission activities between nodes. When the mobile charging trolley travels to the designated charging stops in the cluster and implements charging operation on the sensor nodes, the derivation based on Friis’ Equations40,41 leads to the expression of the received power of the sensor nodes as shown in Eq. (4):

$${P_r}={P_t}\frac{{{G_t}{G_r}\eta }}{{{L_P}}}{\left( {\frac{\lambda }{{4\pi (d+\beta )}}} \right)^2}$$
(4)

where: \({P_t}\)-MC’s charging power; d-The distance between the node and the MC; \({G_r}\)-Antenna gain at the receiving end; \(\lambda\)-Carrier wavelength; \(\eta\)-Rectification efficiency; \(\beta\)-Adjusting the parameters of the free-space equation for short-distance transmission; \({L_P}\)-polarization loss, is a parameter and all others are constants.

Sensor network cluster

Uneven energy consumption among sensor nodes is a critical factor affecting the lifetime of Wireless Rechargeable Sensor Networks (WRSNs). A well-designed clustering mechanism plays a pivotal role in balancing the energy consumption across the network and improving its overall performance and longevity.

In the WRSN architecture, clustering is typically performed to group sensor nodes based on certain criteria, with each group being managed by a cluster head node (CN, In wireless sensor networks, cluster head nodes are key nodes elected in each cluster through clustering algorithms. They are responsible for managing ordinary nodes within the cluster and data fusion processing, and are a core component of the clustered network architecture)42,43,44. The primary responsibility of the cluster head is to aggregate the data collected from all nodes within its cluster and transmit the fused data to the base station (BS). By utilizing data fusion techniques, the cluster head can synthesize information from multiple nodes, which enhances both the accuracy and reliability of the transmitted data. For instance, in a target tracking scenario, multiple sensor nodes might independently measure the target’s position. The cluster head node can combine these measurements using data fusion algorithms to derive a more accurate estimate of the target is location, providing a reliable data foundation for subsequent decision-making processes.

However, as the number of nodes within a cluster increases, the amount of data that the cluster head needs to collect and transmit also rises. This leads to higher energy consumption for data aggregation and transmission. To address this challenge, this paper proposes an uneven clustering strategy, where the energy consumption of cluster heads is dynamically managed based on their proximity to the base station (BS). Specifically, clusters closer to the BS have larger coverage areas and accommodate more sensor nodes. As a result, the energy consumption of the cluster head increases due to the larger volume of data it needs to handle. In contrast, clusters situated farther from the BS tend to have smaller coverage areas with fewer nodes, which reduces the cluster head’s energy consumption for data collection.

This dynamic partitioning strategy is reflected in the MC charging paths within the WRSN, where the charging decisions are tailored based on the energy needs of the nodes and the spatial distribution of the clusters. As shown in Fig. 2, the dynamic partitioning and MC charging paths are designed to optimize energy distribution, ensuring that nodes receive adequate energy replenishment while minimizing energy consumption, particularly for cluster heads that manage larger amounts of data.

By balancing the energy consumption of cluster heads based on their location within the network, this uneven clustering strategy not only enhances the network’s efficiency but also helps to extend the operational lifetime of the WRSN, ensuring more sustainable performance over time.

Fig. 2
figure 2

Node distribution and MC charging path map.

According to the sensor network partitioning model, in the network layout, the proportion of nodes in the area closer to the base station is relatively large. In the dynamic partitioning process, if the number of nodes near the base station is lower than the number of nodes far away from the base station, the necessary conditions for cluster partitioning cannot be met. In this case, it is necessary to adjust the loop through several iterations until the number of nodes in the cluster near the base station exceeds the number of nodes in the cluster far away from the base station, so as to achieve the requirements of uneven clustering and ensure the rationality and effectiveness of the network structure. When clustering the wireless rechargeable sensor network, based on the k-means algorithm45,46,47,48, the network is initially clustered by considering the energy and distance factors of the sensor nodes, and then the clustering effect is judged by the decision function\(\phi (i)\), which is shown in Eq. (5):

$$\phi (i)=\frac{{\tau (i) - \theta (i)}}{{\hbox{max} \left\{ {\theta (i),\tau (i)} \right\}}}$$
(5)

where:\(\theta (i)\)-Degrees of cohesion(Cohesion measures the closeness of samples within the same cluster, i.e., the similarity between sample points and the cluster to which they belong. The smaller the \(\theta (i)\) value, the closer sample i is to other samples in the cluster, and the stronger the cohesion of the cluster); \(\tau (i)\)-Degree of separation (Separation measures the degree of separation between different clusters, i.e., the difference between sample points and other clusters. The larger the \(\tau (i)\) value, the greater the distance between sample i and other clusters, and the stronger the separation between clusters); \(\phi (i) \in \left[ { - 1,1} \right]\).

The k-means clustering algorithm pseudo-code is shown below as well as the corresponding flowchart in Fig. 3.

Algorithm1  K-means

figure a

where \({k^*}\)is the optimal number of clusters, \({\phi ^*}\) is the optimal profile coefficient, and T is the maximum number of iterations of the k-mean clustering algorithm.

Through the decision function, the number of clusters in the wireless rechargeable sensor network can be determined through a number of iterative calculations. k. In this process, a weight function is introduced for the selection of cluster head nodes.

Fig. 3
figure 3

k-mean clustering algorithm flowchart.

This weight function considers the initial energy of the sensor nodes \({E_{in}}(i)\), surplus energy \({E_{rei}}\) and the average distance of the sensor node from other sensor nodes in the cluster \({d_{av}}\), The average distance \({d_{av}}\) is shown in Eq. (6):

$${d_{av}}=\frac{1}{{{\delta _j} - 1}}\sum\limits_{{i=1,i \ne j}}^{{{\delta _j} - 1}} {d({S_i},{S_{or}})}$$
(6)

where: \(d({S_i},{S_{or}})\) is the distance between a sensor node \({S_i}\) and any member node \({S_{or}}\) in the cluster.

Stability S can be measured by the energy fluctuation of a node over time, let \({E_i}(t)\) denote the energy of a node at a moment in time. \({T_S}\) is the length of the statistical time period, \(\overline {{{E_i}}}\) is the average energy of the node over the time period, then the expression for stability S is shown in Eq. (7):

$$S=1 - \frac{{\sum\limits_{{t=1}}^{{{T_S}}} {|{E_i}(t) - \overline {{{E_i}}} \begin{array}{*{20}{c}} | \end{array}} }}{{{T_S} \times \overline {{{E_i}}} }}$$
(7)

Location importance L can be determined based on the distance of the node from the base station or critical area, the closer the distance or the node that is on the critical path may be more important, the expression is as follows:

$$L=\frac{1}{{1+{e^{ - \theta (Y - {Y_0})}}}}$$
(8)

where is the \(\theta\) adjustment factor with a range of \(5\sim 10\), and \({Y_0}\) is the weighting threshold with a range of \(0.6\sim 0.8\). The weighting function Y is introduced as shown in Eq. (9):

$$Y={\alpha _1}\frac{{{E_{in}}(i)}}{{{E_{rei}}}}+{\alpha _2}\frac{1}{{{d_{av}}}}+{\lambda _1}L+{\lambda _2}S$$
(9)

where: \({\alpha _1}+{\alpha _2}+{\lambda _1}+{\lambda _2}=1\), The weight function is to calculate the weight of the sensor node campaigning for the cluster head node within each cluster, if the sensor node \({S_i}\)‘s\({E_{rei}}\), L, S The higher and \({d_{av}}\) smaller the weight Y of the sensor node \({S_i}\), the higher the probability of being a cluster head node, and vice versa, the lower the probability of being a cluster head node. The pseudo-code of the weight function calculation algorithm is as follows, and the corresponding flowchart is shown in Fig. 4.

Algorithm2  Algorithm for the computation of the weight function Y

figure b

During the process of electing a cluster head node, a special situation may arise where multiple sensor nodes within the same cluster have the same weight value. In such cases, a secondary criterion is applied to resolve the tie: the residual energy of the sensor nodes with identical weight values is compared. The node with the highest residual energy is selected as the cluster head, as it is more likely to have a longer operational lifespan, ensuring stable and reliable management of the cluster. All nodes in the network participate in the election process, and the node with the highest weight value is ultimately chosen as the cluster head. This weight value is typically a combination of factors such as node energy, distance to the base station (BS), and communication capabilities, which together reflect the node is ability to manage data aggregation and transmission efficiently. Once the cluster head election is completed, the base station (BS) broadcasts the information regarding the elected cluster heads to the member nodes within each cluster. This ensures that all nodes within a cluster are aware of their respective cluster head, facilitating smooth communication and coordination.

Fig. 4
figure 4

Flowchart of weight function calculation.

Simultaneously, the BS aggregates the cluster head nodes of all clusters into a set denoted as A, which is used for further network management tasks, such as coordinating energy distribution and optimizing communication routes across the WRSN. This approach ensures that the cluster head election is both fair and energy-efficient, with an emphasis on selecting nodes that can sustain high levels of performance throughout the network’s operation. It also facilitates the proper dissemination of cluster information, promoting efficient data aggregation and communication within the network.

Node energy threshold segmentation

Threshold division of sensor node energy, by setting different energy thresholds49,50,51, sensor nodes in the network can be made to undertake different tasks or work modes according to their remaining energy. For example, nodes with higher energy are assigned more data collection and transmission tasks, while nodes with lower energy are allowed to reduce their activities or enter into a dormant state, so as to equalize the energy consumption of the whole network, avoid certain nodes from prematurely exhausting their energy and dying, and prolong the overall lifetime of the network. The energy threshold can also be used as an important indicator to predict when a node may fail. When the remaining energy of a node is close to or lower than a certain threshold, the network manager can take corresponding measures in advance, such as adjusting routing paths, reassigning tasks, or arranging for node replacement, in order to ensure the normal operation of the network and to minimize the impact of sudden node failure on the performance of the network.

The sensor nodes within each cluster report their remaining energy to the cluster head node in real time. The charging strategy proposed in this paper takes into account the differences in node energy consumption and optimizes the threshold range in real time based on dynamic parameters such as node energy consumption rate, network load, and intra-cluster density, as shown in Eq. (10):

$${\text{X}}=\left\{ {\begin{array}{*{20}{c}} {E_{{danger}}^{i}={E_{base}} \cdot \left( {1 - \alpha \cdot \frac{{{\gamma _i}}}{{{\gamma _{max}}}}} \right) \cdot \left( {1+\partial \cdot \frac{{{d_i}}}{{{d_{max}}}}} \right)} \\ {E_{{emergency}}^{i}=E_{{danger}}^{i} \cdot \left( {0.4+0.6 \cdot {e^{ - \Re \cdot {L_{cluster}}}}} \right)} \\ {{L_{cluster}}=\frac{{{N_{packet}}}}{{{N_{max}}}}} \\ {\gamma _{i}^{{new}}=\ell \cdot \gamma _{i}^{{old}}+(1 - \ell ) \cdot \frac{{{E_{consumed}}}}{{\Delta t}}} \end{array}} \right.$$
(10)

where \({E_{{\text{base}}}}=40\% {E_{\hbox{max} }}\)(\({E_{\hbox{max} }}\) is the maximum energy of the sensor node), is the adjustable base charging threshold; \(\alpha \in [0,1]\) is the energy consumption rate weight (high energy consuming nodes lower the danger threshold); \(\partial \in [0,0.5]\) is the distance weight (away from the cluster head node raises the threshold); \(\Re>0\) is the load sensitivity factor (emergency threshold is adaptively lowered in case of high loads); \({\gamma _i}\) is the energy consumption rate of node i (energy consumption per unit of time); \({L_{{\text{cluster}}}}\) is the current intra-cluster load (frequency of packet transmissions); and \({d_i}\) is the node i’s to cluster head distance; \(\ell \in [0,1]\) is the smoothing factor (\(\ell \to 1\)), the new energy consumption rate is almost completely dependent on historical data and ignores current measurements. The system is highly stable but slow in response. \(\ell \to 0,\) The new energy consumption rate is completely determined by current measurements. The system responds quickly but is susceptible to short-term fluctuations, \({E_{{\text{consumed}}}}\) is the energy consumed by node i in time interval (\(\Delta t\)); \({N_{{\text{packet}}}}\) is the total number of intra-cluster packet transmissions per unit time; and \({N_{{\text{max}}}}\) is the preset maximum amount of packets to be carried in the cluster. To avoid the increase in energy consumption due to frequent calculations, the thresholds are updated every 60 s.

  1. 1.

    When \({\text{X}}=E_{{danger}}^{i}\), the remaining energy of the sensor node is in the warning interval, the node sends a request for charging request and stores it in the set G.

  2. 2.

    When the residual energy of the sensor node drops to the danger zone, the node will send out an emergency charging signal and add itself to the emergency charging aggregate Q.

When the Base Station (BS) receives a charging request from a node, it forwards this information to the Mobile Charger (MC). In this case, if MC receives the emergency charging signal, it will prioritize the charging of nodes in set Q to prevent these nodes from running out of energy and becoming dead nodes. After completing the emergency charging, if there is no new emergency charging signal, the MC will plan the charging of the nodes in the set G according to the priority. Once the charging of the nodes in collection G is completed, the MC will then charge the nodes in the collection H of dead nodes according to the distance priority principle.

Mobile charging trolley path planning

Mobile charging trolley charging stops identified

In a network, uneven energy consumption of sensor nodes within each cluster may lead to premature death of individual nodes. Therefore, it is necessary to consider the distance of nodes to the cluster head and their energy consumption rate comprehensively in the charging strategy. Nodes with high consumption rate should be close to the charging dwell point, while nodes with low consumption rate can be a little farther away. These two factors are used to ensure fair and efficient charging of nodes within the cluster when choosing the location of the mobile charger (MC) dwell point, thus guaranteeing the normal operation of the network and the efficient utilization and saving of energy. The following scheme is proposed in this paper for the distribution of nodes in the cluster:

  1. 1.

    When there is only one node in the cluster, there is no need to calculate the charging dwell point and the MC moves directly to that node position for charging.

  2. 2.

    When there are two and more nodes in the cluster, the coordinates of the charging dwell points in the cluster are determined by the coordinate information \(CO{S_i}\) of the sensor nodes and the energy consumption rates of the sensor nodes in different states, as shown in Eqs. (11, 12):

$$\left\{ {\begin{array}{*{20}{c}} {{X_{stay}}=\sum\limits_{{i=1}}^{{{\delta _j}}} {({\xi _i} \cdot {x_i})} } \\ {{Y_{stay}}=\sum\limits_{{i=1}}^{{{\delta _j}}} {({\xi _i} \cdot {y_i})} } \end{array}} \right.$$
(11)
$${\zeta _i}={\omega _s}\frac{{{P_{si}}}}{{\sum\limits_{{i=1}}^{{{\delta _j}}} {{P_{si}}} }}+{\omega _r}\frac{{{P_{ri}}}}{{\sum\limits_{{i=1}}^{{{\delta _j}}} {{P_{ri}}} }}+{\omega _d}\frac{{{P_{di}}}}{{\sum\limits_{{i=1}}^{{{\delta _j}}} {{P_{di}}} }}$$
(12)

where: \({\xi _i}\) is the ratio of the energy consumption rate of node \({S_i}\) in a given cluster in different states to the energy consumption rate of all nodes in the cluster. \({P_{si}}\), \({P_{ri}}\), \({P_{di}}\) denote the energy consumption rate of node \({S_i}\) in the data sending, receiving and sleeping states, respectively. \({\omega _s}\), \({\omega _r}\), \({\omega _d}\) are the sensor node data sending energy consumption rate weights, data receiving energy consumption rate weights, and data dormant energy consumption rate weights, respectively. \({x_i}\), \({y_i}\) are the horizontal and vertical coordinates of the sensor node \({S_i}\).When determining the location of the charging point, the charging time of each sensor node in the cluster can be balanced more effectively by introducing the weight factor of the node’s energy consumption power. This method can reasonably allocate the charging resources according to the actual energy demand of the nodes, thus improving the charging efficiency and prolonging the overall lifetime of the network.

Prioritization of clusters

In this paper, a non-uniform clustering strategy is used, so there is a difference in the energy consumption of different clusters. For clusters with more nodes, the energy consumption of the cluster head node is inevitably higher than that of clusters with fewer nodes. These differences need to be taken into account while formulating the charging priority. The charging cluster priority includes the evaluation of distance priority, which is defined as the ratio of the distance from the MC charging dwell point to the current position of the MC in the current cluster to the total distance from the charging dwell point to the MC in all remaining clusters. This weighting metric enables effective optimization of the MC’s charging path and energy utilization efficiency.

$${d_{}}=\frac{{{d_{MC - {\mu _{stay}}}}}}{{\sum\limits_{{i=1}}^{k} {{d_{MC - {\mu _{stay}}}}} }}$$
(13)
$${d_{MC - {\mu _{stay}}}}=\sqrt {{{({X_{MC}} - {X_{stay}})}^2}+{{({Y_{MC}} - {Y_{stay}})}^2}}$$
(14)

where: The position coordinates of the MC are \(({X_{MC}},{Y_{MC}})\), and the position coordinates of the charging dwell point are \(({X_{stay}},{Y_{stay}})\).

The priority of residual energy is the ratio of the average value of residual energy of all sensor nodes in the cluster to the sum of the average value of residual energy in all uncharged clusters. This priority is used to measure the overall residual energy level of the nodes in the cluster, so as to rationally arrange the charging order and prioritize the allocation of charging resources for the clusters with lower residual energy to ensure the continuity of network operation and the fairness of energy allocation. As shown in Eq. (15):

$$E=\frac{{\sum\limits_{{i=1}}^{{{\delta _j}}} {{E_{rei}}/{\delta _j}} }}{{\sum\limits_{{j=1}}^{{k - 1}} {\sum\limits_{{i=1}}^{{{\delta _j}}} {{E_{rei}}} } }}$$
(15)

The priority of energy consumption rate is defined as the ratio of the average value of the energy consumption rate of all nodes in a given cluster to the sum of the total energy consumption rate of all nodes, which is calculated as shown in Eq. (16).

This priority is used to measure the average energy consumption of the nodes within a cluster in order to prioritize the scheduling of charging for clusters with higher energy consumption rates, thus reducing the risk of premature death of the nodes and optimizing the efficiency of energy allocation and utilization across the network:

$$P=\sum\limits_{{i=1}}^{{{\delta _j}}} {({P_i}/{\delta _j})/\sum\limits_{{i=1}}^{N} {{P_i}} }$$
(16)

The hybrid priority of a cluster is obtained by weighted summation of the distance priority, residual energy priority and energy consumption rate priority of the cluster according to certain weights. Through the result of weight calculation of hybrid priority, the priority level of each cluster can be determined. Specifically, the priority level reflects the degree of urgency of each cluster after considering the distance, remaining energy and energy consumption rate, so as to provide reasonable charging sequence planning for MCs to achieve efficient energy utilization and fair network operation.

$$T=\sigma d+\varepsilon E+\zeta P$$
(17)

where: \(\sigma\) is the weight of distance priority, \(\varepsilon\) is the weight of residual energy priority, \(\zeta\) is the weight of energy consumption rate priority, and the three weights satisfy \(\sigma +\varepsilon +\zeta =1\).

Based on the value of T obtained each time, the cluster with the smallest value of T is selected as the next charging cluster and charged. When the ratio of the weight value of the distance and the energy consumption rate is larger, the cluster with low residual energy is prioritized and the nodes in the cluster are charged. The weight value of the corresponding parameter is calculated for each cluster T, and the charging sequence is arranged based on the size of the final weight value.

Simulation analysis

Parameter settings

In this paper, MATLAB2024a is used to conduct simulation experiments to construct a square area with a side length of 400 m in the network and randomly deploy base stations and a varying number of sensor nodes in the area. The initial position of the MC is set to be the location of the base station, the generation of node data information follows the law of Poisson distribution with an average time interval of 60 s, and the bandwidth of the network is set to be 10kbps.The whole simulation running time is 72,000 s, and the specific simulation parameters are shown in Table 1.

Table 1 Parameter settings.

In this paper, the algorithm is used to compare with VTMT52, SAMER, and FCFS53 strategies, where the VTMT(Vehicle-to-Microgrid Technology, charging strategy is an intelligent charging strategy that takes into account the interaction between the vehicle and the microgrid. The VTMT charging strategy is designed to optimize the charging process of electric vehicles (EVs) while taking into account the operating conditions and demands of the microgrid. It dynamically adjusts the charging power and time of EVs through real-time monitoring and analysis of the microgrid’s parameters such as voltage, frequency, and power balance, as well as the EV’s charging demand, battery status, and other information, in order to achieve the coordinated optimization of vehicle charging and microgrid operation.) strategy is a research strategy that can provide charging support for dead nodes, and the performance of the strategies can be evaluated by comparing the node mortality rate. The SAMER(The SAMER charging algorithm, i.e., Starvation Avoidance Mobile Energy Replenishment (SAMER) algorithm, is proposed to address the problem of energy constraints in wireless rechargeable sensor networks.The SAMER algorithm avoids energy shortfalls by calculating and taking into account the maximum tolerable waiting time for each charging request. shortage. It comprehensively evaluates the energy status, charging demand, and location of each sensor node in the network, and plans reasonable charging paths and scheduling schemes for the mobile chargers, prioritizing the charging demand of nodes that are about to run out of energy and have high charging waiting time requirements, so as to ensure a balanced supply of energy in the whole network, and to effectively avoid node failures caused by energy starvation.) strategy is a classical online charging strategy, while the FCFS (First-Come, First-Served, charging strategy is a charging management strategy based on the first-come, first-served principle, e.g., if sensor node i sends a charging request before sensor node j, the MC prioritizes charging sensor node i, even though sensor node i has a higher residual energy than sensor node j.)strategy has a lower charging performance, and is usually used to compare the performance of DICCS strategy. The performance metrics analyzed in this paper for comparison are as follows:

Cost of charging

It refers to the total distance traveled by the MC in the process of completing a round of charging tasks. This metric reflects the efficiency of charging path planning, the shorter distance indicates the lower charging cost and the better strategy performance.

Nodal mortality rate

It refers to the ratio of the number of nodes dying due to energy depletion to the total number of nodes. Node death rate is an important indicator for evaluating the charging strategy, the smaller the value, the better the strategy is in guaranteeing the continuous operation of the network.

Average waiting time for node charging

The average time that the sensor node to be charged waits from sending the charging request message to the MC charging it. By comparing and analyzing these metrics, the advantages and disadvantages of different charging strategies can be more comprehensively evaluated.

Impact of changes in parameters on indicators

In this paper, we vary the MC movement speed, MC charging rate, number of nodes, topology of the network, and node energy consumption rate parameters to observe the impact on the above performance metrics.

Impact of MC movement speed on metrics

In this part of the experiment, we focus on the effect of the change of MC movement speed on the performance index of each charging strategy. The performance of the four strategies at different speeds is observed in detail by gradually changing the MC’s moving speed so that it grows linearly in the range 1 ~ 8 m/s.

As shown in Fig. 5(a), a clear trend emerges where the node mortality rates of all four charging strategies decrease gradually as the MC’s moving speed increases. However, the DICCS strategy outperforms the other three strategies. It is evident from the results that when the MC’s speed reaches a certain threshold, the node mortality rate of the DICCS, VTMT, and SAMER strategies approaches zero. This indicates that at higher speeds, these strategies effectively maintain the operational status of the sensor nodes and prevent node failure due to energy depletion. Notably, the DICCS strategy exhibits a significantly lower node mortality rate compared to the other three strategies within this speed interval.

The superior performance of DICCS can be attributed to its unique approach, which incorporates a dual energy threshold for sensor nodes and prioritizes the charging of nodes with lower residual energy. Additionally, the MC continuously collects real-time data about the sensor nodes, allowing it to dynamically adjust its charging schedule based on the current energy status of the nodes. This dynamic mechanism ensures that the DICCS strategy effectively reduces the mortality rate of sensor nodes while ensuring fairness and efficiency in the charging process. In contrast, the VTMT and SAMER strategies exhibit similar node mortality rates, both showing some charging efficacy. However, the FCFS strategy has a notably higher mortality rate compared to the other strategies.

This is mainly due to the FCFS strategy’s failure to fully consider the fairness of charging and the dynamic energy consumption of nodes during the charging process, resulting in suboptimal charging path planning. This inefficiency increases the MC’s travel distance, and certain sensor nodes may fail to receive timely charging, causing them to deplete their energy and die prematurely. Consequently, the FCFS strategy demonstrates poorer charging performance, as reflected in its high node mortality rate.

Fig. 5
figure 5

Effect of MC movement speed on metrics.

Fig. 6
figure 6

Effect of MC charging rate speed on metrics.

Fig. 7
figure 7

Effect of number of nodes on metrics.

In summary, the DICCS strategy achieves the best results in terms of node mortality and charging fairness, making it more suitable for wireless sensor networks characterized by high dynamics and uneven energy consumption distributions.

As shown in Fig. 5(b), the average waiting time for sensor node charging decreases as the MC’s speed increases. At higher MC speeds, the average waiting time for the DICCS, VTMT, and SAMER strategies approaches zero. However, the average waiting time for the FCFS strategy is approximately 3.1 times longer than that of the DICCS, VTMT, and SAMER strategies when the MC moves at a high speed. This highlights the inefficiency of the FCFS strategy in reducing waiting times. The reason for this inefficiency is that the FCFS strategy does not consider the geographic location of the sensor nodes when determining the charging sequence. As a result, the MC moves in a disorganized, back-and-forth manner, increasing its travel overhead. This unnecessary movement leads to longer waiting times for nodes to receive charging services. Although the waiting time for the FCFS strategy decreases with an increase in MC speed, it still lags behind the DICCS, VTMT, and SAMER strategies.

As shown in Fig. 5(c), the MC charging cost for all four strategies increases as the MC’s speed rises. This increase is due to the fact that a higher MC speed enables it to serve more nodes per unit of time, thereby increasing the total distance it needs to cover within the network. Among the strategies, the DICCS and FCFS strategies have lower charging costs compared to VTMT and SAMER. For example, the charging cost of the MC in the SAMER strategy is approximately 1.27 times higher than that of the VTMT strategy, 1.91 times higher than that of the FCFS strategy, and 2.30 times higher than that of the DICCS strategy when the MC moves at a high speed.

Despite the rising charging costs with increased MC speed, the DICCS strategy maintains relatively optimal overall performance. This is because DICCS carefully considers factors such as node distribution, energy states, and charging efficiency when designing the charging process. As a result, the MC can select the most efficient charging path and prioritize the charging of sensor nodes in a more rational manner, thereby mitigating the impact of increased charging costs caused by the higher MC speed. This comprehensive approach allows the DICCS strategy to strike a balance between charging efficiency, cost, and overall network performance.

Impact of MC charging rate on metrics

This set of experiments observes the performance of different charging strategies by adjusting the charging rate of the MC to the nodes (the range is set to 75 mJ/s −250 mJ/s). The experimental results are shown in Fig. 6:

As shown in Fig. 6(a), as the MC charging rate increases, the number of sensor nodes served by all four charging strategies (FCFS, DICCS, SAMER, and VTMT) also increases. This is because a higher charging rate allows the MC to transmit more energy to the sensor nodes per unit of time, enabling more nodes to receive energy replenishment in a timely manner. This ultimately leads to a reduction in the node mortality rate. The DICCS charging strategy again demonstrates its superior performance. Specifically, when the MC charging speed reaches a certain point, the node mortality rate of the DICCS strategy essentially drops to zero. At this point, the node mortality rate in the DICCS strategy stabilizes, while the mortality rates of the FCFS, SAMER, and VTMT strategies remain non-zero, even at the same charging speed. For instance, when the charging speed reaches a specific value, the FCFS strategy’s node mortality rate is about 1.65 times that of the SAMER strategy and 2.32 times that of the VTMT strategy. This is mainly because the FCFS strategy only charges sensor nodes based on the sequence in which the nodes request charging, without considering the energy state of the nodes or the overall network condition. As a result, the FCFS strategy demonstrates the worst performance and the highest node mortality rate.

As shown in Fig. 6(b), the average charging waiting time for sensor nodes decreases with the increase in the MC charging speed for all four strategies. This reduction in waiting time reflects improved charging efficiency, as the increased speed allows the MC to serve more nodes within a given time period.

For example, when the MC charging speed reaches a specific point, the average charging waiting time for the FCFS strategy is 1.36 times longer than that of the VTMT strategy, 1.62 times longer than that of the SAMER strategy, and 2.0 times longer than that of the DICCS strategy. The DICCS strategy excels in reducing waiting times due to its ability to charge multiple nodes simultaneously, leveraging parallel charging. This parallel charging mechanism ensures that the charging resources are used more efficiently. In contrast, the FCFS strategy is serial in nature, meaning nodes are charged one after the other. This serial approach fails to maximize the use of available charging resources, resulting in longer waiting times for sensor nodes to be charged.

Fig. 8
figure 8

Impact of the topology of the network on the metrics.

Fig. 9
figure 9

Impact of node energy consumption rate on metrics.

As shown in Fig. 6(c), the number of sensor nodes served by the MC increases as the MC’s charging rate accelerates. However, the charging cost for the FCFS strategy is significantly higher than that for the DICCS, SAMER, and VTMT strategies, mainly because the FCFS strategy involves unnecessary back-and-forth movements of the MC in the sensor network. Additionally, the FCFS strategy does not adequately take into account the relationship between charging efficiency and cost during the design process. For instance, when the MC charging speed reaches a certain point, the charging cost of the FCFS strategy is about 1.52 times that of the VTMT strategy, 2.0 times that of the SAMER strategy, and 2.92 times that of the DICCS strategy. The DICCS strategy exhibits the lowest charging cost due to its more efficient selection of sensor nodes based on their energy consumption dynamics, ensuring that the MC charges the nodes with the most pressing needs first. This efficient scheduling leads to a lower node mortality rate while effectively reducing the overall charging cost. As a result, the DICCS strategy delivers higher overall performance compared to the FCFS, SAMER, and VTMT strategies, even as the MC’s charging speed increases.

In summary, the DICCS strategy consistently outperforms the other strategies in terms of node mortality rate, charging waiting time, and charging cost due to its intelligent, dynamic charging mechanism that takes into account both the energy consumption of individual nodes and the overall network dynamics.

Impact of the number of nodes on indicators

This set of experiments analyzes the effect of the change in the number of nodes on each performance metric by gradually increasing the number of nodes at intervals of 25 (ranging from 25 to 200). The experimental results are shown in Fig. 7.

As shown in Fig. 7(a), when the number of sensor nodes is small, such as 50 nodes, the node mortality rates for all four charging strategies (FCFS, SAMER, VTMT, and DICCS) are relatively low. This is because, in smaller networks, the energy resources are more abundant, allowing each sensor node to obtain enough energy easily, thus maintaining normal operation. However, as the number of nodes increases, competition for energy intensifies, leading to higher node mortality rates across all strategies. Among these, the FCFS, SAMER, and VTMT strategies show a faster increase in node mortality, while the DICCS strategy demonstrates significantly lower mortality rates compared to the others. For instance, when the number of sensor nodes reaches 150, the node mortality rate of the FCFS strategy is 1.21 times that of the VTMT strategy, 1.6 times that of the SAMER strategy, and 6.8 times that of the DICCS strategy. This significant improvement in the DICCS strategy is primarily due to its dual threshold mechanism, which prioritizes the charging of nodes with critically low energy. Additionally, the DICCS strategy continuously gathers real-time node data, enabling it to make accurate decisions regarding which nodes should receive charging first, effectively balancing energy distribution across the network and minimizing node mortality.

As shown in Fig. 7(b), the average waiting time for charging of all four strategies increases with the growing number of sensor nodes. This is because an increasing number of nodes leads to more charging requests, while the MC’s charging capacity is limited, requiring nodes to wait longer for charging services. Among the strategies, the DICCS and VTMT strategies experience a slower increase in waiting time, while the FCFS and SAMER strategies show a faster rise in waiting time.

For example, when the number of sensor nodes reaches 175, the average waiting time for FCFS charging is 1.91 times that of the SAMER strategy, 2.16 times that of the VTMT strategy, and 3.25 times that of the DICCS strategy. The FCFS strategy lacks dynamic assessment of the nodes’ energy urgency and their geographical distribution. This blind charging selection leads to poorly planned MC charging paths, resulting in longer traveling distances for the MC and a delayed charging process for many nodes. In contrast, the DICCS strategy optimizes the path planning based on energy urgency and node location, leading to more efficient charging and shorter waiting times.

As shown in Fig. 7(c), the charging cost of all four strategies initially increases and then decreases. This behavior is primarily related to the changing node density and the optimization of the charging paths. When the number of nodes is small, such as below 75 nodes, the MC has to travel larger distances to serve nodes due to their sparse distribution, leading to higher charging costs. However, as node density increases, charging path optimization becomes more efficient, and the MC’s travel distance decreases, lowering the charging cost. In this process, the DICCS strategy stands out by accounting for dynamic changes in node energy consumption, prioritizing charging, and adjusting the charging path in real-time. This approach ensures more efficient allocation of charging resources. By considering factors like node residual energy, energy consumption rates, and distances, the DICCS strategy optimizes the MC is charging path and charging sequence, minimizing unnecessary movement and effectively reducing the charging cost.

In summary, the DICCS strategy consistently outperforms the other strategies in terms of node mortality rate, waiting time, and charging cost by dynamically adjusting to changes in the network and efficiently managing the MC’s charging resources. This makes the DICCS strategy more effective in large and dynamic sensor networks.

Impact of the network’s topology on metrics

The network topology is very important for different network metrics (e.g., node mortality, average waiting time, charging cost, transmission efficiency, reliability, etc.). Each topology exhibits different performance characteristics under different strategies, affecting the efficiency, stability, and cost of the network. Network topology can significantly affect several metrics under different application scenarios and management strategies. In this paper, we demonstrate the impact of four different policies (FCFS, VTMT, SAMER, DICCS) on the metrics parameters under eight different network topologies (Circular, Cellular, Triangular, Mesh, Rectangular, Tree, Random, Star). The experimental results are shown in Fig. 8.

As shown in Fig. 8(a), the impact of different network topologies on Node Mortality (NM) is presented for four charging strategies (FCFS, VTMT, SAMER, and DICCS). The FCFS strategy shows relatively consistent performance across most topologies. However, the node mortality rate increases as the network topology changes, with a notable increase under triangular and rectangular topologies.

The VTMT strategy performs better than FCFS, with a lower node mortality rate, especially under random and star topologies, where the node mortality rate remains relatively low. The SAMER strategy also shows better performance across all topologies, maintaining a low node mortality rate, particularly in star and random topologies. In contrast, the DICCS strategy exhibits the highest node mortality rate, particularly under circular and star topologies. Interestingly, cellular network topology consistently demonstrates the lowest node mortality rate, suggesting that it is the most efficient topology in terms of maintaining node survival.

In Fig. 8(b), the effect of network topologies on average waiting time under the four strategies is shown. FCFS generally results in high waiting times across most topologies, with the circular and triangular topologies showing exceptionally high waiting times (close to 800 s). This suggests that certain topologies may cause resource contention when network loads are high, leading to longer waiting times for charging. Compared to FCFS, VTMT generally maintains a lower average waiting time, especially under tree and star topologies, where the waiting time is relatively low (around 300 s). This indicates that these topologies support more efficient resource scheduling, which in turn reduces waiting times. On the other hand, circular and triangular topologies tend to have longer waiting times, potentially due to longer data paths and less efficient node connectivity.

The SAMER strategy demonstrates a consistently low average waiting time for all topologies, performing particularly well in star and tree topologies, with waiting times under 300 s. This highlights SAMER’s ability to adapt well to network changes, reducing resource contention and enhancing charging efficiency. The DICCS strategy has the shortest waiting times in most topologies, especially in the star topology, where the waiting time is minimized to around 300 s. This can be attributed to the centralized nature of the star topology, which allows for more efficient scheduling and resource allocation. The cellular topology also performs well, though it shows slightly higher waiting times than the star topology.

As shown in Fig. 8(c), the effect of network topologies on charging cost is demonstrated. FCFS generally experiences rising charging costs across most topologies, with particularly high charging costs under circular and triangular topologies. However, the star topology stands out with a relatively low charging cost, indicating its efficiency in resource management, which helps reduce the overall charging-related costs. VTMT exhibits relatively low charging costs across all topologies, particularly under star and tree topologies, where charging costs remain low. This suggests that these topologies allow for better management of battery and charging resources, thus reducing the charging cost. On the other hand, SAMER tends to have higher charging costs, especially in cellular and rectangular topologies, where significant resource allocation inefficiencies lead to increased costs. DICCS generally shows the highest charging costs across most topologies, particularly in tree-shaped and rectangular topologies. This may be due to the distributed concurrent communication strategy, which increases communication and charging overheads in these topologies. However, the star topology performs better in charging cost under DICCS, suggesting that this topology is better suited to reduce resource consumption in concurrent communication management.

In summary, different network topologies significantly influence the key parameters of node mortality rate, waiting time, and charging cost. By selecting the appropriate topology based on network size, load, and performance objectives, it is possible to optimize resource management, reduce costs, improve transmission efficiency, and enhance the reliability of the network. Star topology appears to be the most efficient for reducing waiting time and charging costs, while cellular topology is the most effective in minimizing node mortality. DICCS performs well in most topologies but benefits the most from star topology for efficient resource management.

Impact of nodal energy consumption rates on indicators

This set of experiments analyzes the effect of the change in the energy consumption rate of the nodes on each performance index by gradually increasing the energy consumption rate of the nodes in intervals of 0.25mJ/s(range of 0.5mJ/s~2.25mJ/s). The experimental results are shown in Fig. 9.

As shown in Fig. 9(a), when the energy consumption rate of sensor nodes gradually increases, the node mortality rate of all four charging strategies (FCFS, VTMT, SAMER, and DICCS) also increases. The increase in mortality is especially significant for the FCFS strategy. This happens because when the energy consumption rate rises, the sensor nodes consume energy more rapidly, and if their energy is not replenished in time, the nodes die. This leads to an increase in node mortality within the network. Specifically, when the energy consumption rate reaches a certain level, the FCFS strategy shows a node mortality rate that is 1.4 times that of SAMER, 1.94 times that of VTMT, and 2 times that of DICCS. Despite the increase in node mortality with higher energy consumption rates, the DICCS strategy continues to exhibit a lower mortality rate compared to the other three strategies. This superior performance is attributed to the DICCS strategy’s use of a dual threshold mechanism (emergency charging set Q and warning set G), which prioritizes charging for nodes with high energy consumption.

Additionally, dynamic clustering is used to optimize the charging path, ensuring that high-energy-consuming nodes receive timely energy replenishment, thereby reducing their mortality rate.

As seen in Fig. 9(b), when the energy consumption rate of sensor nodes increases, the average charging waiting time for all four strategies also increases. However, the FCFS strategy has a significantly higher charging waiting time compared to VTMT, SAMER, and DICCS strategies. The increased energy consumption rate leads to more frequent charging requests, and without efficient charging scheduling, the waiting time for nodes to get charged increases. The FCFS policy processes requests sequentially, without considering the energy consumption of the nodes, leading to a sharp rise in waiting times. For instance, when the node energy consumption rate increases, the FCFS policy’s average charging waiting time is about 2.75 times that of SAMER, 5 times that of VTMT, and 15 times that of DICCS. Although the waiting times for VTMT, SAMER, and DICCS are similar, the DICCS strategy results in the shortest waiting time. This is because DICCS uses dynamic clustering and parallel charging mechanisms (such as multi-node dwell point optimization) to reduce unnecessary movement between clusters and shortens the waiting time for high-energy-consuming nodes through priority scheduling. As a result, DICCS effectively reduces the average charging waiting time, thereby extending the lifespan of the sensor network.

In Fig. 9(c), when the energy consumption rate of the sensor nodes increases, the charging cost for the FCFS strategy remains the highest compared to the VTMT, SAMER, and DICCS strategies. This is because the mobile charger (MC) needs to move more frequently to meet the increased demand for charging caused by the higher energy consumption rate, leading to an increase in the total distance traveled. The high charging cost for FCFS is primarily due to inefficient path planning, such as round-trip movements that increase the distance covered. On the other hand, the DICCS strategy has the lowest charging cost, as it optimizes the charging path by considering factors such as distance, remaining energy, and energy consumption rate. By doing so, it minimizes redundant movements and centralizes the service for multiple nodes using the clustering mechanism, reducing the cost of each charging trip. Although DICCS’s charging cost increases as the energy consumption rate rises, the increase is smaller than that of the other strategies. The VTMT and SAMER strategies show a decreasing trend in charging costs when the energy consumption rate increases. This reduction is due to changes in the distribution of nodes or network topology as some nodes fail due to rapid energy depletion, which leads to the formation of denser clusters of remaining nodes. In this case, the MC can serve most of the nodes by simply moving between these clusters, reducing the travel distance compared to when nodes were scattered across the network.

In summary, as the energy consumption rate of sensor nodes increases, the FCFS strategy experiences a significant rise in both node mortality and charging waiting time, as well as a higher charging cost due to inefficient scheduling and movement. The DICCS strategy, however, effectively mitigates these issues by prioritizing high-energy-consuming nodes, optimizing charging paths, and using dynamic clustering, resulting in a lower node mortality rate, shorter waiting times, and lower charging costs compared to the other strategies. VTMT and SAMER also perform better than FCFS, but DICCS remains the most efficient strategy, especially under high energy consumption conditions.

Real-time and Robustness Testing.

The real-time test is designed to verify the ability of the DICCS strategy to respond quickly to dynamic network changes, including charging request processing, and scheduling delays of mobile charging carts (MC).

Charge request processing time.

A burst scenario where nodes send charging requests at different energy thresholds is simulated (e.g., 50% of nodes enter the warning threshold at the same time), and the time from the issuance of the request to the completion of the message processing at the base station (BS) is recorded. The results show that the DICCS strategy has an average request processing time of 0.8 s, which is significantly lower than that of SAMER (1.5 s) and FCFS (2.2 s) through the dynamic clustering and double thresholding mechanism.

MC Response Time.

In a network with node densities from 25 to 200, the average time for MCs to arrive at the first charging dwell point from receiving a charging command is counted. The average response time of MCs in DICCS is 12 s, which outperforms that of VTMT (18 s) and FCFS (28 s). Thanks to the dynamic cluster optimized path planning, the MC movement path is reduced by 23%.

The robustness test verifies the stability and fault tolerance of the DICCS policy in abnormal environments, including scenarios such as node failure, and MC failure.

Node Random Failure.

Randomly shut down 30% of the nodes and observe the charging efficiency and network survival rate of the remaining nodes. The results show that DICCS by dynamically adjusting the cluster head weights and charging priorities, the mortality rate of the remaining nodes increases to only 5.1%, which is significantly lower than that of SAMER (8.7%) and FCFS (12.3%).

Dynamic energy consumption rate fluctuations.

The node energy consumption rate is randomly adjusted (± 50%) to test the system’s adaptability to sudden changes in energy consumption. The results show that DICCS has a node mortality rate fluctuation range of less than 1.2% by updating the energy rate weights in real time, while FCFS has a fluctuation range of 4.5%.

The DICCS strategy shows efficient dynamic response capability in real-time, and its charging request processing, MC scheduling and topology reconfiguration time are better than the comparison algorithms; in the robustness test, DICCS effectively copes with abnormal scenarios such as node failure and communication interference through redundancy mechanism, dynamic priority adjustment and path optimization, and the network mortality rate and charging efficiency remain stable. Experiments show that DICCS is suitable for large-scale WRSN in dynamic and complex environments, and has strong engineering practical value.

Conclusion

Aiming at the network performance limitation problem caused by high node mortality in wireless rechargeable sensor networks (WRSNs), a charging strategy based on dynamic inhomogeneous clustering (DICCS) is proposed. Through the dynamic clustering mechanism with hybrid priority scheduling, the energy allocation efficiency is significantly optimized and the node mortality rate is reduced. Specific methods include (1) an improved k-means algorithm combines node energy, location and energy consumption rate to dynamically adjust the cluster structure, and introduces a weight function (combining the initial energy, remaining energy and average distance within the cluster) to elect the cluster head to balance the energy consumption, and (2) designing a mobile charging vehicle (MC) charging path planning strategy that determines the stopping points for single-node and multi-node clusters, respectively, and scheduling them through hybrid priority (distance, remaining energy, energy consumption rate) to dynamically adjust the charging sequence.

Simulation experiments show that DICCS outperforms SAMER, VTMT, and FCFS strategies in terms of node mortality rate, charging waiting time, and MC mobility cost.DICCS prioritizes and guarantees the charging of high-energy-consumption nodes through dual dynamic charging thresholds, which improves the network life cycle and stability. In future research, we will extend the multi-MC cooperative charging mechanism to solve the path conflict and task allocation problems in large-scale networks; optimize the complexity of the algorithm to enhance the real-time performance and robustness to cope with the challenges of dynamic topology and node mobility; and explore the application of deep learning and reinforcement learning in charging scheduling to further improve the resource allocation efficiency.