In this repo, you will find the code we worked on for the project which contains the following:
- The frontend.
- The pre-processing algorithm for the given data (can be inspected in the preprocessing.ipynb notebook).
Based on the dataset, we had a lot of noisy signals given to us. At first sight, it can look like it's hard to predict when an earthquake is starting from the normal wave representation, however, converting that wave to a spectrogram shows an interesting thing. Most of the time, a pattern appears when there is an actual earthquake. This is where our idea appeared, to convert the raw data given to us to a spectrogram that can make it easier for the end-user or the researcher or even a model to detect where an earthquake can happen. We were able to do this by applying Fast Fourier Transform (FFT) on the wave which returns the interesting parts.
This on its own saves bandwidth and power since we return the minimum data possible that is useful. Other features involves the ability to edit padding, wave sensitivity, nperseg as well as automatic delta detection based on the given file. Even if the event ends, we are still extending the project to be as complete as possible and include more features in the future.
Output visualization (with a separate output given for download as shown in the I/O example)
A random sample of the closeness between the actual arrival and the predicted result based on the strongest signal shown (To be fine-tuned later):
- The API is not well functional yet, we will work on it in the future to be completely working
- In the preprocessing notebook, you will find some plots that are entirely in orange, those can be solved by adjusting the threshold, which will be automatically handled later
- Due to known issues on the original NASA Space Apps dataset and to save time, we have provided a minimized dataset to test our preprocessing algorithm