<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Cristian Carretero Fernández</title>
    <description>The latest articles on DEV Community by Cristian Carretero Fernández (@cristiancarretero).</description>
    <link>https://dev.to/cristiancarretero</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4137980%2F1c2fd213-5ef7-418d-94e5-eedd0c99df90.jpg</url>
      <title>DEV Community: Cristian Carretero Fernández</title>
      <link>https://dev.to/cristiancarretero</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/cristiancarretero"/>
    <language>en</language>
    <item>
      <title>Building an ML Pipeline for 28M Telemetry Points: Lessons Learned</title>
      <dc:creator>Cristian Carretero Fernández</dc:creator>
      <pubDate>Tue, 22 Sep 2026 16:32:39 +0000</pubDate>
      <link>https://dev.to/cristiancarretero/building-an-ml-pipeline-for-28m-telemetry-points-lessons-learned-43ci</link>
      <guid>https://dev.to/cristiancarretero/building-an-ml-pipeline-for-28m-telemetry-points-lessons-learned-43ci</guid>
      <description>&lt;p&gt;Over the past months, I have been working on an end-to-end ML pipeline for stability analysis of perovskite solar cells. The goal: process large-scale outdoor telemetry data, detect anomalies early, and predict remaining useful life — all with explainable models.&lt;/p&gt;

&lt;p&gt;Here are the key lessons I learned building it.&lt;/p&gt;

&lt;h2&gt;
  
  
  The data challenge
&lt;/h2&gt;

&lt;p&gt;The dataset contained &lt;strong&gt;28 million high-frequency telemetry records&lt;/strong&gt; from outdoor solar cells. Raw storage was unmanageable for iterative analysis, so the first task was building a modular 9-stage data architecture:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Disk-to-disk streaming to avoid memory overflow&lt;/li&gt;
&lt;li&gt;Conversion to optimized Parquet format&lt;/li&gt;
&lt;li&gt;Empirical validation of every threshold (no magic numbers)&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;This alone reduced processing time from hours to minutes.&lt;/p&gt;

&lt;h2&gt;
  
  
  Modeling approach
&lt;/h2&gt;

&lt;p&gt;I combined three complementary techniques:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Unsupervised clustering (K-Medoids + PCA)&lt;/strong&gt; to map hardware anomalies without labels.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;XGBoost + survival analysis&lt;/strong&gt; for degradation tracking and RUL forecasting (final MAE: 4.8 days).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Dual Digital Twin&lt;/strong&gt; for early anomaly detection — one twin models expected behavior, the other flags deviations.&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  Why Explainable AI matters
&lt;/h2&gt;

&lt;p&gt;In physical systems, a black-box prediction is not enough. I integrated &lt;strong&gt;SHAP values&lt;/strong&gt; to diagnose root causes of failure. This allowed me to &lt;strong&gt;decouple reversible environmental effects&lt;/strong&gt; (humidity, temperature swings) from &lt;strong&gt;permanent structural fatigue&lt;/strong&gt; — a distinction that directly affects commercial viability assessment.&lt;/p&gt;

&lt;p&gt;Surrogate decision trees were added on top of SHAP for non-technical stakeholders.&lt;/p&gt;

&lt;h2&gt;
  
  
  Deployment
&lt;/h2&gt;

&lt;p&gt;Everything runs on a public &lt;strong&gt;Streamlit dashboard&lt;/strong&gt; with integrated explainability. Stack: Python, pandas, scikit-learn, XGBoost, PyArrow, Plotly.&lt;/p&gt;

&lt;h2&gt;
  
  
  What I would do differently
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Start with Parquet from day one. CSV is a trap at scale.&lt;/li&gt;
&lt;li&gt;Validate thresholds empirically before automating them.&lt;/li&gt;
&lt;li&gt;Treat explainability as a first-class requirement, not an afterthought.&lt;/li&gt;
&lt;/ul&gt;




&lt;p&gt;If you are working on similar problems in ML for physical systems, I would love to hear your approach.&lt;/p&gt;




&lt;p&gt;&lt;strong&gt;Note on data:&lt;/strong&gt; The telemetry data analyzed in this project was provided by the &lt;strong&gt;ParaSol platform&lt;/strong&gt; at the &lt;a href="https://www.emiliojuarez.es" rel="noopener noreferrer"&gt;Open Solar Stability (OSS) Lab&lt;/a&gt;, University of Zaragoza (Spain), and shared with the &lt;strong&gt;University of Seville&lt;/strong&gt; for collaborative research. The platform uses a Perovskino galvanostatic MPPT tracker and a calibrated POA reference cell. My contribution is the machine learning layer: data engineering, Digital Twin early screening, T80 survival tracking, RUL forecasting, and Explainable AI (SHAP).&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;About the author:&lt;/strong&gt; Cristian Carretero Fernández — Data Scientist &amp;amp; ML Researcher based in Seville, Spain. Physics &amp;amp; Materials Engineering background, MSc Data Science at UOC.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;GitHub: &lt;a href="https://github.com/cristian-carretero" rel="noopener noreferrer"&gt;github.com/cristian-carretero&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;LinkedIn: &lt;a href="https://www.linkedin.com/in/cristian-carretero-fernandez" rel="noopener noreferrer"&gt;linkedin.com/in/cristian-carretero-fernandez&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>machinelearning</category>
      <category>datascience</category>
      <category>python</category>
      <category>explainableai</category>
    </item>
  </channel>
</rss>
