<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[enefitit - Medium]]></title>
        <description><![CDATA[Enefit IT is a publication where data scientist, software developers and energy technology experts share their knowledge and expertise about the energy technology. - Medium]]></description>
        <link>https://medium.com/enefitit?source=rss----b0c2598721c4---4</link>
        <image>
            <url>https://cdn-images-1.medium.com/proxy/1*TGH72Nnw24QL3iV9IOm4VA.png</url>
            <title>enefitit - Medium</title>
            <link>https://medium.com/enefitit?source=rss----b0c2598721c4---4</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 05 Dec 2026 07:30:04 GMT</lastBuildDate>
        <atom:link href="https://medium.com/feed/enefitit" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Foreign Object Detection in Estonian Mines: Rethinking the Problem from Classification to Detection]]></title>
            <link>https://medium.com/enefitit/foreign-object-detection-in-estonian-mines-rethinking-the-problem-from-classification-to-detection-28004586244e?source=rss----b0c2598721c4---4</link>
            <guid isPermaLink="false">https://medium.com/p/28004586244e</guid>
            <category><![CDATA[object-detection]]></category>
            <category><![CDATA[industrial-automation]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[computer-vision]]></category>
            <dc:creator><![CDATA[Yaroslava Mykhailenko]]></dc:creator>
            <pubDate>Tue, 28 Apr 2026 18:09:11 GMT</pubDate>
            <atom:updated>2026-04-28T18:09:10.224Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*HcJkk3YDuHl1wqnnzIbAxA.png" /></figure><p>In Estonian mines, conveyor belts move thousands of tons of material every hour - oil shale, crushed rock, and other valuable resources flowing continuously through the production line. But along with this material, foreign objects occasionally appear on the belt: wooden fragments, pieces of timber, even leftover anchor bolts from maintenance work.</p><p>At first glance, they may look harmless. In reality, a single missed object can damage crushers and downstream equipment, stop an entire production line, and lead to repair costs reaching <strong>tens of thousands of euros.</strong></p><p>Traditionally, monitoring has relied on manual inspection, which is both costly and imperfect in harsh mining conditions. This naturally raises a question: can the process be automated? Could we reduce dependency on manual supervision and build a smarter detection system?</p><p>That is how the problem reached our team - the <strong>AI/ML Systems &amp; Prototyping Team at Enefit</strong>, one of the largest electricity providers in the Baltics. We were asked to validate whether a computer vision system could reliably detect wooden foreign objects on conveyor belt images from Estonian oil shale mines.</p><p>In this article, I’ll walk through how we approached the problem using real industrial images from one of the Narva mines. We’ll start with our first attempt - framing the task as a <strong>classification problem</strong>, which initially looked promising but eventually failed due to <strong>shortcut learning</strong>. That discovery forced us to rethink the problem and move toward <strong>object detection </strong>- and that’s when things finally started to work.</p><h3>Data and System Setup</h3><p>Before diving into the models, it’s important to understand the environment where this system operates and the data we had to work with. The project was deployed directly in an active oil shale mine, where conveyor belts continuously transport material through the production line.</p><h4>System Design</h4><p>The setup itself is relatively simple.</p><p>A <a href="https://docs.baslerweb.com/a2a1920-51gcpro"><strong>Basler a2A1920–51gcPRO</strong></a> machine vision camera is installed above the conveyor belt and continuously captures images of the material moving underneath it. The camera streams images through the GigE Vision protocol to a virtual machine running Python, where we handle image acquisition using the Basler Pylon SDK.</p><p>Each frame is then passed to the machine learning model, which analyzes the image and looks for potential foreign objects. If something suspicious is detected, the system can trigger a signal light near the conveyor belt, alerting operators or stopping the line before the object reaches the machinery.</p><p>The hardware - the camera and the signal light - is installed directly in the mine environment. The image processing runs on a virtual machine inside the mine’s internal infrastructure to keep latency low. Detection events and captured images are later transferred to object storage for logging and further analysis.</p><p>The physical setup of the system is shown below.</p><figure><img alt="Physical setup of the system in the mine" src="https://cdn-images-1.medium.com/max/1024/1*vPSDGXF1YW02wfNzIWwtOw.png" /><figcaption>Physical setup of the system in the mine</figcaption></figure><h4>Conveyor Characteristics</h4><p>The conveyor belt is roughly<strong> 1</strong> <strong>meter wide</strong> and moves at about <strong>2 meters per second</strong>, continuously transporting oil shale. Foreign objects appear relatively rarely - typically around <strong>1–2 occurrences per week</strong>, which is great for operations, but not so great when you need training data for a model.😉</p><h4>Data Collection</h4><p>Because real incidents are so rare, the dataset had to be collected in two different ways.</p><p>Images without foreign objects were captured during normal conveyor operation, simply recording the belt as it transported oil shale fragments.</p><p>Images with foreign objects were collected in a controlled setup. We manually placed wooden fragments on the belt in different positions and orientations to simulate how they might appear in real conditions. The belt was stopped during this process, since intentionally placing wood on a moving conveyor would not have been safe - the object could have continued down the line toward the machinery.</p><p>For the pilot dataset we collected:</p><ul><li><strong>1,000</strong> <strong>images without wood</strong></li><li><strong>300 images with wooden pieces</strong></li></ul><p>Here are some examples from the collected dataset. To make them easier to see in the article, we brightened the images slightly. In real mine conditions, the original images are actually darker.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*QYDfLSB3egymz2mUHCJixg.png" /><figcaption>Examples of the training data</figcaption></figure><h3>First Attempt: Image Classification</h3><h4>Setup and Initial Results</h4><p>With the dataset in place, we started by framing the task as a binary image classification problem: given an image, predict whether it contains a wooden foreign object or not. This was the simplest way to begin - it only required image-level labels and allowed us to test the idea quickly before moving to a more complex approach.</p><p>To make the evaluation more reliable, we split the data by sequence rather than by individual images, so that frames from the same time period would not appear in both train and test sets. The final split was <strong>80% for training and 20% for testing</strong>.</p><p>For the model, we used <strong>ResNet18</strong> with pretrained ImageNet weights and replaced the final layer with a two-class output. The model was then fine-tuned for <strong>10 epochs</strong> using cross-entropy loss and the Adam optimizer.</p><p>The initial results looked almost too good to be true: the<strong> </strong>model achieved <strong>close to 100% precision, recall, and accuracy</strong> on both the training and test sets.</p><p>That immediately raised a question - was it actually learning to detect wood?</p><h4>Looking Beyond the Metrics</h4><p>To understand what the model was really using for its predictions, we applied <a href="https://arxiv.org/abs/1610.02391"><strong>Grad-CAM</strong></a>, which highlights the regions of an image that influence the model’s decision. Some examples are shown below. In these heatmaps, red indicates stronger influence on the prediction, while blue indicates weaker influence.</p><figure><img alt="Grad-CAM examples showing where the classifier focuses when making predictions" src="https://cdn-images-1.medium.com/max/768/1*KD5kULGmtpNES0ASfIoAlg.png" /><figcaption>Grad-CAM examples showing where the classifier focuses when making predictions</figcaption></figure><p>Although the model was extremely confident and assigned a wood probability of 0.00 to no-wood images and 1.00 to wood images, the heatmaps told a different story.</p><p>Instead of focusing on the wooden object, the model was mostly reacting to the <strong>edges of the conveyor belt, rollers, and background areas</strong>. It also seemed to rely on more general visual differences such as sharpness and texture, which helped distinguish moving-belt images from stopped-belt images.</p><p>This was a clear case of <strong>shortcut learning - </strong>the model had learned to rely on differences in image acquisition conditions instead of actually detecting wood.</p><h4>Why Classification Wasn’t Enough</h4><p>After identifying shortcut learning, we tried to reduce the visual cues the model was exploiting.</p><p>One of our main assumptions was that the classes might be partially separable based on <strong>image sharpness</strong>. To test this, we used Laplacian variance, a classical CV measure. We found that wood images had a higher average sharpness (283.5) than no-wood images (265.1).</p><p>This meant that the model could already separate the classes to some extent using low-level features alone.</p><p>To reduce this effect, we introduced <strong>Gaussian blur augmentation</strong> during training, applying a light blur to images with a 50% probability. We also tried several other augmentations aimed at breaking the shortcut, including:</p><ul><li>masking small image regions</li><li>applying slight geometric transformations</li><li>varying brightness and color</li></ul><p>But <strong>the outcome did not change much </strong>- the model still focused on the wrong regions. :(</p><p>As a final attempt, we manually created <strong>6 synthetic positive samples</strong> in Adobe Photoshop by placing wooden pieces onto images of the moving conveyor belt (which was about the limit of my patience for manual editing😂). We added these images to the training set alongside the original data. This was a straightforward way to show the model that the wood class could also appear under different background and acquisition conditions.</p><p>And this actually helped.</p><figure><img alt="Grad-CAM visualizations after adding synthetic samples" src="https://cdn-images-1.medium.com/max/993/1*sS_KEmAEpPX1yKnRUKCmiA.png" /><figcaption>Grad-CAM visualizations after adding synthetic samples</figcaption></figure><p>As shown in the Grad-CAM examples above, the model started to focus on the wooden object in at least some cases, rather than only on the belt structure.</p><p>From this, we concluded that classification could potentially work - but only with enough <strong>real production data</strong>. Even a small number of such examples was enough to push the model in the right direction.</p><p>At that stage, however, collecting sufficient real data was not feasible, so we decided to explore a different approach.</p><h3>Second Attempt: Object Detection</h3><p>After the classification experiments, we reframed the task as<strong> object detection</strong>: given an image, predict whether a wooden foreign object is present and, if so, localize it with a bounding box.</p><p>We considered this a better fit because of how the task is optimized. In the classification setup, the model produced a single label for the entire image, and the loss was computed only at the image level:</p><figure><img alt="Cross-entropy loss for image-level classification" src="https://cdn-images-1.medium.com/max/177/1*aokHP0Abh0txVtLl6VPKHA.png" /><figcaption>Cross-entropy loss for image-level classification</figcaption></figure><p>This means the model was penalized only for predicting the wrong class, regardless of which part of the image it relied on.</p><p>In object detection, the training objective is stricter. The model must predict not only what the object is, but also whether an object is present and where it is located. In simplified form, the loss combines classification, objectness, and localization terms:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/258/1*tppD1dRtCDLILrXl6TIowA.png" /><figcaption>Simplified detection loss: classification + objectness + localization</figcaption></figure><p>Here, L_cls measures whether the predicted class is correct, L_obj measures whether the model correctly identifies the presence of an object, and L_box penalizes poor localization.</p><p>This difference was important for our use case. It was not enough for the model to say that wood was somewhere in the image - it also had to identify the actual object. That is why object detection was a much better fit: it aligned the training objective with what we actually needed in practice.</p><h4>Model and Setup</h4><p>For the detection stage, we chose <a href="https://github.com/Megvii-BaseDetection/YOLOX/tree/main"><strong>YOLOX</strong></a> as our main model family. The choice was driven by two requirements:</p><ul><li>The model had to be available under a free commercial license</li><li>It had to be lightweight enough for a real production environment, where images were arriving at roughly<strong> 5–6 frames per second</strong> and needed to be processed with low latency</li></ul><p>For this reason, we selected <strong>YOLOX-tiny</strong>, a smaller variant in the YOLOX family, with ~5 million parameters. It offered a good balance between speed and detection performance.</p><p>The dataset contained around <strong>900 training images</strong> and <strong>360 validation images</strong>, with about <strong>150 images containing wood</strong> in each split. The model was trained on a local machine using CPU only, for <strong>25 epochs</strong>, with the full training run taking around <strong>4 hours</strong>.</p><p>Like most detection models, YOLOX tracked <strong>mAP</strong> <strong>(mean Average Precision)</strong> during training, and the best checkpoint was selected based on that metric. In simple terms, mAP measures how well the predicted bounding boxes match the annotated objects.</p><p>However, mAP alone was not enough for our use case. In the real system, the decision was made at the <strong>frame level</strong>: did the model detect something suspicious or not?</p><p>That is why, for evaluation, we converted detection outputs into an image-level decision and computed <strong>TP, FP, TN, and FN</strong>. If the model predicted at least one valid box on a frame, we treated that frame as positive.</p><h4>Offline Training and Results</h4><p>We started by training the default YOLOX-tiny setup on our dataset. Even this baseline version already gave good frame-level results: it correctly identified <strong>129 positive frames</strong> and <strong>206 negative ones</strong>, while missing <strong>22 frames</strong> that actually contained wood.</p><p>This was a good starting point, but the model was still missing too many wood fragments.</p><p>We then focused on improving the training setup. Since this was a commercial project, we do not disclose the exact parameters, but the tuning was aimed at adapting the training process<strong> </strong>to our dataset rather than changing the model architecture.</p><p><a href="https://github.com/Megvii-BaseDetection/YOLOX/blob/main/docs/train_custom_data.md#4-tips-for-best-training-results">Following the recommendations from the YOLOX authors</a>, we adjusted the training schedule, reduced heavier augmentation, and made the overall training process more stable for our relatively small industrial dataset.</p><p>Here are some of the detected/missed wood examples and the table comparison between the baseline and tuned versions:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*TeIpt5MRokiukrFOIUiEzA.png" /><figcaption>Detection examples with predicted bounding boxes</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/819/1*J-DArq7ZvU2v-OdVc7KZVg.png" /><figcaption>Comparison of baseline and tuned YOLOX models on the validation set</figcaption></figure><p>The tuned model performed significantly better: it correctly identified <strong>149 positive frames</strong> and <strong>204 negative ones</strong>, while missing only <strong>2 positive frames</strong> and producing <strong>2 false alarms</strong>.</p><p>Based on these results, the tuned model was selected for deployment in the mine.</p><h4>Production Adaptation</h4><p>In the pilot stage, the model was tested directly in the Narva mine under real operating conditions.</p><p>To make the system less sensitive to singe noisy detections, we did not treat every positive frame as an alert. Instead, an alert was triggered only when the model detected a suspicious object in <strong>3–4 consecutive frames</strong>, with roughly <strong>0.25 seconds between frames.</strong></p><p>The feedback from the mine showed that, on the one hand, the model successfully detected all real wood pieces observed during the pilot period, but on the other hand, it generated too many false alerts.</p><p>For example, during one week, the model generated:</p><ul><li><strong>896 </strong>single-frame false detections, which resulted in roughly<strong> 4–8 false alerts per day</strong></li></ul><p>For the customer, this was still too frequent for daily operation - the target was to reduce false alerts to <strong>no more than 3 per week</strong>.</p><p>To improve the system, we broke the problem into three steps:</p><ul><li>adjusting the threshold</li><li>analyzing false-positive patterns</li><li>retraining the model on production data</li></ul><p>1.<strong> Threshold Analysis</strong></p><p>We first looked at data from real mine shifts to understand how changing the model’s confidence threshold affected the number of false detections and missed objects.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lKzqR3fN0swgphtbuShNBQ.png" /><figcaption>Effect of confidence threshold on false positives and false negatives</figcaption></figure><p>From the graph above, we saw that increasing the threshold would reduce false positives much faster than it would increase false negatives. For example, raising it from <strong>0.5 to 0.8</strong> would reduce FP by about<strong> 65%</strong>, while FN would rise only to 5 cases, or about <strong>13%</strong> of all real objects.</p><p>Based on this, we increased the confidence threshold from the original <strong>0.5 to 0.8</strong> for the next stage of improvement.</p><p>2.<strong> False-Positive Patterns</strong></p><p>We then manually reviewed the false-positive frames to better understand what the model was reacting to.</p><p>The pattern was quite consistent. In most cases, the model was repeatedly triggered by <strong>belt joints</strong> or by <strong>wet surfaces on an empty belt</strong>. These cases were never present in the training data, so the model treated them as suspicious objects, often with confidence scores above <strong>0.8</strong>.</p><p>There were also other types of mistakes, but they were less frequent. Most of them were related to <strong>large rocks on the belt</strong>, which may have looked similar to wood in terms of shape or size.</p><p>Some examples of these FP patterns are shown below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*K-6ZfyRt9ruQASm0tIZetg.png" /><figcaption>Examples of the typical false-positive patterns such as belt joints, wet surfaces etc.</figcaption></figure><p>These findings gave us a clear next step: the model needed to see more real production examples, especially hard negatives.</p><p>3. <strong>Retraining with Real Data</strong></p><p>To adapt the detector to real production conditions, we retrained it using new data collected from the mine.</p><p>We extended the original dataset with <strong>41 new true positives</strong> and <strong>200+ hard negative examples</strong> taken from production FP. In total, the updated training set contained roughly <strong>840+ images</strong>, with about <strong>190 images containing wood</strong>.</p><p>We did not train a new model from scratch. Instead, we took the best checkpoint of the previously deployed model and continued training from there for about <strong>15 additional epochs</strong>. At the same time, we kept the original training data together with the new production samples. This was important because training only on the new data could cause the model to forget previously learned patterns - a problem commonly known as <strong>catastrophic forgetting</strong>.</p><p>We also changed how we selected the best model. mAP was still tracked during training, but it was no longer the main criterion. At this stage, the goal was to reduce FP without losing too many TP, so we selected the final model based mainly on that balance across epochs.</p><p>4.<strong> Final Results in the Mine</strong></p><p>The table below shows the final comparison on a set of false-positive frames collected earlier during pilot operation.</p><p>On this set, the previously deployed model had produced <strong>896 false positives. </strong>After retraining the model on additional production data, including hard negatives, that number dropped to just <strong>3</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1D9vZ6g5ew2m4AeUADSgWg.png" /><figcaption>Comparison of previously tuned and production adapted models on the negative dataset</figcaption></figure><p>As a result, we reached the main practical goal: the model no longer produced consecutive false alerts that would trigger a conveyor stop. What remained were only occasional single-frame detections.</p><p>The model was then deployed in the mine, and over the next <strong>two pilot weeks </strong>it showed the same behavior. There were <strong>no consecutive FP events </strong>at all.</p><p>During this time, it detected <strong>3 real wood cases</strong>. It also detected a small pipe on the belt, which was also useful to catch ☺️.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3y6hMptGZPcVn2yF_zDLzA.jpeg" /><figcaption>Example detections from the first week of pilot operation</figcaption></figure><p>Finally, we also made an artificial test in the mine by manually throwing <strong>9 wooden objects </strong>onto the moving belt. The model detected <strong>9 out of 9</strong> without producing any false alert events!</p><p>Overall, these results gave us confidence that the model had become reliable enough for production use.🎉🥳</p><h3>Conclusion</h3><p>Looking back, the biggest lesson from this project was that a model can show great metrics and still learn the wrong thing.🤷</p><p>At first, the classification approach looked very promising. But once we looked closer, it became clear that the real challenge was not just training a model - it was framing the task in the right way. Moving to object detection turned out to be a much better fit for the problem, and the biggest improvements came later, when we started learning from real production data rather than only from offline experiments.</p><p>For me, this project was also a reminder that in industrial computer vision, the hard part is often not the model itself. It is the data, the edge cases, the evaluation logic, and all the small decisions that sit between a good validation result and something that can actually work in the field.</p><p>In the end, that was probably the most interesting part of the whole process.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=28004586244e" width="1" height="1" alt=""><hr><p><a href="https://medium.com/enefitit/foreign-object-detection-in-estonian-mines-rethinking-the-problem-from-classification-to-detection-28004586244e">Foreign Object Detection in Estonian Mines: Rethinking the Problem from Classification to Detection</a> was originally published in <a href="https://medium.com/enefitit">enefitit</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Enefit Wins First Place at Estonia’s First Quantum Hackathon — QEst Hack 2025]]></title>
            <link>https://medium.com/enefitit/enefit-wins-first-place-at-estonias-first-quantum-hackathon-qest-hack-2025-f22dcd423ddd?source=rss----b0c2598721c4---4</link>
            <guid isPermaLink="false">https://medium.com/p/f22dcd423ddd</guid>
            <category><![CDATA[optimization]]></category>
            <category><![CDATA[electric-vehicles]]></category>
            <category><![CDATA[energy-efficiency]]></category>
            <category><![CDATA[quantum-computing]]></category>
            <dc:creator><![CDATA[Jorge Javier Garcia Ruiz]]></dc:creator>
            <pubDate>Thu, 18 Dec 2025 09:41:28 GMT</pubDate>
            <atom:updated>2025-12-18T09:41:27.581Z</atom:updated>
            <content:encoded><![CDATA[<h3>Enefit Wins First Place at Estonia’s First Quantum Hackathon — QEst Hack 2025</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*q8v9NjcZyF66-gF_oRFgGg.jpeg" /><figcaption>QEst Hack 2025 participants and mentors</figcaption></figure><p>From December 3–5, 2025, Estonia hosted its first hackathon fully dedicated to quantum computing: <strong>QEst Hack 2025</strong>. Over three intense days, students, researchers and industry teams came together to explore how quantum technologies can tackle real-world optimization problems — and <strong>Team Enefit took first place</strong>.</p><h3>A Deep Dive into Quantum Computing</h3><p>The hackathon kicked off with an intensive introduction to quantum computing. To be honest, the session was far more detailed than many of us expected, but the presenters managed to keep the room fully engaged, patiently addressing the many questions that emerged along the way. It was a solid foundation for what would become two days of fast-paced experimentation and problem-solving.</p><p>Throughout the event, mixed teams of students and company representatives worked on challenges submitted by five pioneering Estonian companies, all under the guidance of experienced international mentors.</p><p>As <strong>Kalev Kaarna</strong>, Metrosert’s Sales Manager for Research Projects and the hackathon moderator, explained:</p><blockquote><em>“Enefit, Gscan, mu-ray.tech, Oixio, and Activa Finance were the first brave companies to bring their complex optimization problems to the table. The teams sought more efficient solutions using quantum computing for tasks such as electric vehicle fleet charging schedules, debt analysis, chip architecture, predictive algorithms for 3D scanning, and organizing consultancy team staffing — using IBM’s and IQM’s cloud-based quantum computing environments to test their concepts.”</em></blockquote><h3>Team Enefit</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Wzz4_qE3DdLXamxDiXTeEA.jpeg" /></figure><p>Our goal at QEst Hack was to apply quantum methods to a real optimization challenge in our industry — electric vehicle charging. Our Enefit team consisted of members from the <strong>AI/ML Systems &amp; Prototyping Team</strong>:</p><ul><li><strong>Kaarel Oja</strong> (Head of the Unit)</li><li><strong>Jaime de Miguel Rodríguez</strong> (Senior AI/ML Researcher)</li><li><strong>Jean-Baptiste Scellier</strong> (Data Science Team Lead)</li><li><strong>Artjom Vargunin</strong> (Data Scientist)</li><li><strong>Jorge Javier García Ruiz</strong> — myself (Senior Cloud Software Engineer)</li></ul><p>We were also joined by two talented students, <strong>Niklas Nasman</strong> and <strong>Henrik Arba</strong>, who contributed fresh perspectives and sharp technical insights.</p><h3>Our Challenge: Quantum-Optimized EV Charging</h3><p>The problem we chose to tackle focused on one of Enefit’s key innovation areas: electric mobility. Specifically, we aimed to explore how quantum computing could be used to <strong>optimize charging schedules for a fleet of electric vehicles</strong>, reducing costs while honoring operational and physical constraints.</p><p>To make the problem compatible with current quantum hardware, we simplified the scenario — with guidance from our mentors — to:</p><ul><li><strong>3 electric vehicles</strong></li><li><strong>2 chargers</strong></li><li><strong>Limited vehicle availability</strong></li><li><strong>3 timeslots for charging</strong></li><li><strong>A reduced set of variables</strong> suitable for today’s quantum capabilities</li></ul><p>Even in this scaled-down form, the problem captures the essence of real-world fleet charging optimization, where scheduling, power limits, and fluctuating costs must all be balanced.</p><p>Unlike classical computers, quantum computers operate on qubits that can represent multiple states at once, enabling them to explore many possible solutions in parallel.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*09N5OglsT1-xvDbYPkPG6Q.png" /><figcaption>Encoding problem as the sequence of qubits: each black circle is a qubit representing certain EV connection to the charger at certain time slot; green circles are auxiliary qubits</figcaption></figure><h3>Running the Model on IBM’s Quantum Hardware</h3><p>Once the problem was modeled and translated into a quantum formulation, we executed it on IBM’s cloud-based quantum computers. IBM currently offers systems with <strong>133</strong> and <strong>156 qubits</strong>, and our final model required <strong>15 qubits</strong> — comfortably within today’s hardware limits.</p><p>A key aspect of quantum execution is that results are <strong>probabilistic</strong>, not deterministic. This means the outcome must be sampled many times, a process measured in <strong>shots</strong>.</p><p>After running our model with both <strong>50,000</strong> and <strong>100,000 shots</strong>, we analyzed the probability distributions to identify the most cost-efficient and constraint-compliant charging schedule — a result that demonstrated <em>quantum-inspired optimization in action</em>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/921/1*sfgxoRDwmNyVlnpa-wv9Ww.png" /><figcaption>Both experiments ran amazingly fast</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Bt0Bsthan_EDB0A_rpchog.png" /><figcaption>Small portion of the Circuit shown in IBM Quantum platform</figcaption></figure><p>These runs produced a distribution of states in the quantum system, from which we filtered out those who weren’t compliant with out constraints. Then from those who were valid we filtered out just those who showed up more than 5 times.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/630/1*OyQS5VUMW6F9Qbit_brhzA.png" /><figcaption>Valid solutions that satisfy all constraints and appear more than 5 times</figcaption></figure><p>Most optimal results in this case were:</p><pre>010000100100011 (9 counts) <br>Total cost: €70 <br>Charger encoding, last 6 digits from the rigth 010000:<br>EV Schedule, first 9 digits from the right 100100011: <br> Period 0: EV1, EV2 (€20)<br> Period 1: EV3 (€30)<br> Period 2: EV3 (€20)<br><br>011011100100011 (9 counts)<br>Total cost: €70<br>Charger encoding 011011:<br>EV Schedule 100100011:<br> Period 0: EV1, EV2 (€20)<br> Period 1: EV3 (€30)<br> Period 2: EV3 (€20)<br><br>*These prices are not realistic ones, we used random prices as example.</pre><p>Other results with 9 counts shown in above graph were not as optimal cause price increased more than €70, so they weren’t considered optimal by us.</p><h3>Reflections</h3><p>Participating in QEst Hack 2025 gave us a hands-on opportunity to explore what quantum computing can already do today — and where it’s headed. Despite the early-stage nature of the technology, it’s clear that quantum approaches hold meaningful potential for solving complex optimization problems in the energy sector.</p><p>We’re proud of the work our team accomplished and grateful to the organizers, mentors, and fellow participants for creating such an inspiring environment. Winning first place was truly the icing on the cake.</p><p>Events like QEst Hack show that even early quantum systems can offer new ways to think about optimization problems in the energy sector — from grid balancing to fleet management and beyond. We believe these tools will become increasingly relevant as quantum hardware and software mature.</p><p>And this is only the beginning. At Enefit, we’re excited to continue exploring how quantum technologies can help build smarter, more efficient energy systems for the future.</p><h3>References</h3><p><a href="https://kvant.ee/en/estonias-first-quantum-hackathon-reveals-the-great-potential-of-quantum-computing/">https://kvant.ee/en/estonias-first-quantum-hackathon-reveals-the-great-potential-of-quantum-computing/</a><br><a href="https://kvant.ee/qest-hack-2025/">https://kvant.ee/qest-hack-2025/</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f22dcd423ddd" width="1" height="1" alt=""><hr><p><a href="https://medium.com/enefitit/enefit-wins-first-place-at-estonias-first-quantum-hackathon-qest-hack-2025-f22dcd423ddd">Enefit Wins First Place at Estonia’s First Quantum Hackathon — QEst Hack 2025</a> was originally published in <a href="https://medium.com/enefitit">enefitit</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Named Entity Recognition and GDPR‑Safe Anonymization with LLMs in Low‑Resource Languages]]></title>
            <link>https://medium.com/enefitit/named-entity-recognition-and-gdpr-safe-anonymization-with-llms-in-low-resource-languages-ea89d77d17d6?source=rss----b0c2598721c4---4</link>
            <guid isPermaLink="false">https://medium.com/p/ea89d77d17d6</guid>
            <category><![CDATA[pii]]></category>
            <category><![CDATA[llm]]></category>
            <category><![CDATA[spacy]]></category>
            <category><![CDATA[gdpr]]></category>
            <category><![CDATA[named-entity-recognition]]></category>
            <dc:creator><![CDATA[Mark Šandali]]></dc:creator>
            <pubDate>Tue, 09 Dec 2025 12:59:38 GMT</pubDate>
            <atom:updated>2025-12-09T12:59:36.761Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bFj7OT4DYbrLcGP832yChQ.jpeg" /></figure><p>“Named Entity Recognition was interesting five years ago — not anymore. It’s hardly worked on here,” one of the NLP professors in the Baltic region told me when I asked about local advancements in entity recognition.</p><p>And why did I ask him that? In Enefit’s AI/ML Systems &amp; Prototyping Team — at one of the largest electricity providers in the Baltics — we needed to build a tool to anonymize user comments from customer surveys, where people are explicitly asked not to leave any personal information, yet around 5% still do. Most of it is the usual “Best regards, John Doe” at the end of a comment, as if it were an email, but sometimes people include an address or even a national personal ID. That’s not compliant with EU privacy regulations (GDPR) and could lead to a hefty fine for the company.</p><p>The comments came in six languages: Estonian, Latvian, Lithuanian, Polish, Russian, and English. The last three are large enough to appear in multilingual pre‑trained models and have datasets suitable for fine‑tuning, but the first three… not much data, and apparently “not interesting anymore.”</p><p>So when I asked the professor about local Named Entity Recognition, we had already tried multiple versions of <a href="https://github.com/urchade/GLiNER">GLiNER</a> — a relatively new and popular transformer‑based NER model that, <a href="https://arxiv.org/abs/2401.10825v3">according to some research,</a> outperforms LLMs, but only when fine‑tuned. We had neither the data nor the time for fine‑tuning. Even generating synthetic data would have been difficult, because we would have needed speakers of all six languages, which we, of course, didn’t have in our team. Without fine‑tuning, our results were extremely poor. And there were no improvements from researchers on the horizon.</p><h3>What about LLMs?</h3><p>Initially, the company’s policy stated that no personal data could be sent to LLMs. However, after a deeper review, it was decided that using LLMs was acceptable if they were deployed in Microsoft Azure using <a href="https://learn.microsoft.com/en-us/azure/ai-foundry/foundry-models/concepts/deployment-types?view=foundry-classic#data-zone-standard">Data Zone deployment.</a> This ensures that data never leaves the EU and therefore remains compliant with GDPR.</p><p>And, wow, did that make a difference. Even the initial tests with OpenAI’s gpt‑4o were remarkably promising. They clearly showed that even though an LLM is essentially a hammer and Named Entity Recognition is more like a screw than a nail, it would take us a huge amount of time to build a proper screwdriver (<a href="https://www.youtube.com/watch?v=2K5Gqp1cEcM">it took Linus Tech Tips three years to design their real screwdriver!</a>) — while this hammer simply works.</p><h3>A Hammer With Surgical Precision</h3><p>Language models used for NER usually take text as input and return a list of entity–label pairs. For example, the input <em>“My name is John”</em> might produce the output [&quot;John&quot;: &quot;PERSON&quot;]. You can be confident the entity appears exactly in the original text.</p><p>LLMs could, in theory, perform the <strong>entire</strong> anonymization task themselves — but that would be far too unpredictable. We definitely don’t want the model to rewrite text, add sentences, or even correct grammar. With LLMs, you often have to explicitly instruct them <strong>not</strong> to do something, and even then you can’t be 100% sure they will follow it.</p><p>A more reliable approach is to mimic how smaller NER models behave:<br>extract only what’s needed, then perform anonymization in a <strong>separate</strong> step. This also fits neatly into existing anonymization pipelines.</p><h3>A Familiar Anonymization Flow — Plus an LLM</h3><p>We chose <a href="https://microsoft.github.io/presidio">Microsoft Presidio</a> as our anonymization library. Presidio uses the <a href="https://spacy.io/">spaCy</a> NLP framework, and spaCy includes the <a href="https://spacy.io/usage/large-language-models">spaCy‑LLM</a> package, which lets you use LLMs for traditional NLP tasks like NER.</p><p>spaCy‑LLM provides predefined “tasks,” which are essentially prompt templates. The newest NER template (<a href="https://spacy.io/api/large-language-models#ner-v3">spacy.NER.v3</a>) uses <strong>Chain‑of‑Thought prompting</strong>, meaning the model outputs not only the entity and label, but also its reasoning. In spaCy’s own tests, this significantly improved accuracy.</p><p>Here is an example of CoT from the prompt template (<a href="https://github.com/explosion/spacy-llm/blob/main/spacy_llm/tasks/templates/ner.v3.jinja">spaCy-LLM GitHub</a>):</p><pre>Q: Given the paragraph below, identify a list of entities, and for each entry explain why it is or is not an entity:<br>Paragraph: Sriracha sauce goes really well with hoisin stir fry, but you should add it after you use the wok.<br>Answer:<br>1. Sriracha sauce | True | INGREDIENT | is an ingredient to add to a stir fry<br>2. really well | False | ==NONE== | is a description of how well sriracha sauce goes with hoisin stir fry<br>3. hoisin stir fry | True | DISH | is a dish with stir fry vegetables and hoisin sauce<br>4. wok | True | EQUIPMENT | is a piece of cooking equipment used to stir fry ingredients</pre><p>In spaCy’s configuration, we define exactly which entities we want and provide descriptions for each label. This gives us control to detect the <strong>precise</strong> things we care about — for example, detailed street addresses (and farm names!) — while intentionally avoiding broader or ambiguous mentions (e.g., cities or regions, which we must keep to preserve context in user complaints).</p><pre>[components.llm_ner.task]<br>@llm_tasks = &quot;spacy.NER.v3&quot;<br>labels = [&quot;PERSON&quot;, &quot;LOCATION&quot;]<br>description = &quot;Entities are names of the people and addresses (street names and house numbers). Countries and cities are not addresses and should not be considered as LOCATION entities. Power plants or project sites are not addresses. Adjectives, verbs, adverbs are not entities. Pronouns are not entities. &#39;Enefit&#39; and &#39;Eesti Energia&#39; are companies and should not be considered as PERSON entities. Entities might have typos or multiple spaces which shouldn&#39;t be removed.&quot;<br>alignment_mode = &quot;expand&quot;<br><br>[components.llm_ner.task.label_definitions]<br>PERSON = &quot;A person&#39;s actual first name, last name, or full name (e.g., &#39;Alice&#39;, &#39;Bob Smith&#39;). Doesn&#39;t include descriptors, titles, or references without names (e.g., &#39;my friend&#39;, &#39;the nurse&#39;).&quot;<br>LOCATION = &quot;Physical address which may include a farm name. Doesn&#39;t include countries, cities or project sites. Doesn&#39;t include generic terms like summer house or apartment that are not specific addresses.&quot;,</pre><p>One important decision was changing the alignment_mode from the default &quot;strict&quot; to &quot;expand&quot;. spaCy’s tokenizes the text and maps predicted entities onto tokens. If an entity boundary doesn’t line up exactly with a token, strict mode drops it. For example:</p><p><em>“My name is.John.”</em><br>may be tokenized as<br>[&quot;my&quot;, &quot;name&quot;, &quot;is.John&quot;, &quot;.&quot;]</p><p>The true entity is only <em>“John”</em>, but strict alignment would reject it because the token is is.John. With &quot;expand&quot;, the model expands the entity to match the token, which is more acceptable — better to mask slightly too much than not at all.</p><p>Of course, PERSON and LOCATION aren’t the only entity types we detect. They’re just the ones that truly require an LLM. Others, like phone numbers, emails, and any number longer than five digits (potentially national IDs or account numbers) are easily caught via regex and are already built into Presidio.</p><h3>Trying to Catch Them All: The Results</h3><p>The results — based on one month of data — were extremely strong when using large commercial LLMs. After a few iterations refining the label descriptions in the spaCy‑LLM NER task, we reached near‑perfect accuracy. <strong>Processing roughly 1,000 comments cost only €2</strong>.</p><p>However, an important distinction is that achieving this performance required a <em>large</em> model. OpenAI’s large models performed very well, while Google’s Gemma3:27B detected many of the entities we wanted but also far too many that should not have been flagged. It’s likely fair to say: the smaller the language, the larger the model you need for reliable NER (or any other language-related task).</p><pre>| Model                 | Correct | Incorrect | Missed | False Positive | Precision | Recall | F1-score |<br>|-----------------------|---------|-----------|--------|----------------|-----------|--------|----------|<br>| OpenAI gpt-4.1        | 55      | 3         | 0      | 0              | 95%       | 95%    | 95%      |<br>| OpenAI gpt-4o         | 55      | 3         | 0      | 2              | 92%       | 95%    | 93%      |<br>| Google gemma3:27b     | 50      | 4         | 4      | 316            | 14%       | 86%    | 23%      |<br>| GretelAI GliNER Large | 12      | 12        | 34     | 105            | 9%        | 21%    | 13%      |</pre><p>With LLMs, many of these “not interesting anymore” tasks suddenly become very approachable again. Not because the task itself has become exciting, but because the models are now strong enough to cover the gaps that smaller, language‑specific models can’t fill without a lot of fine‑tuning.</p><p>This doesn’t mean specialist models aren’t valuable — they absolutely are when you have the data and the time to train them properly.<br>But when you <em>don’t</em> have those things, and you need results quickly, LLMs can be an exceptionally good first step. They give you something that works right now, not after a long wait.</p><p>So even if NER isn’t a fashionable research topic anymore, it turns out it’s far from solved — and LLMs might be the most practical way to tackle it today. At least if you’re dealing with low‑resource languages.</p><h3>Key takeaways</h3><ul><li>If LLMs in the cloud can’t be used due to security concerns, it’s worth verifying whether the concern is <em>actually</em> applicable — and how risks can be mitigated.</li><li>Even though LLMs are capable of doing many things at once, it’s best to limit them to the tasks where they provide unique value. This avoids debugging headaches and makes the results far more predictable.</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ea89d77d17d6" width="1" height="1" alt=""><hr><p><a href="https://medium.com/enefitit/named-entity-recognition-and-gdpr-safe-anonymization-with-llms-in-low-resource-languages-ea89d77d17d6">Named Entity Recognition and GDPR‑Safe Anonymization with LLMs in Low‑Resource Languages</a> was originally published in <a href="https://medium.com/enefitit">enefitit</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Optimization of electric-vehicle charging adjusted by planned trips]]></title>
            <link>https://medium.com/enefitit/optimization-of-electric-vehicle-charging-adjusted-by-planned-trips-b9e076fffc83?source=rss----b0c2598721c4---4</link>
            <guid isPermaLink="false">https://medium.com/p/b9e076fffc83</guid>
            <category><![CDATA[trip-planner]]></category>
            <category><![CDATA[optimization]]></category>
            <category><![CDATA[charging-electric-vehicle]]></category>
            <dc:creator><![CDATA[Artjom Vargunin]]></dc:creator>
            <pubDate>Thu, 20 Nov 2025 11:32:17 GMT</pubDate>
            <atom:updated>2025-12-02T12:12:48.164Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*V0lvTFkahTXus9WDzBcK7w.jpeg" /></figure><p><em>Electric-vehicle trips planned by the driver significantly affect the charging schedule and result in the natural trade-off between charging cost and the comfort of vehicle usage. Here, we discuss several realistic use cases and show that charging cost may vary by up to an order of magnitude depending on the level of comfort required from the vehicle usage.</em></p><p>Nowadays, more and more electronic devices rely on rechargeable batteries as their main source of energy. These batteries can vary in capacity in a very wide range: from several Wh in a typical AAA battery to hundreds of MWh in large-scale or grid-connected storage systems. As a result, the cost of the battery recharge can be in some cases negligible, and in others extremely large. The good news is that the charging cost can often be influenced by users if they are able to choose when to charge their batteries. This is because electricity prices are usually volatile due to natural uncertainty in the electricity markets so that charging during off-peak hours is much less expensive than during peak periods.</p><p>At Enefit, we develop smart optimization algorithms that reduce the charging costs of batteries operating in various environments — such as smart homes of prosumers, grids with co-located generation assets, electric vehicles (EVs) on the go, to name a few. In this post, we focus on the latter scenario and discuss an EV whose driver has a list of planned trips to complete during the day, with the goal of achieving the lowest possible charging cost.</p><p>To make the analysis as realistic as possible, we take a single day, 3 September 2025, as an example, and assume that the EV charging price on that day equals the Nord Pool spot price plus a small fixed margin, as specified in the agreement with the electricity provider. We also assume V1G-type charger, i.e. EV can only charge (take energy from the grid) and cannot discharge (send energy back to the grid). Regarding the EV battery itself, we consider its capacity 40 kWh and charging power 10 kW. These values are typical of popular compact hatchbacks, such as Nissan Leaf or Renault Zoe.</p><p>To schedule EV charging against fluctuating electricity prices optimally, we use the optimization algorithm developed at Enefit. The core idea of the algorithm is to determine how much to charge on an hourly basis so that the overall electricity bill is minimized. Below, we analyze different charging schedules obtained under specific constraints representing the driver’s planned trips.</p><h4>EV constantly connected to the charger</h4><p>The most efficient way for an EV to achieve the lowest electricity bill is to stay connected to a charger for the whole day without interruptions. In this case, the algorithm can select the most profitable hours for charging.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*SJUfMQrxwEyhciidQ1rR2Q.png" /></figure><p>The image shows the charging prices during the day of interest (blue staircase line) and the optimal charging schedule, shown as the evolution of the EV battery’s state of charge (SOC, black line). Here we assume that before the optimization run, the initial SOC is always zero, while the final SOC is always set to fully charge the battery. The algorithm selected 12:00 — 15:59 to gradually charge the EV, as these hours are the cheapest. The net bill is 0.74 Eur for this scenario.</p><p>Compared to the batteries which may be constantly connected to the grid, the main purpose of an EV is to be on the go and thus disconnected from the charger. Therefore, the considered scenario is of minor interest to the EV driver. However, it serves as a lower bound for the charging cost.</p><h4>One long trip</h4><p>Let’s consider a scenario involving a single trip planned by an EV driver. We characterize the trip by two parameters:</p><ul><li>duration of 11 consecutive hours, and</li><li>an expected energy loss of 7 kWh.</li></ul><p>The starting hour of the trip is not specified. The optimization algorithm should determine the starting time of the planned trip such that, when the EV is connected to the charger, its charging schedule results in the lowest possible cost.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Xtl0soTsZqPpqmkrjCAeig.png" /></figure><p>In the plot, the shaded area indicates the hours identified by the algorithm as optimal for the EV to be driving. The white background shows the hours when the EV should be connected to the charger.</p><p>The SOC pattern suggests that the optimal schedule is as follows: charge 00:00–00:59, undertake the trip 01:00–11:59 and then recharge 12:00–15:59 until the battery is full. This outcome is intuitive. We want to take advantage of the most cost-effective charging period 12:00 — 15:59, so the journey must be completed before that time. It is also possible to schedule the journey after this low-price period; however, doing so consumes energy that must be replenished later in the day, when electricity prices are higher. As a result, this alternative leads to a higher total cost and is therefore suboptimal.</p><p>Along with the optimal schedule, we observe an increased charging cost of 1.49 Eur. The difference between 1.49 and 0.74 Eur, equal to 0.75 Eur, represents the amount paid to cover the 7 kWh of energy consumed during the trip.</p><h4>Three short trips: office, shop, and kindergarten</h4><p>Let’s assume that the single long journey considered in the previous scenario consists of three trips: to the office, to the shop, and to the kindergarten.</p><p>In the earlier case, we assumed that the EV driver completed these trips consecutively as the single long journey. Let’s now allow for pauses between the trips to enable recharging. We characterize the short trips as follows:</p><ul><li><em>Office</em>: duration of 8 consecutive hours, expected energy loss of 3 kWh</li><li><em>Shop</em>: duration of 2 consecutive hours, expected energy loss of 3 kWh</li><li><em>Kindergarten</em>: duration of 1 hour, expected energy loss of 1 kWh</li></ul><p>The total duration and total energy loss of all three short trips are the same as for the single long journey considered previously.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*RTE0b0mUk-PYibfQ9min2A.png" /></figure><p>In the plot, the algorithm schedules these trips during the hours shown by the shaded rectangles. We expect that dividing a long journey into shorter ones can reduce the total cost, since short trips can be placed during local price peaks, while nearby off-peak hours can be used for recharging.</p><p>It should be noted that the optimization results strongly depend on the underlying logistics — specifically, how the trip destinations are connected to the charger by the road network.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hZoTLFI1C9quA4HZNTK7jQ.png" /></figure><p>In this post, we consider trip-destination points arranged so that the EV always passes the charger when traveling between them, as shown in the left panel. The connectors between destinations represent roads, and their lengths are proportional to the corresponding journey energy losses.</p><p>In reality, the roads between destination points may not pass the charger, as illustrated in the right panel. In the example shown, there are two possible routes between the charger, office, and shop. One option consists of two separate trips — <em>charger → office → charger</em> and <em>charger → shop → charger</em>. The other option is a single continuous journey — <em>charger → office → shop → charger</em>. The former may differ from the latter in terms of total duration and corresponding energy loss, and therefore may result in different optimization outcomes. This aspect requires additional attention and will not be discussed further in this post.</p><h4>Kindergarten trip at 8:00</h4><p>In previous scenarios, the optimization tended to schedule EV trips during nighttime hours. Many EV drivers may find it undesirable.</p><p>To make the optimization more user-friendly and better reflect everyday routines, we introduce an option to mark certain trips as <em>mandatory</em> by specifying their fixed starting time. Mandatory trips are not optimized with respect to their start time; they are treated as strictly predefined.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Jn6BZ4scEQXch790-CPe0Q.png" /></figure><p>In our example, the morning trip to the kindergarten is defined as mandatory and set to start at 8:00. As shown in the image, this mandatory trip significantly alters the charging schedule: the long office trip is shifted to evening hours, whereas previously it was scheduled differently. Consequently, introducing mandatory trips can lead to an increase in charging costs.</p><h4>Trips order: office, then shop</h4><p>Another feature introduced to improve EV-driver comfort is the ability to specify the order of trips. In this example, we require the office trip to occur <em>before</em> the shopping trip.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UDRVHVQCB9aTDv-9I3rAWQ.png" /></figure><p>The image shows the resulting charging schedule, which includes the mandatory kindergarten trip and the requirement that shopping takes place after office work. The algorithm attempts to use local peak hours for the trips while respecting all given constraints. As a result, the total charging cost becomes twice as high compared to the previous example without trip ordering.</p><h4>Kindergarten planned at 8:00, office at 10:00, shopping after 8:00</h4><p>Similar to trip ordering, a trip can also be constrained by the time of day. In this case, the EV driver can specify <em>the earliest hour</em> at which a trip is allowed to start.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*XAjW_VsdxjDWCXKDcSJG-A.png" /></figure><p>We consider a scenario with mandatory trips to the kindergarten and the office, starting at 8:00 and 10:00 respectively, and a shopping trip that is allowed only after 8:00. Since trips cannot overlap, the shopping trip can occur only after 18:00. Under these constraints, the algorithm schedules the shopping trip at 19:00 in order to take advantage of local peak hours. As a result, the charging cost reaches 4.81 EUR.</p><h4>Conclusion</h4><p>Obtaining an EV charging schedule is not a straightforward optimization task, largely because of the unpredictable trips that EV drivers may undertake. As shown in this post, there is often a trade-off between minimizing charging costs and maintaining driver comfort. As usual, comfort is not free.</p><p>We demonstrate that everyday routines can significantly increase daily charging costs — from an initial 0.74 EUR up to 4.81 EUR in the scenario considered. This is a substantial shift and suggests that EV drivers have considerable potential to reduce their expenses by refining their planned trips.</p><h4>Technical note</h4><p>A key step in defining the optimization task is the formalization of the EV trip. We used Google’s open-source optimization suite OR-Tools to formulate the corresponding linear optimization problem. For each trip, we introduce two list-type variables as follows:</p><pre>is_ev_away = [model.BoolVar(f&#39;is_ev_away{i}&#39;) for i in time_idx] <br># e.g. [False, True, True, True, False] for trip starting at 2nd hour<br><br>ev_away_idx = [model.BoolVar(f&#39;is_ev_away_idx{i}&#39;) for i in time_idx]<br># e.g. [False, True, False, False, False] for trip starting at 2nd hour</pre><p>The first list specifies the hours during which the EV is away, while the second identifies the trip’s starting hour, see comments in the code. Each element in these lists is an optimizable Boolean variable in the model. Using the trip’s predefined duration, we can then formulate the corresponding constraints.</p><pre>model.Add(sum(ev_away_idx) == 1) <br>model.Add(sum(is_ev_away) == duration)</pre><p>The first constraint ensures that the trip can have only one starting hour, while the second enforces the predefined trip duration.</p><p>Additional constraints ensure that the elements of is_ev_away are True for consecutive hours by applying a linear mapping between the two lists. This topic is outside the scope of the present post.</p><p>In this section, we focus instead on ordering trips relative to one another or relative to a particular hour of the day. We introduced an ev_away_idx list, which—after the optimization is completed—identifies the <em>index</em> corresponding to the trip’s starting hour. Knowing this index allows us to impose constraints on the trip’s start time. In NumPy, this index would typically be obtained using the argmax function. The challenge here is to express the equivalent of the argmax operation in a form suitable for linear optimization. To address this, we introduce a set of auxiliary variables</p><pre>ev_away_idx_value_aux = [model.BoolVar(f&#39;ev_away_idx_value_aux{i}&#39;) for i in time_idx] <br># e.g. [False, True, True, True, True] for trip starting at 2nd hour<br><br>ev_away_idx_value = model.IntVar(0, len(time_idx)-1, &#39;ev_away_idx_value&#39;)<br># e.g. 1 for trip starting at 2nd hour</pre><p>We want to define the ev_away_idx_value_aux list so that it contains only True values for all hours at or after the trip’s starting hour. We also want ev_away_idx_value to equal the index at which ev_away_idx is True. This latter requirement is equivalent to computing argmax(ev_away_idx), which we implement through the following constraints</p><pre>for i in time_idx: <br>    model.Add(ev_away_idx_value_aux[i] == sum(ev_away_idx[: i + 1])) <br># ev_away_idx = [False, True, False, False, False] results in<br># ev_away_idx_value_aux = [False, True, True, True, True]<br><br>model.Add(ev_away_idx_value == len(time_idx) - sum(ev_away_idx_value_aux))<br># ev_away_idx_value_aux = [False, True, True, True, True] results in<br># ev_away_idx_value = 1</pre><p>The first constraint forces ev_away_idx_value_aux to satisfy its intended structure, while the second computes essentially argmax(ev_away_idx) by leveraging the length of the optimization window.</p><p>The benefit of having ev_away_idx_value is straightforward: it allows us to control the trip’s starting hour and to order multiple trips according to the EV driver’s plans.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b9e076fffc83" width="1" height="1" alt=""><hr><p><a href="https://medium.com/enefitit/optimization-of-electric-vehicle-charging-adjusted-by-planned-trips-b9e076fffc83">Optimization of electric-vehicle charging adjusted by planned trips</a> was originally published in <a href="https://medium.com/enefitit">enefitit</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Building a Private Speech-to-Text System for Estonian at Enefit]]></title>
            <link>https://medium.com/enefitit/building-a-private-speech-to-text-system-for-estonian-at-enefit-0b4eadc35836?source=rss----b0c2598721c4---4</link>
            <guid isPermaLink="false">https://medium.com/p/0b4eadc35836</guid>
            <category><![CDATA[speech-to-text-conversion]]></category>
            <category><![CDATA[speech-to-text-api]]></category>
            <dc:creator><![CDATA[Krzysztof W]]></dc:creator>
            <pubDate>Fri, 14 Nov 2025 07:23:44 GMT</pubDate>
            <atom:updated>2025-11-14T07:23:43.058Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9rbdkF6UBAH132sMOaqL1g.png" /></figure><p><em>How we made meeting recordings more accessible while keeping our data private</em></p><p>At Enefit, like in any large organization, we hold countless meetings every month. These range from local engineering discussions to strategic board sessions. Capturing and sharing insights from these conversations efficiently is crucial. However, manual note-taking or transcription is time-consuming and often leads to lost details.</p><p>We wanted to make this process faster, more accurate, and less dependent on human memory. The goal was to automatically turn meeting audio or video into searchable text.</p><p>Initially, we considered using one of the many speech-to-text (STT) services available online. However, we quickly ran into a familiar problem. Most of these tools require uploading recordings to third-party servers, and open-source alternatives either do not support Estonian or require specialized infrastructure.</p><p>For a company like Enefit, where discussions often involve operational, financial, or compliance-related topics, that approach was not acceptable.</p><p>We needed something different: a fully private, local speech-to-text system that runs on our own devices and understands Estonian, the main working language of our company.</p><h3>From Idea to Working Prototype</h3><p>Enefit operates across multiple markets, and our teams work in several languages. Although we are an international group, Estonian remains the language of many internal updates and board communications. As the company grows, making these messages accessible and understandable to everyone, regardless of language or location, becomes increasingly important.</p><p>That is where this project came in. By providing instant and secure meeting transcriptions, we were able to improve internal knowledge sharing, especially for colleagues who do not speak Estonian as their first language. Automatic transcription became not only a productivity tool but also a bridge connecting teams from different countries.</p><p>To build the system, I used <a href="https://github.com/openai/whisper">Whisper</a>, the open-source multilingual speech recognition model from OpenAI, together with the meeting <a href="https://github.com/m-bain/whisperX">transcription API — WhisperX</a>, which adds features such as speaker separation and precise timestamps. Most importantly, researchers from the Tallinn University of Technology (<a href="https://taltech.ee/en/laboratory-language-technology">TalTech NLP Lab</a>) had already <a href="https://huggingface.co/TalTechNLP">fine-tuned Whisper</a> specifically for Estonian. This gave us a strong starting point. They also created a dedicated alignment model, which accurately matches text to corresponding audio segments.</p><p>The implementation was simple but effective. I built a self-contained Docker image that includes all required models and dependencies. The image is large, but completely self-sufficient. It does not depend on external downloads or internet connectivity, and it avoids problems with dependency updates.</p><p>Thanks to this approach, the entire project was up and running in just a few days. Users can now run the transcription pipeline directly on their laptops, without needing cloud infrastructure or external APIs.</p><h3>Why Local and Private Matters</h3><p>Privacy was the foundation of the project. All processing happens locally, meaning that meeting recordings never leave company devices. This ensures full compliance with data protection policies and keeps sensitive information secure.</p><p>Language support was equally important. Many commercial tools still struggle with so-called low-resource languages such as Estonian. By using the fine-tuned model from TalTech, our system handles local names, accents, and grammar far better than generic models. It is a small but meaningful way for our technology to reflect who we are: an Estonian company with an expanding international presence.</p><h3>Results and Reception</h3><p>We did not spend weeks on accuracy benchmarks or formal evaluation. Instead, we gave people the tool and asked them to try it. The feedback was overwhelmingly positive.</p><p>The transcriptions proved accurate enough for everyday use, such as meeting notes, summaries, and internal updates. What really stood out was the amount of time people saved. One of the teams using the system estimates it saves at least 120 hours per year that would otherwise be spent on manual transcription.</p><p>The project was even mentioned by our CEO as an example of process improvement and practical innovation within Enefit. That recognition was an excellent outcome for such a small and fast-moving initiative.</p><h3>Lessons Learned</h3><p>One key takeaway was how far open-source technology has come. A few years ago, building a local, language-specific transcription system would have required a research team and several weeks of development. Today, a single engineer can do it in a few days, thanks to the open-source community and the excellent work by the TalTech NLP Lab.</p><p>Another important lesson was the value of user experience. The diarization step, which separates speakers, takes a noticeable amount of time on CPU. The first version of the system did not show any progress indicator, which made non-technical users uncertain whether it was still running. Adding a simple progress bar made a huge difference. Sometimes the smallest usability improvement determines whether a tool succeeds or not.</p><h3>What Comes Next</h3><p>The first version already solves a real business problem, but it is only the beginning. We plan to move the system to GPU servers for faster performance and add support for more languages used across Enefit’s international markets.</p><p>In the future, we can also integrate transcriptions with summarization and search tools. This would allow teams to easily find important discussions or decisions from past meetings.</p><p>Our goal is clear: to make communication smoother across all parts of Enefit, regardless of language or location. As we continue to expand internationally, tools like this will help us share knowledge, stay aligned, and maintain a strong internal culture.</p><h3>Closing Thoughts</h3><p>At Enefit ELAB, our research and innovation unit, we explore how artificial intelligence can make our everyday work more efficient and secure. Whether we evaluate large language models for scientific research or build privacy-preserving transcription systems, our focus is on creating AI solutions that people trust and actually use.</p><p>This project reminded me that innovation does not always require complex infrastructure or long development cycles. Sometimes it is enough to combine the right open-source tools, a bit of creativity, and a clear understanding of the problem.</p><p>In this case, the result was a simple yet powerful system that helps us communicate better in our own language and on our own terms.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=0b4eadc35836" width="1" height="1" alt=""><hr><p><a href="https://medium.com/enefitit/building-a-private-speech-to-text-system-for-estonian-at-enefit-0b4eadc35836">Building a Private Speech-to-Text System for Estonian at Enefit</a> was originally published in <a href="https://medium.com/enefitit">enefitit</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Scaling Pods proactively as a strategy to reduce costs and increase performance in predictable…]]></title>
            <link>https://medium.com/enefitit/scaling-pods-proactively-as-a-strategy-to-reduce-costs-and-increase-performance-in-predictable-db96f375dfaf?source=rss----b0c2598721c4---4</link>
            <guid isPermaLink="false">https://medium.com/p/db96f375dfaf</guid>
            <category><![CDATA[kubernetes]]></category>
            <category><![CDATA[keda]]></category>
            <dc:creator><![CDATA[Jesus Jackson]]></dc:creator>
            <pubDate>Fri, 07 Nov 2025 13:19:04 GMT</pubDate>
            <atom:updated>2025-11-07T13:19:03.116Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*d-XO_SyJN2YFBAOS.png" /><figcaption><a href="https://www.apptio.com/topics/kubernetes/autoscaling/horizontal/">Apttio.com</a></figcaption></figure><h3>Scaling Pods proactively as a strategy to reduce costs and increase performance in predictable environments</h3><h3>Introduction</h3><p>Scaling resources up and down to meet demand is a fundamental aspect of cloud orchestration. It’s rare for the usage of an online service to remain constant, so dynamic scaling becomes essential.</p><p>Together with the rest of the <strong>ELAB (AI/ML Systems &amp; Prototyping Team, Enefit’s R&amp;D unit)</strong>, we decided to explore an alternative to our current scaling approach.</p><h3>Basic Concepts</h3><p>Our setup runs on <strong>Kubernetes (K8s)</strong>, an open-source system for automating deployment, scaling, and management of containerized applications.</p><p>Each containerized unit is called a <strong>pod</strong> — a lightweight, self-contained environment designed to run a specific application or service.</p><p>Currently, our cluster uses a <strong>reactive scaling</strong> strategy: when monitoring detects high CPU usage, Kubernetes automatically starts additional pods to handle the increased load.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*ED6K2YnMKCe-YD-6.jpg" /><figcaption><a href="https://notes.kodekloud.com/docs/Kubernetes-Autoscaling/Kubernetes-Event-Driven-Autoscaling-KEDA/KEDA-CPU-Scaling">KEDA CPU Scaling — KodeKloud Notes</a></figcaption></figure><p><strong>Keda </strong>means <strong>Kubernetes-based Event Driven Autoscaler</strong>, so when certain events happen (like high usage of certain hardware resources) they trigger an increase or decrease of pods running.</p><p>However, we wondered — what if instead of waiting for a spike to occur, we could <strong>proactively scale</strong> the pods ahead of time and then scale down once the load drops?</p><blockquote><em>This proactive approach is possible in our case because incoming requests follow a strict and predictable schedule.</em></blockquote><h3>Why proactive instead of reactive?</h3><p>Reactive scaling introduces delays while waiting for new pods to initialize and respond. It also requires continuous monitoring of resource usage (in our case, <strong>CPU utilization</strong>) to trigger scaling events.</p><p>Since our APIs receive calls from two separate services, we decided to experiment with <strong>scheduled pod scaling</strong> for both. The idea was to reduce the number of “hot” pods running outside peak hours, while <strong>pre-warming</strong> additional pods a few minutes before expected surges to ensure maximum throughput.</p><h3>What was the usage Scenario?</h3><p>Our workload followed a highly predictable pattern:</p><ul><li>Requests were made every 15 minutes</li><li>Major spikes occurred hourly</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hh08BCf0J8yuEnsu0O2irQ.png" /><figcaption>The averages</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*owTtgHahoHP4zLhhyFBYEg.png" /><figcaption>Peaks could some times cause big delays depending on resources available</figcaption></figure><p>Previously, we maintained <strong>a constant minimum of 50 active pods</strong> to guarantee immediate response times. While effective, this approach incurred significant costs.</p><p>We wanted to see how far we could scale down while keeping the system just as responsive.</p><h3>The approach we used</h3><p>We based our scaling calculations on the <strong>maximum number of concurrent requests</strong> multiplied by the <strong>average request duration</strong>.</p><p>After several iterations, we arrived at the following configuration:</p><h4>Service 1</h4><pre>minReplicaCount: 3   # previously 50<br>triggers:<br>  - type: cron<br>    metadata:<br>      timezone: &quot;Etc/UTC&quot;<br>      start: &quot;12,27,42,57 * * * *&quot;   # 3 minutes before each quarter hour<br>      end:   &quot;28,33,48,3 * * * *&quot;    # 3 minutes after the peak ends<br>      desiredReplicas: &quot;75&quot;          # observed peaks of 75 requests every 15 minutes</pre><h4>Service 2</h4><pre>minReplicaCount: 4   # previously 50<br>triggers:<br>  - type: cron<br>    metadata:<br>      timezone: &quot;Etc/UTC&quot;<br>      start: &quot;12,27,42,57 * * * *&quot;   # 3 minutes before each quarter hour<br>      end:   &quot;28,33,48,3 * * * *&quot;    # 3 minutes after the peak ends<br>      desiredReplicas: &quot;28&quot;          # observed peaks of ~50 requests, each ~0.5s longs, but the requests are around half a second</pre><h3>The performance Impact</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/972/1*Bt0BIAG0KQBeOSxbpSLWVw.png" /><figcaption>The time per call decreased around 30% with the final pod scaling numbers</figcaption></figure><p>After applying scheduled scaling, the <strong>average response time per API call decreased by around 30%</strong>. This improvement was primarily due to the elimination of pod spin-up delays and CPU-triggered scale events.</p><h3>The Cost Impact</h3><p>Although we observed clear performance improvements, it was difficult to measure exact cost savings. Resource tagging was incomplete, preventing us from isolating the impact on compute costs.</p><p>However, for workloads with longer idle periods between calls, we expect <strong>significant potential savings</strong>, especially through better resource reuse across other workloads that don’t follow strict schedules.</p><h3>Future experiments</h3><p>In future iterations, we plan to refine this approach as part of broader <strong>cost-optimization</strong> efforts. With improved data collection and monitoring in place, we’ll be able to better quantify savings and performance impacts before and after applying scheduled scaling strategies.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=db96f375dfaf" width="1" height="1" alt=""><hr><p><a href="https://medium.com/enefitit/scaling-pods-proactively-as-a-strategy-to-reduce-costs-and-increase-performance-in-predictable-db96f375dfaf">Scaling Pods proactively as a strategy to reduce costs and increase performance in predictable…</a> was originally published in <a href="https://medium.com/enefitit">enefitit</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Why LLM Evaluation Matters: Building Reliable AI for Industrial Applications]]></title>
            <link>https://medium.com/enefitit/why-llm-evaluation-matters-building-reliable-ai-for-industrial-applications-2d3bc6f5699f?source=rss----b0c2598721c4---4</link>
            <guid isPermaLink="false">https://medium.com/p/2d3bc6f5699f</guid>
            <category><![CDATA[llm-applications]]></category>
            <category><![CDATA[llm-evaluation]]></category>
            <category><![CDATA[deepeval]]></category>
            <category><![CDATA[llm]]></category>
            <dc:creator><![CDATA[Osama Mohamed]]></dc:creator>
            <pubDate>Wed, 05 Nov 2025 12:59:43 GMT</pubDate>
            <atom:updated>2025-11-05T12:59:48.681Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FwSdMT4Stttla9F9UTjWoA.png" /></figure><h3>1) Introduction — Why LLM Evaluation Matters</h3><p>Shipping an LLM demo is easy. Shipping a <strong>reliable</strong> LLM system that experts trust is hard. In industrial settings — where decisions affect safety, compliance, or capital expenditure — quality must be demonstrated, not assumed. That’s why the most valuable artifact in an LLM project often isn’t the model or the prompt; it’s the <strong>evaluation system</strong> that tells you when you’re good enough to deploy, and when a change quietly degraded performance.</p><p>In this post I’ll share how we approached evaluation at <strong>ELAB</strong>, Enefit’s R&amp;D unit, for a real-world case: analyzing academic and technical studies on <strong>oil shale ash</strong> and organizing them into decision-ready summaries for our subject-matter experts (SMEs). Along the way I’ll outline what worked, what didn’t, and a compact playbook you can adapt to your own LLM projects.</p><h3>2) Project Overview</h3><p><strong>The use case.</strong> Our experts review a steady stream of papers on <strong>oil shale ash</strong> — a CaO‑rich byproduct with potential applications in construction materials (e.g., partial cement replacement, bricks), soil stabilization, and <strong>accelerated CO₂ carbonation</strong>. We needed an AI system that could read studies and deliver <strong>structured, trustworthy outputs</strong> our SMEs could action.</p><p><strong>What the pipeline produced per study:</strong></p><ul><li><strong>Metadata</strong> (descriptive + rights)</li><li><strong>Eye Catcher</strong> (3‑sentence highlight)</li><li><strong>Abstract</strong> (normalized, consistent fields)</li><li><strong>Applicability in practice</strong> (short bullets tied to the study’s evidence)</li><li><strong>Applicability by ash classification &amp; potential use cases</strong></li></ul><p><strong>Models we tested:</strong> <strong>GPT‑4.1</strong>, <strong>GPT‑4o</strong>, and <strong>o1</strong>.</p><p><strong>UX:</strong> We built a <strong>Streamlit</strong> dashboard for side-by-side review of outputs, sources, and evaluation scores.</p><p><strong>Outcome:</strong> SMEs reported <strong>~60% less time</strong> to screen and digest new studies, largely because structured outputs front-loaded the essentials and made it easy to spot where deeper reading was (or wasn’t) needed.</p><h3>3) Our Evaluation Approach</h3><p>We designed evaluation for <strong>speed, coverage, and credibility</strong> — fast enough for daily iteration, broad enough to catch frequent regressions, and credible enough for experts to trust.</p><h3>Metrics and tooling</h3><p>We used <strong>DeepEval</strong> to automate core judgments:</p><ul><li><strong>Answer Relevancy</strong> — is the output on-topic for the prompt?</li><li><strong>Contextual Relevancy</strong> — did retrieval surface relevant passages?</li><li><strong>Faithfulness / Hallucination</strong> — is the answer supported by retrieved context (no invented claims)?</li><li><strong>Prompt Alignment</strong> — rubric-scored completeness/format using a <strong>G‑Eval</strong> style judge for custom criteria.</li></ul><p><strong>Judge model &amp; cost.</strong> To keep evaluation affordable, we used <strong>gpt‑4o‑mini</strong> as the <strong>LLM‑as‑a‑judge</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*u8ccXT9ZWs2t8zamRzcf3w.png" /></figure><blockquote><strong><em>Tip:</em></strong><em> Evaluation can become a </em><strong><em>significant cost center</em></strong><em> at scale. Cache identical cases, batch requests, and tier your evals (light checks on every commit; heavy evals on release candidates).</em></blockquote><h3>Human-in-the-loop</h3><p>Automated scores helped us <strong>iterate daily</strong>, but we anchored quality with <strong>SME review on stratified samples</strong> (by topic, study year, and output confidence). SMEs labeled <strong>correctness</strong>, <strong>omissions</strong>, and <strong>actionability</strong>. We tuned thresholds and rubrics to line up model-graded scores with SME judgments — our guard against judge drift.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BXu4QIBobue5tfeQrafx6g.png" /></figure><h3>Transparency for experts</h3><p>The Streamlit UI exposed:</p><ul><li>Inline citations with source links</li><li>Metric scores with <strong>reasons</strong></li><li>A compare view for models/prompts across the <strong>same test set</strong></li></ul><p>That last feature — the <strong>A/B diff</strong> on fixed cases — made it obvious when a “prompt improvement” actually regressed faithfulness or relevancy.</p><h3>4) The Broader Evaluation Landscape</h3><p>No single tool does it all. We used DeepEval at the core, but we also mapped alternatives you can mix-and-match:</p><ul><li><strong>HELM (Stanford CRFM)</strong> — holistic, reproducible framework with leaderboards and multi-metric reports.</li><li><strong>Ragas</strong> — purpose-built for RAG evaluation with retrieval and generation metrics.</li><li><strong>LM Evaluation Harness (EleutherAI)</strong> — mature harness for few-shot eval across academic benchmarks.</li><li><strong>TruLens</strong> — instrumentation + feedback functions for in-app evaluation and trace-level observability.</li><li><strong>Promptfoo</strong> — CLI/CI tool for prompt &amp; agent testing (scenario matrices, LLM-as-a-judge scoring).</li><li><strong>OpenAI Evals</strong> — hosted/API approach for teams building on OpenAI.</li></ul><h3>A note on LLM‑as‑a‑judge reliability</h3><p>LLM‑graded evaluations scale quickly, but they’re <strong>not infallible</strong>. Use explicit rubrics, sample multiple judgments, and re-anchor with SMEs each iteration.</p><h3>5) Lessons Learned &amp; Recommendations</h3><ul><li>Hybrid evaluation is essential Automated metrics got us fast feedback loops; <strong>human audits kept us honest</strong>.</li><li>Retrieval quality is often the real bottleneck Fixing retrieval improved hallucination scores without touching the generator.</li><li>LLM‑as‑a‑judge works — <strong>with calibration</strong> Structured rubrics and multi-judge sampling reduce variance.</li><li>Evaluation costs add up — budget and engineer for them Cache, batch, and tier your evals.</li><li>Governance matters as much as metrics Version datasets, prompts, retrievers, and models; wire evals into CI/CD.</li></ul><h3>6) Conclusion &amp; Future Outlook</h3><p>Evaluation is a <strong>continuous process</strong>, not a one‑off report. DeepEval let us integrate fast, explainable feedback into our workflow — turning subjective SME judgments into quantitative metrics.</p><p>By pairing DeepEval automation with human review and governance discipline, we shortened SME screening time by about <strong>60%</strong>, improved traceability, and built a repeatable pattern for other R&amp;D domains.</p><h3>References</h3><ul><li><strong>HELM (Stanford CRFM)</strong>: <a href="https://crfm.stanford.edu/helm/index.html">Website</a>, <a href="https://crfm-helm.readthedocs.io/en/latest/">Docs</a>, <a href="https://github.com/stanford-crfm/helm">GitHub</a></li><li><strong>OpenAI Evals</strong>: <a href="https://github.com/openai/evals">GitHub</a>, <a href="https://platform.openai.com/docs/guides/evals">Guide</a></li><li><strong>DeepEval</strong>: <a href="https://deepeval.com/docs/metrics-answer-relevancy">Answer Relevancy</a>, <a href="https://deepeval.com/docs/metrics-contextual-relevancy">Contextual Relevancy</a>, <a href="https://deepeval.com/docs/metrics-llm-evals">G‑Eval</a>, <a href="https://github.com/confident-ai/deepeval">GitHub</a></li><li><strong>Ragas</strong>: <a href="https://docs.ragas.io/en/stable/concepts/metrics/available_metrics/">Metrics</a>, <a href="https://arxiv.org/html/2309.15217v2">Paper</a></li><li><strong>LM Evaluation Harness</strong>: <a href="https://github.com/EleutherAI/lm-evaluation-harness">GitHub</a>, <a href="https://www.eleuther.ai/projects/large-language-model-evaluation">Overview</a></li><li><strong>TruLens</strong>: <a href="https://github.com/truera/trulens">GitHub</a>, <a href="https://www.trulens.org/component_guides/evaluation/">Docs</a></li><li><strong>Promptfoo</strong>: <a href="https://github.com/promptfoo/promptfoo">GitHub</a>, <a href="https://www.promptfoo.dev/docs/intro/">Docs</a></li><li><strong>LLM‑as‑a‑Judge reliability &amp; bias</strong>: <a href="https://arxiv.org/abs/2412.12509">Schroeder &amp; Wood‑Doughty, 2024–2025</a>; <a href="https://aclanthology.org/2024.emnlp-main.474/">EMNLP 2024 bias study</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2d3bc6f5699f" width="1" height="1" alt=""><hr><p><a href="https://medium.com/enefitit/why-llm-evaluation-matters-building-reliable-ai-for-industrial-applications-2d3bc6f5699f">Why LLM Evaluation Matters: Building Reliable AI for Industrial Applications</a> was originally published in <a href="https://medium.com/enefitit">enefitit</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Forecasting Models in Production: Why Precision Alone Isn’t Enough]]></title>
            <link>https://medium.com/enefitit/forecasting-models-in-production-why-precision-alone-isnt-enough-cd927102b9de?source=rss----b0c2598721c4---4</link>
            <guid isPermaLink="false">https://medium.com/p/cd927102b9de</guid>
            <category><![CDATA[data-engineering]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[forecasting]]></category>
            <category><![CDATA[mlops]]></category>
            <category><![CDATA[business-value]]></category>
            <dc:creator><![CDATA[Jorge Javier Garcia Ruiz]]></dc:creator>
            <pubDate>Tue, 04 Nov 2025 08:44:12 GMT</pubDate>
            <atom:updated>2025-11-04T08:44:11.566Z</atom:updated>
            <content:encoded><![CDATA[<h3>How Not to Train Your Dragon (or Your Model)</h3><p>Lessons on Forecasting, Reproducibility, and Business Value from the Trenches of ML Deployment</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*T6iWD1kbynjQL6eaaw3_mw.jpeg" /><figcaption>Photo by <a href="https://unsplash.com/@lukechesser?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Luke Chesser</a> on <a href="https://unsplash.com/photos/graphs-of-performance-analytics-on-a-laptop-screen-JKUTrJ4vK00?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Unsplash</a></figcaption></figure><h3>Introduction</h3><p>Forecasting models are at the heart of many modern businesses. Retailers rely on them to predict demand, streaming services to recommend content, and logistics companies to optimize supply chains. Yet, building a forecasting model that works in production is rarely just about data and algorithms. It’s about the invisible details of workflow orchestration, reproducibility, and — most importantly — aligning precision with business outcomes.</p><p>Even when using sophisticated tools like <strong>Argo Workflows</strong> to orchestrate training pipelines, teams encounter pitfalls that can derail projects. From late-stage discoveries about model accuracy to hidden data transformations and inconsistent training environments, these challenges are less about technical feasibility and more about process and priorities.</p><p>This article explores key difficulties that <strong>ELAB</strong>, the R&amp;D team at <strong>Enefit</strong>, has faced when training forecasting models — and the lessons organizations can learn from those experiences. Along the way, we’ll look at how companies like Google, Uber, and Netflix have approached similar challenges, and why the pursuit of ever-greater precision must be balanced against the realities of business value.</p><h3>Business Use Case</h3><p>At <strong>Enefit</strong>, our R&amp;D unit has been developing a model to forecast <strong>prosumer energy behavior</strong>, with a focus on predicting energy consumption patterns. The current forecasting model originated from a <a href="https://www.kaggle.com/competitions/predict-energy-behavior-of-prosumers"><strong>Kaggle competition</strong></a> hosted by Enefit, where participants were challenged to design the most accurate predictive model.</p><p>Deploying the winning model into production at scale, however, introduced a new set of challenges. The model relies on multiple data sources — including <strong>historical weather forecasts</strong> and <strong>prosumer production and consumption data</strong> — all of which must be aggregated and synchronized. As is common in machine learning workflows, the pipeline involves several stages of <strong>data preprocessing</strong>, <strong>feature engineering</strong>, and <strong>model training</strong>.</p><p>The project followed an <strong>Agile development approach</strong>, which brought flexibility but also added layers of complexity. Iterative cycles meant that data sources, validation criteria, and even infrastructure components evolved alongside the model. While this allowed for rapid experimentation and adaptation, it also required strong coordination between data scientists, engineers, and product stakeholders to ensure alignment across iterations.</p><p>For real-time predictions, a <strong>REST API</strong> was developed to serve results from the trained model.</p><p>The technical stack behind this setup combines several open-source and cloud-friendly tools:</p><ul><li><strong>Airbyte</strong> for Extract, Load, and Transform (ELT) operations, managing data ingestion and synchronization across systems.</li><li><strong>Argo Workflows</strong> for orchestrating complex training pipelines and automating retraining processes.</li><li><strong>FastAPI</strong>, a Python framework, for deploying the trained model as a REST API endpoint to deliver predictions efficiently.</li></ul><p>This combination of tools and methodologies enabled the team to move from experimental modeling to a production-ready forecasting system — while highlighting the operational and organizational challenges discussed in the following sections.</p><h3>1. Start with a Simple Model and Get Infrastructure Right</h3><p>Teams sometimes postpone precision and validation checks until late in the pipeline, forcing painful refactoring. This can happen because not all components — such as data aggregation or feature engineering — are ready early on. But delaying evaluation is like losing sight of your destination while already at sea.</p><blockquote><strong><em>Lesson:</em></strong><em> </em>Build validation early into the training cycle.</blockquote><p>Google’s best practices in machine learning highlight that unpredictability is inherent to ML. It is therefore wise to test the infrastructure independently of the models. Starting with a simple model allows teams to validate the pipeline, establish baseline metrics, and create a behavioral benchmark that future, more complex models can be tested against.</p><h3>2. The Hidden Layer: Data Transformation Visibility</h3><p>When data aggregation or cleaning code lives outside the main model pipeline, data scientists lose visibility. In our team’s case, this became evident when we added transformations to our <strong>Airbyte data connectors</strong> — a solution primarily managed by engineers. While practical, it made debugging data-related issues more difficult for data scientists.</p><blockquote><strong><em>Lesson:</em></strong><em> </em>Transparent preprocessing — through feature stores or unified data pipelines — avoids silent mismatches.</blockquote><p>Uber has noted publicly that data engineering is one of the hardest and most important parts of machine learning. Modelers spend significant time building and maintaining pipelines that deliver reliable features to production systems. To support this, Uber developed data infrastructure solutions such as <strong>Apache Hudi</strong> to improve efficiency, consistency, and latency.</p><p>Similarly, <strong>Airbnb’s feature store Chronon</strong> ensures that transformations are versioned, visible, and reusable across teams — a model worth emulating for any organization operating at scale.</p><h3>3. Reproducibility Across Environments</h3><p>Training locally versus through <strong>Argo Workflows</strong> can introduce discrepancies. Debugging differences between environments consumes valuable time. While this may not always be common, in our case maintaining both environments facilitated handovers to other technical teams, such as those using <strong>Posit</strong> instead of Argo Workflows.</p><p>In the context of AI, <em>reproducibility</em> refers to the ability to achieve the same or similar results using the same dataset and algorithm within the same environment.</p><blockquote><strong><em>Lesson:</em></strong><em> </em>Enforce containerization, pin dependencies, and maintain a single source of truth for model training.</blockquote><p>IBM’s <em>Core Principles of MLOps</em> emphasize that reproducible experiments and deployments make debugging, sharing, and result comparison far easier. This not only promotes transparency but also strengthens collaboration between data scientists and engineers.</p><h3>4. When Small Differences Don’t Matter</h3><p>Teams often burn time reconciling tiny numerical discrepancies between environments. In our case, training produced slightly different results in both environments — a difference of about <strong>0.05</strong>, small enough to have no business impact. Spending additional time troubleshooting this variation would not have changed outcomes meaningfully.</p><blockquote><strong><em>Lesson:</em></strong><em> </em>Accept tolerances where results don’t affect business outcomes. Define what counts as a “material difference.”</blockquote><p>Financial and insurance companies often establish tolerance thresholds for their models. As long as key risk indicators or KPIs remain stable, small deviations are accepted as normal system variance rather than issues to be fixed.</p><h3>5. Precision vs. Business Value</h3><p>Improving accuracy has diminishing returns if it isn’t tied to business metrics. It’s easy to obsess over incremental improvements, but the key question remains: <em>does higher precision translate into more revenue, efficiency, or satisfaction?</em> If not, it may be smarter to focus resources elsewhere.</p><blockquote><strong><em>Lesson:</em></strong><em> </em>Ask: When does higher precision translate into money or impact?</blockquote><p>In our case, precision is indeed important for forecasting <strong>prosumer energy consumption</strong>, but small differences between environments did not meaningfully affect business outcomes. Rather than investing time aligning every environment perfectly, we decided to standardize on one and focus efforts on iterative improvement.</p><p>However, it’s worth recognizing that in some domains, precision can have a direct and measurable business effect:</p><ul><li><strong>Netflix:</strong> Their recommendation model isn’t “perfect.” Beyond a certain level, higher precision doesn’t improve engagement enough to justify the cost of optimization.</li><li><strong>YouTube:</strong> Balances precision with serendipity. Too much accuracy reduces discovery and long-term user retention, so controlled randomness becomes part of the design.</li></ul><h3>The Role of MLOps Platforms</h3><p>Many of the challenges discussed — fragmented data pipelines, inconsistent training environments, and the difficulty of maintaining transparency across teams — point toward the need for more integrated tooling. This is where <strong>MLOps platforms</strong> can make a real difference.</p><p>End-to-end MLOps platforms such as <strong>Kubeflow</strong>, or managed services like <strong>Databricks</strong>, <strong>Azure ML</strong>, and <strong>AWS SageMaker</strong>, are designed to unify the machine learning lifecycle — from data ingestion and feature management to experimentation, deployment, and monitoring. These platforms help replace loosely connected scripts and standalone orchestrators with standardized pipelines, built-in version control, and automated retraining workflows.</p><p>For teams like ours at <strong>Enefit</strong>, such platforms offer a clear path toward reducing operational friction. By combining orchestration, experiment tracking, and deployment in one place, MLOps platforms make it easier to reproduce results, measure performance consistently, and scale models confidently into production.</p><p>While open-source tools like <strong>Argo Workflows</strong>, <strong>Airbyte</strong>, and <strong>FastAPI</strong> provide flexibility and control, a consolidated MLOps platform can help organizations evolve toward greater automation, governance, and business impact — aligning with the ultimate goal of turning data science into dependable production systems.</p><h3>Conclusion</h3><p>Forecasting models rarely fail because the math is unsound — they fail because the <em>process</em> around them is fragile. Late validation, invisible data transformations, inconsistent environments, and the endless pursuit of marginal precision all point to the same lesson: success in machine learning depends as much on discipline and alignment as it does on algorithms.</p><p>The companies that excel — from Google to Netflix to Airbnb — do so not because their models are flawless, but because they know when accuracy matters, when transparency matters, and when business value matters most of all.</p><p>The takeaway is simple: precision is necessary, but not sufficient. To build forecasting systems that endure, teams must measure early, make processes visible, standardize environments, accept tolerances where appropriate, and — above all — tie every improvement back to impact.</p><p>References:<br><a href="https://developers.google.com/machine-learning/guides/rules-of-ml#rule_4_keep_the_first_model_simple_and_get_the_infrastructure_right">https://developers.google.com/machine-learning/guides/rules-of-ml#rule_4_keep_the_first_model_simple_and_get_the_infrastructure_right</a></p><p><a href="https://www.chronon.ai/">https://www.chronon.ai/</a></p><p><a href="https://hudi.apache.org/">https://hudi.apache.org/</a></p><p><a href="https://www.ibm.com/think/topics/mlops#:~:text=By%20maintaining%20distinct%20versions%20of,reliability%20of%20their%20ML%20solutions">https://www.ibm.com/think/topics/mlops#:~:text=By%20maintaining%20distinct%20versions%20of,reliability%20of%20their%20ML%20solutions</a>.</p><p><a href="https://www.kaggle.com/competitions/predict-energy-behavior-of-prosumers">https://www.kaggle.com/competitions/predict-energy-behavior-of-prosumers</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=cd927102b9de" width="1" height="1" alt=""><hr><p><a href="https://medium.com/enefitit/forecasting-models-in-production-why-precision-alone-isnt-enough-cd927102b9de">Forecasting Models in Production: Why Precision Alone Isn’t Enough</a> was originally published in <a href="https://medium.com/enefitit">enefitit</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Climate Neutrality Scenarios in Estonia]]></title>
            <link>https://medium.com/enefitit/climate-neutrality-scenarios-in-estonia-8bec6934791b?source=rss----b0c2598721c4---4</link>
            <guid isPermaLink="false">https://medium.com/p/8bec6934791b</guid>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[energy]]></category>
            <dc:creator><![CDATA[Brigitta-Robin Raudne]]></dc:creator>
            <pubDate>Fri, 27 Jun 2025 12:10:29 GMT</pubDate>
            <atom:updated>2025-06-27T12:10:29.055Z</atom:updated>
            <content:encoded><![CDATA[<p>All countries in the EU aim to be climate neutral by the year 2050. This means achieving net zero greenhouse gas emissions. Most of these emissions come from the energy sector, so it is crucial to invest in renewable resources. Green energy can be produced from naturally replenished resources like sunlight, wind, water, and biomass.</p><p>The goal of our study is to quantify exactly how much investment is required in each type of renewable production unit so that Estonia can cover its future electricity needs on a net-zero basis, with minimal total cost. To achieve this, we developed an optimization model that finds the least cost combination of new solar, wind, bioenergy and battery capacity while ensuring supply always meets demand. The model draws on three key inputs: hourly consumption profiles, renewable generation availability and cross-border transfer limits, to determine the optimal investments.</p><h3>Current State in Estonia</h3><p>In Estonia, by the end of the year 2024 the total installed capacity for renewables stood at 2 314 MW. Solar and wind together account for most of that capacity, but they produce energy only under favorable weather conditions. Biomass and biogas plants, in contrast, can be dispatched more flexibly, which helps smooth out fluctuations. To reach climate neutrality, we cannot simply add more weather dependent generators, we must also ensure that energy storage and dispatchable resources grow in step with variable renewables.</p><figure><img alt="Estonian Green Energy Capacity in 2024" src="https://cdn-images-1.medium.com/max/574/1*nO3qOhTclpH_L2bbkyc2ZA.png" /><figcaption>Estonian Green Energy Capcity in 2024</figcaption></figure><p>In 2024 Estonia’s electricity consumption was 8.26 TWh. The Ministry of Climate and the Estonian Business and Innovation Agency originally projected this could climb to about 15 TWh by 2035, but grid-operator Elering analyses cap demand at roughly 11 TWh by 2030. This would imply moderate growth to around 12 TWh in 2035. Looking further ahead, the “Energy Efficiency 2050 Roadmap” sees demand rising by 146 % over 2019 levels to 18 TWh in 2050. For a more conservative, efficiency-driven pathway we will assume that consumption grows to 15 TWh by the year 2050. Given this substantial rise in demand and relatively low existing renewable capacity, there’s a need for more capacity. We need to analyze the investment prices for each production unit and find the best scenario to cover all the forecasted consumption in the future with minimal investment and operational costs.</p><h3>Costs</h3><p>To get the investments costs for different production types, we will look at the most recent projects held in Estonia. In 2024, Sunly started construction of the Risti Solar PV Plant, a 244 MW project in Estonia that is the largest solar park in the Baltics. This investment cost 125 million euros, which means 512 k€/MW. The new Sopi-Tootsi wind and solar park opened in Estonia in 2025. It has 38 of 6.8 MW wind turbines, that cost over 200 million euros. Eesti Energia invested 19.6 million euros to the 26.5 MW / 53.1 MWh battery energy storage system located at the Auvere industrial power plant, which started operating at the beginning of 2025. We set biomass capex at 2 127 €/kW,<strong> </strong>based on two European estimates: 2 700 €/kW from the EU’s research centre and 2 011 €/kW from a recent 50 MW demonstration project. Operating costs are 190 €/MWh for biomass, 100 €/MWh for biogas and battery discharge at 50 €/MWh. Import is 87 €/MWh, which is the average NordPool’s DA price in 2024. We assign exports a value of 1 €/MWh to discourage the model from overproducing just to sell surplus power.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/568/1*Wf_XW4iEjUzSZoQZVSIOyA.png" /><figcaption>Investment Costs</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/568/1*mlkSBEpAjsslGdIVVML0XQ.png" /><figcaption>Operational Costs</figcaption></figure><h3>Cross-border transfers</h3><p>Because Estonia is synchronously connected and trades electricity with Finland and Latvia, we examine their existing and projected capacities to understand how much Estonia might import or export under various circumstances. If Finland or Latvia add large amounts of wind or solar, that will influence Estonia’s ability to rely on imports during periods of low domestic generation. According to the latest projections, Finland’s wind capacity will grow from roughly 8.4 GW today to about 77.7 GW by 2050, and Latvia plans to expand its solar PV from 0.7 GW to nearly 5.8 GW over the same period. Such rapid buildouts of variable renewables will give Estonia much greater import flexibility during domestic shortfalls.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/568/1*0_1tTrTv3gbgQ7KZc9iv3g.png" /><figcaption>Finland Green Energy Capacity Forecast</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/568/1*BeO9JNmpMmYg09DxDTljfw.png" /><figcaption>Latvia Green Energy Capacity Forecast</figcaption></figure><p>Because Finland and Latvia have already committed to substantial wind and solar rollouts by 2040, their surplus production potential during windy or sunny days will provide import opportunities for Estonia. Conversely, when their renewables are scarce, Estonia can export its surplus biomass or hydropower output, or even store energy in batteries until later. We do have to consider export and import limits. Currently, EstLink 1 has a capacity of 350 MW, and EstLink 2 has a capacity of 650 MW, totaling 1000 MW. These connections allow Estonia to import and export with Finland up to 1 GW of electricity. In 2035, Estlink 3 is planned to start operating which gives an additional 700 MW of capacity. With Latvia, there are three 330 kV AC lines, that give 1.4 GW of transfer capacity. In 2030, there’s planned a new HV interconnector, that has 1 GW capacity. By early 2030s, the Estonia and Latvia capacity could reach 2.4 GW, if the 1 GW project goes through as planned.</p><h3><strong>Model</strong></h3><p>Our model brings investment sizing and operational dispatch into a single cost-minimization framework. It jointly selects how much new solar, onshore wind, bioenergy and battery capacity to install, respecting realistic lower and upper bounds on each technology, while simultaneously simulating hourly generation, storage charging and discharging, and cross-border flows over a representative year. To capture the demand side, we use Estonia’s 2024 load profile (8.26 TWh) projected upward to 12 TWh in 2035 and 15 TWh in 2050. Supply availability for solar and wind comes from 2024 hourly capacity‐factor data, while biomass and biogas are treated as fully dispatchable up to their installed limits and hydro is capped at its 8 MW nameplate. Finally, imports and exports are constrained by the 1.7 GW and 1.4 GW interconnectors to Finland and Latvia. They are valued at prevailing market rates, ensuring the optimizer finds the least-cost combination of new capacity and hourly dispatch that meets Estonia’s future needs. In the optimization, capacity variables for solar and wind are unconstrained above a minimum of their current capacities to prevent trivial zero solutions, while biomass is bound between 152 and 1 000 MW, biogas is fixed at 5 MW, and hydropower remains at 8 MW. Battery capacity is constrained to be at least 1 MW but otherwise unbounded. Once capacities are chosen, the model enforces that hourly generation cannot exceed the product of capacity and the capacity factor (for solar/wind), or the installed capacity (for biomass/biogas). We also require that total generation over the year meets or exceeds total annual demand. The battery’s state of charge evolves each hour according to charge/discharge actions and a round-trip efficiency of 95 percent, with a maximum charge/discharge rate of half the nameplate capacity per hour. Exports and imports are each constrained by hourly limits derived from interconnectors with Finland and Latvia, so that the model cannot unrealistically rely on infinite cross-border transfers.</p><p>The optimizer works by minimizing a single composite cost that combines upfront investments and all future operating expenses. Upfront investments carry weight α = 0.05 — reflecting a 20-year asset lifetime — while operating costs (fuel, imports, exports and battery cycling) carry the remaining 0.95. This structure captures the long-term impact of ongoing expenses without ignoring the importance of initial capital outlays.</p><h3>Results</h3><p>When we run this model for the year 2035 (when consumption might be around 12 TWh), the optimizer surprisingly allocates almost all new capacity to onshore wind, pushing from 694 MW today to over 14 GW, while solar capacity rises only by 1.5 GW. That happens because the combination of our weight on investment and modest operating costs makes wind cheaper per kW against the assumptions we used. Biomass maxes out at its 1 GW limit and batteries scale up to roughly 17 GWh of energy. By 2050, as demand climbs further to 15 TWh, wind edges up again to nearly 20 GW and storage to 27 GWh, and solar capacity rises with additional 100 MW. In the 2050 scenario, capacities increase only modestly compared to the 2035 projections.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/568/1*Rg8c29-V0DUxE_Sk8p1Y7A.png" /><figcaption>Optimized Capacity Forecast in Estonia</figcaption></figure><p>In 2035, the model projects total generation of 16.3 TWh — roughly 35 % above the 12 TWh consumption level. That substantial surplus translates into larger volumes of electricity being exported and greater use of battery storage to capture excess output for later use. Seasonal output patterns dominate both the 2035 and 2050 dispatch profiles. Wind turbines deliver their highest generation in the winter months, while solar PV peaks during long summer days. As a result, biomass plants shoulder most of the load in February and March, precisely when wind and solar fall short, across both horizons. In 2050, projected exports are lower than in 2035, reflecting the fact that overall capacity grows only modestly after 2035. With less surplus generation available, export volumes shrink accordingly.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*pHC6iYEI63rYinRotb5Q3A.png" /><figcaption>Optimized Production Forecast in 2035</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*luxC1-bEhQMuT3IExVW7Yw.png" /><figcaption>Optimized Production Forecast in 2050</figcaption></figure><p>One compelling insight is how sensitive the optimal investment plan is to changes in cost or capacity assumptions. For example, if we would raise the price for wind onshore from 784 000 €/MW to 1 000 000 €/MW, the model reallocates capacity away from wind in favor of additional solar. And because our scenarios already push bioenergy right up to its tight capacity cap, loosening or tightening that limit produces disproportionately large changes in the recommended build-out.</p><p>These dynamics underline how investment decisions cannot be made in isolation. Policymakers must consider future trajectories of neighbor-country renewables, anticipated carbon‐pricing escalations, and expected improvements in storage technology costs. Our optimization framework makes it straightforward to rerun “what-if” analyses: one need only update capex curves, import price paths, or hourly grid constraints to see how Estonia’s least-cost pathway shifts.</p><h3>Conclusion</h3><p>Although the current study focuses on solar, wind, biomass, biogas, hydro, and battery storage, a fully climate-neutral system may eventually require additional technologies. Potential extensions include green hydrogen production, large-scale pumped hydro and vehicle-to-grid schemes that treat electric vehicles as distributed storage assets. Each of these adds complexity to the optimization, introducing non-linearities or multi-year intertemporal coupling.</p><p>As Estonia edges closer to its 2050 ambition, transparent, data-driven tools of this sort will be indispensable. By publishing our article, and detailed assumptions, we aim to provide a clear roadmap for decision makers, investors, and researchers alike. The result is a replicable process that ensures every euro spent on clean energy infrastructure is deployed where it delivers the greatest benefit — economically, environmentally, and societally.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8bec6934791b" width="1" height="1" alt=""><hr><p><a href="https://medium.com/enefitit/climate-neutrality-scenarios-in-estonia-8bec6934791b">Climate Neutrality Scenarios in Estonia</a> was originally published in <a href="https://medium.com/enefitit">enefitit</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[What Does Innovation Mean to Me?]]></title>
            <link>https://medium.com/enefitit/what-does-innovation-mean-to-me-66223833fcb9?source=rss----b0c2598721c4---4</link>
            <guid isPermaLink="false">https://medium.com/p/66223833fcb9</guid>
            <category><![CDATA[smart-solutions]]></category>
            <category><![CDATA[energy-solutions]]></category>
            <category><![CDATA[energy-sector]]></category>
            <category><![CDATA[innovation]]></category>
            <category><![CDATA[energy]]></category>
            <dc:creator><![CDATA[Enefit IT]]></dc:creator>
            <pubDate>Wed, 18 Jun 2025 13:17:54 GMT</pubDate>
            <atom:updated>2019-10-25T12:22:41.338Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/680/1*IivVszg9VAqnSqE48j5Xow.jpeg" /></figure><blockquote>Written by: Hando Sutter | CEO</blockquote><p>For me, innovation means doing something differently. An example from daily life: when I clean my room with a brush and then at some point I turn on the vacuum cleaner. I clean up faster and more efficiently. But innovation can also be changing a business model in the energy sector. For quite a while now, Enefit is not the only electricity producer and seller in Estonia. For example, there is a roofing material that produces energy for your home.<strong> </strong>It’s a completely new business model and technology as conventional power plants, transmission cables, system operator and distribution grid for bringing electricity home are disappearing.</p><h4>I believe that everyone can be involved in innovation, no matter what is their job or job title</h4><p>Every day you can think about how you can do your job better. Aside from the area where I work, Uber is a good example of innovation. I use Uber everywhere in the world. For example, in Mexico, it is the same Uber as in Tallinn. The app is the same, you don’t even have to interact with a taxi driver or pay in cash, and everything is done with ease. In addition to convenience, the customer’s victory lies in the increased competition in the provision of taxi services, which leads to lower prices.</p><p>For me, one of the most powerful examples of innovation in recent times is the solar park currently being built in the United Arab Emirates. It is not a classic solar park, it produces steam from the sun. The steam is accumulated and then electricity is produced with conventional generators. So basically it’s a dispatchable solar power plant. At the same time, the production price of electricity produced there is significantly cheaper than the production price of electricity produced from oil shale, of course — this solar power plant is also located “a bit” more south of Estonia.</p><p>Another example of energy innovation: The offshore wind farm being developed on the coast of Scotland will produce hydrogen. With wind power, hydrogen will be produced and the energy is transmitted in the form of hydrogen. It is similarly stable, stored energy that can be used at the right time, not just when the wind is blowing.</p><h4>Closer to home and to Enefit</h4><p>We have one great project in Estonia mine. If this world’s largest oil shale mine is depleted at one point, we plan to recycle it as a pumped-storage hydroelectric power station. In other words, this is basically a large battery, the presence of which becomes more and more important as renewable energy is added to the energy system. We have thought about what will happen after the mine’s oil shale supply is depleted.</p><p><strong>It is a fact that Estonia has better access to power consumption data than any other EU country, perhaps even the best in the world. </strong>We are already using this data to provide useful services to people. But there is certainly more potential. In Estonia, more than 50% of our clients have spot packages in Estonia, which is more than in any other country in our region. <strong>The consumption of these customers can be cleverly managed and thereby help customers reduce costs.</strong> Similarly, smart consumption helps to reduce the environmental footprint, because if you consume more electricity at cheap hours, it will come largely from renewable sources.</p><p>I’ve been using Enefit’s Smart Home solution for over a year, it is a very good solution. This is exactly the direction in which the energy world of the future is heading. I can assure you that thanks to this solution, I have really saved on electricity costs by avoiding expensive hours. If I can control my own power consumption today via a mobile app, then in the future it will be algorithmic and the computer will do the work for us.</p><p>Enefit’s energy trading unit already uses an algorithmic trading tool to trade energy in the wholesale market. We have five markets where we can use it: the day ahead, intraday, balance and two frequency markets. Algorithmic trading is necessary as we have more and more production assets, including non-dispatchable renewable energy production, and an increasing number of consumer portfolios in different countries. Man and his brain are simply no longer sufficient to manage all of this, as there is an increasing amount of data to consider when making transactions. Hundreds of transactions are executed daily through algorithmic trading, and it allows us to more rationally offer our production assets to the market and, ultimately, to make the best deals for our customers.</p><h4><strong>When thinking about what prevents innovation, it is above all a matter of thinking openly</strong></h4><p>We are usually so busy with our routine and standard activities that it is difficult to think outside of the box. In fact, we should always be thinking that things can be done better. You don’t have to be afraid to do it differently. It also concerns cooperation. Today, as an energy company, we work with Microsoft to develop energy solutions for our customers. If we take the circle of Enefit’s partners today, it is significantly different than it was 10 years ago. We need to be open to any kind of cooperation with companies in different sectors, both start-ups, and large global companies. This is a good ground for innovation.</p><p>We need to encourage people to think with their own heads and experiment. On the one hand, every thought is worth thinking about, but from the whirlwind of many thoughts, we need to ensure that the best ideas are put into practice, otherwise, we will remain at the level of the story. We can be very agile, we have a lot of thoughts, we organize brainstorming — but at one point we have to decide where to contribute and move on. And then bring the result home. Agility, on the one hand, and very hard discipline, on the other hand, must go hand in hand to get somewhere, or else we will just dream. It is well written by Gary Pisano, a professor of business administration at Harvard in his article <a href="https://hbr.org/2019/01/the-hard-truth-about-innovative-cultures">The Hard Truth on Innovative Cultures (2019)</a>.</p><p>We are currently running an idea competition <a href="https://ideahub.enefit.com/">Enefit Idea Hub The Pitch</a>, where we are looking for good ideas on three topics: smart mobility, smart services, and smart city. <strong>One common denominator in these topics is that the energy world is becoming more complex. </strong>On the one hand, it is scary, on the other, it offers new opportunities. With the competition this year, we are looking for ideas on how to build a smart middle ground between energy producers and consumers. Five years ago, for example, cooperation between the automotive and energy sectors was not very necessary, today it seems to us to be indispensable. It is also necessary to bring into the energy industry ideas from other sectors, which can provide useful and life-enhancing solutions to our customers.</p><h4>In conclusion</h4><p>We are at a very exciting stage in the development of Enefit, where a lot is changing in our day-to-day activities and we have every opportunity to be a leader, not a drag. <strong>Innovation is not a word for us, but a daily activity to make our industry more efficient, but also to deliver better customer-oriented solutions.</strong> Everyone in Enefit and our partners today has the opportunity to create new products and solutions that will truly change the world of our customers in Estonia and beyond. This is a fierce opportunity and we will try to make it a reality together.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=66223833fcb9" width="1" height="1" alt=""><hr><p><a href="https://medium.com/enefitit/what-does-innovation-mean-to-me-66223833fcb9">What Does Innovation Mean to Me?</a> was originally published in <a href="https://medium.com/enefitit">enefitit</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>