Difference between revisions of "ISSS608 2016-17 T3 Assign ZHENG BIJUN"

From Visual Analytics and Applications
Jump to navigation Jump to search
Line 215: Line 215:
 
<tr>
 
<tr>
 
<td>[[File:ZBJ MapRoute-rangermost.jpg|600 px|left]]</td>
 
<td>[[File:ZBJ MapRoute-rangermost.jpg|600 px|left]]</td>
<td>The graph shows the route that had the most rangers' episodes. It was the most frequent patrol route of the rangers, and it was almost twice as frequent as the second most frequent patrol route. It is possible that the east side of the preserve is required more care and protection. <br>
+
<td>The graph shows the route that had most rangers' episodes. It was the most frequent patrol route of the rangers, and it was almost twice as frequent as the second most frequent patrol route. It is possible that the east side of the preserve required more care and protection. <br>
 
<ul>
 
<ul>
 
<li>ranger-base>gate8>general-gate5>gate3>ranger-stop3>ranger-stop3>gate3>camping8>general-gate3>gate4>ranger-stop5>ranger-stop5>gate4>gate5>ranger-stop6>ranger-stop6>gate5>gate8>ranger-base</li>
 
<li>ranger-base>gate8>general-gate5>gate3>ranger-stop3>ranger-stop3>gate3>camping8>general-gate3>gate4>ranger-stop5>ranger-stop5>gate4>gate5>ranger-stop6>ranger-stop6>gate5>gate8>ranger-base</li>

Revision as of 14:39, 9 July 2017

VAST Challenge 2017: Mini-Challenge 1

ZBJ Pipits.jpg

Mistford is a mid-size city is located to the southwest of a large nature preserve. It has been discovered that the number of nesting pairs of the Rose-Crested Blue Pipit, a popular local bird due to its attractive plumage and pleasant songs, is decreasing! Provided several datasets, it is required to investigate the reason for the decrease of Rose-Crested Blue Pipit. In Mini-Challenge 1, traffic movement dataset is given to analyze patterns of life of vehicles through out the reserve, and detect unusual patterns that are potentially harmful to the birds. Questions raised are:

  • Describe up to six daily patterns of life by vehicles traveling through and within the park.
  • Describe up to six patterns of life that occur over multiple days (including across the entire data set) by vehicles traveling through and within the park.
  • Describe up to six unusual patterns (either single day or multiple days) and highlight why you find them unusual.
  • What are the top 3 patterns you discovered that you suspect could be most impactful to bird life in the nature preserve?

This webpage will guide you through my investigations and help to save Rose-Crested Blue Pipit!

Data Description

Entry gates are positioned at the Preserve entrances. Each vehicle receives an entry ticket at the gate and is assigned a vehicle class; the entry is recorded. The entry ticket contains an RF-tag that enables the Preserve sensors to pick up the passage of a vehicle through the Preserve. Each vehicle surrenders their entry ticket when exiting the Preserve and the exit is recorded. A .csv file containing data recorded from sensors around the Boonsong Lekagul Nature Preserve. A map containing the locations of roadways and sensors throughout the Preserve is also provided.

Dataset Overview
1 CSV Traffic Movement Data 2 Roadway Map
ZBJ Data.PNG
Locations of roadways and sensors
More Detailed Data Facts

1 CSV Traffic Movement Data

Entrances:
All vehicles pass through an Entrance when entering or leaving the Preserve.
General-gates:
All vehicles may pass through these gates. These sensors provide valuable information for the Preserve Rangers trying to understand the flow of traffic through the Preserve.
Gates:
These are gates that prevent general traffic from passing. Preserve Ranger vehicles have tags that allow them to pass through these gates to inspect or perform work on the roadway beyond.
Ranger-stops:
These sensors represent working areas for the Rangers, so you will often see a Ranger-stop sensor at the end of a road managed by a Gate. Some Ranger-stops are in other locations however, so these sensors record all traffic passing by.
Camping:
These sensors record visitors to the Preserve camping areas. Visitors pass by these entering and exiting a campground.

2 Roadway Map
The contractors working with the Nature Preserve rangers have provided a map that presents the Preserve in terms of a 200x200 gridded area. The grid is oriented with north at the top of the map. Grid location (0,0) is at the lower left corner of the map (the SW corner). They have superimposed both the roadways and the sensor locations on this grid. The map shows an area 12 miles x 12 miles.

3 Others

  • Traffic either passes through the Preserve, stay as day campers, or stay as extended campers.
  • Preserve Rangers stay at the ranger-base toward the southeast of the Preserve when they are not working in the Preserve.
  • The speed limit through the Preserve is 25 mph.
  • The Preserve area does not observe "Daylight Savings Time".
  • The roadways traveling southward from Entrances 3 and 4 do continue to other roadways outside of the Preserve area, but these are not shown on the map. Vehicle data will not reflect travel beyond the Preserve in this direction.



Data Preparation

1 Define episodes

Intuitively, each car-id (except for park service vehicles 2p) should possess two entrance records with one serves as entering and the other for exiting. However, it is noticed that many car-ids had more than two entrances recorded. It is rational to assume that these cars did made multiple visits to the preserve. Therefore, I split the trip with multiple entering and exiting of the same car-id into different episodes. Each episode can be seen as a complete trip and analysis is performed based on episodes.


2 Exclude incomplete trips

By looking at the maximum timestamp of the entire dataset, it is safe to conclude that the data provided is generated before June 2016. Therefore, there are vehicles with incomplete trips (the maximum timestamps of these car-ids are around end of May) in the dataset, and I exclude car-ids with only one entrance record. The figure on the right shows the car-ids with only one entrance record and their maximum timestamp.

ZBJ 1entrance-list.PNG
3 Remove duplicate records

It is noticed that some sensor records are duplicated in the dataset, and these duplicates all have three entrance records for a car-id - the first two have the same timestamp (or very close timestamp), and the third one has a different timestamp and is coherent with the following activities. Hence, I remove the first two records assuming there were something wrong the data entry and keeping the third one makes more sense when interpreting the trip. The figure on the right shows an example of this kind of data anomaly.

ZBJ 3entrance-1.PNG

4 Label the sequence of gates of each episode

In order to plot the entire routes of the vehicles, I create a new column named 'Sequence' to mark the order of the gates they passed through.

ZBJ Seq.JPG

5 Concatenate the routes

To concatenate the gate-names of each episode to form a route.

ZBJ Rule.JPG
6 Extract the gate-to-gate directions
ZBJ Gatetogate.JPG
7 Calculate the gate-to-gate duration
ZBJ Duration.JPG
8 Extract the arrival timestamp of each episode
ZBJ Arrtime.JPG
9 Segment the visitor types
  • Camper: normal visitors who went to camping areas
  • Non-camper: normal visitors who never went to camping areas
  • Rangers: vehicles with car-type as 2p
ZBJ Visitortype.JPG
10 Map coordinates of gates
  • Use JMP Pro 13 Custom Map Creator add-in to point the gates on the map and generate the coordinates.
  • The scale of the map is set to 12*12 as the area indicated in data description.
ZBJ Mapcoord.jpg



Interactive Visualization


Patterns of Life Analysis

Daily Patterns
Images Interpretations
ZBJ 2pnoshow.jpg

ZBJ ArrivalLine-ranger.jpg
  • Park service vehicles never showed up between 4am to 5am in any kind of gates. This might be the off-duty period of the rangers, and the off-duty period varied across different days of week. For example, rangers were never on patrol from 1am to 5am on Saturday.
  • If we look at the arrival time (in this case is the time when rangers started each patrol trip), the first shift always started at 6am and the last shift started at 17pm.
ZBJ Nocamping.jpg
The two types of buses and 4+ axle trucks, all large vehicles, had no appearance in any camping areas. It might represent that these three car-types can only be passing through the preserve, and camping area is not allowed for large vehicles.
ZBJ Campinghour.jpg
Majority of traffics through camping areas only happened between 5am to 22pm, except for one car-id 20154519024544-322, which is discussed in later section. It might indicate that traffics were not allowed in camping areas after 22pm to ensure the safety and rest of overnight campers.
ZBJ Activetime.jpg
2 axle car/motorcycle, 2 axle truck, and 3 axle truck were most active vehicles in the preserve. Their activities started to increase at 6am and started to flatten out at around 18pm. 7am to 17pm had most vehicle activities.
ZBJ Trespassing.jpg
There were vehicles that simply passed the preserved without making any stops and looking around. These vehicles can be identified by investigating the number of gates they passed through. This pattern only applies to non-campers and happened within a short time period. The graph on the left shows all the possible routes for trespassing.
  • Entrance0<->entrance3
  • Entrance2<->entrance4
  • Entrance1<->general-gate7<->entrance3
  • Entrance0<->general-gate7<-> general-gate4<-> entrance1
Longer-Period Patterns
Images Interpretations
ZBJ Line-month.jpg
Traffic increased since May and reached highest in July, then started to decrease. November to March were the least popular months for visitors and it is possible that these are winter months.
ZBJ Line-weekend.jpg
Activities of 2 axle car/motorcycle, 2 axle truck and 3 axle truck increased on Friday and decreased on Monday. This can be explained by the overnight camping during weekends.
ZBJ Ranger.jpg

ZBJ RangerCampDuration.jpg
The duration rangers spent at ranger-stops and camping areas were less than 1 hour.
ZBJ MapRoute-rangermost.jpg
The graph shows the route that had most rangers' episodes. It was the most frequent patrol route of the rangers, and it was almost twice as frequent as the second most frequent patrol route. It is possible that the east side of the preserve required more care and protection.
  • ranger-base>gate8>general-gate5>gate3>ranger-stop3>ranger-stop3>gate3>camping8>general-gate3>gate4>ranger-stop5>ranger-stop5>gate4>gate5>ranger-stop6>ranger-stop6>gate5>gate8>ranger-base
ZBJ ArrTime-campers.jpg
Campers arrived at the preserve between 5am and 17pm. Friday to Sunday were more popular as expected.
Unusual Patterns
Images Interpretations
ZBJ Route-322.jpg
This table displayed the route of car-id 20154519024544-322 (a 2 axle truck), which passed through camping gates after 22pm. This vehicle had 16 episodes, and each episode had exact same route except for the first episode. This vehicle came to the preserve each Friday and left the on the following Monday.
ZBJ Route-multiepisode.jpg
Apart from 20154519024544-322, there were other car-ids that had multi-episodes, which means they did not render their car-id by the time they exited the preserve. And every time they came to the preserve, they followed the same routes and went for overnight camping. This group of visitors might hold a regular pass for their visits.
ZBJ Line-gateanomaly.jpg

ZBJ Route-gateanomaly.jpg
  • Unauthorized 4+ axle truck appeared in gates only on Tuesday and Thursday, though not every week.
  • They arrived at the preserved between 2am to 4am. More interestingly, the time they passed through gates avoided the time when park service vehicles passed through those gates.
  • The 4+ alxe trucks that passed through gates had different car-id but they all followed the exact same route:
    entrance3>gate6>ranger-stop6>gate5>general-gate5>gate3>ranger-stop3>ranger-stop3>gate3>general-gate5>gate5>ranger-stop6>gate6>entrance3
  • Recalling from previous section, this route was in the area where the most frequent ranger patrol route covered.
ZBJ Map-skipgate.jpg
  • There were vehicles going between entrance1 and ranger-stop1 without records from gate2. However, entrance1<->gate2<->ranger-stop1 is the only path between the entrance1 and ranger-stop1.
  • There were 6 episodes, all were 2 axle car/motorcycle, followed the exact same path entrance1>ranger-stop1>ranger-stop1>entrance1. They happened on the same day and at the same time.
  • They stayed for almost 4 hours in ranger-stop1, which was long and suspicious.
ZBJ Roundtrip.jpg
Apart from the gate-skippers mentioned above, there were another 3 episodes made a simple round-trip in the preserve: they entered the preserve, passed through general-gate, then made the same route back to the entrance.
Top 3 Possible Causes
  1. Long term visitor with car-id 20154519024544-322 and his behavior to travel pass camping areas during midnight.
  2. Unauthorized 4+ axle trucks invading restricted areas because the route they traveled was part of the most frequent patrol route of the rangers. This area could be where pipits resided, and therefore needed more care and protection from rangers. And the fact that they went through the restricted area when the rangers were off-duty makes them extremely suspicious.
  3. Possible over speeding which requires further investigations, especially for trespassing routes.


Comments & Discussions

comment1
comment2
comment3
comment4
comment5