Introduction

Background

Animal husbandry is an important part of agriculture. It has a very important impact on people’s life and socioeconomic development [1]. Grassland is an extremely important natural resource in the development of animal husbandry [2]. Rational use of grassland resources is related to the sustainable development of animal husbandry.

However, most grassland has different degrees of grassland degradation [3]. Grassland degradation refers to the process of grassland ecosystem retrograde succession and productivity decline under unreasonable use. The phenomenon of grassland degradation is because humans continuously take a lot of material and energy from the grassland. The production speed of grassland is lower than the consumption speed for a long time, which violates the basic principle of ecological balance. The most important reason of grassland degradation is overgrazing. The herd takes much material and energy from the grassland. That is, the feed intake of the herd exceeds the tolerance limit of the grassland in the region [46].It breaks the ecological balance of grassland and leads to the failure of regeneration of grassland resources. This will endanger the development of animal husbandry.

In recent years, in order to prevent and solve grassland degradation, many countries and regions have formulated different plans based on the local grassland conditions. In particular, artificial grass planting is the most direct and efficient, but also the most costly solution. In contrast, it is the most practical and feasible to reduce grassland pressure and maintain the balance of grassland and livestock on the original grassland.

The unbalanced use of grassland will affect the measurement index of grass-livestock balance. Within a certain space, the terrain of local grassland is rugged, and the herd is not easy to feed. This makes the grassland of this area unused or lightly used, which wastes greatly grassland resources. However, overuse of grassland occurs in areas with flat terrain and easy feeding. It results in grassland degradation. Therefore, it is necessary to analyze the feeding behavior of the herd in time and accurately, which is of great significance to adjust grazing strategies, improve grassland productivity and protect grassland ecosystem [7, 8].

Motivation

Traditionally, feeding behaviors of the herd are mainly studied by animal husbandry technicians using observation method. They used counters, stopwatches, telescopes and other devices to track feeding behaviors of the herd, such as the walking speed and walking trajectory. They recorded and analyzed the time and number of feeding behaviors at fixed points [911]. Unfortunately, due to the limitations of people’s number, devices’ capabilities and research area, the information collected by this method is less. And this method is time-consuming, labor-intensive and poor timeliness. It is difficult to describe the spatiotemporal information of herd’s feeding behavior intuitively and accurately [12]. Thus, it is difficult for ranchers and grassland livestock management departments to grasp feed rules and feed situations of the herd and make timely decisions on grassland improvement. Therefore, it is particularly important to develop a grazing trajectory statistics and visualization platform. The platform can process and analyze trajectory data of the herd. It can provide intuitive information on the herd’s feeding behaviors for ranchers and grassland livestock management departments, so as to balance the use of grassland resources and promote the sustainable development of grassland livestock.

Paper contributions

The major contributions of this paper are summarized as follows.

1. The platform realizes the calculation of walking speed, walking trajectory and feed intake of the herd by using the GIS spatial analysis method.

2. This platform realizes the evaluation of feed situation of the herd and shows the proportion of different feed situation in the form of pie chart by using the grazing situation evaluation model.

3. In order to enable users to perform some corresponding trajectory analysis operations according to their own needs, the platform realizes the functions of buffer analysis, finding hot spots, interpolation point analysis and related trajectory query.

4. Conduct extensive experimental evaluations to demonstrate the efficiency and effectiveness of the platform.

The remainder of this paper is organized as follows. “Introduction” section provides an introduction to the outstanding problems of grassland livestock, especially the damage to the ecological environment caused by unreasonable feeding behaviors. “Related work” section focuses on related studies that investigate of feeding behaviors of the herd. “Methods” section describes the architecture of the platform and the principle of related core functions. Results section describes the results of the platform implementation and application cases. “Discussion and conclusions” section discusses the platform and concludes remarks and future directions.

Related work

In recent years, with the realization of modern animal husbandry informatization, many techniques have matured gradually, such as GPS technology, GIS technology, modern communication and computer technology. These techniques have been successfully applied on the field of grassland and animal livestock [13, 14] and produce much better results than the traditional ways, since they are not limited by conditions of time and terrain. They can record the grazing trajectory of the herd and generate spatiotemporal trajectory data containing the movement information of the herd. Then, the habits of the herd can be studied through trajectory data [15, 16]. Monitoring sheep by GPS can evaluate the information of animal behaviors and the use of plant resources, as well as interactions with natural ecosystems. Therefore, it has become a common method in many countries [17].

In terms of feeding behaviors of the herd, many researchers have done the following research work. Arnon et al. [18] conducted his experiment at a study site in the semi-arid region of the Negev, northern Israel. They used GPS devices to record the trajectory of the herd. They analyzed the herd’s walking speed by the factors of the pasture (slope, aspect, and distance between the herd and the corral). The speed of flock movement is greatly affected by the distance of the corral. The flock walks fastest when the distance between the flock and the corral is the largest or the smallest. As the slope increases, the walking speed of the flock decreases. The walking speed of the flock is also affected by the aspect. Henkin et al. [19] studied the effects of topographical factors on cattle foraging behavior in hilly areas. In this study, they used the LOTEK 2200 series GPS collar (Lotek Engineering, Newmarket, ON, Canada) to record the trajectory of the herd at intervals of 5 minutes. They analyzed the grazing trajectory under different grazing intensities and different seasons. They found that the herd likes to eat in flat terrain. Only when the grazing intensity tends to be saturated or the forage biomass is low will it eat in areas with steep terrain. Pérez et al. [20] used global positioning system and GPRS to track and monitor free-range cow. The circadian rhythm map of the walking distance of cattle in a few hours was obtained. It was concluded that the average daily walking distance of cattle is 3.15 kilometers. Mysterud et al. [21] used GPS devices to record the movement trajectory of sheep. The conclusion showed that in the area with high vegetation coverage, sheep selection increased in areas with an overall higher productivity. Liao et al. [22] used GPS collars to record the feeding behavior of the herd. The relationship between the behavior types of cattle and the statistical parameters of their movement was established. Then, the distribution of time and space of their movement behavior and resource selection was analyzed predicted. Wang et al. [12] used GPS devices to obtain temporal and spatial trajectory data of the herd. The feed intake distribution of the herd was obtained by buffer zone and grid analysis. Akasbi et al. [23] Kawamura et al. [24] used GPS devices to obtain temporal and spatial trajectory data of the herd. The feed intake distribution of the herd was obtained by grid method. The above researchers mainly analyzed the feeding behavior and habits of the herd by the recorded trajectory data. However, few research results were applied to the corresponding grazing management platform to show visually.

In terms of developing systems, many researchers have done the following research work. Chen [25] developed a satellite grazing system based on GPS and GIS by WebGIS, GNSS, mobile communication and other techniques. The functions of herd position display, motion trajectory query and virtual fence were realized in the system. Cheng [26] developed a system by GPS positioning and GPRS data transmission technology. The functions of herd position display and track query were realized in the system. Du et al. [15] proposed a new method of dividing and clustering based on the disturbance of trajectory speed. Firstly, the trajectory of the herd was divided by speed’s threshold. Then, the divided trajectory data was clustered to identify different living areas of livestock. Finally, in order to show the different intensity of each region, the kernel density analysis method was used to visualize the clustering regions of different trajectories. In the above research work, GPS positioning technology was applied to the monitoring of the herd. The informatization of animal husbandry was realized in a certain extent. However, there are few functions about the change rule, evaluation and prediction of the feed intake of the herd. It can not meet the higher demands of grassland animal husbandry for herd’s monitoring.

Spatial data has three basic features: spatial feature, attribute feature and time feature. In the era of big data, spatial data processing, analysis and visualization have the characteristics of large data volume and complicated calculation compared with other data. Spatial data needs to be processed and analyzed in time, so it has a higher demand for transmission speed, computing power, Internet and IOT deveices. Nowadays, with the rapid development of 5G network and the continuous improvement of IOT, there is a good foundation for the development of grazing trajectory statistics and visualization platform. With the continuous improvement of service quality in the cloud field and the Internet, cloud computing can solve the problem of insufficient computing power better. At the same time, favorable conditions can be provided for the transmission of spatial data with the rapid development of network technology [2730]. The Internet and the IOT have focused on edge computing [3133]. The lack of computing power of ECS was alleviated by IOT devices [34]. Moreover, with the continuous deepening of related research, the reliability and availability of the system have also been improved greatly [3538]. Therefore, the study has certain technical support to develop grazing tracjectory statistics and visualization platform.

Methods

Function design of the platform

The grazing tracjectory statistics and visualization platform has six functional modules: data management, map operation, information query, spatial analysis, statistical analysis, and print sharing. The functional modules of the platform are shown in Fig. 1.

Fig. 1
figure 1

The functional modules of the platform

Data management adopted SQL Server+ArcSDE spatial data engine to realize the functions of adding, deleting and querying of basic pasture data, herd trajectory data and device information data. The operation of the map mainly includes basic operations such as zoom, translation, and eagle eye. It also includes the replacement of the platform base map and the display and hiding of other layers. Information query is mainly divided into spatial query and attribute query. Spatial query includes both pasture location information query and herd trajectory information query. Attribute query can query the corresponding attribute information of herd trajectory points and trajectory segments. Spatial analysis includes buffer zone analysis, finding hot spots, and predictive analysis, etc. It is used to monitor and predict the feeding behaviors of the herd. Statistical analysis is mainly to analyze the walking speed, feed intake and feed situation of the herd. Then, corresponding line charts and pie charts are generated and displayed on the client. Print and share include the print and share of ranch basic maps and herd trajectory information thematic maps.

Platform structure design

This platform was developed by using browser and server structure (B/S structure). The architecture of the platform is composed of presentation layer, business logic layer and data layer, as shown in Fig. 2.

Fig. 2
figure 2

The architecture diagram of the platform

Presentation layer

The presentation layer used the Web AppBuilder for ArcGIS framework that is a application framework to build views. Web AppBuilder for ArcGIS is a cross-platform web app creation framework. It has the advantages of configurable and scalable. It can be used to build 2D and 3D web applications. A highly customized map is realized by creating quickly map appearances and widget templates without coding. The framework is tightly integrated with Portal/AGOL. The maps published on ArcGIS Online can be seamlessly added to the client display by the framework. The framework adopts responsive layout design. The created application can adapt to screens of various sizes by the framework. It can run on PCs, tablets, and smartphones of various types. This design structure makes the geographic information service simple and flexible. It also improves the reusability of modules and the schedulability of the overall configuration. This platform used ArcGIS API for JavaScript and Web AppBuilder for ArcGIS to carry out modular design and implementation. In order to make the interface rich and easy to operate, the platform put tools with similar logic together (such as map zoom, pan, panorama of the map operation group ; buffer analysis, finding hot spots and prediction analysis of the spatial analysis group), which enhances the operability of the interface.

Business logic layer

The business logic layer is divided into GIS services and Web services. GIS services include basic map services, trajectory processing services and other business services. The main function of the trajectory processing services is to extract the herd trajectory data from the Microsoft SQL Server2008 database, and use the relevant model to calculate the corresponding walking speed of the herd, walking trajectory, and feed intake of the herd. Then, publish the results to the ArcGIS Online server by basic map services and other business services. Finally, the results are displayed visually by Web AppBuilder for ArcGIS. ArcGIS Online is a cloud computing-based application development support platform. It includes global basemaps, map data, applications, configurable application templates, GIS tools and APIs. Therefore, it can be used to create Web maps, publish GIS services, share maps, share data and applications. It also can manage organizational content and multiple users. Web services are responsible for hosting web applications and services. Tomcat is used to deploy web applications for Internet access. The web application or web service can respond to the client’s request, and return the data to the client, so as to realize the data interaction between the client and the server.

Data layer

The data layer used SQL Server+ArcSDE spatial data engine to standardize and store the trajectory data (such as trajectory point data, trajectory segment data, herd feeding information data, etc.), vector data (such as pasture boundary data, herd boundary data, etc.), raster data (such as herd feeding grid data), and devices information data. The main task of this layer is to design and build a comprehensive database of spatial attributes. Firstly, determine the type and characteristics of all data. Then test, optimize and maintain the data. Finally, bulid a comprehensive database including basic boundary database, herd trajectory database, herd feeding information space-time database, devices information database.

Core models

Trajectory and speed model

The grazing trajectory is a sequence of time and space points. It consists of a series of data points that change with time and position. The location information is denoted by the acquired latitude and longitude. T = {T1,1⋯,Ti,j,⋯,Tn,m},Ti,j={P1,P2,⋯,Pn},Pi={Lati,Lngi,ti}(0≤in,0≤jm). Where T denotes the set of herd trajectories in a period of time. Ti,j denotes the set of trajectory points of the j-th monitored sheep on the i-th day. It is a collection of spatial points with time series. Pi denotes the i-th trajectory data points. Lati denotes latitude value. Lngi denotes longitude value. ti denotes the positioning time.

Trajectory segment: Several local trajectories are obtained by segmenting the trajectory. The segmentation method is based on the GPS points contained in the trajectory segment. The GPS points are not less than 2. The smaller the number of trajectory points contained in the trajectory segment, the closer the fitted grazing trajectory is to the real grazing trajectory. Therefore, the platform used a segmentation method that contains 2 trajectory points in the trajectory segment to divide the trajectory into several trajectory segments.

Grazing speed: The trajectory segment is a sequential trajectory displacement connected by two trajectory points(Fig. 3). Therefore, grazing speed \(\overrightarrow {{{v}_{i}}}\) is the ratio of trajectory segment \(\overrightarrow {{{P}_{i}}{{P}_{{i+1}}}}\) and the time difference ti+1ti (Eq. 1):

$$ \overrightarrow{{{v}_{i}}}=\frac{\overrightarrow{{{P}_{i}}{{P}_{{i+1}}}}}{{{t}_{i+1}}-{{t}_{i}}} $$
(1)
Fig. 3
figure 3

The speed of grazing trajectory point in continuous time

Calculation model of feed intake

In the actual grazing process, the grazing trajectory of the herd shows a certain regularity. It presents the strip spatial distribution characteristics. The range of activity produced by the herd feeding is simulated by buffer processing of trajectory segment Li, that is part grazing area, as shown in Fig. 4.

Fig. 4
figure 4

Schematic diagram of part grazing area generation method

The feed time of the herd is continuous. Based on this feature, this study assumed that there was no significant difference in the feed intake per unit time and the total daily feed intake of the herd. The effective feed time ti of the herd is obtained from each trajectory segment Li. The total daily feed intake is allocated to each trajectory segment Li according to the ratio of the effective feed time ti corresponding to the trajectory segment Li and the daily feed time tADFT. Finally, the feed intake Ii of the PGA corresponding to the trajectory segment Li is obtained [12]:

$$ {{I}_{i}}={{I}_{DHFI}}\cdot{\frac{{{t}_{i}}}{{{t}_{ADFT}}}} (0<\mathrm{i}<{n}) $$
(2)
$$ {{t}_{ADFT}}=\sum\limits_{i=1}^{n-1}{{t}_{i}}=\sum\limits_{i=1}^{n-1}{({{P}_{{i+1}}{t}}{-}{{P}_{{i}}{t}})} $$
(3)

Where IDHFI denotes the daily feed intake of the herd. In this study, the experimental parameter of the IDHFI is 170 ×2000g, 170 denotes that there are 170 sheep in the herd, and 2000g denotes that the total daily feed intake of each sheep is 2000g. tADFT denotes the all-day feed time of the herd. Pi+1t denotes the positioning time of the i+1-th trajectory point Pi+1. Pit denotes the time of the i-th trajectory point Pi. The difference between them is the feeding time ti of the trajectory segment Li. In order to calculate the feed intake of per unit area, the area Si of the part grazing corresponding to each trajectory segment Li is considered. Therefore, feed intake of per unit area of Li is:

$$ {{F}_{i}}={{t}_{i}}\cdot{\frac{{{I}_{DHFI}}}{{\sum\limits_{i=1}^{n-1}{{t}_{i}}\cdot{{S}_{i}}}}}={({{P}_{{i+1}}{t}}{-}{{P}_{{i}}{t}})}\cdot{\frac{{{I}_{DHFI}}}{{\sum\limits_{i=1}^{n-1}{({{P}_{{i+1}}{t}}{-}{{P}_{{i}}{t}})}\cdot{{S}_{i}}}}} $$
(4)

Evaluation model of feed situation

So far, there is no certain standard for the division of herd feed situation. In addition, it is difficult to find out the accurate classification standard for different types of herd feed in different regions. The boundary between the intervals will be too rigid, if it is divided strictly by the classification interval. However, jurisdiction degree theory of fuzzy mathematics can be used to quantitative evaluation. Fuzzy recognition can make a scientific, reasonable and practical quantitative evaluation for the fuzzy information. Therefore, this platform used a simple jurisdiction function based on the descending half trapezoid, the rising half trapezoid and the intermediate symmetry in fuzzy mathematics to evaluate the feed situation of the herd [39]. Taking the feed intake as the domain, the jurisdiction functions of the fuzzy comment set V = (good, moderate, poor) are given. The poor feed situation of the herd is divided into two different jurisdiction functions: one is light feed (Eq. 5) and the other is over feed (Eq. 6).

$$ {{\mu }_{11}}(x)=\left\{ \begin{aligned} & \text{1 \qquad\qquad (\({x}\)}{{<{b}}_{1}}\text{)} \\ & \frac{{{b}_{2}}-x}{{{b}_{2}}-{{b}_{1}}} \quad ({{{b}}_{1}}\le \text{\({x}\)}\le {{{b}}_{2})} \\ & \text{0 \qquad\qquad (\({x}\)}{{>{b}}_{2}}\text{)} \\ \end{aligned} \right. $$
(5)
$$ {{\mu }_{12}}(x)=\left\{ \begin{aligned} & \text{0 \qquad\qquad (\({x}\)}{{<{b}}_{4}}\text{)} \\ & \frac{-{{b}_{4}}+x}{{{b}_{5}}-{{b}_{4}}} \quad ({{{b}}_{4}}\le \text{\({x}\)}\le {{{b}}_{5})} \\ & \text{1 \qquad\qquad (\({x}\)}{{>{b}}_{5}}\text{)} \\ \end{aligned} \right. $$
(6)

The intermediate symmetrical distribution function is used to estimate moderate feed and good feed of the herd (Eqs. 7, 8, and 9).

$$ {{\mu }_{21}}(x)=\left\{ \begin{aligned} & \frac{{x}-{{b}_{1}}}{{{b}_{2}}-{{b}_{1}}}\quad\text{ (}{{{b}}_{1}}\le {x}\le {{{b}}_{2}}\text{)} \\ & \frac{{{b}_{3}}-x}{{{b}_{3}}-{{b}_{2}}}\quad({{{b}}_{2}}<{x}\le {{{b}}_{3})} \\ & \text{0 \qquad\qquad (\({x}\)}<{{{b}}_{1}}\text{ or \({x}\)}>{{{b}}_{3}}\text{)} \\ \end{aligned} \right. $$
(7)
$$ {{\mu }_{22}}(x)=\left\{ \begin{aligned} & \frac{{x}-{{b}_{3}}}{{{b}_{4}}-{{b}_{3}}}\quad\text{ (}{{{b}}_{3}}\le {x}\le {{{b}}_{4}}\text{)} \\ & \frac{{{b}_{5}}-x}{{{b}_{5}}-{{b}_{4}}}\quad ({{{b}}_{4}}<{ x}\le {{{b}}_{5})} \\ & \text{0 \qquad\qquad (\({x}\)}<{{{b}}_{3}}\text{ or \({x}\)}>{{{b}}_{5}}\text{)} \\ \end{aligned} \right. $$
(8)
$$ {{\mu }_{3}}(x)=\left\{ \begin{aligned} & \frac{{x}-{{b}_{2}}}{{{b}_{3}}-{{b}_{2}}}\quad\text{ (}{{{b}}_{2}}\le {x}\le {{{b}}_{3}}\text{)} \\ & \frac{{{b}_{4}}-x}{{{b}_{4}}-{{b}_{3}}}\quad ({{{b}}_{3}}<{ x}\le {{{b}}_{4)}} \\ & \text{0 \qquad\qquad (\({x}\)}<{{{b}}_{2}}\text{ or \({x}\)}>{{{b}}_{4}}\text{)} \\ \end{aligned} \right. $$
(9)

Where bi is the boundary of different feed intake, i=1, 2,..., 5; x is the feed intake, g/ m2.

Spatial analysis models

The spatial analysis models used in this platform include buffer analysis model, finding hot pots model and interpolation point analysis model.

Buffer analysis model is one of the important spatial analysis functions of geographic information systems. It has a wide range of applications in transportation, forestry, resource management, and urban planning, such as the delimitation of the protected areas around lakes and rivers, the selection of automobile service areas, and the establishment of buffer areas far from the street network in residential areas, etc. Buffer analysis is based on point, line and face entities to build automatically a polygon layer of buffer in a certain width range, and then the superposition of this layer and the target layer is built to analyze and obtain the required results. The buffer based on point feature is usually a circle with a point as the center and a certain distance as the radius. The buffer based on line feature is usually a parallel strip polygon with the line as the central axis and a certain distance from the central axis. The buffer based on polygon boundary of the area feature is a new polygon, which can be generated by extending a certain distance outwards or inwards. The buffer program traverses each vertex of the input features and builds a buffer offset. The output buffer features are built by using these offsets.

Finding hot spots model is a spatial clustering which is used to identify high values (hot spots) or low values (cold spots) or data count with statistical significance in data. This model is used to find hot spots and cold spots of the herd feed information clustering. The map layer shows hot spots in red and cold spots in blue. The darkest red features represent the strongest clusters of high values or point density. The clusters associated with these features are not randomly generated results. They have 99% degree of confidence. Similarly, the darkest blue features are associated with the strongest low-value spatial clustering or the lowest point density. Beige features do not belong to statistically significant clusters. The spatial patterns associated with these features are most likely the results of random processes and random production.

Interpolation point analysis model can predict the values of new locations based on the values of a set of trajectory points. This model gets each point data with a value and returns the area classified by the predicted value. The point layer is used as the input layer. The input layer must have a numeric field to be the basis of interpolation. The interpolation speed, precision, and intermediate region can be optimized by setting the interpolation point model. The standard error layer can be created by selecting the output prediction error check box. The 95% confidence interval in the interpolation layer can be calculated by the interpolation value, the two standard upper bound errors and the two standard lower bound errors.

Platform implementation

This platform was developed by Web AppBuilder for ArcGIS framework, ArcGIS API for JavaScript and HTML5 technology. The paltform was a Web application with a beautiful user interface and rich common functions of GIS. ArcGIS Online was used as the GIS server and Tomcat7 was used as the Web server for the server of this platform. The database used Microsoft SQL Server 2008+ArcSDE spatial data engine to manage data. Based on Dojo development components, the platform was designed and built in REST style to enhance its scalability.

Trajectory and speed

The calculation method of trajectory and speed is shown in Fig. 5. Firstly, input the trajectory points of herd. Secondly, a point feature layer is made based on the trajectory points and sort it by sheep IDs and gpstime. Thirdly, make a tracking layer and calculate trajectory and walking speed of herd. Forthly, build a trajectory table. Fifthly, input sheep ID. The trajectory and speed of the sheep is obtained by querying the trajectory table.

Fig. 5
figure 5

Implementation flowchart of trajectory and speed model

Feed intake

The calculation method of feed intake is shown in Fig. 6. The calculation steps of daily feed intake of herd are as follows. The first step: Input daily trajectory segments of herd and sheep ID. The trajectory segment of the sheep is obtained by querying the daily trajectory segments of herd. Input daily trajectory points of herd, and sort them according to sheep IDs and gpstime to get the sorted trajectory points. The second step: The distance between the trajectory points and the trajectory segment Li is calculated by using the calculation method from point to segment. The third step: The maximum distance Ri is obtained by summarizing and calculation method. It is used as the buffer distance of the trajectory segment Li. The fourth step: Build grazing buffer. The grazing buffer of each trajectory segment Li is built by translating the distance Ri on both sides of the trajectory segment Li along the vertical direction. The fifth step: Calculate buffer area. The buffer area is calculated by the buffer distance Ri and the length of the trajectory segment Li. The sixth step: Input the formula of feed intake. Daily feed intake polygon data is obtained by calculating daily feed intake of herd.

Fig. 6
figure 6

Implementation flowchart of feed intake model

For the calculation steps of multi-day feed intake are as follows. The first step: Input n(n >1) daily feed intake polygon data. The n daily feed intake raster data is obtained by converting polygon data into raster data. Input pasture polygon data and convert its geographic coordinate system into projection coordinate system. The second step: The pasture grid data is obtained by building pasture grid. The third step: Extract n daily feed intake into the fields of each grid center point. The forth step: The multi-day feed intake data is obtained by summing n daily feed intake fields.

Feed situation

The steps to evaluate the feed situation of the herd are as follows. Firstly, a new field needs to be added into the feed intake table to store the evaluation result of the feed situation. Secondly, the feed situation of the herd is evaluated by the evaluation model of feed situation. And, the result is stored in the new field. Finally, the feed situation of the herd is showed visually on the client by the pie chart of the platform. Therefore, users can grasp intuitively the feed situation of the herd in different areas. It is helpful for users to formulate feed plans reasonably and use grassland resource in a balanced manner. It also can promote the sustainable development of grassland livestock.

Spatial anlysis

The spatial analysis function relies on the Web AppBuilder for ArcGIS framework. The Analysis widget of the framework provides an easy way to use ArcGIS Online or ArcGIS Enterprise spatial analysis tools in application. The analysis widget provides 25 analysis tools. With 25 analysis tools, one tool or multiple tools can be configured in a widget. The platform used buffer analysis tool, finding hot spots tool and interpolation analysis tool of the analysis widget to realize the spatial analysis function. In order to ensure that the spatial analysis function is used normally, each user is given the following permissions:

1. Create, update, and delete content

2. Publish hosted features

3. Spatial analysis

Results

The platform used a dashboard theme, including a main view and an attribute table with drawer effects and five widgets. The main view displays the map and provides a series of map operation options, which include positioning, zooming the map, panning the map, returning to the center of the main map, selecting display layers, scale, print and share. Five widgets analyzes spatial data from different angles.

In this study, the Ziniquan pasture of Shihezi City, Xinjiang production and construction corps was taken as an example to test the application of the platform. The herd trajectory data in the study area from July 28 to July 31, 2016 was processed and visualized, and the results were shown in Fig. 7. Figure 7 was the main view of the platform. It showed the range of the pasture and the trajectory points of the herd. The pasture range data and the trajectory point data of the herd can be freely selected by the attribute table. And a series of condition filtering queries can be conducted by the attribute table, as shown in Fig. 8. According to the query data, the feeding behavior of the herd can be deeply explored.

Fig. 7
figure 7

The main view of the platform

Fig. 8
figure 8

The attribute table of the platform

The first widget of this platform shows the total feed intake of the herd during this period.

The second widget provides spatial analysis services, including buffer analysis service, finding hot spots service and interpolation point analysis service. Buffer analysis service is mainly applicable to small-scale pastures. According to the gathering and survival characteristics of the herd, the range of the herd activities can be inferred from the trajectories of some sheep. Taking the sheep with device ID 6021265 as an example, the range of the herd activities was obtained, as shown in Fig. 9. Finding hot spots service is the main spatial analysis service. Users can select herd’s trajectory points and analysis fields to conduct relevant hot spots analysis. Taking the trajectory points of the herd from July 28 to July 31, 2016 as an example, the hot spots result diagram was obtained, as shown in Fig. 10. The analysis field is feed intake of herd. It was found that the herd fed heavily in the starting point and the part farthest from the starting point by analyzing the hot point map of the feed intake. It was consistent with feeding characteristics of the herd. Interpolation analysis service is mainly applicable to large-scale pastures. Because the herd is large and relatively scattered. The feeding behavior of the whole herds can be predicted based on the trajectory of few herds. Taking feed intake of the herd from July 28 to July 31, 2016 as an example, the overall feed intake was predicted, and the result was shown in Fig. 11.

Fig. 9
figure 9

The buffer analysis result diagram of the platform

Fig. 10
figure 10

The finding hot spots result diagram of the platform

Fig. 11
figure 11

The interpolation analysis result diagram of the platform

The third widget shows the relationship between walking speed of the herd and the grazing time. Li et al. [40] analyzed the walking speed range of the herd. Therefore, the maximum and minimum values of the walking speed range were used as reference lines in the line chart for users to analyze the walking speed of the herd. The walking speed of the herd obtained by this platform is slightly larger. This is related to the fact that Ziniquan pasture is located in the hilly area with relatively undulating terrain. The difference of vegetation, sheep species and monitoring time will also lead to the greater speed.

The fourth widget shows the relationship between feed intake of the herd and grazing time.

The fifth widget shows the pie chart of the feed situation of the herd.

Users can click to select the relational chart points or pie chart areas they are interested in. The main view will mark and show the selected trajectory points for users to view. Taking Fig. 11 as an example, click to select the over area of the pie chart, and the main view will mark and show the selected trajetory points.

Discussion and conclusions

Compared with previous studies of other researchers, the results of data analysis and visualization of this platform can better meet users’ needs. The platform realized the functions of feed intake statistics, walking speed statistics, line chart analysis and pie chart analysis of spatial data related attributes, etc. Moreover, it also provides users with customized spatial analysis functions (such as buffer analysis, finding hot pots analysis and interpolation point analysis), which are not considered by other related visualization platforms. Traditional platform of analysis based on spatial data is that developers investigate users’ needs and then design customized functions. However, the development cycle of visualization platform is very long. Once the developers investigate the users’ needs improperly, they will face the loss of redevelopment. In addition, standard functions can only satisfy most users, but it is difficult to meet the needs of a few users. Thus, this platform took these pain points into account and was developed by Web AppBuilder for ArcGIS framework. The framework has some characteristics, such as fast development cycle and allowing users to customize analysis. Thereore, it can meet the special needs of some users effectively. Take the function of finding hot spots of spatial analysis as an example, different users may need to analyze different spatial data, while the find hotspot function enabled users to customize and select the spatial data and fields to analyze. It can allow some differences of data and not affect the analysis quality.

The platform can make ranchers and grassland livestock management departments grasp the grazing information of the herd in time. It can also provide the relevant researchers with a great understanding of the grazing behavior and habits of the herd. However, the platform can not monitor the grazing behavior of the herd in real time. For example, the walking speed and direction of the herd can’t be measured in real time. In addition, the platform mainly relies on ArcGIS Online platform so that the display of results was slightly delayed. Therefore, it is necessary to add some functions such as grazing trajectory prediction, real-time monitoring of walking speed, and improve the loading speed of data in the future work.