{"id":{"repo_id":"calgary","oai_identifier":"oai:ucalgary.scholaris.ca:1880/124003"},"canonical_url":"https://search.ndltd.org/etd/calgary/oai:ucalgary.scholaris.ca:1880/124003","repository":{"repo_id":"calgary","name":"University of Calgary","base_url":"https://ucalgary.scholaris.ca/server/oai/request"},"display":{"title":"Enhancing Leak Detection in Oil and Gas Pipelines with Multi-Task LSTM Model","abstract":"Oil and gas pipelines form a critical component of Canada’s industrial infrastructure, providing an efficient means of transporting natural resources across vast geographic regions. However, leak events pose severe environmental and economic risks, reinforcing the need for robust, accurate, and explainable monitoring systems. This thesis proposes a compact, multi-task Long Short Term Memory (LSTM) model for joint leak detection and localization in multivariate time-series data, leveraging the model’s ability to capture long range temporal dependencies. All datasets used for training and evaluation are generated using a Real Time Transient Model (RTTM), which simulates the fluid dynamic response of eight pipeline zones under leak and no-leak scenarios. The simulations incorporate conservation equations and the GERG-2008 equation of state to model pressure, flow, and temperature dynamics during leak propagation. Each sample encodes a sequence of sensor readings along the pipeline, with labels identifying leak presence and leak position. The LSTM model is evaluated under consistent 50/25/25 train–validation–test splits and benchmarked against a conventional one dimensional CNN baseline to ensure fair architectural comparison. Performance is assessed using classification metrics (accuracy, precision, recall, F1-score, and ROC–AUC) as well as localization metrics (MAE and Hit@5). Across all eight pipeline zones, the LSTM achieves near perfect classification performance and produces more accurate leak localization than the CNN, particularly in zones with longer sequences or widely spaced sensors. Latency and throughput measurements further demonstrate that the LSTM remains computationally feasible for real-time deployment. An ablation study evaluates the impact of architectural variations such as hidden size, number of layers, and activation functions revealing that the final LSTM configuration offers the best balance between generalization, localization accuracy, and inference speed. The localization output also contributes to model explainability by narrowing the region of interest for operators, aligning with the needs of real-world decision support environments. The proposed approach integrates with the PRIME and SHAPE research platforms, supporting operator facing visualization and training workflows. Limitations regarding reliance on simulated data, lack of cross validation, and assumptions about sensor accuracy are discussed, alongside recommendations for future work involving interpretability tools, distance aware loss functions, and testing with live or replayed SCADA datasets. Overall, this research demonstrates that sequence-based modeling of pressure flow dynamics can substantially enhance the reliability, interpretability, and operational readiness of pipeline leak detection and localization systems, contributing to safer and more sustainable energy infrastructure.","abstract_html":"Oil and gas pipelines form a critical component of Canada’s industrial infrastructure, providing an efficient means of transporting natural resources across vast geographic regions. However, leak events pose severe environmental and economic risks, reinforcing the need for robust, accurate, and explainable monitoring systems. This thesis proposes a compact, multi-task Long Short Term Memory (LSTM) model for joint leak detection and localization in multivariate time-series data, leveraging the model’s ability to capture long range temporal dependencies. All datasets used for training and evaluation are generated using a Real Time Transient Model (RTTM), which simulates the fluid dynamic response of eight pipeline zones under leak and no-leak scenarios. The simulations incorporate conservation equations and the GERG-2008 equation of state to model pressure, flow, and temperature dynamics during leak propagation. Each sample encodes a sequence of sensor readings along the pipeline, with labels identifying leak presence and leak position. The LSTM model is evaluated under consistent 50/25/25 train–validation–test splits and benchmarked against a conventional one dimensional CNN baseline to ensure fair architectural comparison. Performance is assessed using classification metrics (accuracy, precision, recall, F1-score, and ROC–AUC) as well as localization metrics (MAE and Hit@5). Across all eight pipeline zones, the LSTM achieves near perfect classification performance and produces more accurate leak localization than the CNN, particularly in zones with longer sequences or widely spaced sensors. Latency and throughput measurements further demonstrate that the LSTM remains computationally feasible for real-time deployment. An ablation study evaluates the impact of architectural variations such as hidden size, number of layers, and activation functions revealing that the final LSTM configuration offers the best balance between generalization, localization accuracy, and inference speed. The localization output also contributes to model explainability by narrowing the region of interest for operators, aligning with the needs of real-world decision support environments. The proposed approach integrates with the PRIME and SHAPE research platforms, supporting operator facing visualization and training workflows. Limitations regarding reliance on simulated data, lack of cross validation, and assumptions about sensor accuracy are discussed, alongside recommendations for future work involving interpretability tools, distance aware loss functions, and testing with live or replayed SCADA datasets. Overall, this research demonstrates that sequence-based modeling of pressure flow dynamics can substantially enhance the reliability, interpretability, and operational readiness of pipeline leak detection and localization systems, contributing to safer and more sustainable energy infrastructure.","abstract_has_math":false,"creators":["Marzban, Mehdi"],"institution":"Graduate Studies","degree_name":"Master of Science (MSc)","degree_level":null,"degree_discipline":"Engineering – Electrical & Computer","degree_department":null,"school":null,"contributors":[],"advisors":["Kim, Kangsoo"],"committee_chairs":[],"committee_members":["Ginde, Gouri","Far, Behrouz"],"year":2026,"date_issued":"2026-01-21","date_published":"2026-01-21","updated_at":"2026-11-19T07:28:09Z","subjects":["Oil and Gas","Pipeline","Leak Detection","Machine Learning","LSTM"],"languages":["en"],"rights":["University of Calgary graduate students retain copyright ownership and moral rights for their thesis. You may use this material in any way that is permitted by the Copyright Act or through licensing that has been assigned to the document. For uses that are not allowable under copyright legislation or licensing, you are required to seek permission."],"rights_urls":[],"identifier_entries":[{"key":"dc:identifier.uri","label":"Identifier URI","values":["https://hdl.handle.net/1880/124003"],"render_values":[{"text":"https://hdl.handle.net/1880/124003","href":"https://hdl.handle.net/1880/124003","code":true}]},{"key":"dc:identifier.citation","label":"Dc Identifier Citation","values":["Marzban, M. (2026). Enhancing leak detection in oil and gas pipelines with multi-task LSTM model (Master's thesis, University of Calgary, Calgary, Canada). Retrieved from https://prism.ucalgary.ca."],"render_values":[{"text":"Marzban, M. (2026). Enhancing leak detection in oil and gas pipelines with multi-task LSTM model (Master's thesis, University of Calgary, Calgary, Canada). Retrieved from https://prism.ucalgary.ca.","href":null,"code":true}]}],"person_identifier_entries":[]},"links":{"outbound_url":"https://doi.org/10.11575/PRISM/51040","outbound_label":"DOI","outbound_source":"dc:identifier.doi","record_url":"https://doi.org/10.11575/PRISM/51040","record_label":"Repository record","record_kind":"doi","record_source":"dc:identifier.doi","access_status":null,"embargo_until":null,"access_note":null},"oai_pmh_record":{"url":"https://union.ndltd.org/oai-pmh/?verb=GetRecord&metadataPrefix=oai_dc&identifier=oai%3Aunion.ndltd.org%3Arepo%3Acalgary%3Aoai%3Aucalgary.scholaris.ca%3A1880%2F124003","prefix":"oai_dc"},"source_record":{"url":"https://ucalgary.scholaris.ca/server/oai/request?verb=GetRecord&metadataPrefix=dim&identifier=oai%3Aucalgary.scholaris.ca%3A1880%2F124003","prefix":"dim"},"metadata_groups":[{"id":"people","label":"People","entries":[{"key":"dc:contributor.advisor","label":"Advisor","values":["Kim, Kangsoo"]},{"key":"dc:contributor.committeemember","label":"Committee Member","values":["Ginde, Gouri","Far, Behrouz"]},{"key":"dc:creator","label":"Author","values":["Marzban, Mehdi"]}]},{"id":"academic_context","label":"Academic Context","entries":[{"key":"dc:date","label":"Dc Date","values":["2026-06"]},{"key":"dc:date.accessioned","label":"Dc Date Accessioned","values":["2026-01-26T22:15:06Z"]},{"key":"dc:date.issued","label":"Date","values":["2026-01-21"]},{"key":"dc:publisher.faculty","label":"Dc Publisher Faculty","values":["Graduate Studies"]},{"key":"dc:publisher.institution","label":"Dc Publisher Institution","values":["University of Calgary"]},{"key":"dc:type","label":"Dc Type","values":["master thesis"]},{"key":"thesis:degree_discipline","label":"Discipline","values":["Engineering – Electrical & Computer"]},{"key":"thesis:degree_name","label":"Degree Name","values":["Master of Science (MSc)"]},{"key":"thesis:institution_name","label":"Thesis Institution Name","values":["University of Calgary"]},{"key":"thesis:release_request","label":"Thesis Release Request","values":["I do not require a thesis withhold – my thesis will have open access and can be viewed and downloaded publicly as soon as possible."]}]},{"id":"subjects_keywords","label":"Subjects and Keywords","entries":[{"key":"dc:subject","label":"Dc Subject","values":["Oil and Gas","Pipeline","Leak Detection","Machine Learning","LSTM"]},{"key":"dc:subject.classification","label":"Dc Subject Classification","values":["Artificial Intelligence","Engineering--Petroleum","Engineering","Psychology--Industrial","Computer Science"]}]},{"id":"language_rights","label":"Language and Rights","entries":[{"key":"dc:language.iso","label":"Language (ISO)","values":["en"]},{"key":"dc:rights","label":"Dc Rights","values":["University of Calgary graduate students retain copyright ownership and moral rights for their thesis. You may use this material in any way that is permitted by the Copyright Act or through licensing that has been assigned to the document. For uses that are not allowable under copyright legislation or licensing, you are required to seek permission."]}]},{"id":"identifiers","label":"Identifiers","entries":[{"key":"dc:identifier.citation","label":"Dc Identifier Citation","values":["Marzban, M. (2026). Enhancing leak detection in oil and gas pipelines with multi-task LSTM model (Master's thesis, University of Calgary, Calgary, Canada). Retrieved from https://prism.ucalgary.ca."]},{"key":"dc:identifier.doi","label":"DOI","values":["https://dx.doi.org/10.11575/PRISM/51040"]},{"key":"dc:identifier.uri","label":"Identifier URI","values":["https://hdl.handle.net/1880/124003"]}]},{"id":"additional","label":"Additional Metadata","entries":[{"key":"dc:description.abstract","label":"Abstract","values":["Oil and gas pipelines form a critical component of Canada’s industrial infrastructure, providing an efficient means of transporting natural resources across vast geographic regions. However, leak events pose severe environmental and economic risks, reinforcing the need for robust, accurate, and explainable monitoring systems. This thesis proposes a compact, multi-task Long Short Term Memory (LSTM) model for joint leak detection and localization in multivariate time-series data, leveraging the model’s ability to capture long range temporal dependencies. All datasets used for training and evaluation are generated using a Real Time Transient Model (RTTM), which simulates the fluid dynamic response of eight pipeline zones under leak and no-leak scenarios. The simulations incorporate conservation equations and the GERG-2008 equation of state to model pressure, flow, and temperature dynamics during leak propagation. Each sample encodes a sequence of sensor readings along the pipeline, with labels identifying leak presence and leak position. The LSTM model is evaluated under consistent 50/25/25 train–validation–test splits and benchmarked against a conventional one dimensional CNN baseline to ensure fair architectural comparison. Performance is assessed using classification metrics (accuracy, precision, recall, F1-score, and ROC–AUC) as well as localization metrics (MAE and Hit@5). Across all eight pipeline zones, the LSTM achieves near perfect classification performance and produces more accurate leak localization than the CNN, particularly in zones with longer sequences or widely spaced sensors. Latency and throughput measurements further demonstrate that the LSTM remains computationally feasible for real-time deployment. An ablation study evaluates the impact of architectural variations such as hidden size, number of layers, and activation functions revealing that the final LSTM configuration offers the best balance between generalization, localization accuracy, and inference speed. The localization output also contributes to model explainability by narrowing the region of interest for operators, aligning with the needs of real-world decision support environments. The proposed approach integrates with the PRIME and SHAPE research platforms, supporting operator facing visualization and training workflows. Limitations regarding reliance on simulated data, lack of cross validation, and assumptions about sensor accuracy are discussed, alongside recommendations for future work involving interpretability tools, distance aware loss functions, and testing with live or replayed SCADA datasets. Overall, this research demonstrates that sequence-based modeling of pressure flow dynamics can substantially enhance the reliability, interpretability, and operational readiness of pipeline leak detection and localization systems, contributing to safer and more sustainable energy infrastructure."]},{"key":"dc:title","label":"Title","values":["Enhancing Leak Detection in Oil and Gas Pipelines with Multi-Task LSTM Model"]},{"key":"dspace:entity.type","label":"Dspace Entity Type","values":["Publication"]},{"key":"others:access_status","label":"Others Access Status","values":["open.access"]}]}],"canonical_facts":{"dc:contributor.advisor":["Kim, Kangsoo"],"dc:contributor.committeemember":["Ginde, Gouri","Far, Behrouz"],"dc:creator":["Marzban, Mehdi"],"dc:date":["2026-06"],"dc:date.accessioned":["2026-01-26T22:15:06Z"],"dc:date.issued":["2026-01-21"],"dc:description.abstract":["Oil and gas pipelines form a critical component of Canada’s industrial infrastructure, providing an efficient means of transporting natural resources across vast geographic regions. However, leak events pose severe environmental and economic risks, reinforcing the need for robust, accurate, and explainable monitoring systems. This thesis proposes a compact, multi-task Long Short Term Memory (LSTM) model for joint leak detection and localization in multivariate time-series data, leveraging the model’s ability to capture long range temporal dependencies. All datasets used for training and evaluation are generated using a Real Time Transient Model (RTTM), which simulates the fluid dynamic response of eight pipeline zones under leak and no-leak scenarios. The simulations incorporate conservation equations and the GERG-2008 equation of state to model pressure, flow, and temperature dynamics during leak propagation. Each sample encodes a sequence of sensor readings along the pipeline, with labels identifying leak presence and leak position. The LSTM model is evaluated under consistent 50/25/25 train–validation–test splits and benchmarked against a conventional one dimensional CNN baseline to ensure fair architectural comparison. Performance is assessed using classification metrics (accuracy, precision, recall, F1-score, and ROC–AUC) as well as localization metrics (MAE and Hit@5). Across all eight pipeline zones, the LSTM achieves near perfect classification performance and produces more accurate leak localization than the CNN, particularly in zones with longer sequences or widely spaced sensors. Latency and throughput measurements further demonstrate that the LSTM remains computationally feasible for real-time deployment. An ablation study evaluates the impact of architectural variations such as hidden size, number of layers, and activation functions revealing that the final LSTM configuration offers the best balance between generalization, localization accuracy, and inference speed. The localization output also contributes to model explainability by narrowing the region of interest for operators, aligning with the needs of real-world decision support environments. The proposed approach integrates with the PRIME and SHAPE research platforms, supporting operator facing visualization and training workflows. Limitations regarding reliance on simulated data, lack of cross validation, and assumptions about sensor accuracy are discussed, alongside recommendations for future work involving interpretability tools, distance aware loss functions, and testing with live or replayed SCADA datasets. Overall, this research demonstrates that sequence-based modeling of pressure flow dynamics can substantially enhance the reliability, interpretability, and operational readiness of pipeline leak detection and localization systems, contributing to safer and more sustainable energy infrastructure."],"dc:identifier.citation":["Marzban, M. (2026). Enhancing leak detection in oil and gas pipelines with multi-task LSTM model (Master's thesis, University of Calgary, Calgary, Canada). Retrieved from https://prism.ucalgary.ca."],"dc:identifier.doi":["https://dx.doi.org/10.11575/PRISM/51040"],"dc:identifier.uri":["https://hdl.handle.net/1880/124003"],"dc:language.iso":["en"],"dc:publisher.faculty":["Graduate Studies"],"dc:publisher.institution":["University of Calgary"],"dc:rights":["University of Calgary graduate students retain copyright ownership and moral rights for their thesis. You may use this material in any way that is permitted by the Copyright Act or through licensing that has been assigned to the document. For uses that are not allowable under copyright legislation or licensing, you are required to seek permission."],"dc:subject":["Oil and Gas","Pipeline","Leak Detection","Machine Learning","LSTM"],"dc:subject.classification":["Artificial Intelligence","Engineering--Petroleum","Engineering","Psychology--Industrial","Computer Science"],"dc:title":["Enhancing Leak Detection in Oil and Gas Pipelines with Multi-Task LSTM Model"],"dc:type":["master thesis"],"dspace:entity.type":["Publication"],"others:access_status":["open.access"],"thesis:degree_discipline":["Engineering – Electrical & Computer"],"thesis:degree_name":["Master of Science (MSc)"],"thesis:institution_name":["University of Calgary"],"thesis:release_request":["I do not require a thesis withhold – my thesis will have open access and can be viewed and downloaded publicly as soon as possible."]},"updated_at":"2026-11-19T07:28:09Z"}