{"id":439,"date":"2024-11-26T20:33:37","date_gmt":"2024-11-26T19:33:37","guid":{"rendered":"https:\/\/www.systemdeveloper.nl\/tech\/?p=439"},"modified":"2024-12-01T14:50:12","modified_gmt":"2024-12-01T13:50:12","slug":"from-time-series-to-insights-building-machine-learning-models-with-influxdb","status":"publish","type":"post","link":"https:\/\/www.systemdeveloper.nl\/tech\/from-time-series-to-insights-building-machine-learning-models-with-influxdb\/","title":{"rendered":"From Time Series to Insights: Building Machine Learning Models with InfluxDB"},"content":{"rendered":"<p class=\"wp-block-paragraph wp-block-paragraph\" style=\"\">In this blog, we will walk you through a practical process of extracting data from an&nbsp;<strong><a href=\"https:\/\/www.systemdeveloper.nl\/tech\/tag\/influxdb\/\">InfluxDB<\/a><\/strong>&nbsp;time-series database, preparing it for analysis, and leveraging it to train machine learning models. InfluxDB is a powerful time-series database designed for metrics and events. Along the way, we&#8217;ll also explore how to identify the best features for your models. Whether you&#8217;re an InfluxDB enthusiast or a data science beginner, this guide will provide you with actionable steps to move from raw data to predictive insights. <\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n<h3 class=\"wp-block-heading\" id=\"1-why-influxdb\"><strong>1. Why InfluxDB?<\/strong><\/h3>\n\n\n<p class=\"wp-block-paragraph wp-block-paragraph\" style=\"\">As mentioned, InfluxDB is a powerful time-series database designed for metrics and events, making it an ideal choice for use cases like monitoring, IoT, and real-time analytics. Its native support for Flux, a functional query language, allows us to retrieve and manipulate data efficiently.<\/p>\n\n\n<p class=\"wp-block-paragraph wp-block-paragraph\" style=\"\">Machine learning models often benefit from time-series data for predictions and anomaly detection. However, raw data needs cleaning, transformation, and preparation before it can fuel predictive models. Here&#8217;s how you can make the most of it.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n<h3 class=\"wp-block-heading\" id=\"2-retrieving-data-from-influxdb\"><strong>2. Retrieving Data from InfluxDB<\/strong><\/h3>\n\n\n<p class=\"wp-block-paragraph wp-block-paragraph\" style=\"\">First, let&rsquo;s query and export data from InfluxDB. We&rsquo;ll use the&nbsp;<strong>InfluxDB Python client<\/strong>&nbsp;to connect to the database and retrieve data using Flux queries.<\/p>\n\n\n<h4 class=\"wp-block-heading\" id=\"flux-query-example\"><strong>Flux Query Example<\/strong><\/h4>\n\n\n<p class=\"wp-block-paragraph wp-block-paragraph\" style=\"\">Let&rsquo;s query the&nbsp;<code>net_eth0_out<\/code>&nbsp;measurement from the past 7 days:<\/p>\n\n\n<pre class=\"wp-block-code\"><div class=\"copy-to-clipboard\">\n<span>Copied!<\/span><button class=\"click-to-copy-button\" title=\"Copy to clipboard\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" viewbox=\"0 0 32 32\" stroke=\"currentcolor\" stroke-width=\"1.5\" stroke-linecap=\"round\" stroke-linejoin=\"round\" width=\"24\" height=\"24\" fill=\"none\">\n  <path d=\"M12.9975 10.7499L11.7475 10.7499C10.6429 10.7499 9.74747 11.6453 9.74747 12.7499L9.74747 21.2499C9.74747 22.3544 10.6429 23.2499 11.7475 23.2499L20.2475 23.2499C21.352 23.2499 22.2475 22.3544 22.2475 21.2499L22.2475 12.7499C22.2475 11.6453 21.352 10.7499 20.2475 10.7499L18.9975 10.7499Z\"><\/path>\n  <path d=\"M17.9975 12.2499L13.9975 12.2499C13.4452 12.2499 12.9975 11.8022 12.9975 11.2499L12.9975 9.74988C12.9975 9.19759 13.4452 8.74988 13.9975 8.74988L17.9975 8.74988C18.5498 8.74988 18.9975 9.19759 18.9975 9.74988L18.9975 11.2499C18.9975 11.8022 18.5498 12.2499 17.9975 12.2499Z\"><\/path>\n  <path d=\"M13.7475 16.2499L18.2475 16.2499\"><\/path>\n  <path d=\"M13.7475 19.2499L18.2475 19.2499\"><\/path>\n<\/svg><\/button><textarea>from influxdb_client import InfluxDBClient\n\nclient = InfluxDBClient(url=\"http:\/\/localhost:8086\", token=\"your-token\", org=\"your-org\")\nquery = '''\nfrom(bucket: \"bigdata\")\n  |&gt; range(start: -7d)\n  |&gt; filter(fn: (r) =&gt; r._measurement == \"net_eth0_out\")\n  |&gt; filter(fn: (r) =&gt; r._field == \"value\")\n'''\ntables = client.query_api().query(query=query)\ndata = []\nfor table in tables:\n    for record in table.records:\n        data.append({\"time\": record.get_time(), \"value\": record.get_value()})<\/textarea>\n<\/div><code>from influxdb_client import InfluxDBClient\n\nclient = InfluxDBClient(url=\"http:\/\/localhost:8086\", token=\"your-token\", org=\"your-org\")\nquery = '''\nfrom(bucket: \"bigdata\")\n  |&gt; range(start: -7d)\n  |&gt; filter(fn: (r) =&gt; r._measurement == \"net_eth0_out\")\n  |&gt; filter(fn: (r) =&gt; r._field == \"value\")\n'''\ntables = client.query_api().query(query=query)\ndata = []\nfor table in tables:\n    for record in table.records:\n        data.append({\"time\": record.get_time(), \"value\": record.get_value()})<\/code><\/pre>\n\n\n<p class=\"wp-block-paragraph wp-block-paragraph\" style=\"\">This query fetches the time and value fields, which we&rsquo;ll process further.<\/p>\n\n\n<h3 class=\"wp-block-heading\" id=\"3-cleaning-and-preparing-the-data\"><strong>3. Cleaning and Preparing the Data<\/strong><\/h3>\n\n\n<p class=\"wp-block-paragraph wp-block-paragraph\" style=\"\">Now that we have our data, let&rsquo;s load it into Pandas for exploration and preparation.<\/p>\n\n\n<h4 class=\"wp-block-heading\" id=\"loading-the-data\"><strong>Loading the Data<\/strong><\/h4>\n\n\n<pre class=\"wp-block-code\"><div class=\"copy-to-clipboard\">\n<span>Copied!<\/span><button class=\"click-to-copy-button\" title=\"Copy to clipboard\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" viewbox=\"0 0 32 32\" stroke=\"currentcolor\" stroke-width=\"1.5\" stroke-linecap=\"round\" stroke-linejoin=\"round\" width=\"24\" height=\"24\" fill=\"none\">\n  <path d=\"M12.9975 10.7499L11.7475 10.7499C10.6429 10.7499 9.74747 11.6453 9.74747 12.7499L9.74747 21.2499C9.74747 22.3544 10.6429 23.2499 11.7475 23.2499L20.2475 23.2499C21.352 23.2499 22.2475 22.3544 22.2475 21.2499L22.2475 12.7499C22.2475 11.6453 21.352 10.7499 20.2475 10.7499L18.9975 10.7499Z\"><\/path>\n  <path d=\"M17.9975 12.2499L13.9975 12.2499C13.4452 12.2499 12.9975 11.8022 12.9975 11.2499L12.9975 9.74988C12.9975 9.19759 13.4452 8.74988 13.9975 8.74988L17.9975 8.74988C18.5498 8.74988 18.9975 9.19759 18.9975 9.74988L18.9975 11.2499C18.9975 11.8022 18.5498 12.2499 17.9975 12.2499Z\"><\/path>\n  <path d=\"M13.7475 16.2499L18.2475 16.2499\"><\/path>\n  <path d=\"M13.7475 19.2499L18.2475 19.2499\"><\/path>\n<\/svg><\/button><textarea>import pandas as pd\n\ndf = pd.DataFrame(data)\ndf['time'] = pd.to_datetime(df['time'])\ndf.set_index('time', inplace=True)\nprint(df.head())<\/textarea>\n<\/div><code>import pandas as pd\n\ndf = pd.DataFrame(data)\ndf['time'] = pd.to_datetime(df['time'])\ndf.set_index('time', inplace=True)\nprint(df.head())<\/code><\/pre>\n\n\n<h4 class=\"wp-block-heading\" id=\"visualizing-the-raw-data\"><strong>Visualizing the Raw Data<\/strong><\/h4>\n\n\n<p class=\"wp-block-paragraph wp-block-paragraph\" style=\"\">We can use Matplotlib to inspect the time-series data and look for patterns or anomalies:<\/p>\n\n\n<pre class=\"wp-block-code\"><div class=\"copy-to-clipboard\">\n<span>Copied!<\/span><button class=\"click-to-copy-button\" title=\"Copy to clipboard\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" viewbox=\"0 0 32 32\" stroke=\"currentcolor\" stroke-width=\"1.5\" stroke-linecap=\"round\" stroke-linejoin=\"round\" width=\"24\" height=\"24\" fill=\"none\">\n  <path d=\"M12.9975 10.7499L11.7475 10.7499C10.6429 10.7499 9.74747 11.6453 9.74747 12.7499L9.74747 21.2499C9.74747 22.3544 10.6429 23.2499 11.7475 23.2499L20.2475 23.2499C21.352 23.2499 22.2475 22.3544 22.2475 21.2499L22.2475 12.7499C22.2475 11.6453 21.352 10.7499 20.2475 10.7499L18.9975 10.7499Z\"><\/path>\n  <path d=\"M17.9975 12.2499L13.9975 12.2499C13.4452 12.2499 12.9975 11.8022 12.9975 11.2499L12.9975 9.74988C12.9975 9.19759 13.4452 8.74988 13.9975 8.74988L17.9975 8.74988C18.5498 8.74988 18.9975 9.19759 18.9975 9.74988L18.9975 11.2499C18.9975 11.8022 18.5498 12.2499 17.9975 12.2499Z\"><\/path>\n  <path d=\"M13.7475 16.2499L18.2475 16.2499\"><\/path>\n  <path d=\"M13.7475 19.2499L18.2475 19.2499\"><\/path>\n<\/svg><\/button><textarea>import matplotlib.pyplot as plt\n\ndf.plot()\nplt.title(\"Raw Data Visualization\")\nplt.show()<\/textarea>\n<\/div><code>import matplotlib.pyplot as plt\n\ndf.plot()\nplt.title(\"Raw Data Visualization\")\nplt.show()<\/code><\/pre>\n\n\n<h4 class=\"wp-block-heading\" id=\"handling-missing-values\"><strong>Handling Missing Values<\/strong><\/h4>\n\n\n<p class=\"wp-block-paragraph wp-block-paragraph\" style=\"\">Time-series data often has missing values due to network glitches or logging delays. Let&rsquo;s clean this up:<\/p>\n\n\n<pre class=\"wp-block-code\"><div class=\"copy-to-clipboard\">\n<span>Copied!<\/span><button class=\"click-to-copy-button\" title=\"Copy to clipboard\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" viewbox=\"0 0 32 32\" stroke=\"currentcolor\" stroke-width=\"1.5\" stroke-linecap=\"round\" stroke-linejoin=\"round\" width=\"24\" height=\"24\" fill=\"none\">\n  <path d=\"M12.9975 10.7499L11.7475 10.7499C10.6429 10.7499 9.74747 11.6453 9.74747 12.7499L9.74747 21.2499C9.74747 22.3544 10.6429 23.2499 11.7475 23.2499L20.2475 23.2499C21.352 23.2499 22.2475 22.3544 22.2475 21.2499L22.2475 12.7499C22.2475 11.6453 21.352 10.7499 20.2475 10.7499L18.9975 10.7499Z\"><\/path>\n  <path d=\"M17.9975 12.2499L13.9975 12.2499C13.4452 12.2499 12.9975 11.8022 12.9975 11.2499L12.9975 9.74988C12.9975 9.19759 13.4452 8.74988 13.9975 8.74988L17.9975 8.74988C18.5498 8.74988 18.9975 9.19759 18.9975 9.74988L18.9975 11.2499C18.9975 11.8022 18.5498 12.2499 17.9975 12.2499Z\"><\/path>\n  <path d=\"M13.7475 16.2499L18.2475 16.2499\"><\/path>\n  <path d=\"M13.7475 19.2499L18.2475 19.2499\"><\/path>\n<\/svg><\/button><textarea>df = df.dropna()  # Drop rows with missing values<\/textarea>\n<\/div><code>df = df.dropna()  # Drop rows with missing values<\/code><\/pre>\n\n\n<h4 class=\"wp-block-heading\" id=\"feature-engineering\"><strong>Feature Engineering<\/strong><\/h4>\n\n\n<p class=\"wp-block-paragraph wp-block-paragraph\" style=\"\">Features are the backbone of machine learning models. For time-series data, we can calculate:<\/p>\n\n\n<p class=\"wp-block-paragraph wp-block-paragraph\" style=\"\"><strong>Differences between consecutive values<\/strong>&nbsp;to capture trends:<\/p>\n\n\n<pre class=\"wp-block-code\"><div class=\"copy-to-clipboard\">\n<span>Copied!<\/span><button class=\"click-to-copy-button\" title=\"Copy to clipboard\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" viewbox=\"0 0 32 32\" stroke=\"currentcolor\" stroke-width=\"1.5\" stroke-linecap=\"round\" stroke-linejoin=\"round\" width=\"24\" height=\"24\" fill=\"none\">\n  <path d=\"M12.9975 10.7499L11.7475 10.7499C10.6429 10.7499 9.74747 11.6453 9.74747 12.7499L9.74747 21.2499C9.74747 22.3544 10.6429 23.2499 11.7475 23.2499L20.2475 23.2499C21.352 23.2499 22.2475 22.3544 22.2475 21.2499L22.2475 12.7499C22.2475 11.6453 21.352 10.7499 20.2475 10.7499L18.9975 10.7499Z\"><\/path>\n  <path d=\"M17.9975 12.2499L13.9975 12.2499C13.4452 12.2499 12.9975 11.8022 12.9975 11.2499L12.9975 9.74988C12.9975 9.19759 13.4452 8.74988 13.9975 8.74988L17.9975 8.74988C18.5498 8.74988 18.9975 9.19759 18.9975 9.74988L18.9975 11.2499C18.9975 11.8022 18.5498 12.2499 17.9975 12.2499Z\"><\/path>\n  <path d=\"M13.7475 16.2499L18.2475 16.2499\"><\/path>\n  <path d=\"M13.7475 19.2499L18.2475 19.2499\"><\/path>\n<\/svg><\/button><textarea>df['diff'] = df['value'].diff()<\/textarea>\n<\/div><code>df['diff'] = df['value'].diff()<\/code><\/pre>\n\n\n<p class=\"wp-block-paragraph wp-block-paragraph\" style=\"\"><strong>Rolling averages<\/strong>&nbsp;to smooth out short-term fluctuations:<\/p>\n\n\n<pre class=\"wp-block-code\"><div class=\"copy-to-clipboard\">\n<span>Copied!<\/span><button class=\"click-to-copy-button\" title=\"Copy to clipboard\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" viewbox=\"0 0 32 32\" stroke=\"currentcolor\" stroke-width=\"1.5\" stroke-linecap=\"round\" stroke-linejoin=\"round\" width=\"24\" height=\"24\" fill=\"none\">\n  <path d=\"M12.9975 10.7499L11.7475 10.7499C10.6429 10.7499 9.74747 11.6453 9.74747 12.7499L9.74747 21.2499C9.74747 22.3544 10.6429 23.2499 11.7475 23.2499L20.2475 23.2499C21.352 23.2499 22.2475 22.3544 22.2475 21.2499L22.2475 12.7499C22.2475 11.6453 21.352 10.7499 20.2475 10.7499L18.9975 10.7499Z\"><\/path>\n  <path d=\"M17.9975 12.2499L13.9975 12.2499C13.4452 12.2499 12.9975 11.8022 12.9975 11.2499L12.9975 9.74988C12.9975 9.19759 13.4452 8.74988 13.9975 8.74988L17.9975 8.74988C18.5498 8.74988 18.9975 9.19759 18.9975 9.74988L18.9975 11.2499C18.9975 11.8022 18.5498 12.2499 17.9975 12.2499Z\"><\/path>\n  <path d=\"M13.7475 16.2499L18.2475 16.2499\"><\/path>\n  <path d=\"M13.7475 19.2499L18.2475 19.2499\"><\/path>\n<\/svg><\/button><textarea>df['rolling_avg'] = df['value'].rolling(window=5).mean()<\/textarea>\n<\/div><code>df['rolling_avg'] = df['value'].rolling(window=5).mean()<\/code><\/pre>\n\n\n<h3 class=\"wp-block-heading\" id=\"4-training-machine-learning-models\"><strong>4. Training Machine Learning Models<\/strong><\/h3>\n\n\n<p class=\"wp-block-paragraph wp-block-paragraph\" style=\"\">With our dataset cleaned and enriched with features, let&rsquo;s split it for training and testing.<\/p>\n\n\n<h4 class=\"wp-block-heading\" id=\"splitting-the-data\"><strong>Splitting the Data<\/strong><\/h4>\n\n\n<pre class=\"wp-block-code\"><div class=\"copy-to-clipboard\">\n<span>Copied!<\/span><button class=\"click-to-copy-button\" title=\"Copy to clipboard\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" viewbox=\"0 0 32 32\" stroke=\"currentcolor\" stroke-width=\"1.5\" stroke-linecap=\"round\" stroke-linejoin=\"round\" width=\"24\" height=\"24\" fill=\"none\">\n  <path d=\"M12.9975 10.7499L11.7475 10.7499C10.6429 10.7499 9.74747 11.6453 9.74747 12.7499L9.74747 21.2499C9.74747 22.3544 10.6429 23.2499 11.7475 23.2499L20.2475 23.2499C21.352 23.2499 22.2475 22.3544 22.2475 21.2499L22.2475 12.7499C22.2475 11.6453 21.352 10.7499 20.2475 10.7499L18.9975 10.7499Z\"><\/path>\n  <path d=\"M17.9975 12.2499L13.9975 12.2499C13.4452 12.2499 12.9975 11.8022 12.9975 11.2499L12.9975 9.74988C12.9975 9.19759 13.4452 8.74988 13.9975 8.74988L17.9975 8.74988C18.5498 8.74988 18.9975 9.19759 18.9975 9.74988L18.9975 11.2499C18.9975 11.8022 18.5498 12.2499 17.9975 12.2499Z\"><\/path>\n  <path d=\"M13.7475 16.2499L18.2475 16.2499\"><\/path>\n  <path d=\"M13.7475 19.2499L18.2475 19.2499\"><\/path>\n<\/svg><\/button><textarea>from sklearn.model_selection import train_test_split\n\nX = df[['diff', 'rolling_avg']].dropna()  # Features\ny = df['value'].shift(-1).dropna()  # Target: the next value\nX_train, X_test, y_train, y_test = train_test_split(X, y, test_size=0.2, random_state=42)<\/textarea>\n<\/div><code>from sklearn.model_selection import train_test_split\n\nX = df[['diff', 'rolling_avg']].dropna()  # Features\ny = df['value'].shift(-1).dropna()  # Target: the next value\nX_train, X_test, y_train, y_test = train_test_split(X, y, test_size=0.2, random_state=42)<\/code><\/pre>\n\n\n<h4 class=\"wp-block-heading\" id=\"training-multiple-models\"><strong>Training Multiple Models<\/strong><\/h4>\n\n\n<p class=\"wp-block-paragraph wp-block-paragraph\" style=\"\">We&rsquo;ll test different models like Linear Regression, Random Forest, and Gradient Boosting to find the best fit.<\/p>\n\n\n<h5 class=\"wp-block-heading\" id=\"random-forest-example\"><strong>Random Forest Example<\/strong><\/h5>\n\n\n<pre class=\"wp-block-code\"><div class=\"copy-to-clipboard\">\n<span>Copied!<\/span><button class=\"click-to-copy-button\" title=\"Copy to clipboard\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" viewbox=\"0 0 32 32\" stroke=\"currentcolor\" stroke-width=\"1.5\" stroke-linecap=\"round\" stroke-linejoin=\"round\" width=\"24\" height=\"24\" fill=\"none\">\n  <path d=\"M12.9975 10.7499L11.7475 10.7499C10.6429 10.7499 9.74747 11.6453 9.74747 12.7499L9.74747 21.2499C9.74747 22.3544 10.6429 23.2499 11.7475 23.2499L20.2475 23.2499C21.352 23.2499 22.2475 22.3544 22.2475 21.2499L22.2475 12.7499C22.2475 11.6453 21.352 10.7499 20.2475 10.7499L18.9975 10.7499Z\"><\/path>\n  <path d=\"M17.9975 12.2499L13.9975 12.2499C13.4452 12.2499 12.9975 11.8022 12.9975 11.2499L12.9975 9.74988C12.9975 9.19759 13.4452 8.74988 13.9975 8.74988L17.9975 8.74988C18.5498 8.74988 18.9975 9.19759 18.9975 9.74988L18.9975 11.2499C18.9975 11.8022 18.5498 12.2499 17.9975 12.2499Z\"><\/path>\n  <path d=\"M13.7475 16.2499L18.2475 16.2499\"><\/path>\n  <path d=\"M13.7475 19.2499L18.2475 19.2499\"><\/path>\n<\/svg><\/button><textarea>from sklearn.ensemble import RandomForestRegressor\nfrom sklearn.metrics import mean_squared_error\n\nmodel = RandomForestRegressor()\nmodel.fit(X_train, y_train)\npredictions = model.predict(X_test)\n\nprint(\"MSE:\", mean_squared_error(y_test, predictions))<\/textarea>\n<\/div><code>from sklearn.ensemble import RandomForestRegressor\nfrom sklearn.metrics import mean_squared_error\n\nmodel = RandomForestRegressor()\nmodel.fit(X_train, y_train)\npredictions = model.predict(X_test)\n\nprint(\"MSE:\", mean_squared_error(y_test, predictions))<\/code><\/pre>\n\n\n<h3 class=\"wp-block-heading\" id=\"5-identifying-the-best-features\"><strong>5. Identifying the Best Features<\/strong><\/h3>\n\n\n<p class=\"wp-block-paragraph wp-block-paragraph\" style=\"\">Some features contribute more to the model&rsquo;s accuracy than others. Let&rsquo;s identify the most important ones.<\/p>\n\n\n<h4 class=\"wp-block-heading\" id=\"feature-importances-in-random-forest\"><strong>Feature Importances in Random Forest<\/strong><\/h4>\n\n\n<pre class=\"wp-block-code\"><div class=\"copy-to-clipboard\">\n<span>Copied!<\/span><button class=\"click-to-copy-button\" title=\"Copy to clipboard\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" viewbox=\"0 0 32 32\" stroke=\"currentcolor\" stroke-width=\"1.5\" stroke-linecap=\"round\" stroke-linejoin=\"round\" width=\"24\" height=\"24\" fill=\"none\">\n  <path d=\"M12.9975 10.7499L11.7475 10.7499C10.6429 10.7499 9.74747 11.6453 9.74747 12.7499L9.74747 21.2499C9.74747 22.3544 10.6429 23.2499 11.7475 23.2499L20.2475 23.2499C21.352 23.2499 22.2475 22.3544 22.2475 21.2499L22.2475 12.7499C22.2475 11.6453 21.352 10.7499 20.2475 10.7499L18.9975 10.7499Z\"><\/path>\n  <path d=\"M17.9975 12.2499L13.9975 12.2499C13.4452 12.2499 12.9975 11.8022 12.9975 11.2499L12.9975 9.74988C12.9975 9.19759 13.4452 8.74988 13.9975 8.74988L17.9975 8.74988C18.5498 8.74988 18.9975 9.19759 18.9975 9.74988L18.9975 11.2499C18.9975 11.8022 18.5498 12.2499 17.9975 12.2499Z\"><\/path>\n  <path d=\"M13.7475 16.2499L18.2475 16.2499\"><\/path>\n  <path d=\"M13.7475 19.2499L18.2475 19.2499\"><\/path>\n<\/svg><\/button><textarea>importances = model.feature_importances_\nfor feature, importance in zip(X.columns, importances):\n    print(f\"{feature}: {importance}\")<\/textarea>\n<\/div><code>importances = model.feature_importances_\nfor feature, importance in zip(X.columns, importances):\n    print(f\"{feature}: {importance}\")<\/code><\/pre>\n\n\n<h4 class=\"wp-block-heading\" id=\"using-shap-for-feature-insights\"><strong>Using SHAP for Feature Insights<\/strong><\/h4>\n\n\n<p class=\"wp-block-paragraph wp-block-paragraph\" style=\"\">For deeper insights, tools like <a href=\"https:\/\/selfexplainml.github.io\/PiML-Toolbox\/_build\/html\/guides\/explain\/shap.html\" target=\"_blank\" rel=\"noreferrer noopener\">SHAP<\/a> (SHapley Additive exPlanations) can explain how each feature affects predictions.<br><\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n<h3 class=\"wp-block-heading\" id=\"6-conclusion\"><strong>6. Conclusion<\/strong><\/h3>\n\n\n<p class=\"wp-block-paragraph wp-block-paragraph\" style=\"\">Time-series data from InfluxDB is a treasure trove for machine learning, offering valuable insights when processed correctly. In this blog, we:<\/p>\n\n\n<ol class=\"wp-block-list wp-block-list\">\n<li>Retrieved raw data from <a href=\"https:\/\/www.influxdata.com\/products\/influxdb\/\" target=\"_blank\" rel=\"noreferrer noopener\">InfluxDB<\/a>.<\/li>\n\n\n\n<li>Cleaned and prepared the data for analysis.<\/li>\n\n\n\n<li>Engineered meaningful features.<\/li>\n\n\n\n<li>Trained and tested multiple machine learning models.<\/li>\n\n\n\n<li>Identified the most influential features.<\/li>\n<\/ol>\n\n\n<p class=\"wp-block-paragraph wp-block-paragraph\" style=\"\">This pipeline serves as a foundation for predictive analytics, anomaly detection, or any ML-based time-series application.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n<h3 class=\"wp-block-heading\" id=\"next-steps\"><strong>Next Steps<\/strong><\/h3>\n\n\n<ul class=\"wp-block-list wp-block-list\">\n<li>Explore other time-series features, such as seasonality and trends.<\/li>\n\n\n\n<li>Integrate this workflow with Grafana dashboards for real-time predictions.<\/li>\n\n\n\n<li>Scale the system for larger datasets.<\/li>\n<\/ul>\n\n\n<p class=\"wp-block-paragraph wp-block-paragraph\" style=\"\">You can find the complete code for this blog on&nbsp;our download pages. If you have questions or ideas, let us know in the comments!<\/p>\n\n\n<p class=\"wp-block-paragraph wp-block-paragraph\" style=\"\">Happy learning!<\/p>\n\n\n<p class=\"wp-block-paragraph wp-block-paragraph\" style=\"\"><\/p>\n","protected":false},"excerpt":{"rendered":"<p>In this blog, we will walk you through a practical process of extracting data from an&nbsp;InfluxDB&nbsp;time-series database, preparing it for analysis, and leveraging it to train machine learning models. InfluxDB is a powerful time-series database designed for metrics and events. Along the way, we&#8217;ll also explore how to identify the best features for your models. &hellip;<\/p>\n","protected":false},"author":1,"featured_media":440,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[28,46,52],"tags":[38,17,34],"class_list":["post-439","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-ai","category-howto","category-programming","tag-influxdb","tag-machine-learning","tag-python"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.9 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>From Time Series to Insights: Building Machine Learning Models with InfluxDB - SystemDeveloper.NL<\/title>\n<meta name=\"description\" content=\"From Time Series to Insights, InfluxDB is a powerful time-series database designed for metrics making it ideal for real-time analytics.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.systemdeveloper.nl\/tech\/from-time-series-to-insights-building-machine-learning-models-with-influxdb\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"From Time Series to Insights: Building Machine Learning Models with InfluxDB - SystemDeveloper.NL\" \/>\n<meta property=\"og:description\" content=\"From Time Series to Insights, InfluxDB is a powerful time-series database designed for metrics making it ideal for real-time analytics.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.systemdeveloper.nl\/tech\/from-time-series-to-insights-building-machine-learning-models-with-influxdb\/\" \/>\n<meta property=\"og:site_name\" content=\"SystemDeveloper.NL\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/quan.tora.16\" \/>\n<meta property=\"article:published_time\" content=\"2024-11-26T19:33:37+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-12-01T13:50:12+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.systemdeveloper.nl\/tech\/wp-content\/uploads\/2024\/11\/79b488e9-5056-4214-9ef5-66e79daf0c22-e1732649608901.webp\" \/>\n\t<meta property=\"og:image:width\" content=\"1024\" \/>\n\t<meta property=\"og:image:height\" content=\"768\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/webp\" \/>\n<meta name=\"author\" content=\"John Timmer\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"John Timmer\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.systemdeveloper.nl\\\/tech\\\/from-time-series-to-insights-building-machine-learning-models-with-influxdb\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.systemdeveloper.nl\\\/tech\\\/from-time-series-to-insights-building-machine-learning-models-with-influxdb\\\/\"},\"author\":{\"name\":\"John Timmer\",\"@id\":\"https:\\\/\\\/www.systemdeveloper.nl\\\/tech\\\/#\\\/schema\\\/person\\\/5760c2ed5300c56d8ef01dfb00a9763b\"},\"headline\":\"From Time Series to Insights: Building Machine Learning Models with InfluxDB\",\"datePublished\":\"2024-11-26T19:33:37+00:00\",\"dateModified\":\"2024-12-01T13:50:12+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.systemdeveloper.nl\\\/tech\\\/from-time-series-to-insights-building-machine-learning-models-with-influxdb\\\/\"},\"wordCount\":551,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/www.systemdeveloper.nl\\\/tech\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/www.systemdeveloper.nl\\\/tech\\\/from-time-series-to-insights-building-machine-learning-models-with-influxdb\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.systemdeveloper.nl\\\/tech\\\/wp-content\\\/uploads\\\/2024\\\/11\\\/79b488e9-5056-4214-9ef5-66e79daf0c22-e1732649608901.webp\",\"keywords\":[\"InfluxDB\",\"Machine Learning\",\"Python\"],\"articleSection\":[\"AI\",\"Howto\",\"Programming\"],\"inLanguage\":\"en\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.systemdeveloper.nl\\\/tech\\\/from-time-series-to-insights-building-machine-learning-models-with-influxdb\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.systemdeveloper.nl\\\/tech\\\/from-time-series-to-insights-building-machine-learning-models-with-influxdb\\\/\",\"url\":\"https:\\\/\\\/www.systemdeveloper.nl\\\/tech\\\/from-time-series-to-insights-building-machine-learning-models-with-influxdb\\\/\",\"name\":\"From Time Series to Insights: Building Machine Learning Models with InfluxDB - SystemDeveloper.NL\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.systemdeveloper.nl\\\/tech\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.systemdeveloper.nl\\\/tech\\\/from-time-series-to-insights-building-machine-learning-models-with-influxdb\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.systemdeveloper.nl\\\/tech\\\/from-time-series-to-insights-building-machine-learning-models-with-influxdb\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.systemdeveloper.nl\\\/tech\\\/wp-content\\\/uploads\\\/2024\\\/11\\\/79b488e9-5056-4214-9ef5-66e79daf0c22-e1732649608901.webp\",\"datePublished\":\"2024-11-26T19:33:37+00:00\",\"dateModified\":\"2024-12-01T13:50:12+00:00\",\"description\":\"From Time Series to Insights, InfluxDB is a powerful time-series database designed for metrics making it ideal for real-time analytics.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.systemdeveloper.nl\\\/tech\\\/from-time-series-to-insights-building-machine-learning-models-with-influxdb\\\/#breadcrumb\"},\"inLanguage\":\"en\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.systemdeveloper.nl\\\/tech\\\/from-time-series-to-insights-building-machine-learning-models-with-influxdb\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en\",\"@id\":\"https:\\\/\\\/www.systemdeveloper.nl\\\/tech\\\/from-time-series-to-insights-building-machine-learning-models-with-influxdb\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.systemdeveloper.nl\\\/tech\\\/wp-content\\\/uploads\\\/2024\\\/11\\\/79b488e9-5056-4214-9ef5-66e79daf0c22-e1732649608901.webp\",\"contentUrl\":\"https:\\\/\\\/www.systemdeveloper.nl\\\/tech\\\/wp-content\\\/uploads\\\/2024\\\/11\\\/79b488e9-5056-4214-9ef5-66e79daf0c22-e1732649608901.webp\",\"width\":1024,\"height\":768},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.systemdeveloper.nl\\\/tech\\\/from-time-series-to-insights-building-machine-learning-models-with-influxdb\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.systemdeveloper.nl\\\/tech\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"From Time Series to Insights: Building Machine Learning Models with InfluxDB\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.systemdeveloper.nl\\\/tech\\\/#website\",\"url\":\"https:\\\/\\\/www.systemdeveloper.nl\\\/tech\\\/\",\"name\":\"www.systemdeveloper.nl\",\"description\":\"NextGen IT\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.systemdeveloper.nl\\\/tech\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.systemdeveloper.nl\\\/tech\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.systemdeveloper.nl\\\/tech\\\/#organization\",\"name\":\"www.systemdeveloper.nl\",\"url\":\"https:\\\/\\\/www.systemdeveloper.nl\\\/tech\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en\",\"@id\":\"https:\\\/\\\/www.systemdeveloper.nl\\\/tech\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.systemdeveloper.nl\\\/tech\\\/wp-content\\\/uploads\\\/2024\\\/11\\\/qt-logo.png\",\"contentUrl\":\"https:\\\/\\\/www.systemdeveloper.nl\\\/tech\\\/wp-content\\\/uploads\\\/2024\\\/11\\\/qt-logo.png\",\"width\":1346,\"height\":1230,\"caption\":\"www.systemdeveloper.nl\"},\"image\":{\"@id\":\"https:\\\/\\\/www.systemdeveloper.nl\\\/tech\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/quan.tora.16\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.systemdeveloper.nl\\\/tech\\\/#\\\/schema\\\/person\\\/5760c2ed5300c56d8ef01dfb00a9763b\",\"name\":\"John Timmer\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en\",\"@id\":\"https:\\\/\\\/www.systemdeveloper.nl\\\/tech\\\/wp-content\\\/uploads\\\/2024\\\/11\\\/cropped-D6E27035-6864-4270-8D72-0D8C0C59F370-96x96.jpeg\",\"url\":\"https:\\\/\\\/www.systemdeveloper.nl\\\/tech\\\/wp-content\\\/uploads\\\/2024\\\/11\\\/cropped-D6E27035-6864-4270-8D72-0D8C0C59F370-96x96.jpeg\",\"contentUrl\":\"https:\\\/\\\/www.systemdeveloper.nl\\\/tech\\\/wp-content\\\/uploads\\\/2024\\\/11\\\/cropped-D6E27035-6864-4270-8D72-0D8C0C59F370-96x96.jpeg\",\"caption\":\"John Timmer\"},\"sameAs\":[\"https:\\\/\\\/www.systemdeveloper.nl\\\/tech\"],\"url\":\"https:\\\/\\\/www.systemdeveloper.nl\\\/tech\\\/author\\\/admin\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"From Time Series to Insights: Building Machine Learning Models with InfluxDB - SystemDeveloper.NL","description":"From Time Series to Insights, InfluxDB is a powerful time-series database designed for metrics making it ideal for real-time analytics.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.systemdeveloper.nl\/tech\/from-time-series-to-insights-building-machine-learning-models-with-influxdb\/","og_locale":"en_US","og_type":"article","og_title":"From Time Series to Insights: Building Machine Learning Models with InfluxDB - SystemDeveloper.NL","og_description":"From Time Series to Insights, InfluxDB is a powerful time-series database designed for metrics making it ideal for real-time analytics.","og_url":"https:\/\/www.systemdeveloper.nl\/tech\/from-time-series-to-insights-building-machine-learning-models-with-influxdb\/","og_site_name":"SystemDeveloper.NL","article_publisher":"https:\/\/www.facebook.com\/quan.tora.16","article_published_time":"2024-11-26T19:33:37+00:00","article_modified_time":"2024-12-01T13:50:12+00:00","og_image":[{"width":1024,"height":768,"url":"https:\/\/www.systemdeveloper.nl\/tech\/wp-content\/uploads\/2024\/11\/79b488e9-5056-4214-9ef5-66e79daf0c22-e1732649608901.webp","type":"image\/webp"}],"author":"John Timmer","twitter_card":"summary_large_image","twitter_misc":{"Written by":"John Timmer","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.systemdeveloper.nl\/tech\/from-time-series-to-insights-building-machine-learning-models-with-influxdb\/#article","isPartOf":{"@id":"https:\/\/www.systemdeveloper.nl\/tech\/from-time-series-to-insights-building-machine-learning-models-with-influxdb\/"},"author":{"name":"John Timmer","@id":"https:\/\/www.systemdeveloper.nl\/tech\/#\/schema\/person\/5760c2ed5300c56d8ef01dfb00a9763b"},"headline":"From Time Series to Insights: Building Machine Learning Models with InfluxDB","datePublished":"2024-11-26T19:33:37+00:00","dateModified":"2024-12-01T13:50:12+00:00","mainEntityOfPage":{"@id":"https:\/\/www.systemdeveloper.nl\/tech\/from-time-series-to-insights-building-machine-learning-models-with-influxdb\/"},"wordCount":551,"commentCount":0,"publisher":{"@id":"https:\/\/www.systemdeveloper.nl\/tech\/#organization"},"image":{"@id":"https:\/\/www.systemdeveloper.nl\/tech\/from-time-series-to-insights-building-machine-learning-models-with-influxdb\/#primaryimage"},"thumbnailUrl":"https:\/\/www.systemdeveloper.nl\/tech\/wp-content\/uploads\/2024\/11\/79b488e9-5056-4214-9ef5-66e79daf0c22-e1732649608901.webp","keywords":["InfluxDB","Machine Learning","Python"],"articleSection":["AI","Howto","Programming"],"inLanguage":"en","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.systemdeveloper.nl\/tech\/from-time-series-to-insights-building-machine-learning-models-with-influxdb\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.systemdeveloper.nl\/tech\/from-time-series-to-insights-building-machine-learning-models-with-influxdb\/","url":"https:\/\/www.systemdeveloper.nl\/tech\/from-time-series-to-insights-building-machine-learning-models-with-influxdb\/","name":"From Time Series to Insights: Building Machine Learning Models with InfluxDB - SystemDeveloper.NL","isPartOf":{"@id":"https:\/\/www.systemdeveloper.nl\/tech\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.systemdeveloper.nl\/tech\/from-time-series-to-insights-building-machine-learning-models-with-influxdb\/#primaryimage"},"image":{"@id":"https:\/\/www.systemdeveloper.nl\/tech\/from-time-series-to-insights-building-machine-learning-models-with-influxdb\/#primaryimage"},"thumbnailUrl":"https:\/\/www.systemdeveloper.nl\/tech\/wp-content\/uploads\/2024\/11\/79b488e9-5056-4214-9ef5-66e79daf0c22-e1732649608901.webp","datePublished":"2024-11-26T19:33:37+00:00","dateModified":"2024-12-01T13:50:12+00:00","description":"From Time Series to Insights, InfluxDB is a powerful time-series database designed for metrics making it ideal for real-time analytics.","breadcrumb":{"@id":"https:\/\/www.systemdeveloper.nl\/tech\/from-time-series-to-insights-building-machine-learning-models-with-influxdb\/#breadcrumb"},"inLanguage":"en","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.systemdeveloper.nl\/tech\/from-time-series-to-insights-building-machine-learning-models-with-influxdb\/"]}]},{"@type":"ImageObject","inLanguage":"en","@id":"https:\/\/www.systemdeveloper.nl\/tech\/from-time-series-to-insights-building-machine-learning-models-with-influxdb\/#primaryimage","url":"https:\/\/www.systemdeveloper.nl\/tech\/wp-content\/uploads\/2024\/11\/79b488e9-5056-4214-9ef5-66e79daf0c22-e1732649608901.webp","contentUrl":"https:\/\/www.systemdeveloper.nl\/tech\/wp-content\/uploads\/2024\/11\/79b488e9-5056-4214-9ef5-66e79daf0c22-e1732649608901.webp","width":1024,"height":768},{"@type":"BreadcrumbList","@id":"https:\/\/www.systemdeveloper.nl\/tech\/from-time-series-to-insights-building-machine-learning-models-with-influxdb\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.systemdeveloper.nl\/tech\/"},{"@type":"ListItem","position":2,"name":"From Time Series to Insights: Building Machine Learning Models with InfluxDB"}]},{"@type":"WebSite","@id":"https:\/\/www.systemdeveloper.nl\/tech\/#website","url":"https:\/\/www.systemdeveloper.nl\/tech\/","name":"www.systemdeveloper.nl","description":"NextGen IT","publisher":{"@id":"https:\/\/www.systemdeveloper.nl\/tech\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.systemdeveloper.nl\/tech\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en"},{"@type":"Organization","@id":"https:\/\/www.systemdeveloper.nl\/tech\/#organization","name":"www.systemdeveloper.nl","url":"https:\/\/www.systemdeveloper.nl\/tech\/","logo":{"@type":"ImageObject","inLanguage":"en","@id":"https:\/\/www.systemdeveloper.nl\/tech\/#\/schema\/logo\/image\/","url":"https:\/\/www.systemdeveloper.nl\/tech\/wp-content\/uploads\/2024\/11\/qt-logo.png","contentUrl":"https:\/\/www.systemdeveloper.nl\/tech\/wp-content\/uploads\/2024\/11\/qt-logo.png","width":1346,"height":1230,"caption":"www.systemdeveloper.nl"},"image":{"@id":"https:\/\/www.systemdeveloper.nl\/tech\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/quan.tora.16"]},{"@type":"Person","@id":"https:\/\/www.systemdeveloper.nl\/tech\/#\/schema\/person\/5760c2ed5300c56d8ef01dfb00a9763b","name":"John Timmer","image":{"@type":"ImageObject","inLanguage":"en","@id":"https:\/\/www.systemdeveloper.nl\/tech\/wp-content\/uploads\/2024\/11\/cropped-D6E27035-6864-4270-8D72-0D8C0C59F370-96x96.jpeg","url":"https:\/\/www.systemdeveloper.nl\/tech\/wp-content\/uploads\/2024\/11\/cropped-D6E27035-6864-4270-8D72-0D8C0C59F370-96x96.jpeg","contentUrl":"https:\/\/www.systemdeveloper.nl\/tech\/wp-content\/uploads\/2024\/11\/cropped-D6E27035-6864-4270-8D72-0D8C0C59F370-96x96.jpeg","caption":"John Timmer"},"sameAs":["https:\/\/www.systemdeveloper.nl\/tech"],"url":"https:\/\/www.systemdeveloper.nl\/tech\/author\/admin\/"}]}},"_links":{"self":[{"href":"https:\/\/www.systemdeveloper.nl\/tech\/wp-json\/wp\/v2\/posts\/439","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.systemdeveloper.nl\/tech\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.systemdeveloper.nl\/tech\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.systemdeveloper.nl\/tech\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.systemdeveloper.nl\/tech\/wp-json\/wp\/v2\/comments?post=439"}],"version-history":[{"count":4,"href":"https:\/\/www.systemdeveloper.nl\/tech\/wp-json\/wp\/v2\/posts\/439\/revisions"}],"predecessor-version":[{"id":446,"href":"https:\/\/www.systemdeveloper.nl\/tech\/wp-json\/wp\/v2\/posts\/439\/revisions\/446"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.systemdeveloper.nl\/tech\/wp-json\/wp\/v2\/media\/440"}],"wp:attachment":[{"href":"https:\/\/www.systemdeveloper.nl\/tech\/wp-json\/wp\/v2\/media?parent=439"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.systemdeveloper.nl\/tech\/wp-json\/wp\/v2\/categories?post=439"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.systemdeveloper.nl\/tech\/wp-json\/wp\/v2\/tags?post=439"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}