For my final project, I decided to analyze and plot shrimp population distributions over time to determine if any substantive patterns have emerged. Throughout my research into the subject, I discovered that many fish species’ populations have slowly migrated farther northward over time as habitats have been damaged by rising water temperatures. For example, the helpful charts below were created by the Environmental Protection Agency (EPA) and show how marine life have been moving in an upward trend since the 1980’s, as carbon dioxide emissions have continued to rise too. I was especially interested in investigating marine life because I am a big fan of the beach, so I really appreciate the beauty of ocean life and am in awe of the complexity of marine ecosystems. From there, I decided to further delve into shrimp population distributions because I have my own shrimp aquarium with four Hawaiian Red Shrimp and am interested in learning more about shrimp conditions out in the wild.
Upon accessing the Ocean Adapt data, I downloaded the full dataset as a CSV file that contains the attributes “Year”, “Region”, “Species”, “Latitude”, “Latitude_std_err”, “Longitude”, and “Longitude_std_err”. In short, the file contains annual data entries recording the coordinates and region in which a particular species was located at that time. I then wrote a Python script to read the CSV file and convert it into a Pandas DataFrame containing only the columns pertaining to the year, latitude, and longitude attributes. I selected these columns, in particular, because they would be the most useful for creating spatial data visualizations. From there, I converted the DataFrame into a GeoPandas DataFrame that contained the same attributes as the original DataFrame, plus an additional column that stored the coordinate point geometry based on the latitude and longitude values from the initial DataFrame.
I first created the scatter plot below by using the MatplotLib library with the “Year” and “Latitude” columns from the final filtered Pandas DataFrame plotted along the X and Y axes, respectively. Because the data was recorded for shrimp populations surrounding North America, the latitude measurements are all positive and represent degrees North. This was an especially interesting plot to create because it highlighted the clustering of shrimp populations around certain degrees of latitude. However, it wasn’t very clear if there were any trends northward over the past few decades, so I opened the CSV file output (“cleaned_shrimpdata.csv”) and used the data table in Excel to create a line plot of the latitude over time. I originally attempted this with MatplotLib, but the wide variation in latitude made the line difficult to read. After creating the line plot in Excel, it became more clear that the northern-most latitudes have stayed mostly constant over time. However, the southern-most latitudes have continued reaching further south. This indicates that shrimp have been migrating closer to warmer waters over the past few decades, in contrast to the overall trend of marine life having moved northward during a similar time span. While the trendline would be highly inaccurate, as seen by the miniscule R-squared value of just under 0.1, it is still a helpful guide to show that shrimp populations have indeed moved south over time.
Lastly, I uploaded the data from the same “cleaned_shrimpdata.csv” file into kepler.gl and filtered the location data by year (beginning with 1977 and ending with 2019). I also selected a satellite imagery basemap and chose to plot the coordinates on a heatmap scale, with blue indicating a low population density and red indicating a high population density. After applying these aesthetics, I took a screenshot of the map when each additional year’s-worth of location data were added to the visualization in order to establish a time series of images. Lastly, using Microsoft Video Editor, I labeled each image with the year they represented and compiled them into a .mp4 video file that shows how shrimp population distributions have moved and grown over time. Not only have shrimp populations continued to grow farther south, but they have also concentrated in certain locations along the coastlines. Earlier on, shrimp were largely clustered along the Alaskan coastline. Shortly therafter, there was a high concentration of shrimp along the coast of the Carolinas and Georgia. It wasn’t until relatively recently that strong concentrations began to appear in the Gulf of Mexico and Pacific Northwest.
Scatter Plot:
Trend Line:
Link to video: Shrimp Population Animation
Link: Ocean Adapt by NOAA & Rutgers University