102
handling and noise object eliminating effect is better
than the other clustering algorithm, so after
improvingitissuitabletoclusteringgeometryobjects.
In this paper the trafficflowinrestricted waters has
thesamecharacteristic(geometrytype),sowechoose
DBSCAN algorithm for prototype clustering
algorithm.
In DBSCAN algorithm,
the data object to be
clustering is seen as a particle, obviously it does not
fit the situation in the restricted waters. Taking this
problem into account, this paper introduces the
conceptoftheshipdomain[6,7,8,9,10].
Ship domain is the area that every ship hopes to
maintain an independent
region from otherness
around itself in order to avoid collisions. Factors
affectingtheshipdomaininclude:Ship’ssize,speed,
state of motion, manipulation and movement of the
shipʹsperformance,encounterposture,manipulator’s
psychological factors, traffic density in water, traffic
environment,andthenhydro‐meteorological,etc.
This paper combines ship domain
concept and
DBSCANclusteringalgorithm,proposedaimproved
DBSCAN algorithm.It selects the model of ship
domainasfollow:
1 Ship domain is oval.(it is simplified as octagon
whencalculateincomputer).
2 Ship domain can modify according to ship’s
size,speed,etc.
3 Shipitselflocates in rearward position of its ship
domain.
4 Onlywhentwo ships enterintoeach other’s ship
domain,thereisacollisionrisk.
Figure 2.1 show the ship domain model used in
thispaper.
Figure2.1.Shipdomaindomain
After selected model of ship domain, this paper
describedtheimprovedDBSCANalgorithmasbelow.
Definition 1 Objects:in this paper, the objects
meansships.
Definition2
neighborhood: the region(polygon)
of objects’ ship domains can be called objectʹs
neighborhood.
Definition 3 density: the density of a object p is
that the numberofobjectsbe contained in object p’s
neighborhood.
Definition 4 Core object: if an object’s
neighborhood at least contains the minimum
number(MinPts)objects,itnamedcoreobject.
Definition5Directlydensity‐reachable:inagiven
setofobjectsmarkedD,foragiven
neighborhood,
if the object p and the object q both in each other’s
neighborhood ,and q is a core object, then we call
the object p is directly density‐reachable from the
objectq.
Definition 6 density‐reachable: for exist objects
chain
1, 2, , 1 ,
ppp=qp=p
nn
,and
,
D(1 i n)
i
,if
every
1
p
i
is directly density‐reachable from p
i
in
the condition of given
neighborhood and MinPts
.we call the object p is density‐reachable from the
objectq.(transmission).
Definition 7 density‐connected: in a given set of
objects D ,
and MinPts, object p and object q are
both density‐reachable from the object O, then the
objectpandobjectqisdensity‐connected.
Definition 8 class with noise: in given
and
MinPts,aclassCisnon‐emptysubsetofgivensetof
objectsDsatisfiesthefollowingthreeconditions:
1 For any p, q ∈ D, if q ∈ C, and P is density‐
reachablefromq,thenp∈C;
2 Foranyp,q∈C,p
andqaredensity‐connected;
3 Donotbelongtoanyclassofobjectsisconsidered
noise.
Improved DBSCAN algorithm through
and
MinPts asinputparameterstocontrolthedensityof
theclass,onlyclassthedensitymorethanMinPtscan
be retain . The clustering process is based on the
followingprocedures:
(1)Givenparameters
andMinPts,ifexistscore
object P , every objects density‐reachable from P
satisfies
andMinPtsclustersaclassandPbelongs
tothisclass;
(2) Assuming that class C is satisfies
and
MinPts,PisacoreobjectofclassC,thentheclassCis
equivalent to the set contains objects density‐
reachablefromP.
Algorithm’s idea is that we trace and find
points(ships) to cluster through checking database
(AIS database).Firstly, we take different time data
synchronous to the same
time, this step involving
deadreckoning.If
neighborhood of point P (ship
P) contains more than MinPts number points, then
createanewclass(collisionriskarea)whichcoreisP.
Next,repeatedlylookinguptosomeobjectswhichis
density‐reachablefromthecoreP,inthisprocessmay
involve someclasscombined.Whenthereis
no new
point can be added to any class, it is the end of the
clustering process. Figure 2.2 and figure 2.3
respectivelyshowstheDBSCAN’sschematicdiagram
and the improved DBSCAN algorithm’s schematic
diagram.
Shipdomain
Shipitself