$ 2024-10-18
Weekly Logs
Agenda
Date: 2024-10-18; Time: 16:12
Here's what I need to get done as soon as possible:
- Figure out how to organize my observation data:
- What kind of files do I have?
- Satellite images (PNG), text files (DOCX), Google Earth files (KMZ)
- What kind of data formats do I have/willl make?
- Rasters, vectors, text
- Rasters <- PNGs
- Vectors <- KMZs
- Metadata (JSON) <-whatever text (i.e.DOCX)
- Rasters, vectors, text
- How do I standardize my dataset?
- Rasters = satellite images
- Use a gridwalk to layout the study area
- Each square will be deliniated as a specific area ("grid area")
- Purpose: for the model to identify where each land observation exists within the study area
- Text = camera metadata, geospatial data
- Use the GEPro properties to geocode each satellite image
- Each file will be assigned to at least one grid area
- Purpose: for the model to describe what each land observation mean in relation to each other
- Rasters = satellite images
- What kind of files do I have?
- Figure out what python libraries I need to stucture my data:
- Figure out what python libraries I need to build my model:
- Getting Started with Graph Neural Networks: A Hands-On Approach with Python | by Malusi | Medium
- I'll start out with a GNN as my base becasue I imagine my dataset to be structured like a GNN
- Getting Started with Graph Neural Networks: A Hands-On Approach with Python | by Malusi | Medium
Date: 2024-10-21; Time: 14:58
I will not do a gridwalk, I just need to covert the GEPro KMZ files (KMZ) into shape files (vectors)
- Figure out how to organize my observation data:
- What king of files do I have?
- Satellite images (PNG), text files (DOCX) and GEPro files (KMZ)
- I will keep the satellite images as PNGs because they capture more pixel resolution than JPEG
- I will need convert the GEPro files from KMZ to vectors (shape files)
- I will create a geometry variable, where I keep the study area's shape file info:
- i.e. POLYGON, coordinates, centroid, area etc.
- Then, I will write a JSON file (metadata) to describe how each observation feature is nested within the larger study area polygon
- I will create a geometry variable, where I keep the study area's shape file info:
- Satellite images (PNG), text files (DOCX) and GEPro files (KMZ)
- How will I standardize my dataset?
- Use a polygon variable (represents the study area) as the largest entity that encompasses the entire dataset (which are my observations)
- Convert the csc data (longitude and latitude) into pcs data (mercator projection)
- I want to keep the original geospatial informaition and add an transformed variable of it, but I'll look into geopandas and see if the library is more intuitive to not require a more manual conversion like that
- How will I attach the raster images to the vector files?
- I will need to write another JSON file to describe
- Which observation polygon is derived from which PNG image
- (Geolocate) Which observation raster is located within the study area polygon
- (Classify) Which object-based classification is the observation polygon
- I will need to write another JSON file to describe
- What king of files do I have?
Recap
Date: 2024-10-22 ; Time: 14:15
Nedal meeting
- He is my supervisor now
- How do I write the paper:
- Two pieces:
- Methodology
- Reflection
- Think about the bigger takeaways
- How this could affect minorities groups in the governement?
- How this could affect evidences used in extraterritorial cases?
- How this could affect surveillance by larger institutional entities?
- How this could affect the verification of knowledge production?
- Think about the bigger takeaways
- Two pieces:
Methodological Notes
Date: 2024-10-18; Time: 19:05
I'm looking carefully through the properties of every file type I basically produced from the initial study
Yellow text = manually edit
Red text = manually remove
🔒 = must be controlled (homogenous)
🔓 = can be varied (heterogenous)
🗝️ = will be unified metadata
What kind of data and files do I have?
- Satellite images
| Study area 🔒 | Observation Area🔓 | Observation Metadata 🗝️ | |
|---|---|---|---|
| File type | JSON (text) | PNG (raster) | JSON (text) |
| Properties | TBD - Describe connect each grid area PNG to create the complete study area - Assigns each file name (aka image id) with geometry data Ex "geometry": { "type": "Polygon", "coordinates": [ 100, 250], [700, 250], [700, 650], [100, 650], [100, 250 ], "centroid": { "x": 400, "y": 450 }, "area": 360000 |
- Date taken Image - Dimensions - Width - Height - Bit depth File - Name - Item type - File location - Date created - Date modified |
TB Describe each observation area PNG to create geospatial data |
UNFINISHED
- Land observations
| Single pin (📌) | ||
|---|---|---|
| File type | KMZ (Google Earth) | |
| Meta properties | - Name - Latitude - Longitude - Range (camera distance) - Heading 🔒 - Tilt 🔒 - Date/Time 🔒 |
|
| Screenshot | ![]() |
|
| UNFINISHED |
Date: 2024-10-21 ; Time: 17:30
I spoke with Professor Can Mekik from the Cognitive Science department today. I feel alot better with how I'm thinking about structuring my data and the model:
- What is an object detection vs semantic segmentation model?
- Object detection = finding part of an image and labelling that object
- Semantic segmentation = assigning labels to each object
How do I strcuture my data in a way that I can feed into a CNN-based model?
- Instead of having a separate vector, think of your data like a cube
- Land is the pixels
- There are additional layers and each layer is a class
- Class 1, class 2, class 3, etc
- Class 1 can be towns, class 2 is mining operations, etc
- For each of your pixels, what's the probability this is a town or a mining operation or whatever else
- What's the probability if its this and this if they are encroaching on eachother
- In this case your data would look like (This would be the index for your data):
- (x,y,c [for class]) → ɑ [alpha] would represent how strong I believe the x and y coordinates belong to this class
- ɑ can be between (0,1)
- To overlap you would multiple each of them over the set your classes you want to overlap
- Or you can take the log and add them and it'll be the same thing basically
- Its not the same value but it behaves very similarly
- So you can think about it as heat maps that stack up on top of eachother
- You want to know the different regions and how they overlap
- In this case your data would look like (This would be the index for your data):
- And this way I can add a mask of the non-tree top areas
Okay, so...I'm gonna have to do GIS in python: 15 Python Libraries for GIS and Mapping - GIS Geography
Date: 2024-10-21 ; Time: 18:00
I'm gonna plan my next steps as....
- What will I tell Nedal?
- I don't know who should be my supervisor
- Since Kingsbury suggested it would be more productive if I switched to a supervisor who is more able to communicate technicalities
- I don't know what kind of paper to write
- I want this to become more technical
- I got advice from data science people about my project
- Bahar
- Suggested that I should begin studying machine learning and computer vision to complete the full implementation of my project in a data oriented masters.
- Mekik
- Came up with an action plan for the coding component of my project (see notes on how will I structure my data)
- Suggested I reach out to GIS people
- UTM GIS faculty
- Tim Elric @ McGill
- GIC
- Bahar
- I learned about data modelling (see notes data modelling)
- I don't know who should be my supervisor
- How will I structure my methodology
- I want to divide the Data Transformation part of my methodology into two stages:
- In Google Earth Pro
- In Python
- I want to divide the Data Transformation part of my methodology into two stages:
- How will I tackle my data model?
I found this page that explains what is data modelling: Data Modeling: A Comprehensive Guide for Analysts - GeeksforGeeks
Here are my notes:
What is data modelling?
- It is the process of creating a visual representaiton of data structures, relationships, and rules within a system
- Main objective is to create a well-organized framework for data representation
- To understand the connection between various data items
What is a data model?
- It is the visual representaiton of data items and the connection between them
- They define and arrange data that creates information systems
3 types of data models
- Conceptual data model
- The abstraction that organizes and defines the high-level problem, rules, and concepts
- Logical data model
- The outline that describes the tables, columns, connections and constraints, which makes up the data structure
- Though not dependant on any particular database management system (DBMS), they are more similar to how data would be implemented in a database
- The outline that describes the tables, columns, connections and constraints, which makes up the data structure
- Physical data model
- The implementation that is explained with reference to a particular database system
- Outlines every part and service needed to contruct a database with queries and the database language
- Explains how the data model is specifically implemented
- The implementation that is explained with reference to a particular database system
Data modelling process
- Identify data sources
- Define entities and attributes
- Entities are items or ideas
- Attributes are characteristics of those entities
- Mapping relationships
- Relationships are the connections or associations between various things
- Entails locating, and characterizing the interdependencies within the data
- Indicates the nature and cardinality of every relationship
- Relationships are the connections or associations between various things
- Choosing a model type
- The degree of abstraction and detail in the data representation is determined by the model type
- Implementing the data model
- The process of implementation converts a physical or logical data table into a database schema
- Establishes constraits, generates tables and adds database-specific information
- The process of implementation converts a physical or logical data table into a database schema
- Maintaing the data model
- Updating the model for technological or commerical needs is maintaince
5 types of data modelling
- Hierarchical model
- There is only one root/parent node
- The child nodes are arranged in a certain sequence
- This is no longer widely applied
- Relational model
- Represents the links between tables via data as rows and tables in columns
- This is frequently used in database design
- Strongly related to Relational database management systems (RDMS)
- Object-oriented data model
- Represents data as objects; here are its compontents:
- Object attribute = the object's characteristics
- Object method = the object's behavior
- Class= a collection of similar kinds of objects
- It is an entity that has attributes and methods together
- Inheritance = the object's ability within the class hierarchy to inherit the attributes and methods of the classes above it.
- Allows for the encapsulation of data and their relationships
- Represents data as objects; here are its compontents:
- Network model
- Represents objects as nodes and relationships between them as edges
- ER (entity-relationship) model
- This is a high-level relational model that specifies the data items and relationships bewteen the entities in a system
- An entity diagram is made up of entities, attributes and relationships
- This is a high-level relational model that specifies the data items and relationships bewteen the entities in a system
Date: 2024-10-21 ; Time: 19:30
Okay, so here are my thoughts on how I will structure my dataset:
- To gather my data from GEPro, I can keep each observation as its own object (object-oriented model)
- To process my data in Python, I can convert my observation data into a hierarchy (hierarchical object-oriented model)
- Each observation becomes an index
- Then, any index can be organized into a matrix (imagine it as a heat map)
- To process my data in Python, I will build a CNN model to visualize my observation data
So, I will need to reexecute my data collection in GEPro:
- I want to update my object-based classification guide
- I want to add another measurement for my certainty-uncertainty levels
- I want to expand my study area to include Panzos
- I want to create a 2006, 2007, and 2009 dataset
- But whatever has the best surface visibility, I'll use that for now
- I want to remake my observation data
- After I update my OB-CG, I will have to redraw certain objects
Then, I will have to preprocess my data transformation in Python:
- I will unzip every KMZ files to create a geometry for each
- Each observation is kept as its own KMZ file (oh god, my laptop will explode)
- Compile every geometry and geospatial data to code each observation as an object
- I will code my OB-CG as a semantic segmentation model
- Each kind of classification for every obseration will be coded into an attribute
- I will code my hierarchial object-oriented dataset into an object detection model (CNN-based)
- Each kind of topographic relationship between objects will be coded as the data relationships
- Every kind of feature hierarchy between these objects will be coded as the convolutional layers
Reflective Notes
Date: 2024-10-21; Time: 18:33
Professor Kingsbury says he doesn't think we are a good fit a he doesn't know how to guide me on the kind of paper I want to write. This has prompted me to reconsider what am I doing here and why...
What is this project? What do I want to do with it?
When I spoke with Professor Mekik I gave him this blurb:
"This is an open-source project on how to create a geospatial database from screenshotted Google Earth images that can be used to monitor (i.e. geolocate and classify) drilling areas and small-scale villages in rural remote environments, using El Estor, Guatemala in 2007 as a mixed method case study."
I don't want to just get the forensic evidence, I want to create a some sort of systematic methodology that is applied for other cases. Part of that methodology is developing a model specific to it. This model will denominate how to pre-process and process the created data into a computable format for geospatial analysis.
So, I don't want the a method to just create the data. I want that method to be accompanied by a model that can read the data.
I've been listening to Kalawakan by Juan Karlos and Please Lang by SOS while I wrote this.
I know exactly how plausible this is. But...I wonder if I'm good enough to actually pull this off. Probably. But, that doesn't mean I won't be full of doubt and worry while I do it.
Prev: $ 2024-10-11
| ###### Next: $ 2024-10-23 |
|---|
| #methods/ml/CNN |
| #methods/gis/spatial-analysis |
| #methods/gis |
| #methods/gis/NDVI |
#tools/python/data-modelling
#tools/python/OOP
#tools/python
#tools/software/GEPro
#notes/learn/data-models
#notes/my/data-files
#notes/learn/python/gis-libs
