Abstract
One key issue in designing battery-powered wireless sensor networks is to properly control the energy consumption of the sensor nodes in order to prolong their operation time (i.e.
Introduction
In recent years, wireless sensor networks (WSNs) have been integrated into many real-life applications, such as habitat study, 1 environment/ecology monitoring, 2 railway bridge monitoring, 3 datacenter monitoring, 4 and industrial monitoring. 5 A WSN is generally composed of tens to thousands of sensor nodes, each of which is equipped with several sensing devices, a short-range wireless transceiver, a low-cost computational capacity processor, and a limited battery-supplied energy. Sensor nodes monitor some surrounding environment and forward data obtained to a base station, which collects data and then transmits this data to a remote control center.
Although much attention has been paid to designing sensors for low power consumption, sensor nodes still have very limited operation lifetime. Moreover, it may be infeasible or expensive to replace the batteries in sensor nodes after deploying a WSN. One critical and challenging problem in WSNs is how to manage their energy consumption to achieve the maximum lifetime under the battery energy constraint.
In general, multi-hop data forwarding schemes, 6 where the data of sensor nodes that are far away are relayed by their neighbor nodes that are closer to the base station, are more energy efficient than direct transmission when the cover range is fairly large. However, a WSN may still survive only a very limited lifetime if adopting no effective policy to deal with the increased transmission activities of such near-by sensor nodes which depletes the battery energy quickly. 7 To address this problem, one can place more sensor nodes close to the base station and set them transmit at lower transmission levels 7 or adopt duty cycle scheduling approaches 8 to extend their operation time. In addition, mobile base stations are explored to prolong the lifetime of a WSN.9,10 For the case when the base station is not moveable, mobile elements that can transverse the deployment field and convey the collected data from sensor nodes to the base station have been studied for energy-efficient data collection in WSNs.11–17
Railway systems are a critical part of many nations’ infrastructure, where the reliability and safety are two major concerns for their transportation. For some special goods, such as flour and cotton, they will deteriorate if in wet air for a long-distance transportation, which causes economic loss. More seriously, they may self-ignite and cause an explosion if in dry and high temperature air for a long time, which can also put the human life in danger. An automated approach for keeping track of some crucial data within goods and/or boxcars in a train, such as humidity and temperature, is of utmost importance.
In this article, focusing on a real-life application of WSNs in trains to monitor the goods conditions in a long-distance transportation, we address the
Setting collection nodes in boxcars sharply weakens the transmit signal and shortens the transmission range, compared to that in an open field.
To collect data in all boxcars, each boxcar must hold at least one collection node.
All nodes must locate inside boxcars, that is, nodes cannot be placed between any adjacent two boxcars.

Monitoring a train with sensors.
Hence, the deployment problem of collection nodes in trains becomes even more challenging. We first formulate the problem with realistic discrete power model of nodes as a mixed integer linear programming (MILP) problem. Then, an efficient heuristic to find the transmission level for each collection node is proposed to satisfy the above constraints step by step. The evaluation results show that the heuristic derives nearly the same lifetime as MILP. Moreover, the WSN with appropriate number of nodes can improve its lifetime up to 10.6% for a train with 80 boxcars.
The rest of the article is organized as follows. Section “Problem setting” presents the system model and our assumptions. Section “Sensor deployment for lifetime maximization” discusses the MILP formulation and the efficient heuristic schemes. Section “Evaluation” provides the evaluation results. Section “Real implementation” describes the tested experiment and real implementation of the whole monitoring system. Section “Related work” investigates related work. Section “Conclusion” concludes the article and points out our future work.
Problem setting
A WSN in trains for monitoring long-distance goods transportation consists of three components: acquisition nodes, collection nodes (node for short, if not confused), and sink node, as shown in Figure 1. Collection nodes directly collect and package the data from acquisition nodes in goods. One sink node is fitted in the engine to collect the data forwarded by each collection node, display these data on site, and send them to the remote control center which is mainly responsible for data analysis. The detailed description of the whole monitoring system is shown in section “Real implementation”. Now, we focus on the collection node deployment and provide the corresponding system models.
System model
We consider a WSN consisting of
Note that, in WSNs, the transmission range of a node directly depends on its transmission power/current. Lots of theoretical studies, such as Olariu and Stojmenovic, 7 Xing et al., 14 and Liu and Mohapatra, 21 have adopted ideal power model which assumed that nodes’ transmission power and range can adjust continuously, where the required transmission power can be modeled as 27
where
For each round of data collection, the amount of data in each collection node is the same after data packaging, which needs time
As shown in Figure 1,
Problem statement
A
To obtain the maximum lifetime of the WSN, we need to find out the optimal number of nodes
Sensor deployment for lifetime maximization
Since the data density in nodes varies, that is, more data need to relay/transmit for nodes closer to the sink node and vice verse, unevenly distributing nodes and balancing the energy consumption at each node can further prolong the lifetime of a WSN compared to equal-distance distributing. Following this idea, some research works, such as Liu and Mohapatra 21 and Guo et al., 22 have addressed the linear sensor deployment problem, where nodes can be placed anywhere along a continuous pipeline. However, nodes can locate segmentally in boxcars for train monitoring to meet the requirements above. Hence, not all the transmission levels in ℝ is necessary, and Lemma 1 presents the lower and upper bound of transmission range for any feasible sensor deployment.
For upper bound, if the distance of two adjacent nodes is larger than 2
After bounding the transmission level by Lemma 1, denote the transmission vector as
Therefore, the lemma holds.
For each value
MILP formulations
For each node
Each node can locate in only one boxcar
Each node can operate at only one transmission level
As requirement
As requirement
As requirement
The energy consumption of each node
We denote the energy hole as
Conditions (1)–(6) form a constraint set, and combined with the optimization objective in condition (7), it forms an MILP problem.
An efficient heuristic
Since the distance
Now, we will present a two-step heuristic to meet those requirements step by step.
To be self-contained, we include the two algorithms (
Algorithm L2H
This algorithm expands nodes’ transmission levels from
Algorithm H2L
This algorithm contracts nodes’ transmission levels from
After step 1.1, there are some key properties of the current deployment shown as follows:
In sum, the deployment by this sub-step only meets requirement

Step 1: to guarantee requirement
Hence, the distance between any two adjacent nodes becomes smaller or keeps unchanged, and the energy consumption of energy hole also decreases or remains unchanged. All nodes in Figure 2(a) are moved leftward, and the deployment becomes the one in Figure 2(b).
For the current deployment, if the node in boxcar
After Step 1.4, the location or distance to the sink node of the collection nodes in boxcars from
Note that for each sub-problem, we keep the data density of each node unchanged as the initial, that is,
First, from

Step 2: to guarantee requirement
The time complexity of the two-step heuristic scheme is
In the worst case, the first null boxcar always appears right before the last boxcar
Discussions
In practice, sensor nodes may be only installed at some certain locations. For example, put nodes around the air vents of boxcars to enhance transmission signal. In addition, to obtain accurate data, the number of nodes in each boxcar may require to be greater than a threshold value. To deal with these additional requirements or constraints, we can partition a boxcar into a certain number of virtual segments, each of which can be seen as a new boxcar. As shown in Figure 4, a boxcar is partitioned into four segments. Hence, our approaches (both the MILP and the two-step heuristic scheme) proposed can be easily adapted to these realistic cases through the boxcar partition.

A segmented boxcar.
Evaluation
In this article, we consider eight transmission levels as shown in Table 1. Here, the corresponding current values are obtained from the data sheet of TI RF Transceiver CC1101.
28
The transmission range
Sending and receiving current and transmission ranges when transceiver runs at 433 MHz.
The ILOG CPLEX solver has been exploited to obtain the optimal solution from the MILP formulation, compared to which, we evaluate the performance of the proposed two-step heuristic scheme on prolonging the WSN’s lifetime. Figure 5 shows the normalized lifetime of the WSN for different number of nodes in the interval given by Lemma 2. The optimal lifetime derived by MILP for the WSN with

Normalized lifetime for two-step heuristic schemes and MILP. The optimal number of nodes is shown in shadowed text box: (a) T = 50, S = 15 and (b) T = 80, S = 15.
From the results, we can see that the WSN’s lifetime improves as the number of nodes increases. When it reaches an appropriate number of nodes, the WSNs lifetime can be improved by up to 10.6% compared to that for the minimum number when
In addition, our two-step heuristic scheme combined with
Why the heuristic combined with
Why they still have very good performance even when considering those realistic constraints, such as requirements
For the first question, the heuristic
For the second question, there are three main reasons. First, we combine the two good heuristic schemes (
Real implementation
The Monitoring System for Long-Distance Goods Transportation consists of three layers: sensing layer, communication layer, and application layer, as shown in Figure 6. The collected data in the sensing layer are transmitted to the application layer through GPRS and Internet in the communication layer. The control center in application layer is implemented to store, analyze, and display data obtained from all trains monitored. In what follows, we will detail the local monitoring system for a train in sensing layer.

Monitoring system for long-distance goods transportation. Acquisition nodes are not shown.
We have designed and implemented two types of node: TYP1 and TYP2, as shown in Figure 7(a). TYP1 adopts a low-power MCU MSP430, CC1101 transceiver chip, and temperature and humidity sensor SHT15 and is powered by a high-temperature lithium battery. Besides an MCU MSP430 and transceiver CC1101, TYP2 also integrates a 64*128 dot matrix ST7565 LCD, GPS module Gstar-GS-89m-J, and GPRS module MC52i. TYP1 node limits the lifetime of the WSN in sensing layer. Collection and acquisition nodes in boxcars adopt TYP1, while the sink node employs TYP2. Currently, a set of collection nodes have been installed around air vents in boxcars following the solution derived by the proposed heuristic scheme. The acquisition nodes will be put into goods, such as cotton package, when to load them onto the boxcars.

A tested experiment using one sink node and four collection nodes: (a) TYP1 and TYP2 nodes and (b) temperature and humidity data.
The temperature and humidity data are collected every 5 min and nodes switch to sleep mode for energy conservation after each round of data collection. Collection nodes forward these data to the sink node which provides several functions as follows:
Display the obtained data on site. On LCD, the first column is indices for boxcars, the second is for temperature data, and the last is for humidity data, as shown in Figure 7(b).
Examine the obtained data. If the temperature and/or humidity of one boxcar is higher or lower than a threshold, it sounds alarm and the worker may heat or cool the boxcar.
Insert the location information (longitude and latitude) into the data packet, which is then sent to the remote control center through GPRS module.
We have performed tested experiments for one sink node and four collection nodes, as shown in Figure 7(a). We numbered the four nodes and put them linearly at four different sites around our laboratory. Figure 7(b) shows the temperature and humidity of the four monitored sites, where the top row on LCD corresponds to data of the first node that is closest to the sink node, and the second row is for the second node, and so on. For an accelerated test, each node is set to transmit data continuously at maximum transmission level, where the lifetime of the WSN is around 1 day, for a battery with capacity of 1.2 Ah. This indicates that one WSN equipped with only collection nodes and consisting of 100 boxcars can operate for at least 1000 days under normal situation for the battery of same capacity when the data are collected in a period of 5 min.
Related work
In this section, we investigate existing works that study linear sensor deployment problem, which is the research thread most related to this work. Ganesan et al. 18 consider the problem of jointly optimizing sensor placement and transmission structure for data collection. The authors propose an analytical solution for sensor networks with linear topology. Perillo et al. 20 investigate the transmission range distribution optimization problem with a goal to maximize the lifetime of many-to-one WSNs. The authors propose a solution that determines what fraction of packets each node should send over different distances. Liu and Mohapatra 21 discuss how to deploy back-haul nodes for wireless networks with energy constraints. Specially, the studied problem is to achieve the minimum number of nodes needed to cover a back-haul network given the requirements of lifetime, energy, and covered area. The authors propose a greedy approach that has near-optimal performance. Jawhar et al. 23 consider the delay-tolerant linear sensor networks with mobile nodes and study different movement approaches for these nodes to optimize the delay of data collection. Alduraibi et al. 26 investigate the optimization models for determining the sensor node density with three different objectives: achieving desired detection fidelity with the minimum number of nodes, determining nodes’ placement to maximize the coverage, and minimizing the number of nodes for non-uniform fidelity. The authors propose a general formulation framework that can solve all the three optimization models.
All works, including Ok et al., 19 Guo et al., 22 Wu et al., 24 and Xia et al., 25 study WSNs for pipeline monitoring but they have different focuses. Ok et al. 19 consider self-sustainable sensors and try to minimize the number of sink nodes in the sensor network. Xia et al. 25 also consider self-sustainable sensors but try to minimize the cost of energy harvesting device. Guo et al. 22 focus on battery-powered sensors and try to maximize the lifetime of the senor network. Wu et al. 24 discuss channel-aware relay node placement and try to minimize the power consumption of sensing nodes. All the above works study WSNs with linear topology, but confine to one continuous dimension, that is, nodes can be placed anywhere along the linear space. However, different with them, our work studies a disconnected dimension, where nodes can only be placed inside boxcars and not outside boxcars (i.e. the space between two boxcars). Because of this difference, existing approaches cannot be directly applied to our problem.
Conclusion
In this article, we have discussed the linear sensor deployment problem to maximize the lifetime of WSNs in trains for monitoring long-distance goods transportation. Taking account of several realistic requirements, we presented the lower and upper bounds for both the transmission range and the number of nodes, between which the optimal solution must fall. Based on this, we first formulated the problem as a MILP problem, and then proposed a two-step efficient heuristic scheme which met the requirements step-by-step. The evaluation results show that the proposed heuristic combined with
Footnotes
Academic Editor: Amiya Nayak
Declaration of conflicting interests
The author(s) declared no potential conflicts of interest with respect to the research, authorship, and/or publication of this article.
Funding
The author(s) disclosed receipt of the following financial support for the research, authorship, and/or publication of this article: This work was supported in part by the National Natural Science Foundation of China under grant numbers 61472072, 61528202, and 61502474.
