4.1. Area of Interest - Estimation of the Number of Sensory Units
Our project aimed to test mobile sensory units and the network of sensory elements in a small monitored area. A small monitored space means a rectangular area with edges of a few dozen meters. In this chapter, we define the mathematical and data model of the protected area.
The basic principle of determining the area of interest is the principle used by Free Route Airspace (FRA) see. [
12] when defining the horizontal part of the airspace. It is needed to enter special significant points of space which belong to the given area. These points will be given by GPS coordinates. Significant points with coordinates
will be divided into three sets. One of the sets will be the internal points (blue color in the picture (
Figure 1), obstacles in the terrain can be entered this way). In the second set are possible boundary points of the area (marked with red color), and in the third set are necessary points that must be included into the sensory network units (yellow color). We assume that some boundary points will form a simple closed polygon determined by the system user. It will be the polygon of the area of interest.
Unlike FRA, this polygon has three dimensions (FRA points only have GPS coordinates, heights are solved otherwise). We consider the height because of the terrain profile. If we denote the length of the polygon as
, the range of the signaling sensor with
s like
and the sensitivity of the sensor element s with
, then we can set the maximum distances between signaling sensors as
. While parameter
can take on values from the interval
. The value of
means that neighboring sensory units work at a distance of
. Using these parameters, we can estimate the number of sensory units needed to create the network of mobile sensory units.
This value is the minimum number of sensory network units. Here we assume that there are used the same length measurement units for the length of the polygon and the range of sensory units. We note that the length of the polygon is the circumference of the area of interest. The number of the nodes of the closed simple polygon P is marked with . Polygon which does not contain any nodes is marked
4.2. Digital Terrain Model
We suppose that input significant points to the area are given. The are GPS coordinates of individual significant points, is their altitude for . By using these points, we will create a 3D model of the terrain in which signaling sensors will be placed. There will be created a network of sensory units. It is also necessary to consider the spatial resolution of the technology that will create the digital model of the terrain. This parameter is denoted as d - detail of terrain modeling. Dimensions of the sensory element (width and depth) are approximately so in this case, we can set the detail to by default. This parameter means that a rectangle of size cm can be covered with two frames that have size . For the value of d, it is true that . The set contains points on which the sensory units must be placed. The set will mean internal significant points. Therefore, is a set of boundary significant points.
To model the
mobile sensory units network in the Euclidean space, we need to define a coordinate system, the center of the coordinate system and
- axis. The center of the coordinate system will be the center of the Earth, the
x-axis will be vernal equinox in the equator plane, the
y-axis will be perpendicular to the
x-axis in the equator plane, and the
z-axis will be perpendicular to
x and
y - axes. This coordinate system is called
Earth centered inertial. The more general name of this system is the
Ecliptic coordinate system. The coordinate system can be implemented in Cartesian and spherical coordinates, see [
1,
4].
For the sake of simplicity, we move the origin of the coordinate system to a point defined based on entry significant points. Calculation of the origin of the new coordinate system and the digital terrain model contains these steps
Input: S, d,
Output:
1. Declaration of coordinates of
S in the Cartesian system:
2. Marking of
,
,
a
3. 3. Let’s mark , a , and point .
4. In this way a Euclidean coordinate system with the origin O will be created, see [
2]. Dimensions of the digital terrain model will be
. Points of the set
, are created based on relation (
3).
5. The digital model of the terrain is going to be an matrix of type . The significant points are going to be elements of the matrixA and their values are going to be the height of the terrain .
Notes: Different heights can be distinguished by color during the modeling of the terrain (see
Figure 1). Height gradient of the terrain will be
. For each point
it holds that:
Our digital terrain model is raster (grid) and contains a regular distribution of points.
We can see in the
Figure 1 the shift of the origin of the coordinate system to the point
(steps of the algorithm 1. 2. and 3.). This shift is necessary to calculate distances easier and locally with the help of the digital terrain model in applications. In the Digital terrain model section, a
matrix
A is displayed. Significant points are marked as signs: +. Red points can be border and blue points internal significant points of the area (
) and the significant points marked with yellow must be included in the network of sensory units (
).
A digital image of the terrain (matrix A of type in units of d) can be created by using the point , with dimensions . It is necessary to find point in the field too (it is a point with GPS coordinates (min x, min y, ). It is necessary to digitally scan the terrain so the point will be located in the lower-left corner of the digital model. The x -axis is defined by a straight line between point O and point (this point has GPS coordinates (min x, y) and points form one plane) and y - axis is placed between point O and point (this point has GPS coordinates (x, min y) and the points form one plane). The scanned area will be a rectangle of size in d units.
Figure 1.
Digital terrain model and the origin O.
Figure 1.
Digital terrain model and the origin O.
A digital image of the terrain must be created to obtain a matrix
A. In the matrix
A it is necessary to mark significant points
according to the assignment (
4) and significant points that must be included in the area of interests
and internal significant points
. Conversion of GPS coordinates to the Cartesian system (
3) is possible, e.g., in MATLAB using the command:
This command is used to convert geodetic coordinates to the Earth-centred, Earth-fixed coordinate system (ECEF). In this case, the height h is the ellipsoidal height of the point, are the GPS coordinates of the point and the parameter spheroid is a parameter of the MATLAB system, which stands for the fact that we are examining in our considerations globe.
When we have available the ellipsoid heights of the points, we can apply the command (
6). Then assignment
defines the elements of the matrix
of type
in
d units. Matrix
A represents the digital model of the terrain. This model using raster data structures.
When the altitude or orthometric height
H is available, we need to calculate the ellipsoidal height
h. The relation ships between heights are shown in
Figure 2. Methods for calculating altitude (orthometric height) can be found in publications such as [
4]. Another option is to apply newer versions of the program MATLAB (newer than R2022b), where theoretical calculations are already implemented and there are functions for this calculation [
7].
Of course, other mathematical systems such as SageMath or Geogebra also enable geographic calculations too. Publication [
1] contains the basic mathematical principles of geography. Detailed theoretical information about geodetic coordinate systems can be found in the publication [
5], and about plane geometry of the type we use in the design [
3].
4.4. Polygon of the Area of Interest
As stated in the work [
12], it is not possible to algorithmically determine a polygon based on significant points of the limited area. Therefore, it is necessary to enter which significant points and in what order will define the polygon that bounds the area of interest. In the mentioned work, it is also stated that a simple polygon can be divided into an upper and a lower part, as we can see in
Figure 3. This is the way to obtain the points
which define the polygon of the bounded area.
Now we need to determine the length of the polygon to be able to estimate the number of sensory units of the network according to relation (
2). To calculate the length of the polygon, we need to define the term
spatial curve.
Definition 1: Let a closed interval. Representation is a spatial curve, is the starting point, is the endpoint of the curve. If then the curve is closed. The curver is simple, when is a one-to-one correspondence.
The correspondence is one-to-one if each element of the first set is made to correspond with exactly one element of the second set, and vice versa.
Definition 2: Let
be a
spatial curveand
is the partition of the interval
. The spatial polygon
which has vertices
is called an
inscribed polygon belonging to partition
The length of the polygon is the sum of the lengths of the edges:
A
polygon of a area of interest is a simple, closed spatial curve, which is given by the division of the interval
In three-dimensional space, a polygon is given by these points
for
Therefore, we can calculate the distances between the points
and
as (see [
4,
5])
The points
,
from relation (
9) define three functions
. These functions for our purposes at the moment are not needed, only their functional values in points
, so we do not examine the properties of the functions.
4.5. Digital Model of the Area of Interest
We now summarize the procedure for defining a digital model of the area of interest.
The method of defining the area of interest in the terrain model
Input: A - digital terrain model,
- set of significant points (+) , - set of significant points which are necessary (+, yellow color), set of internal significant points (+, blue color)
(+, red color in
Figure 3 alternative boundary significant points, it is a set
)
Output:
P - polygon of the area of interest, - minimum number of sensory units.
Determination of the sequence of significant points in matrix A so that all necessary boundary significant points have to be included (+, yellow color). These points are completed with boundary points (+ red color) to create a simple polygon P of the area of interest.
For a given polygon P, we calculate the value - it is an estimate of the minimum number of sensory units which are needed.
We note that this method cannot be algorithmized. This is the reason why the application is needed, which with the data inputs and outputs will help solve this problem. When the polygon
P is defined, the length of the polygon is calculated based on (
8) and according to (
2) we can estimate the minimum number of sensory units in the network. The next task will be to create a method to deploy the sensory units on the polygon
P.
Figure 3.
Polygon of the area of interest
Figure 3.
Polygon of the area of interest
4.6. Algorithm for Creating a Network of Mobile Sensory Units
Suppose that the polygon P of the area of interest is given. Polygon P contains significant points a . All the necessary significant points that belong to the set are vertices of the polygon P. In a digital model of the terrain is given point . According to this point, the coordinates of the points are given .
Input: P - polygon of the area of interest is given with significant points where . The set of significant points , the set of necessary significant points and the set of internal significant points . Digital model of terrain A, – the reach of the sensory element, - sensitivity of the sensory element.
Output: Q - polygon of the area of interest, which contains points and which form the network of sensory units.
1. for
2. , point selection ,
3. , .
4.
5. if
then
,
,
(see, point I. on the
Figure 4)
6. if then
if
then
,
,
(see, point II. on the
Figure 4)
if then it is possible (there is no obstacle between the points and D)
, ,
if there is an obstacle between the points and D, then
,
,
(see, point III. on the
Figure 4)
7. if then go to 2 (in this step the polygon with vertices was created)
8. if then ,
Figure 4.
Selecting the next point
Figure 4.
Selecting the next point
Note: Point D lies on the line and at a distance of . Point D is not a significant point.
Brief description of the algorithm: We have a cycle considering the variablej in which we select the vertices of the polygon P. According to points 5-7. we create a polygon . with vertex . Polygons contain a set of necessary significant points and other points where sensory units are located. In point 8, we determine the polygon, which contains the smallest number vertices from that set of polygons .
This method finds a polygon Q such that the length of the polygon is and the number of vertices of Q is less than or equal to the number of vertices of P. The polygon Q is a digital model of the boundary of the area of interest, the vertices of the polygon define the location of the sensor units in the area of interest.
4.7. Data Model of the Network
The coordinate system (coordinate system origin, coordinate system axes), the set of significant points, the polygon of the area of interest and the polygon of the network belong to the mathematical model of the network. We also have other inputs, such as a digital terrain model. This terrain model depends on the detailedness of the terrain d. All these objects need to be defined in the data model of the network.
The raster data model contains the following data structures:
- a table that contains one record in which there are the following items:
. The origins of the coordinate system
are the actual GPS coordinates,
H is its altitude and
d is the detailedness of the terrain, which was applied in the creation of a digital terrain model. This information determines the place where the terrain is located in which the network will be set. Values
need to be calculated according to relations (
3), (
4). Parameters
H and
d are going to be input parameters. These data define the origin of the coordinate system, it is the
reference point of the system and the
detailedness of the terrain model, in which resolution we will work.
- table (matrix ) of size - digital terrain model. Digital terrain model can be obtained from existing software such as MATLAB (for detail ) or it is possible to apply special scanners such as LiDAR, where we can achieve a detail of , which means we can divide a 100 cm section into 10 parts, or in other words, the resolution of one table point will be cm.
- a table that contains rows of
- set of significant points
coordinates in the table
,
- significant point coding, 1- internal (blue color), 2- necessary boundary (yellow color), 3 - borderline (red color in
Figure 1 and
Figure 3). We note that a suitable choice of significant points helps to define different types of obstacles in the field.
With the help of significant internal points, we can define obstacles as things, events or constructions. Different observation layers can also be created. In that case, matrix A will be three-dimensional. The third dimension can contain layers; for example, the first layer includes the elevation, the second layer structural obstacles and the third layer natural obstacles. In the case of layers, the data complexity of the system grows.
- table (polygon of the area of interest): contains the lines - coordinates of points from the table , which create the polygon of the area of interest.
- table (polygon of the grid): include lines - some coordinates of points and some position data of points.
We can match this basic raster data model to a mathematical model. For completeness, let us note that there may also be a
vector data model(see [
1]) of the monitored area; but we do not deal with this type of model in this work.
The data model is needed for the next step, for the software implementation of the network modeling application, which can be considered a small geographic information system (GIS). Algorithms applied for GIS systems can be found in the publication [
6].