Week 1
Apr 04/07/23
- Discussion related to RFI
- Introduction of delay in time-series forecasting models
- GQC has expertise in physics based model using delays, etc
- Keywords from Melissa
- Using those keywords to get papers out
- The script is running and we are getting all the papers out.
Concept of lag in time-series forecasting
Prompt: how would I introduce the concept of delay in Transformer model used for timeseries forecasting?
- Response from ChatGPT:
- To introduce the concept of delay in a Transformer model used for timeseries forecasting, you can explain the following:
- In timeseries forecasting, the goal is to predict the value of a variable at some future time based on its past values. To achieve this, we need to feed the model a sequence of past values and the model learns to predict the next value in the sequence.
- However, when dealing with timeseries data, there is often a time delay between the past values and the future values we want to predict. For example, if we want to predict the temperature at noon tomorrow, we need to look at the temperature values from the past few hours, not just the temperature values at midnight.
- In a Transformer model, we can introduce the concept of delay by adding time embeddings to the input sequence. Time embeddings are vectors that represent the time interval between the current input value and the target value. By including time embeddings, the model can learn to capture the time delay and make accurate predictions.
- Additionally, we can also include lagged variables in the input sequence, which means including past values of the variable we want to predict as input features. This can further help the model learn the relationship between past and future values and improve the accuracy of the predictions.
- Overall, introducing the concept of delay in a Transformer model for timeseries forecasting involves incorporating time embeddings and lagged variables into the input sequence to capture the time delay and improve prediction accuracy.
- Other hits from different libraries:
- darts
- tsai
- neuralforecast
- hierarchicalforecast
- statsforecast
Apr 04/06/23
- CSDP
- Asset migration to the
hydrotrekaccount
- Asset migration to the
cctv-apps- New release -- v0.0.1
- Bump version
- New CLI functionality
minimal-fastapi-template- Made a minimal working template with
fastapi - Has a
fake-dataendpoint which returns fake-data - The data is successfully received and seen on the frontend
- Made a minimal working template with
nbdev migration
There are over 150 notebooks which need to put into version control from Google Colab. I have started a list of notebooks for which nb should go where.
Apr 04/05/23
Progress on the model training front
- Tried to do the pre-training with the JSON data using the GPT-neo (2.7B model)
- The model is too large to fit on a Colab GPU
- Needs atleast 25GB RAM
- Possible alternatives
- Using distilled models
- Smaller versions of GPT-neo (1.3B)
- GPT-neo (125M)
Update on the RFI
GQC would be involved in →
- software technologies or machine learning based on models used to implement sewer flow forecasting in operations, including scalability, level of effort to retrain models
- Examples of successful or machine learning based models in conveyance and storage operations for sewer systems
- Operational System Integration
Data acquisition and ML/forecasting inputs would be given by Ayyeka. So, we would be interacting with Ayyeka a lot.
Further clarification sent to Jake
I think GQC can contribute on the forecasting front as we have experience with recursive forecasting models.
In the Streamflow forecasting project, GQC created LSTM/Bi-LSTM based neural network models which could forecast n timesteps in the future. Besides that recently, GQC has also adapted to recent changes by utilizing models built with the Transformer architecture for forecasting.
On the sewer systems side, we have the pipe breaks app, which has a UI allowing us to choose from a variety of algorithms of survival analysis algorithms. The UI shows us survival curves and has the functionality to store the runs in a database.
Apr 04/04/23
Review the steps for the AI-3 hackathon
- Deadline photo

- Where did we end things?
- Chatbot creation
- Some exploration with
langchain-- allows us to take a Language Model and then be turned into a ChatBot - Can be potentially fine-tuned to make a ChatGPT as such for Disaster Response situations.
- Some exploration with
- Ingestion and fusion of IoT Data streams
- Needs work on the data standardization pipeline
- Need of dummy/mock JSON data to see how we would go about training the GPT-neo model
- Situational awareness
- Maybe explore the Twitter API again, get some tweets out
- Use the extracted text for sentiment analysis -- geo-coordinate extraction
- Derived knowledge analysis -- we have some reference links and papers for this already
- Chatbot creation
- What is new?
- Datasets made available by
usnistgov. Can be found → here - The dataset has
Floodfolder which contains data pushed by Sudhir. - I looked at some GeoJSON files in the datasets, besides that I'm not sure where or should we proceed
- Datasets made available by
Addressing the feedback from the judges
- Addressing concern about data reliability from extracted tweets
- We would have a classifier which identify whether a tweet is made by a bot/fake.
- It is quite common that in cases of disaster situations, when place "X" is affected by a disaster, people all over the world write about it.
- This requires us to distinguish between the tweets made by people who are actually affected by the disaster vs the people who aren't.
- We wish to address this problem by using the additional metadata from the tweets.
- By verifying the geo-coordinates from the tweet against the coordinates of the actual disaster, we would be able to distinguish between the tweets.
- We are also planning to have rank (priority/severity) determining mechanism which would also us to filter tweets which need immediate/prompt attention. This model would depend on various factors like location, language, type, retweets, etc
Apr 04/03/23
Instructions for Vannary to run the app
- Pull the latest code changes from GitHub
- In the sidebar, go the
Visualizer-2app - Upload the csv for the images you wish to see in the carousel
- Select the x,y,w,h accordingly to have the red rectangle align correctly with the distance in the frame.
- After you have coordinates according to your liking, click on
Insert to DB.