<?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[Stories by Thomas Dhollander on Medium]]></title>
        <description><![CDATA[Stories by Thomas Dhollander on Medium]]></description>
        <link>https://medium.com/@thomas-dhollander?source=rss-4040a98aee2e------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*TTod83lHkcvN0vsxcQN31w.jpeg</url>
            <title>Stories by Thomas Dhollander on Medium</title>
            <link>https://medium.com/@thomas-dhollander?source=rss-4040a98aee2e------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 23 Nov 2026 20:17:15 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@thomas-dhollander/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[How to build a data refinery for IoT data]]></title>
            <link>https://thomas-dhollander.medium.com/how-to-build-a-data-refinery-for-iot-data-a3528c6cdaa5?source=rss-4040a98aee2e------2</link>
            <guid isPermaLink="false">https://medium.com/p/a3528c6cdaa5</guid>
            <category><![CDATA[data-governance]]></category>
            <category><![CDATA[time-series-analysis]]></category>
            <category><![CDATA[iot]]></category>
            <category><![CDATA[sensors]]></category>
            <category><![CDATA[data-quality]]></category>
            <dc:creator><![CDATA[Thomas Dhollander]]></dc:creator>
            <pubDate>Mon, 26 Feb 2024 13:19:34 GMT</pubDate>
            <atom:updated>2024-02-26T13:19:34.700Z</atom:updated>
            <content:encoded><![CDATA[<p><em>I wrote this post based on recent work with companies that are dealing with large volumes of IoT data, although most of it should be relevant outside of the IoT context too. Looking forward to hearing your feedback!</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*CkdzitWnOjp-3fL2Kf0n9A.png" /></figure><h3>Crossing the chasm in digital transformation</h3><p>As companies implement more use cases and even complete business model transformations based on data obtained from IoT devices, it is becoming paramount that <strong>a structural approach to data quality management of this data is needed</strong>. Too many companies are trying to scale their digital transformation on a foundation of poor-quality data, and this leads to a lot of frustration and very little actual business benefit.</p><p>Since I have been active in startups for more than a decade, I sometimes draw an analogy with the famous “Crossing the chasm” picture (from the book of Geoffrey Moore). Indeed, there are similarities to the challenge for startups to move from early innovators to adoption by a majority of the market. When applied to digital transformation, the challenge is in <strong>crossing the chasm from successful digital pilot projects to full scale implementations</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fiYINK8Bi4zb_BZrZUXe7g.png" /><figcaption>Many companies are unable to scale up digital transformation initiatives beyond the pilot stage. Image adapted from “Traversing the traction gap” by Bruce Cleveland.</figcaption></figure><p>Recent studies by industry firms such as LNS (in particular <a href="https://blog.lnsresearch.com/challenges-that-matter-top-three-reasons-your-industrial-analytics-will-fail">this post</a>) and Verdantix (“10 Predictions For Industrial Technologies”) confirm that <strong>data quality is one of the main inhibitors to scale industrial analytics</strong>. Put differently, the well-known “garbage in — garbage out” slogan still stands strong. Or, as Andrew Ng phrased it more recently:</p><blockquote>We don’t need better models, we need better data.</blockquote><h3>Understanding data quality</h3><p>Now, although data quality carries an intuitive meaning for most of us, in reality it is an elastic concept with several possible definitions. These can be narrower, for instance:</p><blockquote>Data is of good quality when it correctly represents the underlying real-world phenomenon that it is intends to describe.</blockquote><p>According to this definition data needs to be valid, accurate, consistent, and complete, etc. Another common, and equally useful, definition of data quality is as follows:</p><blockquote>Data is of good quality when it is fit for purpose.</blockquote><p>In this second definition aspects of data structuring, interpretability and contextualization come into the picture as well, to the extent that these are relevant for the intended use case.</p><h3>A refinery for IoT data</h3><p>Much like what is happening with the crude oil in a refinery, raw data that may be of bad quality can be refined. You can think of this as data that is passing a sequence of “quality gates” as shown below:</p><ul><li><strong>Gate 1: Accessible</strong><br>Data reaches this gate when it is available to use. This step requires successful connection to the data source and the ability to query/read samples.</li><li><strong>Gate 2: Structured and contextualized<br></strong>Data that passes this gate is structured and contextualized. For IoT data, this step usually means the device and asset metadata as well as other key context have been added.</li><li><strong>Gate 3: Verified<br></strong>A next step is quality verification of the data. At this point, data quality is assessed on a number of key dimensions including accuracy, consistency, and timeliness.</li><li><strong>Gate 4: Cleaned<br></strong>Assessing data quality is often not enough. Many data products require data cleansing as part of the pipeline to create data that is ready for consumption.</li><li><strong>Gate 5: Annotated<br></strong>In addition to cleaning and structuring, additional labels given by subject matter experts (SMEs) or data stewards may be necessary to make the data fit for use. For instance, the SME could label periods in which the asset is in shutdown or add root cause information after examining an issue.</li><li><strong>Gate 6: Validated<br></strong>For critical data such as data used in key reports or billing, it is often good practice to have a data steward explicitly validate the data and commit to the fact that is fit for use.</li><li><strong>Gate 7: Shared<br></strong>At this point, the data is ready for sharing. Sharing can happen internally or externally, with suppliers or customers.</li><li><strong>Gate 8: Visualized<br></strong>Data visualization and exploration is the next step. Analysts can study the data in PowerBI or similar descriptive analytics environments.</li><li><strong>Gate 9: Modeled<br></strong>Some data is used for modeling. This task is typically performed by a data scientist.</li><li><strong>Gate 10: Predicted<br></strong>Finally, models can be used to issue predictions on new incoming data.</li></ul><p>As the data passes the gates, it becomes more refined, more trustworthy, and more valuable. We can really think of this stepwise process as a “data refinery”, drawing on an analogy of an oil refinery or distillation process.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xHPfenRhltDyPZoV4wodwQ.png" /><figcaption>Refining data: an analogy of an oil refinery (distillation process).</figcaption></figure><p>In a real refinery, various products are produced. For instance, closer to the bottom of the distillation column components such as diesel and kerosene are produced for use in heavy trucks and jets. The lighter components like gasoline blending components used in cars are extracted towards the top of the distillation column.</p><p>Similarly, our data refinery may produce various <strong>data products. </strong>Not all of these products are equally refined. It is important that we know what to expect from each product, in terms of the data characteristics and quality. That’s right, we don’t want to accidentally put kerosine in our sports car!</p><h3>Data products taking center stage</h3><p>A moment of catharsis occurs when companies realize it is necessary to define the data products explicitly, as a layer in between the data infrastructure and the end user applications.</p><p>Data products are defined by <a href="https://www.linkedin.com/company/k2view/">K2view</a> as 𝘳𝘦𝘶𝘴𝘢𝘣𝘭𝘦 𝘥𝘢𝘵𝘢 𝘢𝘴𝘴𝘦𝘵𝘴 𝘵𝘩𝘢𝘵 𝘣𝘶𝘯𝘥𝘭𝘦 𝘥𝘢𝘵𝘢 𝘵𝘰𝘨𝘦𝘵𝘩𝘦𝘳 𝘸𝘪𝘵𝘩 𝘦𝘷𝘦𝘳𝘺𝘵𝘩𝘪𝘯𝘨 𝘯𝘦𝘦𝘥𝘦𝘥 𝘵𝘰 𝘮𝘢𝘬𝘦 𝘪𝘵 𝘪𝘯𝘥𝘦𝘱𝘦𝘯𝘥𝘦𝘯𝘵𝘭𝘺 𝘶𝘴𝘢𝘣𝘭𝘺 𝘣𝘺 𝘢𝘶𝘵𝘩𝘰𝘳𝘪𝘻𝘦𝘥 𝘤𝘰𝘯𝘴𝘶𝘮𝘦𝘳𝘴. These are referred to as “products” (instead of plain assets) because these are shaped to fulfill the needs of a consumer (Thanks <a href="https://medium.com/u/d3fa02dadf14">Wannes Rosiers</a> and <a href="https://medium.com/u/2acecde817db">janmeskens</a> for making this explicit).</p><p>The benefit of defining data products (and possibly a complete data mesh) lies in the fact that:</p><ol><li>Roles and responsibilities are more clearly defined, and</li><li>There is an explicit point of alignment between data producers and consumers in the landscape.</li></ol><p>When implemented successfully, <strong>data products can be instrumental in eliminating friction between data producers and consumers, helping data teams become proactive, </strong>and enabling full scale rollouts of digital initiatives.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wQXKk7XHgmAb8E1hBiwDeQ.png" /><figcaption>Firefighting when scaling use cases on IoT data without proper management of data products.</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*EpD7RoYnlya3SpxiXcsRHg.png" /><figcaption>Transitioning to a proactive approach with managed data products.</figcaption></figure><h3>Introducing the lead actors</h3><p>Now that I’ve set the scene and put the data products on stage, let’s introduce the lead actors in building a refinery for IoT data. I am not trying to describe the most extensive set of data related roles. Other writers have covered this topic well. See, for instance, this excellent <a href="https://medium.com/@willemkoenders/data-product-team-roles-and-responsibilities-d50c21925300">medium article</a> and <a href="https://www.linkedin.com/feed/update/urn:li:activity:7142908900193828864?utm_source=share&amp;utm_medium=member_desktop">this linkedin post</a> by <a href="https://medium.com/u/a754b81446b6">Willem Koenders</a>. Rather, I want to focus on the roles that are key in achieving a workable setup to the management of IoT data quality in practice. In my experience, these include the following:</p><h4>Role #1: The data platform engineer</h4><p>The data platform engineer has a facilitating role to the business. As a member of the data platform team, (s)he is a member of the IT organization and builds, operates, and maintains the supporting IT services that make up the data platform.</p><h4>Role #2: The data engineer</h4><p>The data engineer is embedded in the data platform team(s) and helps to build and maintain the pipelines in which the data is processed automatically. For instance, (s)he may use an orchestrator to put together building blocks that connect to IoT data in a given endpoint, integrate it with a meta data source, structure the data by adding the asset context, apply logic to mine feature and score data quality, and make the resulting enriched data available for the data steward.</p><h4>Role #3: The data steward</h4><p>The data steward acts as a gatekeeper with respect to the data quality of the data product. The steward is a domain / business expert rather than a developer or infra expert that decides when data quality is good enough. That means (s)he defines data quality scoring and is in charge of data validation. Even when data cleaning can (largely) be automated, it is often important to have an explicit commitment from the data steward that the data is fit for use.</p><h4>Role #4: The data analyst</h4><p>Data analyst roles may exist inside the product team, but more often analysts act as consumers / users of the data product. In this role, they query data from the data products using tools such as business intelligence applications. Analysts are also often trained to use SQL to query the serviced data directly.</p><h4>Role #5: The ML ops engineer</h4><p>The ML ops engineer is the counterpart of the data platform engineer, but with a specific responsibility for the machine learning infrastructure (instead of the data platform). Note that when platforms like Databricks are used, this responsibility may overlap with the data platform engineering responsibilities or system scope.</p><h4>Role #6: The data scientist</h4><p>Data science roles may exist as part of the data product team, for instance for data products that involve predictions or for mining usage data gathered from the data product itself. Data scientists may also be operating outside of the data product team, as consumers of the data product that use its data to build ML models. An example in IoT may be a team that builds predictive maintenance models using data from a data product that exposes core rotating asset data.</p><h4>Role #7: The ML engineer</h4><p>In larger teams, a specific role may exist to manage the ML models that the data scientists have created. In such scenarios, the ML engineer is responsible for managing the models throughout the model lifecycle, taking care of aspects of model deployment and model maintenance.</p><h3>Putting together the data refinery</h3><p>We can put all this together into an overall picture that looks like this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*RAeyLgVk0atEK98_NioyMA.png" /><figcaption>Data refinery —Data Ops vs. ML ops. Picture adapted from an image in <a href="https://www.linkedin.com/posts/aurimas-griciunas_mlops-machinelearning-dataengineering-activity-7146084671829839873-GArY?utm_source=share&amp;utm_medium=member_desktop">this post</a> by <a href="https://medium.com/u/fb17f1bbe169">Aurimas Griciūnas</a></figcaption></figure><h4>Value gates</h4><p>At the bottom, the stepwise data refinery steps (value gates)<em> </em>are depicted. As the data moves from left to right, it passes several quality gates to become more refined, more trustworthy, and more valuable. I want to stress again that not all steps are relevant for every data point in every data product.</p><h4>Platform teams</h4><p>One level above, the platform teams are depicted. They operate the platforms and IT services on top of which the data and ML ops pipelines can operate.</p><h4>Data pipeline</h4><p>In the middle section, the data engineer sets up the core pipelines for the automated data structuring and contextualization. The data steward then takes the output of the automated part and cleans, annotates and validates the data further as needed. The end result is one of happy analysts and data science consumers / users that can build on high quality data.</p><h4>Enabling teams</h4><p>Finally, the top layer in the picture adds the governance and support teams. These teams are an important part of the matrix structure around data products too. (A full discussion of their role falls outside the scope of this initial article. Soon, I hope to find the opportunity to write a separate post on the governance teams.)</p><h4>But where is the data product hiding?</h4><p>I can imagine that at this point you are wondering where the data product is hiding in all this. To clarify this, let’s take an alternative look at the at the same diagram from the perspective of a simple data product:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*afVkH5PkHkrVQQT9VmIdJg.png" /><figcaption>Data refinery — Data product team vs. data product consumers.</figcaption></figure><p>In this interpretation:</p><ul><li>The data engineer and data steward are team members of the data product team.</li><li>The analyst and data scientist are data product consumers external to the data product team.</li><li>The data infra roles are part of the platform team, facilitating multiple data products.</li><li>Similarly, the governance and support teams are assuming an overarching, enabling role.</li></ul><p><strong>The reality may be a bit more complex</strong> than the above picture, for a number of reasons:</p><ul><li>In practice, the data refinery <strong>process is often not completely linear as depicted here</strong>.</li><li><strong>Data products are dependent / nested</strong>. The predictions of the model that is created by the data scientist and operationalized by the ML engineer may become a data product in its own right.</li><li>Data analysts, data scientists, and ML engineers may also be part of <strong>larger, more complex data product teams</strong>. This happens when the data product includes ML / modeling steps, but also when the analysis of data (e.g. usage statistics) at a certain level becomes a must-have in the data product team.</li></ul><h3>Getting your feet wet</h3><p>Feeling a tad overwhelmed and unsure where to initiate the process? The positive takeaway is that embarking on this journey is more manageable than it seems. Here are a few tips to help you get started:</p><ul><li>Don’t look at a data product team as a set of people you need to hire. <strong>More likely these people are already part of your organization</strong> to whom you can assign a special extra responsibility. For smaller organizations and data products, it is possible that one person takes on more than one role.</li><li><strong>Start small but start now.</strong> A good starting point is often 1 or 2 people explicitly taking responsibility for a data product, supported by the IT organization and a cleverly selected toolset.</li><li>Consider the nature of the data. Some data quality tools can help you understand and manage specific data types. <strong>Choosing the right supporting tools often makes it easier for less technical people to combine multiple roles</strong> such as the data engineer and data steward role.</li></ul><h3>Data as a strategic asset</h3><p>People often talk about the strategic importance of data. Yet today, many IoT and manufacturing companies with sensor data at the heart of their operations don’t have the mechanisms in place to stay in control of the data. Governance initiatives by IT departments often ignore the importance of data products and data quality management for OT and IoT data.</p><p>If we want digital transformation initiatives to scale, we need to move from talking about<strong> </strong>(IoT) data as a strategic asset to actually treating it as one. Are you ready to lead the way?</p><p>Good luck!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a3528c6cdaa5" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Robust Detection of Stale Sensor Data: a Multi-Faceted Challenge]]></title>
            <link>https://thomas-dhollander.medium.com/robust-detection-of-stale-sensor-data-a-multi-faceted-challenge-bf9ed0609ef7?source=rss-4040a98aee2e------2</link>
            <guid isPermaLink="false">https://medium.com/p/bf9ed0609ef7</guid>
            <category><![CDATA[observability]]></category>
            <category><![CDATA[data-quality]]></category>
            <category><![CDATA[dataops]]></category>
            <category><![CDATA[time-series-analysis]]></category>
            <category><![CDATA[sensors]]></category>
            <dc:creator><![CDATA[Thomas Dhollander]]></dc:creator>
            <pubDate>Mon, 05 Jun 2023 07:43:31 GMT</pubDate>
            <atom:updated>2023-06-06T17:15:12.573Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*TO_GEz0MlFi_T8VkGYjiIA.jpeg" /></figure><p>When working on sensor data quality with our customers, <em>stale data </em>is a quality issue that stands out as an important artefact to detect at scale. <strong>Stale data refers to data that is outdated and therefore no longer reflects the current state of the system or phenomenon being measured</strong>. For example, if a sensor collects temperature data every hour, but there is a delay of several hours or days before the data is stored, then the data collected during that delay period is considered stale. As a result, analysis and decisions based on that outdated information could be inaccurate.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9OaOqH_w2bRSfEO_mJt6UA.png" /></figure><p>Stale data effectively causes data “downtime” that can have effects on various time scales. In some cases, stale data may cause adverse effects for operations almost instantly, such as:</p><ul><li>Energy losses</li><li>Equipment wear</li><li>Production or asset downtime</li></ul><p>Other effects become visible when the data is used days, weeks, months, or even years after collection. For instance:</p><ul><li>Incorrect environmental reports</li><li>Wrong billing to customers or suppliers</li><li>Suboptimal models for predictive maintenance (excessive false positives or false negatives)</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PZu2BrdDxYhINig0IwTmww.png" /></figure><p>In this piece, I will break down stale data into its substituents and illustrate that a seemingly simple topic like stale data has many facets and angles.</p><h3>Stale data causes and symptoms</h3><p>Stale data as defined above can have a variety of causes:</p><ul><li>Sensors are broken and are no longer issuing updates. This can result in temporary update delays and sometimes in permanent gaps in the data archive.</li><li>Sensors repeatedly transmit the same value, although the underlying physical property has changed. This situation iswhat we refer to as “stuck data”.</li><li>Data is “lost” in the data pipeline and leaves gaps in the data archive.</li><li>Unforeseen or abnormal delays in the data pipeline cause data to arrive late. When this happens occasionally, it gives rise to data that is temporarily stale.</li></ul><p>The picture below illustrates the different scenarios schematically:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZjnvxpUj3blKzZFUVj1jYg.png" /></figure><p>To detect and diagnose stale data, it is not sufficient to consider only one aspect. In fact, having combined knowledge on the presence of (temporary) update gaps, archival gaps, data delays and stuck data is extremely valuable in troubleshooting stale data issues. For instance, consider the scenario below:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DpVTzZfWNMiMLMNaZ8lsHQ.jpeg" /></figure><p>In this scenario, knowing that we had an update gap that partially got filled afterwards (with delayed data) is quite helpful. Typically, this type of information is lost in data archives, and naïve methods in detecting stale data do not provide the full picture either.</p><h3>Methods to detect stale data</h3><p>For each of the symptoms discussed above, detection methods of various degrees of sophistication can be used. The most suitable methods are those that strike a good balance between false positive and true positive detections while being easy to set up and maintain.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*n2lqaHpuruCoY7-B6S87Og.png" /></figure><h4><strong>Rule based detection</strong></h4><p>Rule based methods are the simplest detection methods. These methods work with hard coded thresholds on simple metrics. Rule based methods are useful when scale is limited and for metrics where absolute thresholds are easy to define.</p><blockquote>Example: “Interval between 2 subsequent data points in the data archive for series PI101.PV exceeds 10 seconds”.</blockquote><p>The challenges of these methods include:</p><ul><li>It is nontrivial to deploy the corresponding data pipelines at scale.</li><li>Manually configuring meaningful thresholds for each measurement quickly becomes infeasible and renders these methods <strong>difficult to scale</strong>.</li><li>They are often subject to many false positives and false negatives</li><li>Different thresholds may be required depending on the context.</li><li>Visualizing and understanding the results at scale is difficult.</li></ul><h4>Model based detection</h4><p>Model based methods compare key metrics with distributions obtained from the history of a sensor measurement, or across a fleet of sensor measurements. Model based methods are useful when scaling up your stale data analysis, and in situations where meaningful threshold values are difficult to determine.</p><blockquote>Example: “Interval between 2 subsequent data points in the data archive for series PI101.PV is abnormal compared to the statistical distribution of such intervals across all pressure measurements seen in the previous 6 months”.</blockquote><p>The challenges of these methods include:</p><ul><li>Efficient implementation requires handling incremental model updates and making the sensitivity configurable / adaptive.</li><li>Model based methods are often based on a concept of classical statistical significance,<strong> but significance does not always correspond to noteworthiness.</strong> For instance, an archival frequency of 6 seconds is highly significant when all samples in the training data have a fixed 5 second interval, but it might be much less interesting than an interval of 100 seconds for a measurement that usually updates every 5–10 seconds.</li><li>Context dependent models may be required for optimal performance.</li></ul><h4>Federated learning</h4><p>Methods that use federated learning compare key metrics with behaviors typically seen for similar sensors across industry, without the need of sharing the underlying data across company borders. Federated learning methods are useful to optimize trade-offs between specificity and sensitivity, and to benchmark data quality against industry practice.</p><blockquote>Example: “Interval between 2 subsequent data points in the data archive for series PI101.PV is not as expected for typical pressure measurements in this equipment type”.</blockquote><p>The challenges of these methods include:</p><ul><li>They require a hybrid (on prem — cloud) architecture for federation.</li><li>They need to be deployed with respect for data ownership and information security.</li><li>Appropriate segmentation and context-based grouping needs to be determined.</li></ul><h4>The role of context</h4><p>Note that it is important to appreciate the fact that the expected behavior of sensors may be very different depending on the context. For instance, it could be normal that a sensor flatlines during a maintenance task or a turnaround of a factory. Similarly, repeat values for a level may be very normal during a cool-off phase in a batch reactor, but quite abnormal during the filling phase. The ability to factor in context in a scalable manner is therefore important to consider as well.</p><h3>Bringing it all together</h3><p>The table below summarizes the different symptoms and detection methods, illustrating how stale data detection is a multi-faceted challenge.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*G7L4s3Ue-hkEyJdk8vYMFg.png" /></figure><p>When tackled well, the impact of a stale data detection system can avoid significant business impact, such as incorrect billing or reporting, faulty machine learning models, or even equipment wear, energy losses, and safety risks. However, when stale data detection is implemented in a naïve fashion, it does not scale and can generate many false positives that render it useless.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=bf9ed0609ef7" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Using your data lake as a cheap time series database: do’s and don’ts]]></title>
            <link>https://thomas-dhollander.medium.com/using-your-data-lake-as-a-cheap-time-series-database-fact-or-fiction-b78bff6b8cee?source=rss-4040a98aee2e------2</link>
            <guid isPermaLink="false">https://medium.com/p/b78bff6b8cee</guid>
            <category><![CDATA[iot]]></category>
            <category><![CDATA[time-series-analysis]]></category>
            <category><![CDATA[iot-platform]]></category>
            <category><![CDATA[data-lake]]></category>
            <category><![CDATA[time-series-database]]></category>
            <dc:creator><![CDATA[Thomas Dhollander]]></dc:creator>
            <pubDate>Fri, 25 Jun 2021 19:56:43 GMT</pubDate>
            <atom:updated>2021-06-26T08:21:34.089Z</atom:updated>
            <content:encoded><![CDATA[<p>Big players like Microsoft and Amazon offer inexpensive cloud-based solutions for organizational data storage known as data lakes, which have rapidly become a central component in the cloud strategy of many CIOs. The promise of these data lakes is significant indeed: to provide a centralized location for all data that is available to all types of users to explore and analyze according to their needs and use cases. In doing so, users can make data-driven decisions and build data-driven organizations. According to Market research firm <a href="https://cambashi.com/industrial-iot/">Cambashi</a>, which tracks the global market for industrial software, the IoT market is provide a rapidly increasing number of “connected applications” that deliver business value through analytics on the collected data.</p><p>In this post, I discuss the potential role of data lakes in handling massive time-series data from sensors in equipment and factories. This is a particularly relevant subset of data in manufacturing and more generally IoT, since the analysis of time-series data can reveal patterns that indicate likely failures and allow preventing them.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*JDHuTz-b89FmEjiT0ow1rA.png" /><figcaption>What does it take to equip your data lake for time series storage?</figcaption></figure><p><strong>Data Lakes For Time-Series Data: Getting The Expectations Right</strong></p><p>Process industry factories have been using data historian technology from vendors such as Aveva-OSIsoft to store sensor data for decades. With the rise of IoT, we witnessed a rapid increase in the time-series database market, and a set of new time series databases such as InfluxDB, Azure Kusto / TSI, and Amazon Timestream entered the playing field. These historians and time series databases feature specific engines with data models and query languages that are optimized for time-series data.</p><p>When dealing with massive amounts of sensor data, it’s certainly tempting to consider data lakes as a cheaper alternative to specialized time-series databases or as a replacement for classical enterprise data historians. However, if care isn’t taken, a data lake can quickly deteriorate into a data swamp, where users struggle to extract the right data, performance is insufficient and organizational expectations aren’t met. When considering adopting data lakes for time-series data, it is therefore important to align stakeholders to set realistic expectations, make requirements explicit and obtain a common understanding of the end goal.</p><p>To clarify this, let’s examine some of the key challenges that need to be overcome.</p><p><strong>1. Setting Up A Suitable Data Structure (For Good Analytics Performance)</strong></p><p>If users expect to work interactively with data, they’ll expect the data to be available where they need it, at the time they need it, with easy and quick access to it. Because of this, the first challenge is setting up a suitable data structure to obtain good read performance.</p><p>A common practice to improve read performance in data lakes is to use columnar file formats, allowing users to read data columns or properties that are needed for a specific case. Since the entire file wouldn’t have to be read, less data is loaded resulting in faster response times. Another approach is to use partitioning. This involves arranging data in folder-like structures using key properties, time or a combination of these depending on the data. This structure allows to quickly narrow down the space in which data is searched and to reduce query times.</p><p><strong>2. Minimizing Ingestion Delays (Options For Dealing With Recent Data)</strong></p><p>Depending on the specific requirements, another challenge you may face deals with writing all data into a data lake with minimal ingestion delays. Typical architectures only write to the data lake when a full file is ready for archival. Conceptually, this is an important difference from a typical setup where data streams writing to a historian or time-series data store directly.</p><p>To limit ingestion delays, consider storing the most recent data in an appendable file format such as CSV (as in a journal). Compacting jobs can then periodically transform these journals to a columnar format such as parquet that is more optimized for long-term storage and historical data analytics.</p><p>Another option is to use a hybrid setup with a different “hot storage” component. For instance, perhaps choose to adopt a more expensive time-series optimized storage solution for the running month (hot data) and transfer data to the data lake for long-term storage afterward (cold data). Some IoT platforms even facilitate automated offloading to your data lake for long-term storage out of the box.</p><p><strong>3. Providing The Connectivity For Advanced Analytics</strong></p><p>Given the fact that data lake storage is highly flexible, a good query layer can be instrumental in addressing a third challenge: making data in the data lake accessible for advanced analytics.</p><p>Query layers are tools or components in an organization’s data landscape that allow for writing standard SQL language queries against the data. This means any tool that has support for standard ODBC or JDBC connectivity can be used to connect to the data lake. In addition, some query layers leverage technologies such as Apache Arrow to further reduce query overhead and increase the efficiency of data access. Finally, query layers can be used to provide a unified interface on the colder data lake storage and a hot storage component in which the most recent data resides. Depending on the query layer component, this may be possible by configuration, thus lowering integration costs.</p><p><strong>4. Managing Metadata</strong></p><p>All too often it is assumed that a data lake will magically resolve challenges of data mapping. However, it remains important to address this challenge and explicitly consider data lineage, data age and metadata that provides common attributes/properties to link the data together.</p><p>Support for metadata management as part of the data lake offerings is improving, but it is still a factor that needs to be considered, especially when comparing with more domain-specific setups such as enterprise historians offered by OT vendors.</p><p><strong>The Right Place For A Data Lake In Your Landscape</strong></p><p>A data lake may be a great and cost-effective way to democratize your industrial IoT data; however, it is imperative to ditch the myth that a data lake is an inexpensive one-size-fits-all database. To some extent, optimizing a data lake for time-series data is reminiscent of building a simple time-series database on a cheap storage backend. Perhaps this approach is right for your company, but always keep in mind that understanding your organization’s data and aligning it with the expectations for its use is crucial in giving the data lake the right place in your landscape.</p><p>If you cannot afford the overhead of managing your own time series optimizations, the better option may be to adopt more out-of-the-box specialized time-series data storage, or go for a hybrid setup.</p><p><strong>Combining the best of both worlds</strong></p><p>Luckily, it seems that the future might be one where the benefits of both approaches can coexist to a certain degree. Recent announcements such as<a href="https://www.influxdata.com/blog/announcing-influxdb-iox/"> this one about InfluxDB-IOx</a> indeed hint at the possibility of future time series databases seamlessly plugging into cheaper blob storage as their long-term durable store. So perhaps soon we’ll be able to have our cake and eat it too.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b78bff6b8cee" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>