Add UTR221_ML_previsao_falha_com.py – 6h pressure prediction during communication failure - #6
Draft
LEUDOLOIOLA with Copilot wants to merge 6 commits into
Draft
LEUDOLOIOLA with Copilot wants to merge 6 commits into
LEUDOLOIOLA with Copilot wants to merge 6 commits into
Conversation
…inal input Agent-Logs-Url: https://github.com/LEUDOLOIOLA/InteligenciaArtificial/sessions/aed51809-d901-484b-9459-6b3b5fda7b00 Co-authored-by: LEUDOLOIOLA <48989844+LEUDOLOIOLA@users.noreply.github.com>
Agent-Logs-Url: https://github.com/LEUDOLOIOLA/InteligenciaArtificial/sessions/aed51809-d901-484b-9459-6b3b5fda7b00 Co-authored-by: LEUDOLOIOLA <48989844+LEUDOLOIOLA@users.noreply.github.com>
Copilot created this pull request from a session on behalf of
LEUDOLOIOLA
April 11, 2026 16:38
View session
Add dataset inputs, images, documentation and two ML scripts for UTR221 forecasting. Files added under "ML APP - INPUT": raw Excel data (urt220.xlsx, urt221.xlsx), several processed Excel outputs (DF1/DF2/DF3/DF6, previsao_falha_*.xlsx), plot PNGs, and a "Passos" text describing the processing pipeline. Two new Python scripts: UTR221_ML_validacao.py (data loading, feature engineering, RandomForest training, validation, feature importance, and 7‑hour recursive forecasting/exporting) and UTR221_ML_previsao_falha_com.py (interactive terminal input for a communication-failure scenario, trains model and produces a 6‑hour recursive forecast with pump control logic, exporting Excel and PNG results). This commit provides the full inputs and tooling to train, validate and simulate UTR221 pressure forecasts including failure-mode predictions.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Operators need to predict UTR221 pressure behavior for up to 6 hours when communication with the UTR is lost. Previously no script existed for this scenario; the only prediction scripts required live or historical timestamped data from the sensor.
New script:
ML APP/UTR221_ML_previsao_falha_com.pyUTR221_ML_validacao.py(fit onurt220.xlsx/urt221.xlsx, ~99.62% accuracy)DD/MM/YYYY HH:MMor ISO)CMB_220_S2A_EST,CMB_220_S2B_EST) — lag 1LIT_220_RA2_000) — lag 1PIT_221_S01_000) — lag 1, lag 2, lag 60, and 1-hour rolling meanprevisao_falha_DDMM_HHMM.png— pressure curve + dual-axis pump state + setpoint linesprevisao_falha_DDMM_HHMM.xlsx— minute-by-minute predictionsNaming fix: feature previously called
nivel_221_lag1(misleading — it carries pressure, not level) renamed topressao_221_lag1throughout.