The invention discloses a ship 
collision risk analysis method based on AIS (
automatic identification system) data. Based on historical AIS data and standard ship selection and conversion, a density clustering 
algorithm is used for establishing a 
heat map of a ship 
collision risk to realize spatiotemporal 
visualization of the ship 
collision risk; based on real-time AIS data and the ship position field, the course direction field, and the navigational speed field, a regional ship collision 
risk assessment model is constructed, and a 
Gaussian kernel function 
kernel density estimation algorithm isused for proposing a dynamic ship collision risk 
visualization method to realize areal-time update of the regional ship collision risk. The ship collision risk 
analysis method is based on the AISdata,the spatiotemporal 
visualization of the ship collision risk is realized,the visual image after the complex abstract ship 
traffic flow multi-attribute information is effectively dug and fused is realized, so that the 
risk level of the environment of the location of the ship can be intuitively and conveniently obtained by a driver or an operator, thusself-
alertness is improved, the reasonable control measures are taken, and the 
safe operation of the ship is ensured.