Skip to main content
Erschienen in: Complex & Intelligent Systems 2/2023

Open Access 13.10.2022 | Original Article

A hybrid spectral clustering simulated annealing algorithm for the street patrol districting problem

verfasst von: Yirui Jiang, Shan Zhao, Hongwei Li, Yulu Qin, Xiaoyue Yang

Erschienen in: Complex & Intelligent Systems | Ausgabe 2/2023

Aktivieren Sie unsere intelligente Suche, um passende Fachinhalte oder Patente zu finden.

search-config
loading …

Abstract

Reasonable districting plays an important role in the patrolling process. In this paper, workload attributes are considered, and a mixed integer programming model is developed to solve the street patrol districting problem (SPDP). The improved spectral clustering algorithm named spectral clustering algorithm based on the road network (SCRn) and simulated annealing algorithm (SA) are combined. This results in a hybrid algorithm called SCRn-SA. The SCRn-SA algorithm is tested on small examples and real instances in Zhengzhou, China. The experimental results show that the proposed algorithm is effective for solving SPDP. It has better performance when compared to other advanced algorithms.
Hinweise

Publisher's Note

Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Introduction

The objective of districting is to divide the entire study area into a number of basic units. It can allow the relevant resources to be fully utilized [1]. Important criteria for districting are design balance, compactness and continuity of the areas [24]. The districting problem is applied to all aspects of politics, economics, the environment and public services [5, 6]. The main types include patrol districting [7], political districting [8], commercial districting [9] and service districting [10].
The patrol districting problem is a common type of districting problem and can be seen as a geographic area design problem based on relevant rule criteria [11], applied to street, marine, service and other scenarios [1214]. Patrols can be effectively and rationally designed according to attributes such as balancing the workload of patrol officers in each area and optimizing the response time of cases [11, 15]. It can have a direct impact on the completion of patrol tasks and ensure that patrols are fair and that all officers are satisfied [16, 17].
Police, security officers, city managers and others all contribute to maintaining the aesthetics, safety and order of the city by patrolling the streets in different ways to identify problems [18, 19]. Street networks reflect human mobility patterns and are an important object of study in patrols [20]. Patrol studies conducted with the street as the basic unit allow precise, real-time analysis of the patrol process. The street patrol is a rational division of the patrol area along the urban road network according to defined criteria, which allows for the optimal arrangement of patrol personnel and increases the efficiency of patrols.
Compared to the general districting problem, the street patrol districting problem has some special characteristics, mainly consisting of these two aspects. First, the problem is based on the road network as the study area and is effectively solved by constructing a road network model. Second, the patrol area needs to be finely delineated to generate balanced, efficient and compact patrol sections. Therefore, in this paper, a hybrid algorithm is proposed based on a spectral clustering algorithm and simulated annealing algorithm. Specifically, an improved spectral clustering algorithm is used to generate the initial district of the areas, followed by a simulated annealing algorithm to generate the optimal districting results. The main contributions of the paper are summarized below.
  • We define a street patrol districting problem (SPDP) and use a mixed integer programming model (MIP) to represent the problem (SPDP). The model uses workload attributes as important criteria to produce a balanced and efficient districting design in the street network.
  • We develop a hybrid spectral clustering-simulated annealing algorithm (SCRn-SA) that can generate optimal districting results. This algorithm improves on the spectral clustering algorithm and combines it with the simulated annealing algorithm to make it more suitable for solving SPDP.
  • Two different road network scenarios are selected for testing, and the experimental results indicate that the proposed algorithm is more advantageous than the other advanced algorithms in solving SPDP.
The rest of this paper is organized as follows. “Literature review” section provides a review of related work. “Description and modelling” section presents a mixed integer planning model for SPDP. The proposed algorithm (SCRn-SA) is described, and the experimental results are reported in “Proposed algorithm” section. The numerical experiments and analysis are presented in “Numerical experiments” section. The final section draws conclusions of the paper and discusses future research directions.

Literature review

In this section, the main types of patrol districting problems are reviewed, and then solutions to the problem are presented.
The patrol districting problem is widely used. It mainly consists of police patrol districting, emergency vehicle patrol districting and maritime patrol districting problems [13, 14, 21, 22]. It uses the urban road network or census streets as a whole to achieve some of the goals of the patrol objectives, such as maximum coverage and workload standards [2325]. It makes sense to use the urban road network as an area to patrol, but there is currently little research into the problem based on the road network. Thus motivated, the research in this paper focuses on the patrol districting problem based on urban road networks.
In recent years, many researchers have developed different methods to solve the patrol area delineation problem. Two main solution methods are currently used [5]. The first approach is to use a mathematical model. Kevin et al. [26] used a maximum coverage model for patrol area districting. Chen et al. [27] proposed a patrol area classification model with security levels to guarantee public safety effectively. Nikolas et al. [14] developed a patrol coverage model that takes into account the response time of cases. Zhang et al. [28] established a discrete-event simulation model to evaluate patrol districting planning.
The second approach relies on heuristic algorithms. A number of extensive metaheuristics have been applied to the regional districting problem, namely, simulated annealing algorithms [6], search algorithms [29], genetic algorithms [30], etc. Camacho et al. [31] developed a local search algorithm to solve the police districting problem, and the case study illustrates the advantages of this algorithm. Steven et al. [32] used a simulated annealing algorithm to achieve a suitable assignment of patrol areas. A study of real data from the Buffalo Police Department shows that this algorithm has good robustness. Fernando et al. [33] demonstrated that genetic algorithms can provide better results in regional districting problems. Gonzalez-Ramirez et al. [34] used a hybrid metaheuristic algorithm combining the GRASP algorithm with a tabu search strategy, and this algorithm was experimentally shown to be effective in dealing with the problem. In [35], Thilina et al. proposed a heuristic-based clustering algorithm to achieve workload balancing and minimize the average response time.
The SA algorithm is a popular metaheuristic algorithm that can effectively solve local optimization problems [36, 37]. The method of spectral clustering originates from graphical partitioning and is widely used in practical problems [38]. Compared to traditional clustering methods such as k-means algorithms, spectral clustering algorithms are simple to implement and often yield better results than traditional clustering algorithms [39, 40]. Therefore, in this paper, the simulated annealing algorithm and the clustering algorithm are combined to form a hybrid algorithm for the patrol districting problem based on urban road networks. The proposed algorithm is based on the initial solution generated by the spectral clustering algorithm and further optimized by the simulated annealing algorithm to obtain the optimal solution. The algorithm improves the probability of reaching the optimum of the simulated annealing algorithm and reduces the computation time.

Description and modelling

In this section, the street patrol districting problem (SPDP) is defined. Then, the problem is mathematically modelled, and the exact formulation of the model is presented. The objective function and constraints of the model are subsequently defined.

Problem description

Patrols are used to detect problems in the urban road network. This paper focuses on the question of setting patrol areas for patrol officers. The objective is to give patrol officers a reasonable districting of street areas. Based on the specific problem, the following assumptions are usually made.
  • A patrol district covers the entire patrolled street network. The district must not overlap with another district or be empty.
  • A patrol officer cannot be assigned to two or more patrol districts.
  • A patrol district contains connected patrol units. The patrol district is made up of at least one patrol unit.
  • The goal of the districting problem is to give a patrol offer a reasonable allocation of street areas to patrol. It takes into account road conditions, regional risks and distances to form continuous, compact, balanced and efficient patrol areas [41, 42].

Problem modelling

The problem is defined based on an undirected graph \(G=(V,E)\), where \(V=\{{v}_{1},{v}_{2},\cdots {v}_{n}\}\) is the node set of the street links and E is a set of arcs between the street links. The workload attributes of patrols are described according to the basis of patrol deployment and case occurrence [31]. They include four main factors: the risk factor for the district, the total length of the road, the road congestion factor, and the furthest distance of the road.
For the convenience of description, the parameters and decision variables in this paper are defined in Table 1.
Table 1
The parameters and decision variables in the model
Parameters
 
\({\varvec{K}}\)
Set of patrol districts
\({\varvec{k}}\)
Index of patrol district
\({\varvec{m}}\)
Number of patrol districts
\({\varvec{I}}\)
Set of patrol units
\({\varvec{i}}\)
Index of patrol units
\({\varvec{j}}\)
Index of patrol units
\({\varvec{n}}\)
Number of patrol units
\({{\varvec{H}}}_{{\varvec{i}}}\)
The patrol units that are adjacent to unit \(i\)
\({{\varvec{R}}}_{{\varvec{k}}}\)
Risk factor in district \(k\)
\({{\varvec{L}}}_{{\varvec{k}}}\)
Workload of district \(k\)
\({{\varvec{D}}}_{{\varvec{m}}{\varvec{k}}}\)
The diameter distance in district k
\({{\varvec{D}}}_{{{\varvec{L}}}_{{\varvec{k}}}}\)
Workload deviation of district \(k\)
\({{\varvec{l}}}_{{\varvec{i}}}\)
Length of road in unit \(i\)
\({{\varvec{c}}}_{{\varvec{i}}}\)
Road congestion factor in unit \(i\)
\({{\varvec{d}}}_{{\varvec{i}}{\varvec{j}}}\)
The shortest distance between unit i and unit \(j\)
\({{\varvec{w}}}_{1}\),\({{\varvec{w}}}_{2}\)
Weighting of the objective function
\(\boldsymbol{\alpha },{\varvec{\beta}},{\varvec{\gamma}},{\varvec{\delta}}\)
Weighting of the workload in the objective function
Decision variables
 
\({{\varvec{x}}}_{{\varvec{i}}{\varvec{k}}}\)
Binary variable which is 1 if unit \(i\) is assigned to district \(k\)
\({{\varvec{y}}}_{{\varvec{i}}{\varvec{j}}{\varvec{k}}}\)
Binary variable which is 1 if both units \(i\) and \(j\) belong to district \(k\)
The objective function of this paper includes compact and continuous areas, patrolling balanced and efficient weighted indicators. Based on the previous assumptions and under the symbolic parameters and variables, the mathematical model is constructed as follows:
$$ {\text{Minimise}} = w_{1} \frac{{\mathop \sum \nolimits_{k = 1}^{n} L_{k} }}{n} + w_{2} \frac{{\mathop \sum \nolimits_{k = 1}^{n} D_{{L_{k} }} }}{n} $$
(1)
Subject to
$$ \mathop \sum \limits_{k \in K} x_{ik} = 1\quad \forall \;k \in \left\{ {1, \cdots n} \right\} $$
(2)
$$ x_{ik} \le \mathop \sum \limits_{{j \in H_{i} }} x_{jk} \forall \;k \in \left\{ {1, \cdots n} \right\} $$
(3)
$$ D_{{L_{k} }} \ge L_{k} - \frac{{\mathop \sum \nolimits_{j = 1}^{n} L_{j} }}{n} $$
(4)
$$ D_{{L_{k} }} \ge \frac{{\mathop \sum \nolimits_{j = 1}^{n} L_{j} }}{n} - L_{k} $$
(5)
$$ R_{k} = \frac{{\mathop \sum \nolimits_{i = 1}^{m} x_{ik} r_{i} }}{{\mathop \sum \nolimits_{i = 1}^{m} r_{i} }} $$
(6)
$$ L_{k} = \mathop \sum \limits_{i = 1}^{m} x_{ik} l_{i} $$
(7)
$$ C_{k} = \frac{{\mathop \sum \nolimits_{i = 1}^{m} x_{ik} c_{i} }}{{\mathop \sum \nolimits_{i = 1}^{m} c_{i} }} $$
(8)
$$ D_{mk} = \max \left\{ {y_{ijk} d_{ij} } \right\} $$
(9)
$$ L_{k} = \alpha R_{k} + \beta L_{i} + \gamma C_{i} + \delta D_{m} $$
(10)
$$ x_{ik} = \left\{ {0,1} \right\}\quad \forall \;i \in V $$
(11)
$$ y_{ijk} = \left\{ {0,1} \right\}\quad \forall \;i,j \in V $$
(12)
The two terms in the objective function (1) represent the average workload and average workload deviation, respectively. They are assigned weights according to \({w}_{1}\) and \({w}_{2}\). Equation (2) ensures that each unit \(i\) is assigned to only one district \(k\). Equation (3) guarantees that unit \(i\) must be in district \(k\) when a patrol unit \(j\) exists in the neighbourhood of \(i\). Constraint Eqs. (4) and (5) define that the average workload deviation indicates the maximum differences between the workload and the average workload. Equations (6), (7), (8) and (9) describe the workload attributes. Equation (6) defines the risk factor for the district. The predicted case frequency is used as an estimate, indicating the predicted number of cases likely to occur in this area during the specified time period. Equation (7) represents the total length of patrol officers in the patrol district. Equation (8) defines the road congestion factor and represents the ratio of the time of congestion to the total time. Equation (9) defines the diameter distance of the patrol road and indicates the farthest distance in the patrol district. The diameter is the maximum distance between two points and the diameter distance represents the maximum internal travel distance in a patrol district. Equation (10) defines the workload of a district as a linear combination of four attributes. They are assigned weights according to \(\alpha \), \(\beta \), \(\gamma \), \(\delta \). The weights are judged according to the actual situation. Equations (11) and (12) define the domains of decision variables \({x}_{ik}\) and \({y}_{ijk}\).

Proposed algorithm

In this section, the proposed RSCn-SA algorithm is described in detail. First, the basic framework of the RSCn-SA algorithm is presented. Then, the specifics of the improved spectral clustering algorithm and simulated annealing algorithm used in the hybrid algorithm are explained in detail.

Framework of the RSCn-SA algorithm

To solve the patrol districting problem (SPDP), a hybrid algorithm (called RSCn-SA) combines an improved spectral clustering algorithm with a simulated annealing algorithm. An initial segmentation district is obtained after using an improved spectral clustering algorithm. Then, based on this initial district, a simulated annealing algorithm is used to optimize the objective values and ultimately obtain the global optimal solution. The pseudocode for the RSCn-SA algorithm is shown in Algorithm 1.

Spectral clustering algorithm

The spectral clustering algorithm was first proposed by Donath et al. in 1973 and evolved from graph theory [43, 44]. The important element of the algorithm is to see all the data as points that can be connected with edges. The distance and the value of the edge weights between the two points correspond to each other. Clustering is achieved by partitioning the graph composed of all data points [38, 39, 45].
In the model of this paper, an improved spectral clustering algorithm based on a road network is proposed to solve the street patrol districting problem (SPDP). In the algorithm, road segments are as nodes and links between road segments are as links between nodes. The lengths of the road are used as weights and are involved for consideration. Compared to the traditional spectral clustering algorithm, the algorithm is more relevant to the scenario used and can provide a better initial solution in the paper.
This algorithm starts with a preprocessing operation to construct the connectivity matrix of the road network and constructs a Laplace matrix representation. Then, a decomposition operation is performed to generate the minimum eigenvalues and the eigenvectors. Finally, the feature vectors are clustered into a small number of feature vectors and partitioned according to the reduced dimensional vectors.
The Laplace determinant is constructed as shown in Eq. (13):
$$ L = C - D{ } $$
(13)
where \(L\) represents unnormalized Laplacian Matrix. \(C\) represents the connectivity matrix and \(D\) represents the degree matrix.
The standardized Laplace matrix is shown in Eq. (14):
$$ {\text{LM}} = {\text{D}}^{ - 1/2} {\text{LD}}^{ - 1/2} { } $$
(14)
where \(\mathrm{LM}\) denotes the standardized Laplace matrix.
The distance between patrol district \({x}_{j}\) and each feature vector \({f}_{i}\) in the decomposition operation is denoted in Eq. (15):
$$ d_{ji} = \left| {\left| {x_{j} - f_{i} } \right|} \right| $$
(15)
The eigenvectors of this matrix are used as points, and a clustering algorithm is applied to them for appropriate clustering. The partition markings after clustering are denoted in Eq. (16):
$$ \lambda_{j} = {\text{arcmin}}_{{i \in \left\{ {1,2,3, \cdots ,k} \right\}}} d_{ji} $$
(16)
The new eigenvector is denoted in Eq. (17):
$$ f_{i}^{^{\prime}} = \frac{1}{{\left| {c_{i} } \right|}}\mathop \sum \limits_{{x \in C_{i} }} x $$
(17)
The pseudocode for the improved spectral clustering algorithm proposed in this paper is shown in Algorithm 2.

Simulated annealing algorithm

In 1953, Metropolis et al. [1] proposed an algorithm to simulate the evolution of heating in solid materials. Importance sampling methods were used to accept new states with probabilities called the Metropolis criterion rather than using fully deterministic rules. The Metropolis algorithm is the basis of the simulated annealing algorithm. However, direct use of the Metropolis algorithm may result in an optimization search that is so slow that it is impractical. To ensure convergence in a finite amount of time, parameters must be set to control the convergence of the algorithm. In 1983, Kirkpatrick et al. [46] were inspired by the physical annealing process and introduced the concept of annealing in combinatorial optimization. This is the earliest simulated annealing algorithm. The later simulated annealing algorithm builds on this algorithm by using temperature and energy variations to jump out of the local optimums and reach the global optimal solution [46].
This proposed algorithm is an improved simulated annealing algorithm. It is similar to the traditional simulated annealing algorithm, but with the following main differences:
  • The initial solution is randomly generated in the traditional simulated annealing algorithm. The initial solution in this paper is determined by the result of the spectral clustering algorithm introduced in the previous section. This can reduce computing time.
  • The boundary segments between different patrol units are selected during the process of generating a new solution. A disturbance process randomly selects one of the road sections, and then the selected segment is taken out of the original district and arranged in the other district which is close. During the disturbance, the connectivity of the altered section needs to be verified. If there is partitioning of the area, both the changed districts need to be analysed, and the perturbation is completed when justified.
  • In the process of generating the new solution, length data from all sections of the road network are used to construct a length matrix to find the furthest distance of the road between two road segments and calculate the increment of the objective function.
The difference in the objective function corresponding to the new solution is calculated in Eq. (18):
$$ d_{E} = f\left( {s + 1} \right) - f\left( s \right) $$
(18)
where \({d}_{E}\) represents the energy difference and \(f(s)\) represents the objective function. Since the objective function difference is only generated by the energy transformation section, the objective function difference is calculated by the energy increment.
The probability of cooling with an energy difference of \({d}_{E}\) at a temperature T is \(P({d}_{E})\). The random probability generated is expressed as
$$ {\text{p}}\left( {d_{E} } \right) = \exp \left( {\frac{{d_{E} }}{kT}} \right) > random\left( {0,1} \right) $$
(19)
where k is a constant and exp denotes the natural exponent. The annealing temperature T is a variable that starts the algorithm as an initial temperature and gradually decreases after each iteration of the algorithm. \(T\) affects the probability of selecting a new district during the algorithm. The greater the probability is that cooling with a primary energy difference of \({d}_{E}\) occurs with a higher temperature. Since \({d}_{E}\) is always less than 0, the function of \(P({d}_{E})\) takes values in the range (0,1).
The pseudocode for the simulated annealing algorithm used in the paper is shown in Algorithm 3.

Numerical experiments

In this section, the parameters and procedure of the experiments are described. Then, the algorithm is compared with other algorithms by setting different workload attributes under small instances. Finally, the performance of this algorithm is compared with other algorithms by choosing real scenes with different numbers of districts.

Experimental description

In China, urban managers identify problems in urban construction such as roadside stalls, illegal business and indiscriminate advertising through street patrols [47, 48]. To demonstrate the performance of the algorithm proposed in this paper, a street patrol area for urban managers in Zhongyuan District, Zhengzhou City, Henan Province, is selected for the study. The algorithms are coded using MATLAB 2018a, and all experiments are implemented on a PC Intel Core i7 processor running 3.7 GHz, RAM of 8 GB computer.
The data of the urban road network in Zhengzhou are selected for testing, and different methods are used for comparison with the proposed algorithm. The performance of the algorithm is illustrated with different cases by choosing small instances and real scenes, and 10 different scenarios are generated under each of the two numbers of road networks. Table 2 lists the parameter settings of the experiments.
Table 2
lists the recommended parameter settings
Parameters
Values
Number of districts
1–10
Initial temperature
1
Number of iterations
100
Temperature drop rate
0.9
Stop iteration temperature
0.000001
\({w}_{1}\)
0.5
\({w}_{2}\)
0.5
The proposed algorithm (SCRn-SA) of this paper is compared with the single algorithm-spectral clustering algorithm [39] based on road network (SCRn), simulated annealing algorithm (SA) [49], greedy algorithm (G) [50], tabu search algorithm (TS) [51], dingo optimization algorithm(DOA) [52] and other hybrid algorithm called greedy-tabu search algorithm (G-TS) [53].

Performance comparison in small instances

To test the performance of the algorithm, a road network model with 180 road segments and 4 districts is constructed. Table 3 shows the workload attributes of 10 test instances. Ten different values of the total length of road segment, the furthest distance of the road, risk factor for the district and road congestion factor are selected in the table. The simulation districting result of the real scene \({F}_{10}\) is shown in Fig. 1. The different colours represent different districts. Each point represents a road segment, and each line represents the connection between the segments.
Table 3
Workload attributes of the small examples
Scene number
Total length of road segment
The furthest distance of the road
Risk factor for the district
Road congestion factor
1
89.8842
8.7328
0.1345
0.1310
2
88.8571
8.9837
0.1103
0.1414
3
95.3991
8.6756
0.1448
0.1034
4
89.9570
10.0663
0.1069
0.1379
5
90.0314
8.9580
0.1345
0.1793
6
83.7805
7.0994
0.1448
0.1207
7
93.1416
8.3429
0.0931
0.1172
8
89.1404
8.2132
0.1241
0.1207
9
95.1825
9.3844
0.1034
0.1276
10
94.9142
8.1043
0.1414
0.1241
Table 4 gives the statistical results for the comparison of SCRn-SA, SCRn, SA, G, TS, DOA and G-TS. The average and standard deviation values of the objective function reflect the performance of the algorithms. The Smaller statistical values for average and standard deviation indicate better performance. The average values are better evaluation criterions than the standard deviation values. As seen in Table 4, the proposed algorithm achieves the lowest workload balance value in all 10 test instances of the comparison algorithm, and the proposed algorithm shows significantly better performance than the standalone algorithms SCRn, SA, G, TS and DOA. Compared with other hybrid algorithms (G-TS), SCRn-SA also has good performance for different workload attributes.
Table 4
Statistical results of SCRn-SA, SCRn, SA, G, TS, G-TS and DOA on small instances
 
SCRn-SA
SCRn
SA
G
TS
G-TS
DOA
\({{\varvec{f}}}_{1}\)
       
 Ave
0.000174
0.024276
0.000396
0.101358
0.000658
0.000354
0.000284
 Std
0.000057
0
0.000095
0.031839
0.000068
0.000048
0.000067
\({{\varvec{f}}}_{2}\)
       
 Ave
0.000114
0.016767
0.000312
0.087511
0.000845
0.000324
0.000224
 Std
0.000041
0
0.000085
0.015985
0.000061
0.000034
0.000059
\({{\varvec{f}}}_{3}\)
       
 Ave
0.000189
0.027442
0.000425
0.047807
0.000612
0.000415
0.000193
 Std
0.000051
0
0.000062
0.015478
0.000058
0.000025
0.000071
\({{\varvec{f}}}_{4}\)
       
 Ave
0.000212
0.016544
0.000356
0.140458
0.000945
0.000587
0.000314
 Std
0.000068
0
0.000067
0.059847
0.000075
0.000067
0.000098
\({{\varvec{f}}}_{5}\)
       
 Ave
0.000195
0.032204
0.000268
0.113352
0.000689
0.000368
0.000395
 Std
0.000062
0
0.000051
0.048792
0.000074
0.000045
0.000072
\({{\varvec{f}}}_{6}\)
       
 Ave
0.000265
0.014899
0.000378
0.043851
0.001305
0.000468
0.000465
 Std
0.000075
0
0.000046
0.012568
0.000156
0.000062
0.000085
\({{\varvec{f}}}_{7}\)
       
 Ave
0.000364
0.022584
0.000654
0.050702
0.000729
0.000489
0.000384
 Std
0.000064
0
0.000078
0.025864
0.000061
0.000051
0.000079
\({{\varvec{f}}}_{8}\)
       
 Ave
0.000315
0.027470
0.000498
0.041881
0.000696
0.000658
0.000532
 Std
0.000055
0
0.000084
0.015526
0.000066
0.000039
0.000125
\({{\varvec{f}}}_{9}\)
       
 Ave
0.000451
0.033509
0.000512
0.075313
0.000754
0.000548
0.000589
 Std
0.000065
0
0.000061
0.025478
0.000051
0.000042
0.000065
\({{\varvec{f}}}_{10}\)
       
 Ave
0.000389
0.022046
0.000475
0.086464
0.000846
0.000658
0.000477
 Std
0.000071
0
0.000058
0.247554
0.000068
0.000068
0.000078
Best results are in bold
Figures 2, 3, 4, 5 represent the convergence curves of different comparison algorithms for solving the problems \({f}_{1}\) \({f}_{4}\) \({f}_{7}\) and \({f}_{9}\), respectively. Comparing the minimum objective function values of the algorithms with iteration and without iteration in the figure, it is found that the four algorithms with iteration, SCRn-SA, SCRn, SA, G, TS, DOA and G-TS, outperformed the algorithms without iteration, RSC and G. Comparing the convergence speed of the iterative algorithms, it is found that the proposed algorithm SCRn-SA and SA outperform the other algorithms. Combined with the analysis results in Table 4, it shows that SCRn-SA has better performance than SA.

Performance comparison in real scenes

Next, a street patrol road network in Zhongyuan District in Zhengzhou is selected for performance testing in real scenes corresponding to the road network diagram shown in Fig. 6. The district includes the area between Western Third Ring Road, Longhai Expressway, Jingguang Road and Nongye Expressway.
This road network can be abstracted to a total of 290 road segments, and the workload attributes (total length of road segment, furthest distance of the road, risk factor for the district and road congestion factor) for setting up patrols are shown in Table 5. The number of districts is set from 1 to 10 for multiple experiments (real scenes \({F}_{1}\)\({F}_{10}\)). The simulation districting result of the real scene \({F}_{10}\) is shown in Fig. 7.
Table 5
Workload attributes of the real scenes
Workload attributes
Value
Total length of road segment
269.4
The furthest distance of the road
21.6867
Risk factor for the district
0.2034
Road congestion factor
0.2310
SCRn-SA is compared with SCRn, SA, G, TS, DOA and G-TS by setting different numbers of districts in the selected road network, as shown in Table 6. The Smaller statistical values for average and standard deviation indicate better performance. The average value is the main judge of performance. Observing example \({F}_{1}\) from Table 6, it can be concluded that when set to a region for calculation, all 5 algorithms result in 0, in line with the actual target value. This proves the accuracy of the algorithm. According to the other 9 examples, it is found that the proposed algorithm has lower mean and variance values of the objective function than the other algorithms. The results indicate that the proposed algorithm outperforms the others for different numbers of districts.
Table 6
Statistical results of SCRn-SA, SCRn, SA, G, TS, G-TS and DOA on real scenes
 
SCRn-SA
SCRn
SA
G
TS
G-TS
DOA
\({{\varvec{F}}}_{1}\)
       
 Ave
0
0
0
0
0
0
0
 Std
0
0
0
0
0
0
0
\({{\varvec{F}}}_{2}\)
       
 Ave
0.000224
0.003917
0.000242
0.042905
0.000464
0.000313
0.000274
 Std
0.000043
0
0.000065
0.025826
0.000065
0.000095
0.000093
\({{\varvec{F}}}_{3}\)
       
 Ave
0.000103
0.011009
0.000258
0.029663
0.000428
0.000315
0.000336
 Std
0.000047
0
0.000074
0.019839
0.000045
0.000087
0.000067
\({{\varvec{F}}}_{4}\)
       
 Ave
0.000204
0.031531
0.000331
0.041212
0.000483
0.019201
0.000384
 Std
0.000045
0
0.000095
0.015713
0.000066
0.032735
0.000125
\({{\varvec{F}}}_{5}\)
       
 Ave
0.000226
0.054419
0.000264
0.115030
0.000613
0.000728
0.000376
 Std
0.000064
0
0.000078
0.031242
0.000032
0.000084
0.000084
\({{\varvec{F}}}_{6}\)
       
 Ave
0.000239
0.023163
0.000298
0.073448
0.000774
0.000516
0.000269
 Std
0.000051
0
0.000054
0.021514
0.000051
0.000078
0.000061
\({{\varvec{F}}}_{7}\)
       
 Ave
0.000361
0.037532
0.000474
0.078305
0.000515
0.000478
0.000371
 Std
0.000057
0
0.000052
0.024551
0.000043
0.000057
0.000077
\({{\varvec{F}}}_{8}\)
       
 Ave
0.000241
0.037532
0.000365
0.057544
0.000461
0.000403
0.000441
 Std
0.000065
0
0.000061
0.039584
0.000039
0.000068
0.000085
\({{\varvec{F}}}_{9}\)
       
 Ave
0.000367
0.069643
0.000455
0.068571
0.000561
0.000412
0.000567
 Std
0.000048
0
0.000049
0.048445
0.000048
0.000079
0.000128
\({{\varvec{F}}}_{10}\)
       
 Ave
0.000326
0.039556
0.000514
0.068226
0.000657
0.000468
0.000436
 Std
0.000074
0
0.000084
0.036958
0.000065
0.000088
0.000087
Best results are in bold
The convergence curves of these algorithms for the real cases \({F}_{2}\), \({F}_{5}\), \({F}_{8}\), and \({F}_{10}\) are chosen for analysis, as shown in Figs. 8, 9, 10, 11. Comparing the objective function values and the convergence speed, it is found that the RSC-SA algorithm in this paper is optimal.

Performance comparison in public datasets

A public dataset of street patrol in Boston is selected for testing. The selected road network in Boston is shown in Fig. 12. This road network can be abstracted to a total of 200 road segments.
The dataset provides all patrol reported including the type of case, location, and date and time in 2018. The workload attributes (total length of road segment, furthest distance of the road, risk factor for the district and road congestion factor) can be calculated using the formula in our paper. The number of districts is set from 1 to 10 for multiple experiments (Boston scenes \({D}_{1}\)\({D}_{10}\)). The workload attributes for setting up patrols are shown in Table 7.
Table 7
Workload attributes of the public dataset in the public dataset
Workload attributes
Value
Total length of road segment
406.9
The furthest distance of the road
36.7328
Risk factor for the district
0.1096
Road congestion factor
0.1393
SCRn-SA is compared with SCRn, SA, G, TS, DOA and G-TS by setting different numbers of districts in the selected road network, as shown in Table 8. The average and standard deviation values are factors in judging performance. The average value is the main factor. The average values are better evaluation criterions than the standard deviation values. According to the examples, it is found that the SCRn-SA algorithm has lower mean and variance values of the objective function than the other algorithms. The results indicate that the SCRn-SA algorithm has better outperforms the public dataset of street patrol in Boston.
Table 8
Statistical results of SCRn-SA, SCRn, SA, G, TS, G-TS and DOA in the public dataset
 
SCRn-SA
SCRn
SA
G
TS
G-TS
DOA
\({{\varvec{D}}}_{1}\)
       
 Ave
0
0
0
0
0
0
0
 Std
0
0
0
0
0
0
0
\({{\varvec{D}}}_{2}\)
       
 Ave
0.000144
0.014923
0.000297
0.090524
0.000311
0.000204
0.001631
 Std
0.000021
0
0.000075
0.027307
0.000034
0.000065
0.000011
\({{\varvec{D}}}_{3}\)
       
 Ave
0.000196
0.039524
0.000236
0.063078
0.000396
0.000401
0.001740
 Std
0.000032
0
0.000037
0.039055
0.000021
0.000056
0.000024
\({{\varvec{D}}}_{4}\)
       
 Ave
0.000136
0.022946
0.000330
0.061320
0.005985
0.000682
0.001523
 Std
0.000069
0
0.000038
0.035483
0.000037
0.000080
0.000016
\({{\varvec{D}}}_{5}\)
       
 Ave
0.000289
0.021370
0.000303
0.094069
0.004263
0.000401
0.002301
 Std
0.000036
0
0.000052
0.041062
0.000232
0.000084
0.000015
\({{\varvec{D}}}_{6}\)
       
 Ave
0.000220
0.022421
0.000249
0.096941
0.003213
0.000314
0.001410
 Std
0.000043
0
0.000034
0.043062
0.000268
0.000069
0.000026
\({{\varvec{D}}}_{7}\)
       
 Ave
0.000246
0.025627
0.000475
0.090200
0.000569
0.000451
0.001995
 Std
0.000058
0
0.000061
0.048182
0.000036
0.000094
0.000038
\({{\varvec{D}}}_{8}\)
       
 Ave
0.000266
0.028938
0.000362
0.077805
0.000682
0.000389
0.001640
 Std
0.000063
0
0.000045
0.024219
0.000028
0.000064
0.000033
\({{\varvec{D}}}_{9}\)
       
 Ave
0.000341
0.032796
0.000279
0.067289
0.003581
0.000561
0.001416
 Std
0.000049
0
0.000062
0.023783
0.000215
0.000081
0.000021
\({{\varvec{D}}}_{10}\)
       
 Ave
0.000280
0.030209
0.000204
0.109079
0.006490
0.000307
0.002441
 Std
0.000043
0
0.000054
0.051841
0.000268
0.000048
0.000027
Best results are in bold
The convergence curves of these algorithms for the public dataset of street patrol in the public dataset \({D}_{2}\), \({D}_{3}\), \({D}_{4}\), and \({D}_{5}\) are chosen for analysis, as shown in Figs. 13, 14, 15, 16. Comparing the objective function values and the convergence speed, it is found that the RSC-SA algorithm is optimal.

Computational complexity of the proposed SCRn-SA algorithm

The computational complexity of the proposed SCRn-SA algorithm is computed. The computational complexity of the spectral clustering algorithm is approximated as \(O(n)\) [54]. And in the simulated annealing algorithm, the temperature is \(O(\mathrm{log}(m))\) [55]. The computational complexity of the SCRn-SA algorithm is \(O(\left(l\times n\right)+(k\times \mathrm{log}\left(m\right))\). \(k\) is the number of variables and \(l\) is the number of iterations.

Conclusion

The street patrol districting problem (SPDP) is presented based on a road network, and a mathematical model with the aim of obtaining balanced, efficient and compact districts is constructed. A hybrid algorithm based on an improved spectral clustering algorithm and simulated annealing algorithm (SCRn-SA) is proposed to solve SPDP. The improved spectral clustering algorithm (SCRn) in this paper is applied to the road network to perform the initial districting. Then, a simulated annealing algorithm (SA) is used to obtain the optimal solution for districting. The proposed algorithm is verified by setting different parameters on small instances and real scenes. The experimental results show that SCRn-SA has advantages over other state-of-the-art algorithms in solving SPDP.
However, there are still some shortcomings in this study, and future research can be conducted in these areas. First, the rational deployment of street patrol forces is increased. Specifically, patrols in key areas are increased where there is a high frequency of cases. In addition, the actual patrol situation varies from time to time, and a dynamic patrol districting scheme can be set based on the changes in patrols during each time cycle. Finally, once rational districting is achieved, the patrol tasks can be refined for the patrol forces inherent in the areas. Research on the deployment of patrol personnel and the optimization of patrol paths can then be conducted.

Declarations

Conflict of interest

The authors declare that they have no known conflicts of competing interests that could have appeared to influence the work reported in this paper.
Open AccessThis article is licensed under a Creative Commons Attribution 4.0 International License, which permits use, sharing, adaptation, distribution and reproduction in any medium or format, as long as you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons licence, and indicate if changes were made. The images or other third party material in this article are included in the article's Creative Commons licence, unless indicated otherwise in a credit line to the material. If material is not included in the article's Creative Commons licence and your intended use is not permitted by statutory regulation or exceeds the permitted use, you will need to obtain permission directly from the copyright holder. To view a copy of this licence, visit http://​creativecommons.​org/​licenses/​by/​4.​0/​.

Publisher's Note

Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.
Literatur
1.
Zurück zum Zitat Duarte A, Henriques R, Ribeiro S (2019) Use of different optimization algorithms to define service areas of police stations in Portugal. Evid Based Territ Policymaking Formul Implement Eval Policy 108–115 Duarte A, Henriques R, Ribeiro S (2019) Use of different optimization algorithms to define service areas of police stations in Portugal. Evid Based Territ Policymaking Formul Implement Eval Policy 108–115
4.
Zurück zum Zitat Kong Y (2021) A hybrid algorithm for the equal districting problem. In: International conference on spatial data and intelligence. Springer, Cham, pp 110–120 Kong Y (2021) A hybrid algorithm for the equal districting problem. In: International conference on spatial data and intelligence. Springer, Cham, pp 110–120
5.
Zurück zum Zitat Kalcsics J, Ríos-Mercado RZ (2019) Districting problems. In: Location science. Springer, Cham, pp 705–743 Kalcsics J, Ríos-Mercado RZ (2019) Districting problems. In: Location science. Springer, Cham, pp 705–743
9.
Zurück zum Zitat Rios-Mercado RZ, Escalante HJ (2016) GRASP with path relinking for commercial districting. Expert Syst Appl 44:102–113CrossRef Rios-Mercado RZ, Escalante HJ (2016) GRASP with path relinking for commercial districting. Expert Syst Appl 44:102–113CrossRef
11.
Zurück zum Zitat Bucarey V, Ordóñez F, Bassaletti E (2015) Shape and balance in police districting. In: Applications of location analysis. Springer, Cham, pp 329–347 Bucarey V, Ordóñez F, Bassaletti E (2015) Shape and balance in police districting. In: Applications of location analysis. Springer, Cham, pp 329–347
17.
Zurück zum Zitat Zhang Y, Brown DE (2012) Police patrol district design using agent-based simulation and GIS. In: 2012 IEEE international conference on intelligence and security informatics. IEEE, pp 54–59 Zhang Y, Brown DE (2012) Police patrol district design using agent-based simulation and GIS. In: 2012 IEEE international conference on intelligence and security informatics. IEEE, pp 54–59
22.
Zurück zum Zitat Rodrigues AM, Ferreira JS (2015) Measures in sectorization problems. In: Operations research and big data. Springer, Cham, 203–211 Rodrigues AM, Ferreira JS (2015) Measures in sectorization problems. In: Operations research and big data. Springer, Cham, 203–211
23.
Zurück zum Zitat Chen H, Cheng T. Designing police patrol districts on street network. Chen H, Cheng T. Designing police patrol districts on street network.
25.
Zurück zum Zitat Pereira FT, Figueira J, Mousseau V et al (2004) Multiple criteria districting problems, models, algorithms, and applications: the Public Transportation Paris Region Pricing System. Ann Oper Res 154(1):69–92MATH Pereira FT, Figueira J, Mousseau V et al (2004) Multiple criteria districting problems, models, algorithms, and applications: the Public Transportation Paris Region Pricing System. Ann Oper Res 154(1):69–92MATH
27.
Zurück zum Zitat Chen X, Yum TSP (2010) Patrol districting and routing with security level functions. In: 2010 IEEE international conference on systems, man and cybernetics. IEEE, pp 3555–3562 Chen X, Yum TSP (2010) Patrol districting and routing with security level functions. In: 2010 IEEE international conference on systems, man and cybernetics. IEEE, pp 3555–3562
28.
Zurück zum Zitat Zhang Y, Brown D (2014) Simulation optimization of police patrol districting plans using response surfaces. SIMULATION 90(6):687–705CrossRef Zhang Y, Brown D (2014) Simulation optimization of police patrol districting plans using response surfaces. SIMULATION 90(6):687–705CrossRef
29.
Zurück zum Zitat Ricca F, Simeone B (2008) Local search algorithms for political districting. Eur J Oper Res 189(3):1409–1426CrossRefMATH Ricca F, Simeone B (2008) Local search algorithms for political districting. Eur J Oper Res 189(3):1409–1426CrossRefMATH
30.
Zurück zum Zitat Solana MA, Díaz JA, Luna DE (2019) Math-heuristic for a territory design problem. In: International conference on computational logistics. Springer, Cham, pp 67–82 Solana MA, Díaz JA, Luna DE (2019) Math-heuristic for a territory design problem. In: International conference on computational logistics. Springer, Cham, pp 67–82
35.
Zurück zum Zitat Piyadasun T, Kalansuriya B, Gangananda M et al (2017) Rationalizing police patrol beats using heuristic-based clustering. In: 2017 Moratuwa engineering research conference (MERCon). IEEE, pp 431–436 Piyadasun T, Kalansuriya B, Gangananda M et al (2017) Rationalizing police patrol beats using heuristic-based clustering. In: 2017 Moratuwa engineering research conference (MERCon). IEEE, pp 431–436
36.
Zurück zum Zitat Wierzchoń ST (2010) Simulated annealing. In: Wiley Encyclopedia of Operations Research and Management Science Wierzchoń ST (2010) Simulated annealing. In: Wiley Encyclopedia of Operations Research and Management Science
37.
Zurück zum Zitat Van Laarhoven PJM, Aarts EHL (1987) Simulated annealing. In: Simulated annealing: theory and applications. Springer, Dordrecht, pp 7–15 Van Laarhoven PJM, Aarts EHL (1987) Simulated annealing. In: Simulated annealing: theory and applications. Springer, Dordrecht, pp 7–15
38.
Zurück zum Zitat Xu Y, Zhuang Z, Li W et al (2018) Effective community division based on improved spectral clustering. Neurocomputing 279:54–62CrossRef Xu Y, Zhuang Z, Li W et al (2018) Effective community division based on improved spectral clustering. Neurocomputing 279:54–62CrossRef
40.
Zurück zum Zitat Ng A, Jordan M, Weiss Y (2001) On spectral clustering: Analysis and an algorithm. Adv Neural Inf Process Syst 14:849–856 Ng A, Jordan M, Weiss Y (2001) On spectral clustering: Analysis and an algorithm. Adv Neural Inf Process Syst 14:849–856
42.
Zurück zum Zitat Faughi H, Tavana M, Mostafayi S et al (2020) A novel optimization model for designing compact, balanced, and contiguous healthcare districts. J Oper Res Soc 71(11):1740–1759CrossRef Faughi H, Tavana M, Mostafayi S et al (2020) A novel optimization model for designing compact, balanced, and contiguous healthcare districts. J Oper Res Soc 71(11):1740–1759CrossRef
44.
Zurück zum Zitat Verma D, Meila M (2003) A comparison of spectral clustering algorithms. University of Washington Tech Rep UWCSE030501, 1:1–18 Verma D, Meila M (2003) A comparison of spectral clustering algorithms. University of Washington Tech Rep UWCSE030501, 1:1–18
46.
Zurück zum Zitat Aarts E, Korst J, Michiels W (2005) Simulated annealing. In: Search methodologies. Springer, Boston, pp 187–210 Aarts E, Korst J, Michiels W (2005) Simulated annealing. In: Search methodologies. Springer, Boston, pp 187–210
47.
Zurück zum Zitat Wenqian D, Liang D, Lin X et al. Spatiotemporal variability of urban management events based on the Bayesian spatiotemporal Model. J Geoinf Sci 22(5):05001073. Wenqian D, Liang D, Lin X et al. Spatiotemporal variability of urban management events based on the Bayesian spatiotemporal Model. J Geoinf Sci 22(5):05001073.
51.
Zurück zum Zitat Gendreau M, Potvin JY (2005) Tabu search. In: Search methodologies. Springer, Boston, pp 165–186 Gendreau M, Potvin JY (2005) Tabu search. In: Search methodologies. Springer, Boston, pp 165–186
52.
Zurück zum Zitat Bairwa AK, Joshi S, Singh D (2021) Dingo optimizer: a nature-inspired metaheuristic approach for engineering problems. Math Probl Eng 2021:1–12CrossRef Bairwa AK, Joshi S, Singh D (2021) Dingo optimizer: a nature-inspired metaheuristic approach for engineering problems. Math Probl Eng 2021:1–12CrossRef
53.
Zurück zum Zitat Gliesch A, Ritt M, Cruz AHS et al (2020) A hybrid heuristic for districting problems with routing criteria. In: 2020 IEEE congress on evolutionary computation (CEC). IEEE, pp 1–9 Gliesch A, Ritt M, Cruz AHS et al (2020) A hybrid heuristic for districting problems with routing criteria. In: 2020 IEEE congress on evolutionary computation (CEC). IEEE, pp 1–9
Metadaten
Titel
A hybrid spectral clustering simulated annealing algorithm for the street patrol districting problem
verfasst von
Yirui Jiang
Shan Zhao
Hongwei Li
Yulu Qin
Xiaoyue Yang
Publikationsdatum
13.10.2022
Verlag
Springer International Publishing
Erschienen in
Complex & Intelligent Systems / Ausgabe 2/2023
Print ISSN: 2199-4536
Elektronische ISSN: 2198-6053
DOI
https://doi.org/10.1007/s40747-022-00880-w

Weitere Artikel der Ausgabe 2/2023

Complex & Intelligent Systems 2/2023 Zur Ausgabe

Premium Partner