Geri Dön

Akıllı şebekelerde nesnelerin interneti tabanlı enerji tüketimi farkındalığına sahip sistem tasarımı

Design of an IoT-based energy-consumption-aware system for smart grids

  1. Tez No: 1029378
  2. Yazar: MUSTAFA ALPER ÇOLAK
  3. Danışmanlar: PROF. DR. CÜNEYT BAYILMIŞ
  4. Tez Türü: Doktora
  5. Konular: Bilgisayar Mühendisliği Bilimleri-Bilgisayar ve Kontrol, Computer Engineering and Computer Science and Control
  6. Anahtar Kelimeler: Makine öğrenmesi, Nesnelerin interneti, Machine learning, Internet of things
  7. Yıl: 2026
  8. Dil: Türkçe
  9. Üniversite: Sakarya Üniversitesi
  10. Enstitü: Fen Bilimleri Enstitüsü
  11. Ana Bilim Dalı: Bilgisayar Mühendisliği Ana Bilim Dalı
  12. Bilim Dalı: Bilgisayar ve Bilişim Mühendisliği Bilim Dalı
  13. Sayfa Sayısı: Belirtilmemiş.

Özet

Günümüzde elektrik enerjisine olan talebin artması, elektrik şebekelerinin daha esnek, izlenebilir ve uyarlanabilir yapılar hâline gelmesini zorunlu kılmaktadır. Geleneksel elektrik şebekeleri çoğunlukla merkezi üretim ve tek yönlü enerji akışı varsayımı üzerine kurulmuşken, modern akıllı şebekeler üretim, tüketim, haberleşme ve kontrol bileşenlerinin birlikte çalıştığı daha dinamik sistemlere dönüşmektedir. Bu dönüşümle birlikte, elektrik üretimi ile tüketimi arasındaki dengenin korunması daha karmaşık ve kritik bir problem hâline gelmiştir. Özellikle üretim tarafında meydana gelen beklenmeyen düşüşler veya arıza eğilimleri zamanında değerlendirilmediğinde, talep tarafında gecikmiş müdahaleler ortaya çıkmakta ve sistemde geçici üretim-tüketim dengesizlikleri oluşabilmektedir. Bu tez çalışmasında, akıllı şebeke ortamlarında üretim tarafında meydana gelen düşüş ve bozulma eğilimlerini tespit ederek, bu durumları öncelik tabanlı talep tarafı kontrol kararlarına dönüştüren Yapay Zekâ Nesnelerin İnterneti tabanlı bir enerji yönetim sistemi önerilmektedir. Önerilen yaklaşımın temel amacı, yalnızca üretim anomalilerini tespit etmek değil, aynı zamanda tespit edilen üretim bozulmasını sistem düzeyinde gerekli enerji tasarruf oranına dönüştürmek ve bu oranı bina ağ geçitleri üzerinden yerel yük kontrol kararlarına uygulamaktır. Önerilen sistem; enerji santralleri, akıllı cihazlar, bina ağ geçitleri, zaman-hava durumu sunucusu, MQTT tabanlı haberleşme altyapısı ve merkezi veri-kontrol biriminden oluşmaktadır. Üretim tarafında enerji santrallerinden elde edilen üretim verileri izlenmekte, tüketim tarafında ise binalarda bulunan IoT özellikli cihazların enerji tüketimleri bina ağ geçitleri tarafından toplanmaktadır. Merkezi veri ve kontrol birimi üretim ve tüketim verilerini işleyerek üretim tarafındaki anormal durumları değerlendirmekte ve gerekli enerji tasarruf oranını hesaplamaktadır. Cihaz seviyesindeki kontrol kararları ise bina ağ geçitleri tarafından yerel cihaz envanterleri, anlık tüketim profilleri ve cihaz öncelik sınıflarına göre alınmaktadır. Tez kapsamında üretim düşüşü problemini temsil etmek amacıyla üç fazlı bir üretim bozulma modeli kullanılmıştır. Bu modelde üretim biriminde oluşabilecek bozulma süreci; erken uyarı fazı, kararsızlık artışı fazı ve aralıklı üretim düşüşü/trip fazı olarak ele alınmıştır. İlk fazda üretim davranışında yavaş ve sürekli bir negatif sapma oluşmakta, ikinci fazda üretim sinyalindeki değişkenlik artmakta, üçüncü fazda ise aralıklı ve daha belirgin üretim düşüşleri ortaya çıkmaktadır. Üretim anomalilerinin tespit edilmesi ve gerekli kontrol büyüklüğünün belirlenmesi amacıyla Logistic Regression, Random Forest ve XGBoost modelleri kullanılmıştır. Logistic Regression düşük hesaplama maliyeti ve yorumlanabilir yapısı nedeniyle temel model olarak değerlendirilmiştir. Random Forest doğrusal olmayan ilişkileri yakalayabilen bir topluluk öğrenmesi yöntemi olarak kullanılmıştır. XGBoost ise artırma tabanlı karar ağacı yapısı sayesinde kademeli ve doğrusal olmayan üretim bozulma desenlerini daha güçlü biçimde temsil edebilmesi nedeniyle çalışmaya dâhil edilmiştir. Modeller çevrimdışı olarak eğitilmiş, çevrimiçi çalışma sırasında merkezi veri ve kontrol biriminde çıkarım amacıyla kullanılmıştır. Önerilen sistemin değerlendirilmesi için CupCarbon tabanlı bir simülasyon ortamı oluşturulmuştur. Simülasyon ortamında birden fazla bina, 500'den fazla IoT cihazı, bina ağ geçitleri, üç üretim birimi ve merkezi veri-kontrol yapısı modellenmiştir. Sistem, 24 saatlik simülasyon süresi ve 10 saniyelik MQTT mesaj aralığı ile çalıştırılmıştır. Gerçek üretim davranışına yakın senaryolar oluşturmak amacıyla EPİAŞ Şeffaflık Platformu üzerinden elde edilen doğal gaz kombine çevrim santrali üretim verileri kullanılmıştır. Bu santrallerin tercih edilme nedeni, üretim profillerinin yenilenebilir kaynaklara kıyasla daha kararlı ve kontrol edilebilir olmasıdır. Deneysel çalışmalar normal çalışma, üretim düşüşü, yük dengeleme uygulanmayan durum, reaktif yük dengeleme ve makine öğrenmesi destekli proaktif kontrol senaryoları üzerinden yürütülmüştür. Normal çalışma senaryosunda sistemin gereksiz yük azaltımı başlatmadığı gözlenmiştir. Yük dengeleme uygulanmayan senaryoda üretim bozulmasının üretim-tüketim dengesizliğine yol açtığı, reaktif yük dengeleme yaklaşımının ise geçici dengesizlikleri tamamen önleyemediği görülmüştür. Makine öğrenmesi destekli proaktif kontrol senaryolarında modellerin yalnızca anomali tespit başarımı değil, üretim-tüketim dengesini korumaya yönelik kontrol büyüklüğünü doğru belirleme kabiliyeti de değerlendirilmiştir. Logistic Regression modeli yüksek duyarlılık göstermesine rağmen düşük kesinlik ve yüksek yanlış pozitif oranı nedeniyle sınırlı başarı sunmuştur. Random Forest modeli daha dengeli sonuçlar üretmiş ancak bazı kademeli üretim bozulmalarında gerekli kontrol büyüklüğünü yeterli hassasiyetle belirleyememiştir. XGBoost modeli ise doğruluk, kesinlik, F1 skoru ve AUC-ROC açısından en yüksek başarımı sağlamıştır. Deneysel sonuçlarda XGBoost modeli %99,4 doğruluk, %83,3 kesinlik, %100 duyarlılık, %90,9 F1 skoru ve 0,999 AUC-ROC değerine ulaşmıştır. Elde edilen bulgular, üretim anomalisi tespitinde erken tespitin önemli olmakla birlikte tek başına yeterli olmadığını göstermektedir. Bir model anomalileri erken tespit etse bile, gerekli enerji tasarruf oranını doğru hesaplayamıyorsa üretim-tüketim dengesinin korunmasında yetersiz kalabilmektedir. Bu nedenle akıllı şebeke kontrol uygulamalarında model başarımı, sınıflandırma metrikleriyle birlikte kontrol büyüklüğünü doğru belirleme kabiliyetiyle de değerlendirilmelidir. Sonuç olarak bu tez çalışması, üretim tarafında meydana gelen düşüş ve bozulma eğilimlerini AIoT tabanlı bir yapı ile tespit eden, bu tespitleri gerekli enerji tasarruf oranına dönüştüren ve bina ağ geçitleri üzerinden öncelik tabanlı yerel yük kontrolü gerçekleştiren uygulanabilir bir enerji yönetim sistemi sunmaktadır. Önerilen yapı, merkezi analiz ile yerel kontrolü birbirinden ayırarak ölçeklenebilir, esnek ve farklı bina türlerine uyarlanabilir bir çözüm sağlamaktadır.

Özet (Çeviri)

The increasing demand for electrical energy has made it necessary for modern power systems to become more flexible, observable, and adaptive. Traditional power grids were mainly designed based on centralized generation and one-way energy flow from generation units to consumers. However, modern smart grids have evolved into more dynamic structures in which generation units, consumers, communication infrastructures, sensing devices, smart meters, IoT-enabled devices, and data-driven control mechanisms operate together. In such systems, maintaining the balance between electricity production and consumption becomes a critical requirement for operational continuity, reliability, and resilience. One of the important challenges in smart grid operation is the unexpected decrease in electricity production caused by fault-prone operating conditions, degradation in power generation units, maintenance activities, or other abnormal generation-side events. If these production-side disturbances are not detected and evaluated in a timely manner, demand-side interventions may be delayed. Such delayed responses may lead to temporary production–consumption imbalance and operational stress. Therefore, there is a need for intelligent, adaptive, and control-oriented energy management approaches that can detect production-side abnormalities and translate them into appropriate demand-side control actions. This thesis proposes an Artificial Intelligence of Things (AIoT)-based energy management system for smart grid environments. The proposed system detects production-side degradation and converts this information into priority-aware demand-side load control decisions. The main objective of the thesis is not only to detect production anomalies, but also to estimate the required energy saving ratio and apply this ratio through building-level gateways according to local device priorities. In this respect, the proposed system establishes a direct link between production-side anomaly awareness and demand-side adaptive control. The proposed system consists of power generation units, smart devices, building gateways, a time-weather information server, an MQTT-based communication infrastructure, and a central data and control center. On the generation side, electricity production data are continuously monitored. On the consumption side, energy consumption values of IoT-enabled devices are collected by building gateways. These data are transmitted to the central data and control center through an MQTT-based publish/subscribe communication structure. The central data and control center processes production and consumption data, evaluates abnormal generation behavior, and computes the required energy saving ratio. However, the central system does not directly decide which individual devices should be switched off or regulated. Instead, it sends the required demand reduction ratio to the building gateways. Each building gateway then determines the local device-level control actions based on its own device inventory, current consumption profile, and predefined device priority classes. This separation between central analysis and local control is one of the main design principles of the proposed system. The central data and control center is responsible for production-side anomaly detection and global demand reduction estimation, whereas building gateways are responsible for local priority-aware load control. This architecture reduces the decision-making burden on the central system, improves scalability, and allows different building types to apply their own local control policies. It also supports privacy and flexibility by avoiding the need to transmit detailed device-level control decisions to the central layer. In this thesis, production degradation is modeled using a three-phase production fault model. The first phase represents an early warning stage in which a gradual negative drift appears in the residual production signal. The second phase represents an increase in operational instability, where the variability of the production signal grows over time. The third phase represents intermittent production drops and possible trip-like behavior. This three-phase structure is designed to represent progressive degradation patterns that may occur in real power generation units. By modeling production degradation in phases, the proposed system can evaluate not only sudden production drops, but also gradually evolving abnormal operating conditions. Machine learning models are used to detect production anomalies and support the estimation of the required demand reduction. Three supervised learning models are evaluated in this thesis: Logistic Regression, Random Forest, and XGBoost. Logistic Regression is used as a lightweight and interpretable baseline model. Random Forest is included as a nonlinear ensemble learning method capable of modeling feature interactions and heterogeneous fault patterns. XGBoost is used as a higher-capacity gradient boosting model that can represent complex and nonlinear degradation patterns more effectively. All models are trained offline and used for online inference at the central data and control center. This design avoids heavy model training on resource-constrained IoT devices while still allowing the system to make online decisions during operation. The feature engineering process focuses on dynamic indicators of production degradation. Production changes, production–consumption margin variations, short- and long-window statistics, rolling slopes, variability measures, and normalized standard deviation ratios are used to represent both rapid variations and gradual degradation trends. The same feature extraction logic is used during offline training and online inference to ensure consistency between training and deployment phases. The proposed system is evaluated in a CupCarbon-based simulation environment. CupCarbon is used to model IoT-enabled smart grid components, building gateways, smart devices, communication links, and control interactions. The simulation environment includes multiple buildings, more than 500 IoT devices, five building-level gateways, three generation units, and a central data and control center. The simulation is conducted over a 24-hour period, and MQTT messages are exchanged at 10-second intervals. This setup enables the proposed AIoT-based energy management system to be evaluated under distributed and dynamic smart grid conditions. To provide realistic production behavior, real-world electricity generation data obtained from the EPİAŞ Transparency Platform are used. The study focuses on natural gas combined cycle power plants, including Bursa, Cengiz, and Kazan power plants. Natural gas combined cycle plants are selected because their generation profiles are generally more stable and controllable than those of renewable energy sources such as wind and solar. This makes it easier to distinguish normal production variations from fault-induced production degradation. The real production traces are used to drive the generation profiles in the simulation and to create realistic production degradation scenarios. The experimental evaluation includes normal operation, production drop without load balancing, reactive load balancing, and machine learning-based proactive control scenarios. In the normal operation scenario, no production fault or degradation is introduced. The purpose of this scenario is to evaluate whether the system triggers unnecessary load control actions under stable operating conditions. The results show that the proposed system does not generate false load reduction commands during normal operation, which indicates stable and reliable behavior under fault-free conditions. In the production drop scenario without load balancing, one generation unit experiences progressive production degradation. Since no demand-side control is applied in this case, the production decrease leads to a production–consumption imbalance. This scenario demonstrates that monitoring production-side behavior alone is not sufficient. When production degradation occurs, demand-side control actions are necessary to maintain the balance between production and consumption. The reactive load balancing scenario applies demand reduction only after energy demand exceeds available production. Although this approach improves the system behavior compared with the no-balancing case, it still allows a temporary production–consumption imbalance before intervention begins. This result shows that purely reactive control is not sufficient for production degradation scenarios, especially when the degradation evolves progressively. Early awareness and preventive control preparation are needed to reduce the risk of imbalance. The machine learning-based proactive control scenarios evaluate Logistic Regression, Random Forest, and XGBoost under identical production degradation conditions. The models are compared not only in terms of classification performance, but also in terms of their contribution to demand-side control. In this thesis, anomaly detection is considered useful only if it helps the system compute a sufficient and appropriate energy saving ratio. Therefore, early detection alone is not treated as the only success criterion. The Logistic Regression model provides an interpretable and computationally efficient baseline. It can detect production degradation in some cases; however, due to its linear decision structure, it cannot sufficiently model the nonlinear and progressive nature of production degradation. As a result, even when the model detects the anomaly, the estimated control magnitude may be insufficient. This may lead to temporary production–consumption imbalance. The results show that Logistic Regression achieves high recall but suffers from low precision and a high false positive rate. The Random Forest model performs better than Logistic Regression by capturing nonlinear feature interactions and reducing false positives. Its ensemble structure makes it more robust against heterogeneous production patterns. However, since Random Forest combines independently trained decision trees, its ability to refine control magnitude estimation under progressively evolving fault conditions is limited. Therefore, although Random Forest provides a more balanced performance than Logistic Regression, it does not fully stabilize the system in all production degradation conditions. The XGBoost model achieves the strongest overall performance among the evaluated models. Although its reactive detection delay appears longer than those of Logistic Regression and Random Forest in some metrics, this should not be interpreted as weaker fault awareness. The key advantage of XGBoost is its ability to estimate the required energy saving ratio more accurately. By providing a more reliable control magnitude, XGBoost enables the system to maintain the production–consumption balance more effectively. The results show that XGBoost reaches 99.4% accuracy, 83.3% precision, 100% recall, 90.9% F1-score, and 0.999 AUC-ROC. It also achieves a very low false positive rate of 0.66%. The main finding of the thesis is that anomaly detection alone is not sufficient for smart grid control applications. A model may detect an anomaly early, but if it cannot estimate the required demand reduction accurately, the system may still fail to maintain production–consumption balance. Therefore, model performance should be evaluated not only using conventional classification metrics such as accuracy, precision, recall, and F1-score, but also using control-oriented indicators such as demand reduction sufficiency, false positive rate, detection delay, and the ability to prevent production–consumption imbalance. The proposed system also demonstrates the value of distributed priority-aware load control. In the proposed architecture, critical devices are protected, while lower-priority devices are considered first for temporary regulation. Building gateways apply load reduction locally according to device priority classes and current consumption profiles. This enables the system to reduce demand without unnecessarily interrupting critical services. The local gateway-based control structure also allows different buildings, such as hospitals, offices, factories, banks, and residential buildings, to apply different priority policies according to their operational requirements. The thesis has several limitations. First, the proposed system is evaluated in a real data-driven simulation environment rather than in a full field deployment. Although the simulation includes real production traces, MQTT-based communication, building gateways, and IoT-enabled devices, real-world deployment conditions may include additional uncertainties such as communication delays, device failures, user behavior, and operational constraints. Second, detailed electrical grid dynamics such as frequency deviations, voltage variations, power flow constraints, and protection system behavior are not modeled in this study. The evaluation focuses on energy management and production–consumption balance at the demand-side control level. Third, the production data are limited to selected natural gas combined cycle power plants. The proposed approach should be further evaluated for more variable generation sources such as wind, solar, hydroelectric, and hybrid generation systems. Fourth, device priority levels are predefined in this study. In real-world applications, device priorities may change dynamically according to occupancy, time of day, user preferences, seasonal requirements, or operational conditions. Future work may extend the proposed system in several directions. First, the framework can be validated in real-world pilot deployments or laboratory-scale smart grid testbeds. Such validation would allow the effects of real communication delays, device response times, and user behavior to be analyzed more accurately. Second, the system can be integrated with detailed power system simulation tools to evaluate the impact of the proposed demand-side control strategy on voltage, frequency, and power flow stability. Third, different generation sources can be included to test the robustness of the method under renewable and highly variable production profiles. Fourth, dynamic priority assignment methods can be developed so that building gateways can adapt device priorities according to context. Fifth, online learning or periodic retraining mechanisms can be added to update the machine learning models as production and consumption patterns change over time. Finally, cybersecurity aspects of MQTT-based smart grid communication can be investigated, including authentication, authorization, message integrity, and anomaly detection against malicious control messages. In conclusion, this thesis presents an AIoT-based energy management system that detects production-side degradation, estimates the required energy saving ratio, and applies priority-aware demand-side load control through building gateways. The proposed system combines machine learning-based anomaly detection, MQTT-based distributed communication, and local priority-aware control in a unified smart grid framework. The experimental results show that accurate control magnitude estimation is at least as important as early anomaly detection. By linking production-side anomaly awareness with demand-side adaptive control, the proposed approach provides a scalable and flexible solution for improving production–consumption balance and protecting critical loads in smart grid environments.

Benzer Tezler

  1. Sivas'ta kadınların işgücüne katılım farklılıkları

    Başlık çevirisi yok

    BİNNUR ERCEM

    Yüksek Lisans

    Türkçe

    Türkçe

    1984

    Cumhuriyet Üniversitesi

    Kurumlar Sosyolojisi Ana Bilim Dalı

    Yükleniyor...

  2. Dönemsel yayınlarımızda reklamcılık işlevi ve basının kamuoyu oluşturma görevi ile ilişkisi

    Başlık çevirisi yok

    NEYLAN GÖNLÜYÜCE

    Yüksek Lisans

    Türkçe

    Türkçe

    1987

    İstanbul Üniversitesi

    Gazetecilik Ana Bilim Dalı

    Yükleniyor...

  3. Banka kredilerinin ekonomide yarattıkları etkiler

    Başlık çevirisi yok

    NİHAL ÜÇSU

    Yüksek Lisans

    Türkçe

    Türkçe

    1987

    İstanbul Üniversitesi

    İktisat Ana Bilim Dalı

    Yükleniyor...

  4. Tedarik süresi ve/veya talebin belirsiz olduğu durumlarda emniyet stokunun belirlenmesi

    Başlık çevirisi yok

    ÖZCAN GÖKÇEN

    Yüksek Lisans

    Türkçe

    Türkçe

    1987

    Gazi Üniversitesi

    Endüstri Mühendisliği Ana Bilim Dalı

    Yükleniyor...