<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Home | Koehn AI</title><link>https://www.koehn.ai/en/</link><atom:link href="https://www.koehn.ai/en/index.xml" rel="self" type="application/rss+xml"/><description>Home</description><generator>Hugo Blox Builder (https://hugoblox.com)</generator><language>en-US</language><lastBuildDate>Wed, 02 Dec 2026 00:00:00 +0000</lastBuildDate><image><url>https://www.koehn.ai/media/logo.svg</url><title>Home</title><link>https://www.koehn.ai/en/</link></image><item><title>Upgrading and Retrofitting: How Additional Data Improves Industrial Processes</title><link>https://www.koehn.ai/en/blog/upgrades_and_retrofitting/</link><pubDate>Wed, 02 Dec 2026 00:00:00 +0000</pubDate><guid>https://www.koehn.ai/en/blog/upgrades_and_retrofitting/</guid><description>&lt;p&gt;
&lt;figure &gt;
&lt;div class="flex justify-center "&gt;
&lt;div class="w-full" &gt;
&lt;img alt="data_problems"
srcset="https://www.koehn.ai/media/blog/upgrades_and_retrofitting_hu_c27bad16f2b2d0a2.webp 320w, https://www.koehn.ai/media/blog/upgrades_and_retrofitting_hu_5815c694843cbb9.webp 480w, https://www.koehn.ai/media/blog/upgrades_and_retrofitting_hu_d3c851978dc7522b.webp 760w"
sizes="(max-width: 480px) 100vw, (max-width: 768px) 90vw, (max-width: 1024px) 80vw, 760px"
src="https://www.koehn.ai/media/blog/upgrades_and_retrofitting_hu_c27bad16f2b2d0a2.webp"
width="760"
height="725"
loading="lazy" data-zoomable /&gt;&lt;/div&gt;
&lt;/div&gt;&lt;/figure&gt;
&lt;/p&gt;
&lt;h2 id="how-to-collect-data"&gt;How to Collect Data&lt;/h2&gt;
&lt;p&gt;In our
, we discussed the value of data to organizations, and the necessity of creating a pipeline for collection, harmonization, and processing into a &lt;strong&gt;coherent database&lt;/strong&gt;.
However, exactly &lt;strong&gt;how&lt;/strong&gt; and &lt;strong&gt;where&lt;/strong&gt; to collect data are open questions.
These exact decisions are dependent on the organization and its goals.
For institutions in the financial sector, collection of economic data is an imperative.
For those in the industrial sector, data from the factory floor is far more important.&lt;/p&gt;
&lt;p&gt;Since in the previous article we looked at an industrial example, we will continue to do so here.&lt;/p&gt;
&lt;h2 id="the-intuition-trap-how-legacy-workflows-affect-manufacturing"&gt;The Intuition Trap: How Legacy Workflows Affect Manufacturing&lt;/h2&gt;
&lt;p&gt;At the heart of every developed economy resides a linchpin that allows it all to function: &lt;strong&gt;manufacturing&lt;/strong&gt;.
The industrial world crumbles without the goods manufacturers produce.
Without automobiles, trains, airplanes, precision machinery, or any of the other plethora of products that enable the functioning of our society, our economies would be smaller and the quality of life lower.
However, due to the entanglement of manufacturing with society, &lt;strong&gt;second-order effects of inefficient industrial processes trickle into every single sector&lt;/strong&gt;.
These inefficiencies drive up the price of goods, ultimately reducing demand for manufactured outputs.&lt;/p&gt;
&lt;p&gt;In traditional manufacturing environments, &lt;strong&gt;operational decisions&lt;/strong&gt; often rest on &lt;strong&gt;experienced judgment&lt;/strong&gt;.
A veteran line manager knows how the machines on the production line sound when they are running well or how various cycles shift seasonally.
This experience is what keeps plants running in a &lt;strong&gt;dynamic environment&lt;/strong&gt;; however, it has the limitations placed on it by biology.
While &lt;strong&gt;human intuition&lt;/strong&gt; and senses allow us to make precise decisions that seem random to an unskilled person, they can be &lt;strong&gt;enhanced&lt;/strong&gt; by the sensitivity of &lt;strong&gt;modern sensors&lt;/strong&gt;.
When paired with &lt;strong&gt;advanced algorithms&lt;/strong&gt;, sensors enable a drastic improvement to the capabilities of workers on factory floors.&lt;/p&gt;
&lt;p&gt;Teams using legacy workflows are &lt;strong&gt;highly susceptible&lt;/strong&gt; to applying intuition where it does not fit.
This does not arise out of &lt;strong&gt;ignorance&lt;/strong&gt; but from the application of &lt;strong&gt;past knowledge&lt;/strong&gt; in a regime where the root causes are different.
Variations in a manufacturing process may be treated as normal, but instead are variations that lead to operational waste, which could be detected with &lt;strong&gt;additional data&lt;/strong&gt;.
Many manufacturers are &lt;strong&gt;hesitant&lt;/strong&gt; to update their industrial process due to upfront capital expense and downtime.
But bridging this gap in operational function &lt;strong&gt;doesn&amp;rsquo;t necessarily require replacing legacy equipment wholesale&lt;/strong&gt;.
Instead, it simply requires instrumenting &lt;strong&gt;critical areas&lt;/strong&gt; to expose what the human touch misses.&lt;/p&gt;
&lt;p&gt;To see how this works in practice, we will examine a practical example in what follows.&lt;/p&gt;
&lt;h2 id="a-practical-example-from-manufacturing"&gt;A Practical Example from Manufacturing&lt;/h2&gt;
&lt;p&gt;To see how targeted instrumentation works on the factory floor, consider a company that manufactures precision laboratory equipment with rotating assemblies—specifically, high-speed centrifuges.
For such devices, where high-quality diagnostics must be implemented in order to ensure the desired quality of the final product, the addition of robust data collection processes can prove highly beneficial.
A particularly useful opportunity to collect this information is during &lt;strong&gt;end-of-line&lt;/strong&gt; (EOL) &lt;strong&gt;testing&lt;/strong&gt;.
Before delivering a centrifuge to a customer, the producer can run the device through a standardized test cycle while sensors record its behavior.
This creates a baseline for each machine and provides &lt;strong&gt;structured data&lt;/strong&gt; for comparison over the product&amp;rsquo;s lifetime and across units.
Even on already existing production lines, a sophisticated EOL testing process can be added without large downtimes or capital expenditures.&lt;/p&gt;
&lt;p&gt;One of the first challenges is deciding &lt;strong&gt;what information is actually worth measuring&lt;/strong&gt;.
The choice of measurements depends on the &lt;strong&gt;physical processes&lt;/strong&gt; involved and what is necessary to ensure a quality product.
This is where a data engineering and AI consultancy can help by identifying which physical quantities are most relevant for monitoring machine health and future AI applications, while avoiding unnecessary instrumentation.&lt;/p&gt;
&lt;p&gt;
&lt;figure &gt;
&lt;div class="flex justify-center "&gt;
&lt;div class="w-full" &gt;
&lt;img alt="centrifuge"
srcset="https://www.koehn.ai/media/blog/centrifuge_hu_8a557dc2b27c5477.webp 320w, https://www.koehn.ai/media/blog/centrifuge_hu_5a2c83ca96dbcbd1.webp 480w, https://www.koehn.ai/media/blog/centrifuge_hu_e182e2e740acc814.webp 760w"
sizes="(max-width: 480px) 100vw, (max-width: 768px) 90vw, (max-width: 1024px) 80vw, 760px"
src="https://www.koehn.ai/media/blog/centrifuge_hu_8a557dc2b27c5477.webp"
width="760"
height="507"
loading="lazy" data-zoomable /&gt;&lt;/div&gt;
&lt;/div&gt;&lt;/figure&gt;
&lt;/p&gt;
&lt;p&gt;In our centrifuge example, identifying relevant properties is relatively straightforward.
One of the obvious and most informative signals is &lt;strong&gt;vibration&lt;/strong&gt; because vibrational patterns indicate imbalance or mechanical problems in the rotating assembly.
To measure vibration for an EOL test, permanent &lt;strong&gt;piezoelectric accelerometers&lt;/strong&gt; mounted to a test stand, or temporary ones mounted on bearing housings, the motor mount, or the machine frame enable measuring the vibration in multiple directions.
Likewise, monitoring the &lt;strong&gt;motor speed&lt;/strong&gt; via &lt;strong&gt;optical tachometers&lt;/strong&gt; gives similar insight, since a gradual decrease under identical operating conditions may indicate increasing mechanical resistance.&lt;/p&gt;
&lt;p&gt;Additional sensors can provide complementary information.
&lt;strong&gt;Temperature sensors&lt;/strong&gt; or &lt;strong&gt;infrared cameras&lt;/strong&gt; monitoring bearings, motor housing, and cooling airflow detect friction, cooling inefficiencies, or abnormal thermal behavior, identifying minor defects that can be addressed long before they may appear to the end user.
&lt;strong&gt;Power meters&lt;/strong&gt; measuring electrical current can identify flaws in sensitive circuits or rotational instability through abnormal &lt;strong&gt;power consumption&lt;/strong&gt;.
&lt;strong&gt;Microphones&lt;/strong&gt; further complement the monitoring system by detecting minor disturbances in &lt;strong&gt;noise levels&lt;/strong&gt; or unexpected frequency components associated with unbalanced rotating parts.&lt;/p&gt;
&lt;p&gt;
&lt;figure &gt;
&lt;div class="flex justify-center "&gt;
&lt;div class="w-full" &gt;
&lt;img alt="mic_simulation"
srcset="https://www.koehn.ai/media/blog/mic_simulation_hu_6306908dc3e0cae8.webp 320w, https://www.koehn.ai/media/blog/mic_simulation_hu_45145590cc06ffa8.webp 480w, https://www.koehn.ai/media/blog/mic_simulation_hu_4723bbcd44799953.webp 760w"
sizes="(max-width: 480px) 100vw, (max-width: 768px) 90vw, (max-width: 1024px) 80vw, 760px"
src="https://www.koehn.ai/media/blog/mic_simulation_hu_6306908dc3e0cae8.webp"
width="760"
height="380"
loading="lazy" data-zoomable /&gt;&lt;/div&gt;
&lt;/div&gt;&lt;/figure&gt;
&lt;/p&gt;
&lt;figure&gt;
&lt;figcaption&gt;Illustrative acoustic spectrum of a centrifuge operating at 6000 RPM. Changes in the rotational harmonics and the appearance of additional frequency components provide information about mechanical condition.&lt;/figcaption&gt;
&lt;/figure&gt;
&lt;p&gt;These measurements combine to create a &lt;strong&gt;complete picture&lt;/strong&gt; of machine functionality, ensuring customers receive a quality product.
However, raw sensor outputs are only the first step.
A single EOL test run mixes high-frequency acoustic and vibration waveforms with lower-frequency temperature logs, power draw, and optical tachometer readings—all of which must be aligned to the same clock and linked to a specific serial number, component batch, and operator sign-off (see
for a broader look at resolving data fragmentation, Industrial Internet of Things, and cloud providers for data management).&lt;/p&gt;
&lt;p&gt;Once the data has been collected and stored consistently, it can be used for more than validation in EOL tests.
Future versions of products can be designed to include embedded sensors, allowing for active monitoring of the long-term health of the product.
Machine learning models enable &lt;strong&gt;identifying abnormal operating patterns&lt;/strong&gt; and support &lt;strong&gt;predictive maintenance&lt;/strong&gt;.
For example, anomaly detection learns the normal vibration or temperature behavior of a centrifuge and flags deviations.
With sufficient historical degradation or failure data, more advanced models &lt;strong&gt;estimate the Remaining Useful Life&lt;/strong&gt; (RUL) of components and help schedule maintenance before a failure occurs.
Such tools are invaluable to customers, as they give confidence in the product that they purchase and continue to use.&lt;/p&gt;
&lt;h2 id="a-practical-example-for-a-legacy-consumer"&gt;A Practical Example for a Legacy Consumer&lt;/h2&gt;
&lt;p&gt;Manufacturers are not the only ones that can utilize additional data granted by new sensors.
For consumers that have legacy hardware where they wish to monitor the health of their devices, non-invasively &lt;strong&gt;retrofitting&lt;/strong&gt; with new sensors gives that insight.
Sticking with the same example we used for manufacturers improving EOL testing for centrifuges, consumers can collect the &lt;strong&gt;same&lt;/strong&gt; data.&lt;/p&gt;
&lt;p&gt;As centrifuges experience countless cycles, natural fatigue and wear accumulate in the device.
Not all wear leads to failure, but the important part is catching failures &lt;strong&gt;before they happen&lt;/strong&gt;.
Just like for EOL testing, adding a sensor suite to a device gives insight into the functioning of machines at a resolution far beyond human abilities.
For EOL testing, &lt;strong&gt;vibration&lt;/strong&gt;, &lt;strong&gt;motor speed&lt;/strong&gt;, &lt;strong&gt;temperature&lt;/strong&gt;, &lt;strong&gt;power consumption&lt;/strong&gt;, and &lt;strong&gt;operating noise levels&lt;/strong&gt; are key indicators for the &lt;strong&gt;quality&lt;/strong&gt; of a new centrifuge.
For legacy machines, these same indicators provide a snapshot of their &lt;strong&gt;health&lt;/strong&gt;.
Measurements combine to create a more &lt;strong&gt;complete picture&lt;/strong&gt; of machine condition.&lt;/p&gt;
&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;&lt;strong&gt;Data&lt;/strong&gt;&lt;/th&gt;
&lt;th&gt;&lt;strong&gt;Possible use&lt;/strong&gt;&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Vibration&lt;/td&gt;
&lt;td&gt;Detect imbalance, bearing wear, or other mechanical degradation&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Motor speed (RPM)&lt;/td&gt;
&lt;td&gt;Monitor changes in rotational performance&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Temperature&lt;/td&gt;
&lt;td&gt;Detect friction, overheating, or changes in cooling behavior&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Power / current&lt;/td&gt;
&lt;td&gt;Identify changes in energy consumption or electrical behavior&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Acoustic signal&lt;/td&gt;
&lt;td&gt;Detect changes in noise level and frequency components&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;Just as the EOL testing attaches to the end of a production line without major capital expense or downtime, so too does an aftermarket monitoring system.
The addition of external sensors, paired with constructing a coherent database and advanced AI solutions, enables consumers to obtain the longest lifetime out of the devices.&lt;/p&gt;
&lt;h2 id="bridging-the-gap"&gt;Bridging the Gap&lt;/h2&gt;
&lt;p&gt;Modernizing a manufacturing line or retrofitting legacy devices sounds like a straightforward process.
But real hurdles lie in deciphering the interplay between &lt;strong&gt;physics, hardware, and software&lt;/strong&gt;.
Even capable organizations can get caught in &lt;strong&gt;integration purgatory&lt;/strong&gt; due to complex internal dependencies.&lt;/p&gt;
&lt;p&gt;At Koehn AI, we help organizations fill in those gaps with the &lt;strong&gt;scientific expertise&lt;/strong&gt; honed by years in academia and industry.
When you need fresh perspectives without growing your team, &lt;strong&gt;we help bridge the gap from conception to implementation.&lt;/strong&gt;
The goal of modernizing processes is not to spend time implementing the upgrades.
Whether you are looking to integrate data collection into production lines or deploy non-invasive instrumentation on critical legacy devices, we can help you see the benefits as quickly as possible.&lt;/p&gt;</description></item><item><title>From Factory Machines to AI: Building an AI-Ready Data Foundation</title><link>https://www.koehn.ai/en/blog/data_problems/</link><pubDate>Tue, 01 Dec 2026 00:00:00 +0000</pubDate><guid>https://www.koehn.ai/en/blog/data_problems/</guid><description>&lt;p&gt;
&lt;figure &gt;
&lt;div class="flex justify-center "&gt;
&lt;div class="w-full" &gt;
&lt;img alt="data_problems"
srcset="https://www.koehn.ai/media/blog/data_problems_hu_59a710918f504b3c.webp 320w, https://www.koehn.ai/media/blog/data_problems_hu_3f8eedfcbcee1d12.webp 480w, https://www.koehn.ai/media/blog/data_problems_hu_d0be6a559733c7a3.webp 760w"
sizes="(max-width: 480px) 100vw, (max-width: 768px) 90vw, (max-width: 1024px) 80vw, 760px"
src="https://www.koehn.ai/media/blog/data_problems_hu_59a710918f504b3c.webp"
width="760"
height="507"
loading="lazy" data-zoomable /&gt;&lt;/div&gt;
&lt;/div&gt;&lt;/figure&gt;
&lt;/p&gt;
&lt;h2 id="the-value-of-data"&gt;The Value of Data&lt;/h2&gt;
&lt;p&gt;In today&amp;rsquo;s information-rich environment, &lt;strong&gt;data&lt;/strong&gt; touches every facet of modern life: &lt;strong&gt;personal data&lt;/strong&gt; drives targeted advertising; &lt;strong&gt;industrial and financial metrics&lt;/strong&gt; guide corporate strategy; and &lt;strong&gt;macroeconomic indicators&lt;/strong&gt; underpin governmental policy decisions.
However, with the glut of available data, quantifying the value of additional data in many circumstances remains difficult.
Most organizations, ranging from small local businesses to governing bodies, rely on familiar metrics and lean heavily on expertise hard-won through years of experience.
And while institutional knowledge and legacy workflows contain their own immense value, they reach a ceiling without &lt;strong&gt;further insight through new data&lt;/strong&gt;.&lt;/p&gt;
&lt;p&gt;The modern industrial world is information hungry because &lt;strong&gt;the value of data compounds as more is collected&lt;/strong&gt;.
For organizations tied to legacy workflows and metrics, uncollected data is unrealized revenue.
Be it through, for example, waste, unseen bottlenecks, or missed quality control tolerances, &lt;strong&gt;untracked information hurts the bottom line&lt;/strong&gt;.
Not only that, &lt;strong&gt;collected but incoherent data&lt;/strong&gt; yields the same results in a more insidious manner.
If existing data is not leveraged in productive manner, that is simply waste.
However, if existing data is unstructured, it can go from unproductive to counterproductive quickly.
The latter is the situation that many companies find themselves in.&lt;/p&gt;
&lt;h2 id="growth-creates-complexity-faster-than-expected"&gt;Growth Creates Complexity Faster Than Expected&lt;/h2&gt;
&lt;p&gt;Most companies do not struggle because they lack data. More often, the real challenge is that &lt;strong&gt;data slowly becomes scattered&lt;/strong&gt; across too many platforms and tools.
What starts as a handful of Excel files and internal reports gradually turns into a mix of disconnected systems, PDFs, emails, cloud storage, legacy software, and manual workflows.
At first, the collection of systems feels manageable, but as data grows and software stacks evolve, &lt;strong&gt;temporary solutions&lt;/strong&gt; and &lt;strong&gt;workarounds&lt;/strong&gt; risk becoming permanent processes.&lt;/p&gt;
&lt;p&gt;Fragmented data management systems and processes are common among small and medium businesses that grow quickly or companies that expand through acquisitions.
The problem appears across many industries.
In &lt;strong&gt;healthcare&lt;/strong&gt;, practitioners contend with patient records that are often spread across multiple systems subject to strict compliance requirements.
&lt;strong&gt;Retail and e-commerce&lt;/strong&gt; companies struggle to synchronize inventory, sales, and customer data across platforms.
&lt;strong&gt;Manufacturing businesses&lt;/strong&gt; generate large amounts of machine and production data—most of which is trapped in isolated silos—while &lt;strong&gt;financial organizations&lt;/strong&gt; rely on consistent reporting pipelines for risk management, fraud detection, and compliance monitoring.
For very different sectors, the underlying issue is the same: &lt;strong&gt;fragmented and inconsistent data&lt;/strong&gt;.&lt;/p&gt;
&lt;h2 id="turn-fragmented-data-into-a-reliable-foundation"&gt;Turn Fragmented Data into a Reliable Foundation&lt;/h2&gt;
&lt;p&gt;&lt;strong&gt;Data fragmentation&lt;/strong&gt; is underestimated because the problems rarely appear all at once.
However, over time, they begin to create friction across the entire organization.
As a result, teams spend hours overcoming data issues and, consequently, product development slows down because information cannot be trusted quickly enough to support decision-making.&lt;/p&gt;
&lt;p&gt;In the face of overwhelming data problems, companies may be inclined to implement advanced analytics or AI infrastructure. However, such tools can only deliver value after creating a &lt;strong&gt;well-structured data foundation&lt;/strong&gt;.
The construction of such a foundation begins with understanding where the data comes from, how reliable it is, and how different systems interact with one another.
From there, businesses can begin replacing manual processes with &lt;strong&gt;automated workflows&lt;/strong&gt; that collect, clean, and organize information consistently across the organization.
This includes:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Integrating disconnected tools and databases&lt;/li&gt;
&lt;li&gt;Automating Extract, Transform, Load (ETL) workflows&lt;/li&gt;
&lt;li&gt;Cleaning duplicate, outdated, or incomplete records&lt;/li&gt;
&lt;li&gt;Standardizing KPIs and reporting logic across departments&lt;/li&gt;
&lt;li&gt;Centralizing data storage through a scalable cloud infrastructure&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;The goal is not to add unnecessary complexity, but to &lt;strong&gt;create a system where teams can finally trust the information they work with every day&lt;/strong&gt;.&lt;/p&gt;
&lt;h2 id="data-collection-to-useful-information-in-manufacturing"&gt;Data Collection to Useful Information in Manufacturing&lt;/h2&gt;
&lt;p&gt;Every sector can suffer from data fragmentation.
Each must create its own pipelines to handle the data it collects and to transform it into a useful form.
In order to give a practical example in this short blog
article, we will focus on &lt;strong&gt;manufacturing&lt;/strong&gt;, where a plethora
of data can be collected throughout the industrial process.&lt;/p&gt;
&lt;p&gt;Collecting raw data is only the first step in gaining useful insights from the production floor.&lt;br&gt;
To make it useful, the &lt;strong&gt;collected data needs to be validated and harmonized&lt;/strong&gt;.
Sensor readings may use different sampling rates, units, or timestamps, and need to be linked to the corresponding machinery component or production batch.
At the same time, quality-control cameras capture images of manufactured components, while operators and technicians record maintenance activities and service reports.
&lt;strong&gt;Automated data pipelines&lt;/strong&gt; transform the measurements into a consistent format and integrate different sources of information before storing them for effective use.&lt;/p&gt;
&lt;p&gt;These measurements can be automatically transmitted through &lt;strong&gt;IIoT communication protocols&lt;/strong&gt; such as &lt;strong&gt;OPC UA&lt;/strong&gt; or &lt;strong&gt;MQTT&lt;/strong&gt; to edge devices or gateways located close to the production line.
The edge layer performs initial processing tasks, including filtering noisy signals, synchronizing timestamps, validating sensor readings, and attaching contextual information such as machine identifiers or production batches.
The processed data is then streamed to centralized time-series databases, creating a &lt;strong&gt;consistent historical record&lt;/strong&gt; of machine behavior without relying on manual measurements or spreadsheets.&lt;/p&gt;
&lt;p&gt;This infrastructure does not necessarily have to be built entirely from scratch.
&lt;strong&gt;Cloud platforms&lt;/strong&gt; such as Microsoft Azure and Google Cloud provide standard services for connecting industrial devices, ingesting and processing telemetry, storing manufacturing data, and building analytics.
The challenge is often choosing and combining the right components for the specific production environment rather than developing every part internally.&lt;/p&gt;
&lt;p&gt;In a manufacturing environment, building a reliable data foundation starts with &lt;strong&gt;automating the collection and processing of data&lt;/strong&gt; generated throughout the production process.
From there, that data can be used for a whole host of purposes.
In the &lt;a href="https://www.koehn.ai/en/blog/upgrades_and_retrofitting/"&gt;companion blog article&lt;/a&gt;, we will examine exactly what a consistent database and advanced pipelines enable for manufacturers and consumers.&lt;/p&gt;
&lt;h2 id="making-your-data-infrastructure-ai-ready"&gt;Making Your Data Infrastructure AI-Ready&lt;/h2&gt;
&lt;p&gt;Today, many organizations are investing in &lt;strong&gt;AI solutions&lt;/strong&gt;, predictive analytics, and automation.
But even the most advanced AI systems cannot compensate for fragmented or poor-quality data.
If data sources contain duplicate records, conflicting entries, or incomplete historical records, the outputs generated by AI models will also become unreliable.
In practice, &lt;strong&gt;bad data does not disappear with AI; it just propagates model bias at scale&lt;/strong&gt;.&lt;/p&gt;
&lt;p&gt;At Koehn AI, we help organizations &lt;strong&gt;turn existing data and systems into a reliable foundation for AI&lt;/strong&gt;.
This often means looking beyond the obvious solution: for example, understanding an old machine in detail before deciding what to measure and how to retrofit it.
We bring the &lt;strong&gt;scientific expertise&lt;/strong&gt; that helps understand the underlying system first and develop the right solution around it.&lt;/p&gt;
&lt;p&gt;The same approach applies to unstructured information such as maintenance reports and technical documentation.
With modern AI approaches such as &lt;strong&gt;Large Language Models&lt;/strong&gt; (LLMs) and &lt;strong&gt;Retrieval-Augmented Generation&lt;/strong&gt; (RAG), we turn this otherwise difficult-to-use knowledge into information that can be searched and used more effectively.&lt;/p&gt;
&lt;p&gt;Ultimately, the goal is not simply to introduce AI, but to &lt;strong&gt;build&lt;/strong&gt; the &lt;strong&gt;data foundation&lt;/strong&gt; that allows it to deliver real value.&lt;/p&gt;</description></item><item><title>AI-driven drug discovery with transformer models</title><link>https://www.koehn.ai/en/blog/cofolding/</link><pubDate>Wed, 18 Mar 2026 00:00:00 +0000</pubDate><guid>https://www.koehn.ai/en/blog/cofolding/</guid><description>&lt;h2 id="the-lock-and-key-challenge"&gt;The &amp;ldquo;Lock and Key&amp;rdquo; Challenge&lt;/h2&gt;
&lt;p&gt;Drug discovery is costly and time-consuming; worldwide pharmaceutical R&amp;amp;D spending reached an estimated &lt;a href="https://makingpharmaindustry.it/wp-content/uploads/2025/03/iqvia-institute-rd-trends-2025-forweb.pdf" target="_blank" rel="noopener"&gt;USD 190 billion in 2024&lt;/a&gt;, with development times for new drugs typically ranging from 10 to 15 years.&lt;/p&gt;
&lt;p&gt;Developing drugs that interact with a specific target involved in a disease, such as an enzyme or receptor, is a process of designing, screening, and refining molecules to bind to that target. We can imagine the challenge for researchers as being like designing a key for a lock, but where both the key and the lock are constantly wiggling and changing shape. Furthermore, the key may often have to hold two or more locks together simultaneously. This is known as a ternary complex.&lt;/p&gt;
&lt;p&gt;Take the example of &lt;a href="https://pmc.ncbi.nlm.nih.gov/articles/PMC10525103/" target="_blank" rel="noopener"&gt;Rapamycin&lt;/a&gt;, a small molecule drug originally discovered in a soil sample from Easter Island, produced by the &lt;a href="https://pubmed.ncbi.nlm.nih.gov/1102508/" target="_blank" rel="noopener"&gt;bacterium &lt;em&gt;Streptomyces hygroscopicus&lt;/em&gt;&lt;/a&gt;. It is used as an immunosuppressant to prevent organ transplant rejection and as a treatment for cancers such as renal cell carcinoma. Intriguingly, Rapamycin is also known to &lt;a href="https://pmc.ncbi.nlm.nih.gov/articles/PMC2786175/" target="_blank" rel="noopener"&gt;extend lifespans in mice&lt;/a&gt; and has generated great interest for its potential to &lt;a href="https://www.thelancet.com/journals/lanhl/article/PIIS2666-7568%2823%2900258-1/fulltext" target="_blank" rel="noopener"&gt;extend human longevity&lt;/a&gt;. Rapamycin acts as a molecular glue between a large kinase protein called the &lt;a href="https://www.cell.com/cell-metabolism/fulltext/S1550-4131%2816%2930227-3" target="_blank" rel="noopener"&gt;mechanistic Target of Rapamycin (mTOR)&lt;/a&gt;, often referred to as the cell&amp;rsquo;s &amp;ldquo;growth switch&amp;rdquo;, and FKBP12, which is involved in the human immune response.&lt;/p&gt;
&lt;h2 id="beyond-alphafold-open-source-drug-discovery-with-boltz-2"&gt;Beyond AlphaFold: Open-Source Drug Discovery with Boltz-2&lt;/h2&gt;
&lt;p&gt;Running an experiment to determine the interaction between a drug candidate and a target protein, or a ternary protein complex, can take weeks or months and cost thousands of dollars. With the latest advances in transformer-based foundational models like &lt;a href="https://github.com/google-deepmind/alphafold3" target="_blank" rel="noopener"&gt;AlphaFold 3&lt;/a&gt; and &lt;a href="https://github.com/jwohlwend/boltz" target="_blank" rel="noopener"&gt;Boltz-2&lt;/a&gt;, these interactions can be predicted in seconds, with thousands of drug candidates screened in parallel using this &lt;em&gt;in silico&lt;/em&gt; approach.&lt;/p&gt;
&lt;p&gt;While the license for AlphaFold 3 is restrictive for commercial use, Boltz-2 is open source and licensed under the highly permissive MIT license. This allows clients to run their drug pipelines on their own private infrastructure, protecting valuable intellectual property. This ensures data sovereignty, guaranteeing that proprietary lead compounds and intellectual property never leave your private infrastructure.&lt;/p&gt;
&lt;p&gt;Boltz-2 uses a deep learning approach called co-folding to simulate how multiple proteins interact with a drug candidate. It is particularly useful for:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Hit discovery: Rapidly triaging large chemical libraries to effectively distinguish potential &amp;lsquo;binders&amp;rsquo; from &amp;lsquo;decoys&amp;rsquo; during high-throughput screening.&lt;/li&gt;
&lt;li&gt;Lead optimization: The affinity head allows researchers to rank close analogs and predict how small molecular modifications will impact potency.&lt;/li&gt;
&lt;li&gt;Difficult pockets: Simulating the flexible shapes of ligands and targets simultaneously.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;The Boltz-2 architecture integrates many recent advances in machine learning, such as a diffusion/denoising module, similar to Midjourney or DALL-E, but for atoms instead of pixels. Additionally, the Affinity module, a special regression head, &amp;lsquo;stress tests&amp;rsquo; the interaction prediction to provide a binding affinity score. Furthermore, inference-time steering sets physics-based guardrails on the simulation.&lt;/p&gt;
&lt;h2 id="simulating-a-molecular-glue"&gt;Simulating a Molecular &amp;ldquo;Glue&amp;rdquo;&lt;/h2&gt;
&lt;p&gt;Returning to our example of Rapamycin, we can see the output of Boltz-2 for simulating the ternary complex of the FRB domain of mTOR, Rapamycin, and FKBP12. This visualizes how Rapamycin &amp;lsquo;glues&amp;rsquo; these two proteins together, affecting both of their functions. With the viewer, we can rotate and zoom in on the predicted interaction in three dimensions. Rapamycin doesn’t just find a pocket in the mTOR complex; it stabilizes the interaction between the protein and FKBP12.&lt;/p&gt;
&lt;p&gt;Here, we have predicted the ternary structure with Boltz-2 using the CLI, with sequences from &lt;a href="https://pubmed.ncbi.nlm.nih.gov/10089303/" target="_blank" rel="noopener"&gt;an early experimentally derived structure published in 1999&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;After &lt;a href="https://github.com/jwohlwend/boltz?tab=readme-ov-file#installation" target="_blank" rel="noopener"&gt;installing our Boltz-2 environment&lt;/a&gt;, we generate a YAML file for our experiment:&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-yaml" data-lang="yaml"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="c"&gt;# rapamycin.yaml&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="nt"&gt;version&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="m"&gt;1&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="nt"&gt;sequences&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="w"&gt; &lt;/span&gt;- &lt;span class="nt"&gt;protein&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nt"&gt;id&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="l"&gt;A &lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="c"&gt;# mTOR FRB Domain&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nt"&gt;sequence&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="l"&gt;VAILWHEMWHEGLEEASRLYFGERNVKGMFEVLEPLHAMMERGPQTLKETSFNQAYGRDLMEAQEWCRKYMKSGNVKDLTQAWDLYYHVFRRIS&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="w"&gt; &lt;/span&gt;- &lt;span class="nt"&gt;protein&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nt"&gt;id&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="l"&gt;B &lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="c"&gt;# FKBP12&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nt"&gt;sequence&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="l"&gt;GVQVETISPGDGRTFPKRGQTCVVHYTGMLEDGKKFDSSRDRNKPFKFMLGKQEVIRGWEEGVAQMSVGQRAKLTISPDYAYGATGHPGIIPPHATLVFDVELLKLE&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="w"&gt; &lt;/span&gt;- &lt;span class="nt"&gt;ligand&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nt"&gt;id&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="l"&gt;C &lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="c"&gt;# Rapamycin&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nt"&gt;smiles&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s1"&gt;&amp;#39;C[C@@H]1CC[C@H]2C[C@@H](/C(=C/C=C/C=C\[C@H](C[C@H](C(=O)[C@@H]([C@@H](/C(=C/[C@H](C(=O)C[C@H](OC(=O)[C@@H]3CCCCN3C(=O)C(=O)[C@@]1(O2)O)[C@H](C)C[C@@H]4CC[C@H]([C@@H](C4)OC)O)C)/C)O)OC)C)C)/C)OC&amp;#39;&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="nt"&gt;properties&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="w"&gt; &lt;/span&gt;- &lt;span class="nt"&gt;affinity&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nt"&gt;binder&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="l"&gt;C&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;After creating our YAML file, we use the Boltz CLI to generate the prediction:&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;boltz predict rapamycin.yaml --use_msa_server
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;The structure representation is interactive; you can rotate and zoom to explore the predicted structure and compare it to the &lt;a href="https://www.rcsb.org/3d-view/1NSG/1" target="_blank" rel="noopener"&gt;published X-ray crystallography structure&lt;/a&gt;.&lt;/p&gt;
&lt;script src="https://3dmol.org/build/3Dmol-min.js"&gt;&lt;/script&gt;
&lt;style&gt;
.mol-container-ternary-ternary { margin: 30px 0; clear: both; }
.mol-canvas-ternary-ternary {
width: 100%; height: 600px; border: 1px solid #ddd;
border-radius: 12px; background-color: white;
position: relative !important; overflow: hidden;
}
.mol-controls-ternary-ternary { margin-bottom: 14px; display: flex; gap: 10px; flex-wrap: wrap; }
.mol-btn-ternary-ternary {
padding: 8px 16px;
border: 2px solid #ddd;
background: #f9f9f9;
color: #666;
border-radius: 8px;
cursor: pointer;
transition: all 0.2s ease;
font-weight: 500;
}
#toggleA-ternary-ternary.active {
border-color: #E55E26;
background-color: #fff2ed;
color: #b33d0d;
}
#toggleB-ternary-ternary.active {
border-color: #00916F;
background-color: #ebfaf7;
color: #006b52;
}
#toggleL-ternary-ternary.active {
border-color: #4CAF50;
background-color: #f1f9f1;
color: #2e7d32;
}
#reset-ternary-ternary { border-color: #ccc; background: white; color: #333; }
#reset-ternary-ternary:hover { background: #eee; }
.mol-btn-ternary-ternary:hover { filter: brightness(0.95); }
&lt;/style&gt;
&lt;div class="mol-container-ternary-ternary"&gt;
&lt;div class="mol-controls-ternary-ternary"&gt;
&lt;button id="toggleA-ternary-ternary" class="mol-btn-ternary-ternary active" &gt;mTOR FRB&lt;/button&gt;
&lt;button id="toggleB-ternary-ternary" class="mol-btn-ternary-ternary active" &gt;FKBP12&lt;/button&gt;
&lt;button id="toggleL-ternary-ternary" class="mol-btn-ternary-ternary active" &gt;Rapamycin&lt;/button&gt;
&lt;button id="reset-ternary-ternary" class="mol-btn-ternary-ternary"&gt;Reset View&lt;/button&gt;
&lt;/div&gt;
&lt;div id="viewer-ternary-ternary" class="mol-canvas-ternary-ternary"&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;script&gt;
(function() {
let v = null;
const state = { A: true, B: true, L: true };
const init = () =&gt; {
const element = document.getElementById("viewer-ternary-ternary");
v = $3Dmol.createViewer(element, { backgroundColor: "white" });
const applyStyles = () =&gt; {
v.setStyle({}, {});
if (state.A) v.setStyle({ chain: "A" }, { cartoon: { color: "#E55E26" } });
if (state.B) v.setStyle({ chain: "B" }, { cartoon: { color: "#00916F" } });
if (state.L) v.setStyle({ resn: "LIG1" }, { stick: { colorscheme: "greenCarbon", radius: 0.22 } });
v.render();
document.getElementById("toggleA-ternary-ternary").classList.toggle("active", state.A);
document.getElementById("toggleB-ternary-ternary").classList.toggle("active", state.B);
document.getElementById("toggleL-ternary-ternary").classList.toggle("active", state.L);
};
document.getElementById("toggleA-ternary-ternary").onclick = () =&gt; { state.A = !state.A; applyStyles(); };
document.getElementById("toggleB-ternary-ternary").onclick = () =&gt; { state.B = !state.B; applyStyles(); };
document.getElementById("toggleL-ternary-ternary").onclick = () =&gt; { state.L = !state.L; applyStyles(); };
document.getElementById("reset-ternary-ternary").onclick = () =&gt; { v.zoomTo(); v.render(); };
fetch("\/media\/blog\/cofolding-model.cif")
.then(r =&gt; r.text())
.then(data =&gt; {
v.addModel(data, "cif");
applyStyles();
v.zoomTo();
v.render();
});
};
const checkLib = setInterval(() =&gt; {
if (typeof $3Dmol !== 'undefined') {
clearInterval(checkLib);
init();
}
}, 100);
})();
&lt;/script&gt;
&lt;h2 id="benchmarking-affinity-with-boltz-2"&gt;Benchmarking Affinity with Boltz-2&lt;/h2&gt;
&lt;p&gt;We know that the interaction of Rapamycin within this ternary structure is &lt;a href="https://pubmed.ncbi.nlm.nih.gov/9933627/" target="_blank" rel="noopener"&gt;mediated by the FKBP12 protein&lt;/a&gt;, but can we verify this by simulating different combinations using Boltz-2? This represents a common use case where researchers probe cooperative binding in various contexts.&lt;/p&gt;
&lt;p&gt;To scale this, we can use a batch process to programmatically call the Boltz CLI. Our workflow follows these steps:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Generation: Programmatically use FASTA protein sequences to generate YAML configuration files for each experimental condition.&lt;/li&gt;
&lt;li&gt;Execution: Point the Boltz predictor to the input directory containing our generated YAMLs.&lt;/li&gt;
&lt;li&gt;Processing: Iterate through the results to compare the affinity binding scores across different protein combinations&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;After generating the different combinations of the YAML configuration files, we can programmatically call Boltz on the experiments and run the process.&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-Python" data-lang="Python"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="kn"&gt;import&lt;/span&gt; &lt;span class="nn"&gt;subprocess&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;run_boltz&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;input_dir&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nb"&gt;str&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;output_dir&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nb"&gt;str&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;use_msa_server&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nb"&gt;bool&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="kc"&gt;True&lt;/span&gt;&lt;span class="p"&gt;):&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="n"&gt;cmd&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;&amp;#34;boltz&amp;#34;&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;&amp;#34;predict&amp;#34;&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;input_dir&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;&amp;#34;--out_dir&amp;#34;&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;output_dir&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;use_msa_server&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="n"&gt;cmd&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;append&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;&amp;#34;--use_msa_server&amp;#34;&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="n"&gt;subprocess&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;run&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;cmd&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;check&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="kc"&gt;True&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="n"&gt;run_boltz&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;&amp;#34;inputs&amp;#34;&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;&amp;#34;outputs&amp;#34;&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;use_msa_server&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="kc"&gt;True&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;For this experiment, we performed five simulations for each combination to ensure statistical robustness. Why five? Structural predictions can vary slightly between runs but by averaging multiple seeds, we obtain a more reliable mean affinity score and can measure the variance.&lt;/p&gt;
&lt;p&gt;It is important to note that a lower score is better, as the affinity prediction value represents the log10 of the half-maximal inhibitory concentration (IC50). A lower IC50 indicates a more potent binding interaction.&lt;/p&gt;
&lt;p&gt;
&lt;figure &gt;
&lt;div class="flex justify-center "&gt;
&lt;div class="w-full" &gt;
&lt;img alt="result"
srcset="https://www.koehn.ai/media/blog/cofolding-affinity_hu_ca9adbaee2df30c4.webp 320w, https://www.koehn.ai/media/blog/cofolding-affinity_hu_b0f632d381f7ad0e.webp 480w, https://www.koehn.ai/media/blog/cofolding-affinity_hu_f2e8cee7295e12fa.webp 558w"
sizes="(max-width: 480px) 100vw, (max-width: 768px) 90vw, (max-width: 1024px) 80vw, 760px"
src="https://www.koehn.ai/media/blog/cofolding-affinity_hu_ca9adbaee2df30c4.webp"
width="558"
height="378"
loading="lazy" data-zoomable /&gt;&lt;/div&gt;
&lt;/div&gt;&lt;/figure&gt;
&lt;/p&gt;
&lt;p&gt;The simulation results clearly demonstrate the cooperative nature of the system. While Rapamycin shows affinity for both FKBP12 (-1.67) and the FRB domain (-1.43) individually, the ternary complex (-2.01) shows the highest predicted affinity. This significantly lower score confirms that the small molecule effectively stabilizes the interaction between the two proteins, acting as a potent molecular glue.&lt;/p&gt;
&lt;h2 id="accelerating-your-drug-discovery-pipeline"&gt;Accelerating Your Drug Discovery Pipeline&lt;/h2&gt;
&lt;p&gt;While models like Boltz-2 provide groundbreaking predictive power, there is often a significant gap between running a CLI tool on a research workstation and deploying a scalable, reliable drug discovery pipeline. A foundation model can provide the raw data, but the true value lies in how this data is integrated into a larger R&amp;amp;D workflow.&lt;/p&gt;
&lt;p&gt;At Koehn AI we specialize in bridging the divide between cutting-edge science and robust software engineering. Whether you are looking to wrap these models in high-performance API endpoints, automate complex batch-processing workflows, or build intuitive 3D visualization tools for your researchers, we help you deploy AI that works in production.&lt;/p&gt;
&lt;p&gt;Ready to accelerate your drug discovery pipeline? &lt;a href="https://www.koehn.ai/en/contact/" target="_blank" rel="noopener"&gt;Contact us&lt;/a&gt; to discuss how we can help you build the infrastructure for the next generation of molecular science.&lt;/p&gt;</description></item><item><title>Acoustic Monitoring for Predictive Maintenance of Turbines</title><link>https://www.koehn.ai/en/portfolio/acoustic_monitoring/</link><pubDate>Wed, 04 Jun 2025 00:00:00 +0000</pubDate><guid>https://www.koehn.ai/en/portfolio/acoustic_monitoring/</guid><description>&lt;p&gt;&lt;strong&gt;Acoustic Monitoring and Predictive Maintenance in Turbines&lt;/strong&gt;&lt;br&gt;
Predictive maintenance leverages advanced data analysis and machine learning to monitor equipment health, enabling early detection of emerging faults before they lead to costly downtime or catastrophic failures. By transforming raw sensor data into actionable insights, organizations can optimize maintenance schedules, reduce unplanned outages, and extend the life of critical assets. This proactive approach lowers operational costs while enhancing safety and reliability in demanding industrial environments.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Client Profile and Context&lt;/strong&gt;&lt;br&gt;
The client is a leading turbine manufacturer with turbines in service. They commissioned a research project to advance predictive maintenance using microphone-based acoustic monitoring. The goal was to explore unsupervised generative methods that learn reference audio spectra conditioned on operating state, using turbine acoustics and operational parameters, so that real acoustic emissions can be compared with modeled spectra, with a particular emphasis on out-of-domain performance.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Challenge&lt;/strong&gt;&lt;br&gt;
The research team needed to develop generative models that represent normal turbine acoustics without relying on labeled fault data. Acoustic information originated from externally fitted microphones and was available as spectrograms with predefined frequency resolution rather than raw audio, paired with internal machine and ambient parameters. Selecting appropriate conditioning variables, such as inlet guide vane position, load and compressor inlet temperature, was essential to keep generated spectra physically plausible across operating regimes. High noise levels and the absence of labeled anomalies made learning and evaluation difficult. The team therefore pursued a robust unsupervised approach aimed at producing realistic reference spectrograms with out-of-domain generalization under varied turbine conditions, establishing the basis for future anomaly detection.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Our Approach and Solution&lt;/strong&gt;&lt;br&gt;
We began by conducting extensive exploratory data analysis (EDA) on spectrograms derived from externally fitted microphones. Dimensionality reduction, using Principal Component Analysis (PCA), indicated that inlet guide vane position and compressor inlet temperature were the primary drivers of separable operating domains. Data preparation involved selecting frequency bands with optimal signal-to-noise ratios and restricting records to normal operating conditions, with out-of-domain regimes held out for evaluation. Exponential mapping and logarithmic inversion prevented non-physical spectrogram values. Visualizations in Python with Plotly guided our feature-engineering decisions.&lt;/p&gt;
&lt;p&gt;Building on these insights, we developed a Conditional Variational Autoencoder (CVAE) in PyTorch. The CVAE’s convolutional neural network (CNN)–based encoder–decoder architecture was conditioned on key parameters to balance spectrogram reconstruction accuracy and latent-space regularization. Comprehensive grid searches optimized encoder and decoder layer depths, latent-space dimensions, and regularization strength. Iterative training rounds included hypothesis-driven evaluations of in-domain and out-of-domain spectrogram reconstructions. Throughout the project, our team collaborated closely with client experts, reviewing latent-space visualizations and refining conditioning strategies. The final deliverables comprised a trained CVAE for spectrogram generation, a detailed scientific report outlining methodology and findings, and a roadmap for extending the research to real audio anomaly detection (once raw audio is recorded) using pre-trained audio transformers.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;We provided&lt;/strong&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Generative CVAE models trained to reconstruct and generate acoustic spectrograms from microphones under varied turbine conditions.&lt;/li&gt;
&lt;li&gt;Comprehensive exploratory analysis and data visualization, enabling clear identification of operational regimes.&lt;/li&gt;
&lt;li&gt;Identification and selection of critical machine parameters to ensure robust model conditioning.&lt;/li&gt;
&lt;li&gt;A detailed scientific report summarizing methodologies, findings, and actionable recommendations for future anomaly detection.&lt;/li&gt;
&lt;li&gt;A strategic roadmap for integrating real audio data once recorded and leveraging state-of-the-art anomalous sound detection methods.&lt;/li&gt;
&lt;/ul&gt;</description></item><item><title>Explainable AI for Neural Networks in Drug Development</title><link>https://www.koehn.ai/en/portfolio/explainable_ai/</link><pubDate>Mon, 26 May 2025 00:00:00 +0000</pubDate><guid>https://www.koehn.ai/en/portfolio/explainable_ai/</guid><description>&lt;p&gt;In recent decades, artificial intelligence (AI) and machine learning (ML) have emerged as powerful tools to accelerate drug development, particularly through methods like Quantitative Structure-Activity Relationship (QSAR) modelling, which predict the biological activity of small molecules. However, the inference results of ML models, especially neural networks, are often difficult to interpret for scientists and are frequently referred to as “black boxes”.&lt;/p&gt;
&lt;p&gt;To support rational drug design and comply with increasing regulatory demands for model transparency, explainable AI (XAI) methods are now being adopted to provide insights into how ML models make their predictions. In 2024, Koehn AI was approached by a German pharmaceutical company to help integrate the latest advances in XAI techniques into their QSAR neural network Pytorch framework.&lt;/p&gt;
&lt;p&gt;Our work focused on evaluating neural-network specific explainability tools such as Integrated Gradients via the Captum library, with more generalizable approaches likes Local Interpretable Model-Agnostic Explanations (LIME) and counterfactual generation using the STONED algorithm in tandem with Self-Referencing Embedded Strings (SELFIES) molecular representations. These methods were benchmarked using real-world activity cliff datasets and evaluated across different model types, including tabular, graph-based and chemical language architectures.&lt;/p&gt;
&lt;p&gt;We implemented a robust pipeline that allowed researchers to map predicted molecular activity contributions to individual atoms and molecular fingerprint bits, visualized through RDKit Similarity Maps, offering intuitive, chemically meaningful interpretations. The solution was optimized for performance to ensure seamless and effective integration with the client’s existing workflows and was deployed with their production QSAR platform to support decision making in rational drug design.&lt;/p&gt;
&lt;h2 id="we-delivered"&gt;We delivered:&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;Development of an Explainable AI module integrated into the client’s QSAR neural network framework&lt;/li&gt;
&lt;li&gt;Evaluation of XAI methods including Captum, LIME, and counterfactuals with SELFIES and STONED algorithms&lt;/li&gt;
&lt;li&gt;Support for multiple neural network architectures with visualization with RDKit&lt;/li&gt;
&lt;li&gt;Benchmarking with activity cliff datasets to assess relevance and reliability of explanations&lt;/li&gt;
&lt;li&gt;Optimization of explainability pipelines for efficient end user interaction in workflows&lt;/li&gt;
&lt;li&gt;Deployment of the final module into the client’s production environment supporting informed molecular design&lt;/li&gt;
&lt;/ul&gt;</description></item><item><title>Predictive maintenance and anomaly detection in green energy production</title><link>https://www.koehn.ai/en/portfolio/predictive_maintenance/</link><pubDate>Wed, 09 Apr 2025 00:00:00 +0000</pubDate><guid>https://www.koehn.ai/en/portfolio/predictive_maintenance/</guid><description>&lt;p&gt;To minimize the downtime cost of critical production devices in the field, a major manufacturer has hired Koehn AI to develop a predictive maintenance system.&lt;/p&gt;
&lt;p&gt;When it comes to energy production, any downtime - as short as it may be - comes at a cost.
It is therefore essential to detect possible failure points before they happen, so that technicians may preemptively address the fault and minimize costs; all in real-time.&lt;/p&gt;
&lt;p&gt;Koehn AI was hired in 2024 by a global manufacturer of solar technology devices to develop an end-to-end predictive maintenance solution, that would allow users to monitor their devices for errors and anomalies.
We set out to build a comprehensive end-to-end product: from configuring the devices for data output, to setting up data pipelines and data governance infrastructures, to AI model building and output visualization.
In the process, we have leveraged state-of-the-art data analytics and warehousing services: Microsoft Fabric and Databricks instances were set up in Azure with a code-first, infrastructure-as-code approach, upon which ETL pipelines based on Spark structured streaming were deployed.
Once access to clean and actionable streaming data had been ensured, the extensive scientific and technical knowledge-base of Koehn AI came into play in the development of custom, use-case-specific algorithms, designed with the internal workings of the devices in mind.
The algorithms, which now run on a scheduled basis over the database, output their results to a pleasing visualization dashboard.&lt;/p&gt;
&lt;h2 id="what-we-have-provided"&gt;What we have provided&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;A scalable, real-time data pipeline that can handle the growing demands of the client&amp;rsquo;s expanding device fleet.&lt;/li&gt;
&lt;li&gt;A comprehensive, marketable anomaly detection solution as a value-added service to the client&amp;rsquo;s customers.&lt;/li&gt;
&lt;li&gt;A user-friendly dashboard that enables real-time monitoring and alerts, exposed to internal developers.&lt;/li&gt;
&lt;/ul&gt;</description></item><item><title>Statistical Forecast Optimization</title><link>https://www.koehn.ai/en/portfolio/supply_chain/</link><pubDate>Wed, 02 Apr 2025 00:00:00 +0000</pubDate><guid>https://www.koehn.ai/en/portfolio/supply_chain/</guid><description>&lt;h2 id="problem-statement"&gt;Problem Statement&lt;/h2&gt;
&lt;p&gt;The client leveraged SAP IBP Demand Planning for product demand forecasting. However, major market disruptions—including natural gas shortages, price volatility, surging demand for heat pumps, and dynamic regulatory changes in Germany—introduced substantial instability and severely impacted forecast accuracy. Most product time series showed clear signs of disruption, while the existing forecast setup lacked the robustness to respond effectively. With little preprocessing to smooth out anomalies, the models reacted sharply to erratic short-term spikes resulting in dramatic forecast shifts.&lt;/p&gt;
&lt;p&gt;In addition, accessory products—typically sold alongside core products—were forecasted independently, ignoring joint sales dynamics.&lt;/p&gt;
&lt;h2 id="solution-provided"&gt;Solution Provided&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;Established essential data preprocessing routines—including outlier detection and correction—to reduce noise and stabilize input signals prior to modeling.&lt;/li&gt;
&lt;li&gt;Replaced the existing Best Fit approach with an ensemble forecasting strategy in SAP IBP, combining multiple models to deliver more stable, accurate predictions across all product groups.&lt;/li&gt;
&lt;li&gt;Developed a custom Python-based software solution to leverage correlations between core and accessory products, integrating product lifecycle data for more intelligent accessory forecasting.&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id="implementation--execution"&gt;Implementation &amp;amp; Execution&lt;/h2&gt;
&lt;p&gt;At project start, the client relied on SAP IBP’s Best Fit algorithm, which selected a single top-performing model (e.g., ARIMA, Exponential Smoothing, Gradient Boosting) based on historical data. We replaced this with a forward-looking ensemble forecasting strategy, combining multiple models into a weighted aggregate to produce more resilient and accurate forecasts. Optimal model weights were derived through time series cross-validation, simulating real-world forecast performance and enabling robust selection across a variety of demand patterns. These weights were periodically recalibrated for core products, accessories, and product segments with pronounced seasonality.&lt;/p&gt;
&lt;p&gt;One key improvement involved implementing a robust preprocessing layer. Before feeding time series into forecasting models, we applied targeted outlier correction and sales data smoothing techniques. This reduced the influence of extreme, short-term events on the forecast, leading to more consistent performance and mitigating overreactions to volatile months.&lt;/p&gt;
&lt;p&gt;To further enhance forecasting capabilities, we developed a custom Python-based software solution: Core Product Governed Accessory Forecasting (CPGAF). This tool capitalized on the strong correlations between core and accessory products, integrating historical relationship patterns and PLM information to deliver accessory forecasts that are both intelligent and synchronized with the broader product ecosystem.&lt;/p&gt;
&lt;p&gt;Beyond model improvements, we provided the client with deep-dive data analytics to uncover key performance drivers—spanning product groups, countries, and forecast granularities—by examining different product hierarchy levels and time intervals.&lt;/p&gt;
&lt;h2 id="results--impact"&gt;Results &amp;amp; Impact&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;Achieved a significant improvement in forecast stability and accuracy, boosting key performance indicators by 15% to 30% across target markets.&lt;/li&gt;
&lt;li&gt;Successfully implemented the Python-based CPGAF package, enabling more accurate accessory forecasting driven by core product predictions.&lt;/li&gt;
&lt;li&gt;Strengthened forecasting resilience in a volatile environment, positioning demand planning as a strategic, data-informed driver of business value.&lt;/li&gt;
&lt;/ul&gt;</description></item><item><title>Causal Impact: Analyzing the impact of events</title><link>https://www.koehn.ai/en/blog/causal-impact-analyzing-impact-events/</link><pubDate>Tue, 07 Feb 2023 00:00:00 +0000</pubDate><guid>https://www.koehn.ai/en/blog/causal-impact-analyzing-impact-events/</guid><description>&lt;h2 id="actio-et-reactio"&gt;Actio et Reactio&lt;/h2&gt;
&lt;p&gt;As the Earth keeps on turning and all of us keep on pursuing our daily work and life, things will continue to change and changes cause further reaching effects. Understanding the effects of specific impacts is essential for business success. If you saw increasing material prices after an extreme weather event, e.g., you may want to quantify this to better prepare for similar upcoming events. When you change the advertising strategies for your company, you want to measure the extra profit gained via these efforts.&lt;/p&gt;
&lt;h2 id="causal-impact"&gt;Causal Impact&lt;/h2&gt;
&lt;p&gt;With Google’s
&lt;strong&gt;Causal Impact&lt;/strong&gt; package (tfcausalimpact for Python), there is an easily applicable tool to do this. We will illustrate how it works, but also where you have to be careful.
As an exemplary dataset, we use the development of the real wages index of Germany, published quarterly [1]:
&lt;figure &gt;
&lt;div class="flex justify-center "&gt;
&lt;div class="w-full" &gt;
&lt;img alt="Fig. 1: Time curve of the real wages index, nominal wages index and the consumers&amp;rsquo; price index."
srcset="https://www.koehn.ai/media/blog/1-timecurve_hu_6421412e6ff38c45.webp 320w, https://www.koehn.ai/media/blog/1-timecurve_hu_1b6d07458fe43149.webp 480w, https://www.koehn.ai/media/blog/1-timecurve_hu_edc1cc4466a80ed1.webp 747w"
sizes="(max-width: 480px) 100vw, (max-width: 768px) 90vw, (max-width: 1024px) 80vw, 760px"
src="https://www.koehn.ai/media/blog/1-timecurve_hu_6421412e6ff38c45.webp"
width="747"
height="376"
loading="lazy" data-zoomable /&gt;&lt;/div&gt;
&lt;/div&gt;&lt;/figure&gt;
Fig. 1: Time curve of the real wages index, nominal wages index and the consumers&amp;rsquo; price index.
The real wages index (black line, “Reallohnindex”) is mainly described by the nominal wages index (orange line, “Nominallohnindex”) and the consumers’ price index (blue line, “Verbraucherpreisindex”). We directly see that the curves behave quite differently from 2020 onwards, compared to the more steady behaviour pre-COVID. Note that this article is not supposed to be an analysis or even a critique of COVID politics. It illustrates an analysis about the effect the measures had – and it is of course far from obvious how the effect would have been had other measures been chosen instead.&lt;/p&gt;
&lt;h2 id="causal-impact-on-the-data-itself"&gt;Causal Impact on the Data Itself&lt;/h2&gt;
&lt;p&gt;Running the Causal Impact framework on a dataset, we only have to tell the algorithm when the impact happened and whether to use additional inputs next to the actual target column. While it offers more ways to customise the analysis, we may only use the target (i.e. the real wages index) for a first run and set the impact on the first quarter of 2020:
&lt;figure &gt;
&lt;div class="flex justify-center "&gt;
&lt;div class="w-full" &gt;
&lt;img alt="Fig. 2: Causal Impact result of run on real wages index only."
srcset="https://www.koehn.ai/media/blog/2-causalimpact_hu_3dc1945676b9f06c.webp 320w, https://www.koehn.ai/media/blog/2-causalimpact_hu_db08439be1db354f.webp 480w, https://www.koehn.ai/media/blog/2-causalimpact_hu_4eb14b0a8083cde0.webp 760w"
sizes="(max-width: 480px) 100vw, (max-width: 768px) 90vw, (max-width: 1024px) 80vw, 760px"
src="https://www.koehn.ai/media/blog/2-causalimpact_hu_3dc1945676b9f06c.webp"
width="760"
height="545"
loading="lazy" data-zoomable /&gt;&lt;/div&gt;
&lt;/div&gt;&lt;/figure&gt;
Fig. 2: Causal Impact result of run on real wages index only.
Let us use this plot to explain the working principle of Causal Impact [2]. Based on the data before the impact, Causal Impact fits a Bayesian structural time-series model and uses it to predict how the target value (black curve, labelled “y”) would be expected to continue had the impact not happened. This is the so-called counterfactual: If this prediction suffices to explain the behaviour post-impact, there may have well been no impact after all. In the plot above, this is the orange band, with average predictions as the dashed red line. The broader the band, the more uncertainty lies behind the predictions. As we have not provided any further information, the uncertainty is rather large in the above first run. Still, the results make it clear that the provided impact did indeed happen: The second and third plot show the effect of the impact, pointwise and cumulative, i.e. how much the true values exceed the predictions.&lt;/p&gt;
&lt;h2 id="causal-impact-with-covariates--how-not-to-do-it"&gt;Causal Impact with Covariates – How Not to Do it&lt;/h2&gt;
&lt;p&gt;We already stated that we can also include additional data in the analysis, so-called control time series or covariates. Their purpose is to improve the predictability of the target, but they should not be affected by the impact themselves. This is a very important requirement. If the provided control time series are indeed also influenced by the impact event, the Causal Impact algorithm can no longer reliably quantify the effect of the impact – or even whether there was one in the first place.
We can illustrate this by doing what we shouldn’t: we add the nominal wages index as a control time series, which is a valuable input for determining the real wages index but also clearly experiences the impact itself (confer Fig. 1). The results then look like this:
&lt;figure &gt;
&lt;div class="flex justify-center "&gt;
&lt;div class="w-full" &gt;
&lt;img alt="Fig. 3: Causal Impact result on run with nominal wages index as control time series."
srcset="https://www.koehn.ai/media/blog/3-causalimpact_hu_19551734ff632485.webp 320w, https://www.koehn.ai/media/blog/3-causalimpact_hu_1d2f95ab5b2556ff.webp 480w, https://www.koehn.ai/media/blog/3-causalimpact_hu_ed8da3933be8e930.webp 760w"
sizes="(max-width: 480px) 100vw, (max-width: 768px) 90vw, (max-width: 1024px) 80vw, 760px"
src="https://www.koehn.ai/media/blog/3-causalimpact_hu_19551734ff632485.webp"
width="760"
height="548"
loading="lazy" data-zoomable /&gt;&lt;/div&gt;
&lt;/div&gt;&lt;/figure&gt;
Fig. 3: Causal Impact result on run with nominal wages index as control time series.
First of all, we see that the orange band is much narrower, even following the trend of the true values. For the pre-impact era, this is very much desirable. However, the nominal wages index is not a suitable control time series and this is reflected by the post-impact predictions continuing to follow the true values. As a result, the second and third plots show much less effect of an impact: the amount is smaller and the abscissa (i.e. no effect after all) lies within the uncertainty of the predicted effect. Adding also the consumers’ price index, we even get a symmetric uncertainty band, implying that the model can not quantify the effect of the impact:
&lt;figure &gt;
&lt;div class="flex justify-center "&gt;
&lt;div class="w-full" &gt;
&lt;img alt="Fig. 4: Causal Impact result on run with nominal wages index and consumers&amp;rsquo; price index as control time series."
srcset="https://www.koehn.ai/media/blog/4-causalimpact_hu_97fba7c2a8c18866.webp 320w, https://www.koehn.ai/media/blog/4-causalimpact_hu_e2dc30c14278ff2d.webp 480w, https://www.koehn.ai/media/blog/4-causalimpact_hu_3ad9f75340d6e4e7.webp 760w"
sizes="(max-width: 480px) 100vw, (max-width: 768px) 90vw, (max-width: 1024px) 80vw, 760px"
src="https://www.koehn.ai/media/blog/4-causalimpact_hu_97fba7c2a8c18866.webp"
width="760"
height="545"
loading="lazy" data-zoomable /&gt;&lt;/div&gt;
&lt;/div&gt;&lt;/figure&gt;
Fig. 4: Causal Impact result on run with nominal wages index and consumers&amp;rsquo; price index as control time series.
To extract more quantitative results, Causal Impact offers the summary functionality. For the first run, this returns:
&lt;figure &gt;
&lt;div class="flex justify-center "&gt;
&lt;div class="w-full" &gt;
&lt;img alt="Tab. 1: Results of the summary function of Causal Impact."
srcset="https://www.koehn.ai/media/blog/4a-summary_hu_c6212fd197f56dbb.webp 320w, https://www.koehn.ai/media/blog/4a-summary_hu_69597887146651d6.webp 480w, https://www.koehn.ai/media/blog/4a-summary_hu_26ae28cf79619aee.webp 501w"
sizes="(max-width: 480px) 100vw, (max-width: 768px) 90vw, (max-width: 1024px) 80vw, 760px"
src="https://www.koehn.ai/media/blog/4a-summary_hu_c6212fd197f56dbb.webp"
width="501"
height="358"
loading="lazy" data-zoomable /&gt;&lt;/div&gt;
&lt;/div&gt;&lt;/figure&gt;
The last lines tell whether Causal Impact can confirm the impact and the table quantifies the amount of the effect, stating the respective values with standard deviations (“s.d.”) and 95% confidence intervals (“CI”). In this case, Causal Impact is certain the impact did indeed happen and that it had a considerable effect. This already changes when we include the nominal wages index as control time series:
&lt;figure &gt;
&lt;div class="flex justify-center "&gt;
&lt;div class="w-full" &gt;
&lt;img alt="Tab. 2: Results of the summary function of Causal Impact including nominal wages."
srcset="https://www.koehn.ai/media/blog/4b-summary-nominalwages_hu_10e2a86ddf677dc6.webp 320w, https://www.koehn.ai/media/blog/4b-summary-nominalwages_hu_4b2f1325b8e4f621.webp 480w, https://www.koehn.ai/media/blog/4b-summary-nominalwages_hu_b14dc37df96fef4c.webp 501w"
sizes="(max-width: 480px) 100vw, (max-width: 768px) 90vw, (max-width: 1024px) 80vw, 760px"
src="https://www.koehn.ai/media/blog/4b-summary-nominalwages_hu_10e2a86ddf677dc6.webp"
width="501"
height="358"
loading="lazy" data-zoomable /&gt;&lt;/div&gt;
&lt;/div&gt;&lt;/figure&gt;
While Causal Impact still confirms the impact happened, the effect is considerably reduced (do not be confused by the large numbers for the relative effect: These are computed with respect to the predicted value, which is close to zero here.) Including now also the consumers’ price index as control time series, Causal Impact no longer confirms the impact happened and, consequently, the effect is expected to be vanishing.
&lt;figure &gt;
&lt;div class="flex justify-center "&gt;
&lt;div class="w-full" &gt;
&lt;img alt="Tab. 3: Results of the summary function of Causal Impact including price index."
srcset="https://www.koehn.ai/media/blog/4c-summary-price-index_hu_929fbead3506a86e.webp 320w, https://www.koehn.ai/media/blog/4c-summary-price-index_hu_1ca2dba56f7bb67b.webp 480w, https://www.koehn.ai/media/blog/4c-summary-price-index_hu_d26f8e67ae6be48d.webp 501w"
sizes="(max-width: 480px) 100vw, (max-width: 768px) 90vw, (max-width: 1024px) 80vw, 760px"
src="https://www.koehn.ai/media/blog/4c-summary-price-index_hu_929fbead3506a86e.webp"
width="501"
height="358"
loading="lazy" data-zoomable /&gt;&lt;/div&gt;
&lt;/div&gt;&lt;/figure&gt;
Another requirement for the control time series is that it must have data also before the impact. In the above example, you may of course think that the effect is larger when there were more strict COVID measures (or with some time delay). Comparing the stringency index [3] with the real wages index, we find:
&lt;figure &gt;
&lt;div class="flex justify-center "&gt;
&lt;div class="w-full" &gt;
&lt;img alt="Fig. 5: real wages, net income and consumers’ price index vs. stringency level of COVID measures (min, max, mean per quarter)."
srcset="https://www.koehn.ai/media/blog/5-realwages_hu_d00a1570095c23db.webp 320w, https://www.koehn.ai/media/blog/5-realwages_hu_b7a97aa696f483c4.webp 480w, https://www.koehn.ai/media/blog/5-realwages_hu_6f75849e1c61e38b.webp 760w"
sizes="(max-width: 480px) 100vw, (max-width: 768px) 90vw, (max-width: 1024px) 80vw, 760px"
src="https://www.koehn.ai/media/blog/5-realwages_hu_d00a1570095c23db.webp"
width="760"
height="380"
loading="lazy" data-zoomable /&gt;&lt;/div&gt;
&lt;/div&gt;&lt;/figure&gt;
Fig. 5: real wages, net income and consumers’ price index vs. stringency level of COVID measures (min, max, mean per quarter).
However, using the stringency level of the COVID measures as control time series, Causal Impact can not extract any information from it as the measures did not exist pre-impact. What is more, if the data is precisely 0 in the whole of the pre-impact era, we run into division by 0 errors. This can be circumvented by replacing the zeroes by small random values, but then – as one can expect – the predictions blow up as the stringency value increases to the actual values:
&lt;figure &gt;
&lt;div class="flex justify-center "&gt;
&lt;div class="w-full" &gt;
&lt;img alt="Fig. 6: Causal Impact result on run with the stringency level of the COVID measures as control time series."
srcset="https://www.koehn.ai/media/blog/6-causalimpact_hu_e0b5261f5398bea6.webp 320w, https://www.koehn.ai/media/blog/6-causalimpact_hu_489077ed57a0b0f0.webp 480w, https://www.koehn.ai/media/blog/6-causalimpact_hu_566f5a4ffbb291f2.webp 760w"
sizes="(max-width: 480px) 100vw, (max-width: 768px) 90vw, (max-width: 1024px) 80vw, 760px"
src="https://www.koehn.ai/media/blog/6-causalimpact_hu_e0b5261f5398bea6.webp"
width="760"
height="531"
loading="lazy" data-zoomable /&gt;&lt;/div&gt;
&lt;/div&gt;&lt;/figure&gt;
Fig. 6: Causal Impact result on run with the stringency level of the COVID measures as control time series.
The fact that Causal Impact could not gain any information from the stringency level data is also reflected by the symmetric shape of the prediction band: It could not even deduce whether an increase in the stringency level translates to an in- or decrease in the target value.&lt;/p&gt;
&lt;h2 id="ci-with-covariates--how-to-do-it"&gt;CI with Covariates – How to Do it&lt;/h2&gt;
&lt;p&gt;We illustrated two reasons that make a control time series meaningless as such. So what could be a useful covariate in this case? Clearly, it should be one that is linked to the data of interest, the real wages index, but did not experience the impact. In the example of marketing, the data of interest could be a market where you changed your marketing strategy, while the covariates are markets without changes.
It’s not easy to find a similarly good example in the case of COVID, as it impacted pretty much all aspects of life. However, looking at the net cold rent index (“Nettokaltmietindex”, where 100 reflects the level of 2015) [4], we find that it was rather unaffected – and it does make sense, too, as you can’t increase rent arbitrarily in Germany.
&lt;figure &gt;
&lt;div class="flex justify-center "&gt;
&lt;div class="w-full" &gt;
&lt;img alt="Fig. 7: real wages, nominal wages and consumers&amp;rsquo; price index vs. net cold rent index."
srcset="https://www.koehn.ai/media/blog/7-realwages_hu_7f8ce2ac611e2a72.webp 320w, https://www.koehn.ai/media/blog/7-realwages_hu_8d9aa0ca8ddb5228.webp 480w, https://www.koehn.ai/media/blog/7-realwages_hu_cf0073b25c81892d.webp 760w"
sizes="(max-width: 480px) 100vw, (max-width: 768px) 90vw, (max-width: 1024px) 80vw, 760px"
src="https://www.koehn.ai/media/blog/7-realwages_hu_7f8ce2ac611e2a72.webp"
width="760"
height="355"
loading="lazy" data-zoomable /&gt;&lt;/div&gt;
&lt;/div&gt;&lt;/figure&gt;
Fig. 7: real wages, nominal wages and consumers&amp;rsquo; price index vs. net cold rent index.
Running Causal Impact on the real wages index with the net cold rent index as control time series results in:
&lt;figure &gt;
&lt;div class="flex justify-center "&gt;
&lt;div class="w-full" &gt;
&lt;img alt="Fig. 8: Causal Impact result on run with the net cold rent index as control time series."
srcset="https://www.koehn.ai/media/blog/8-causalimpact_hu_e58c08b42ffb1850.webp 320w, https://www.koehn.ai/media/blog/8-causalimpact_hu_5bf678252e47625.webp 480w, https://www.koehn.ai/media/blog/8-causalimpact_hu_cf4a6e3338c6fe5a.webp 760w"
sizes="(max-width: 480px) 100vw, (max-width: 768px) 90vw, (max-width: 1024px) 80vw, 760px"
src="https://www.koehn.ai/media/blog/8-causalimpact_hu_e58c08b42ffb1850.webp"
width="760"
height="545"
loading="lazy" data-zoomable /&gt;&lt;/div&gt;
&lt;/div&gt;&lt;/figure&gt;
Fig. 8: Causal Impact result on run with the net cold rent index as control time series.
We see that the net cold rent index helps increasing prediction accuracy at least a bit. This leads to a higher estimated effect of the impact, as can be seen also by the metrics:
&lt;figure &gt;
&lt;div class="flex justify-center "&gt;
&lt;div class="w-full" &gt;
&lt;img alt="Tab. 4: Summary of Causal Impact results."
srcset="https://www.koehn.ai/media/blog/8a-summary_hu_6c71d8f73160a096.webp 320w, https://www.koehn.ai/media/blog/8a-summary_hu_b768021a06d8bba3.webp 480w, https://www.koehn.ai/media/blog/8a-summary_hu_33dae132bb10c747.webp 501w"
sizes="(max-width: 480px) 100vw, (max-width: 768px) 90vw, (max-width: 1024px) 80vw, 760px"
src="https://www.koehn.ai/media/blog/8a-summary_hu_6c71d8f73160a096.webp"
width="501"
height="358"
loading="lazy" data-zoomable /&gt;&lt;/div&gt;
&lt;/div&gt;&lt;/figure&gt;
Note that the smaller relative effect (compared to the run without any control time series) is due to the predictions being higher.
A short final note on the most important modification of the routine: Instead of running it with default parameters, it is possible to choose i.a. a different kind of method to find the Bayesian posterior, the so-called Hamiltonian Monte Carlo method, via model_args={&amp;lsquo;fit_method&amp;rsquo;: &amp;lsquo;hmc&amp;rsquo;}.
The default way relies on TensorFlow Probability’s Variational Inference, which has the advantage of a considerable speed-up: While hmc took 56s in the above example, the default variatonal inference took 19s. The benefit of hmc is, however, precision:
&lt;figure &gt;
&lt;div class="flex justify-center "&gt;
&lt;div class="w-full" &gt;
&lt;img alt="Fig. 9: Causal Impact result on run with the net cold rent index as control time series and using Hamiltonian Monte Carlo."
srcset="https://www.koehn.ai/media/blog/9-causalimpact_hu_8ffbbfec7e1f2738.webp 320w, https://www.koehn.ai/media/blog/9-causalimpact_hu_ec5b6032c9905772.webp 480w, https://www.koehn.ai/media/blog/9-causalimpact_hu_c89c2302788610f8.webp 760w"
sizes="(max-width: 480px) 100vw, (max-width: 768px) 90vw, (max-width: 1024px) 80vw, 760px"
src="https://www.koehn.ai/media/blog/9-causalimpact_hu_8ffbbfec7e1f2738.webp"
width="760"
height="570"
loading="lazy" data-zoomable /&gt;&lt;/div&gt;
&lt;/div&gt;&lt;/figure&gt;
Fig. 9: Causal Impact result on run with the net cold rent index as control time series and using Hamiltonian Monte Carlo.
The predictions gained again in accuracy and the estimated effect of the impact increased as well:
&lt;figure &gt;
&lt;div class="flex justify-center "&gt;
&lt;div class="w-full" &gt;
&lt;img alt="Tab. 5: Summary of Causal Impact results."
srcset="https://www.koehn.ai/media/blog/9a-summary_hu_16c3a493b9bbc345.webp 320w, https://www.koehn.ai/media/blog/9a-summary_hu_4a57b4ac409ea4a2.webp 480w, https://www.koehn.ai/media/blog/9a-summary_hu_334d74b891f73aa.webp 501w"
sizes="(max-width: 480px) 100vw, (max-width: 768px) 90vw, (max-width: 1024px) 80vw, 760px"
src="https://www.koehn.ai/media/blog/9a-summary_hu_16c3a493b9bbc345.webp"
width="501"
height="358"
loading="lazy" data-zoomable /&gt;&lt;/div&gt;
&lt;/div&gt;&lt;/figure&gt;
We hope these examples motivate why you should be careful when choosing your control time series. It is also advisable to run the algorithm several times to get a notion of how stable the results are. Lastly, please consider to run the algorithm on randomly chosen moments of impact that lie before the actual one. If Causal Impact does not provide you with further impacts, it is a good sign that your setup is adequate. Note that further impacts before the one that is examined reduce the quality of the predictions and therefore the reliability of all results altogether.
[1]
&lt;a href="https://www.destatis.de/DE/Presse/Pressemitteilungen/2022/03/PD22_127_62321.html" target="_blank" rel="noopener"&gt;https://www.destatis.de/DE/Presse/Pressemitteilungen/2022/03/PD22_127_62321.html&lt;/a&gt;
[2]
&lt;a href="https://research.google/pubs/pub41854/" target="_blank" rel="noopener"&gt;https://research.google/pubs/pub41854/&lt;/a&gt;
[3]
&lt;a href="https://github.com/owid/covid-19-data/tree/master/public/data" target="_blank" rel="noopener"&gt;https://github.com/owid/covid-19-data/tree/master/public/data&lt;/a&gt;
[4]
&lt;a href="https://www-genesis.destatis.de/genesis/online?sequenz=tabelleErgebnis&amp;amp;selectionname=61111-0021" target="_blank" rel="noopener"&gt;https://www-genesis.destatis.de/genesis/online?sequenz=tabelleErgebnis&amp;selectionname=61111-0021&lt;/a&gt;&lt;/p&gt;</description></item><item><title>Explainable AI using Shapley Values</title><link>https://www.koehn.ai/en/blog/feature-analysis-shapley/</link><pubDate>Wed, 04 Jan 2023 00:00:00 +0000</pubDate><guid>https://www.koehn.ai/en/blog/feature-analysis-shapley/</guid><description>&lt;h2 id="shapley-values-for-feature-importance-analysis"&gt;Shapley values for feature-importance analysis&lt;/h2&gt;
&lt;p&gt;Any machine-learning task revolves around gaining insights from data. The machine-learning model receives data of reasonable quality as input. The model gets tuned on input features derived from the input data to produce output of desired quality levels. But not all input features are of equal importance for the model. Some matter very much, but others might only add noise and increase computational complexity without any gain. There also is business value in learning about the key drivers for an output KPI. The question is: how to perform this technically?
The only machine-learning models that bring this evaluation along for free are based on Decision Trees, and even in those cases, it is left unresolved whether an increase in feature value leads to an increase or a decrease in the target variable. In contrast, the concept of
&lt;strong&gt;Shapley values&lt;/strong&gt; allows not only to cover this shortcoming, it also allows to evaluate the feature importance of general types of machine-learning model beyond Decision Trees. In this approach, each feature is systematically
&lt;strong&gt;integrated out&lt;/strong&gt; in succession and replaced with suitable
&lt;strong&gt;background noise&lt;/strong&gt; to study its impact on the target.
The analysis of feature importance using Shapley values constitutes a
&lt;strong&gt;universal tool&lt;/strong&gt; that we have used in almost every project across a range of verticals. We have used this method in the retail sector to identify key drivers for conversion. We have also implemented Shapley values when we designed a tool for scientists which gives information on what to change about an experiment in order to optimize a certain outcome.
To set up the algorithm, the
&lt;strong&gt;SHAP&lt;/strong&gt; Python package may be used. However, this package is still in experimental state and you have to be careful about bugs appearing from one version to the next. Of course you can also implement the routine by hand. Whichever route you take, keep in mind that the learnings from your feature analysis are limited in their reliability by the quality of the machine-learning model you apply it to. If the prediction quality of the model is poor, then also the feature analysis won&amp;rsquo;t be of much value.&lt;/p&gt;
&lt;h2 id="interpretation-of-results"&gt;Interpretation of results&lt;/h2&gt;
&lt;p&gt;An exemplary evaluation is given in the figure below.
&lt;figure &gt;
&lt;div class="flex justify-center "&gt;
&lt;div class="w-full" &gt;
&lt;img alt="RNN"
srcset="https://www.koehn.ai/media/blog/feature-shap_hu_acbe2f078807129.webp 320w, https://www.koehn.ai/media/blog/feature-shap_hu_900134e2d206e395.webp 480w, https://www.koehn.ai/media/blog/feature-shap_hu_1cf11c7b1f52d38a.webp 651w"
sizes="(max-width: 480px) 100vw, (max-width: 768px) 90vw, (max-width: 1024px) 80vw, 760px"
src="https://www.koehn.ai/media/blog/feature-shap_hu_acbe2f078807129.webp"
width="651"
height="674"
loading="lazy" data-zoomable /&gt;&lt;/div&gt;
&lt;/div&gt;&lt;/figure&gt;
In this figure, the 25 most important features of the specific machine-learning model under scrutiny here are listed in descending order. At the same time, the figure shows whether a
&lt;strong&gt;high or low feature value&lt;/strong&gt; leads to an
&lt;strong&gt;increase or decrease in the target value&lt;/strong&gt; . If the Shapley value is positive (applies to all points to the right of the vertical line), the target value increases, while a negative Shapley value decreases the target value.
Feature 1 will serve as an example for illustration at this point, for the case of a
&lt;strong&gt;customer churn&lt;/strong&gt; model. Feature 1 shall indicate how many days ago a customer last interacted with the company studied. A low feature value indicates a recent interaction of the customer with the company, a high value indicates a longer inactivity. Since the red dots for the feature value are all to the left of the vertical line, a high feature value (longer inactivity) obviously lowers the probability of the customer to be &amp;ldquo;alive&amp;rdquo; (the target variable). Conversely, a low feature value (recent interaction) provides an increase in the probability for the customer to be alive. There can also be Boolean variables - for instance, customers who either are members of a loyalty program or not. The Shapley analysis will in this case confirm the expectation that loyalty program members have a reduced probability of churning.&lt;/p&gt;</description></item><item><title>Real-Time Object Detection using YOLO</title><link>https://www.koehn.ai/en/blog/object-detection-yolo/</link><pubDate>Mon, 04 Jul 2022 00:00:00 +0000</pubDate><guid>https://www.koehn.ai/en/blog/object-detection-yolo/</guid><description>&lt;p&gt;One of the most fascinating and rapidly advancing AI disciplines is automated object recognition. This term refers to the autonomously learned recognition and classification of objects in images or videos. Thanks to tremendous performance advances in GPU-accelerated computing, AI-based object recognition algorithms are already being used in real-world applications. Some of the most prominent application areas are:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;Autonomous driving or driving assistance systems&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Optical quality control, automated barcode recognition&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Support in medical imaging processes (CT, MRT)&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Traffic-flow analysis or license-plate recognition&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Safety systems (e.g. persons in the track bed)&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;While the practical use of object recognition systems is still in its infancy, the potential of this technology is virtually unlimited.
The technical perspective comprises two different approaches, the single-stage and the two-stage processes.&lt;/p&gt;
&lt;h2 id="two-stage-process"&gt;Two-stage process&lt;/h2&gt;
&lt;p&gt;In the two-step methods developed first, regions of interest in the image are isolated in the first step and checked for the presence of objects in the second step using an ordinary classification model. A simple algorithm for generating image sections is given by e.g. the sliding-window algorithm, in which the image sections to be classified are generated using a moving window to scan the entire image. More advanced systems use artificial intelligence to isolate interesting image sections. However, regardless of the exact structure of the first stage, the second stage always requires multiple evaluations per image. As a result, these AI systems achieve high precision, but are of limited usability for real-time applications due to the computing time required for the evaluation. An established two-stage AI architecture is given by e.g. the Region Based Convolutional Neural Network (R-CNN), which is now used in the Fast R-CNN, Faster R-CNN and Granulated R-CNN stages.&lt;/p&gt;
&lt;h2 id="single-stage-process"&gt;Single-stage process&lt;/h2&gt;
&lt;p&gt;This contrasts with the single-stage methods developed later, in which the complete evaluation, i.e. object recognition, classification and output of a limiting object frame (bounding box), takes place in only one step with only one evaluation. One of the most successful AI architectures ever, YOLO (&amp;ldquo;You Only Look Once&amp;rdquo;), belongs to the class of one-step object-recognition systems and carries the property of one-step already in its name. Like no other architecture, YOLO paved the way for real-time analysis of (moving) images and thus became a standard algorithm for object-recognition tasks. These days, the YOLO AI architecture is available in the development stages YOLOv3, YOLOv4 up to YOLOR. Due to its popularity, the main features of this object recognition system will be discussed in the following.&lt;/p&gt;
&lt;h2 id="the-output-vector"&gt;The output vector&lt;/h2&gt;
&lt;p&gt;To understand how the YOLO architecture works, it is worthwhile to take a closer look at the output vector of the model or to construct the desired output vector (ground truth) for an example. For this purpose, let us consider the following example photo in which birds and rocks are to be detected:
&lt;figure &gt;
&lt;div class="flex justify-center "&gt;
&lt;div class="w-full" &gt;
&lt;img alt="YOLO-Objekterkennung"
srcset="https://www.koehn.ai/media/blog/yolo_hu_e3c433fcebab208f.webp 320w, https://www.koehn.ai/media/blog/yolo_hu_aa2204a2c41db4e7.webp 480w, https://www.koehn.ai/media/blog/yolo_hu_c6c38997529c99.webp 760w"
sizes="(max-width: 480px) 100vw, (max-width: 768px) 90vw, (max-width: 1024px) 80vw, 760px"
src="https://www.koehn.ai/media/blog/yolo_hu_e3c433fcebab208f.webp"
width="760"
height="507"
loading="lazy" data-zoomable /&gt;&lt;/div&gt;
&lt;/div&gt;&lt;/figure&gt;
For the moment, we focus on the seagull on the left and imagine there to be no other seagulls or rocks in the photo. The general form of the YOLO output vector for a model with two classes and at most one object per image is:
&lt;figure &gt;
&lt;div class="flex justify-center "&gt;
&lt;div class="w-full" &gt;
&lt;img alt="YOLO-Ausgabevektor"
srcset="https://www.koehn.ai/media/blog/yolo-formula-1_hu_e114a323d54c2ff3.webp 320w, https://www.koehn.ai/media/blog/yolo-formula-1_hu_7fd7e9250c780771.webp 463w"
sizes="(max-width: 480px) 100vw, (max-width: 768px) 90vw, (max-width: 1024px) 80vw, 760px"
src="https://www.koehn.ai/media/blog/yolo-formula-1_hu_e114a323d54c2ff3.webp"
width="463"
height="61"
loading="lazy" data-zoomable /&gt;&lt;/div&gt;
&lt;/div&gt;&lt;/figure&gt;
Here, p_c corresponds to the confidence level that an object is present in the predicted bounding box. b_x,b_y are the coordinates of the center of the bounding box. The quantities b_h,b_w denote the height and width of the bounding box, respectively. The last components of the vector denote the class labels. They provide information about whether the object is a bird or a rock. More precisely, c_bird or c_rock are conditional probabilities, i.e. given the condition that the bounding box contains an object, how likely is it that the object is a bird or rock, respectively. For the above example photo with only the left seagull, the corresponding ground truth vector is thus
&lt;figure &gt;
&lt;div class="flex justify-center "&gt;
&lt;div class="w-full" &gt;
&lt;img alt="YOLO-Ground-Truth-Vektor"
srcset="https://www.koehn.ai/media/blog/yolo-groundtruth_hu_e9341bb2b95b9c71.webp 320w, https://www.koehn.ai/media/blog/yolo-groundtruth_hu_670eea34279b5982.webp 370w"
sizes="(max-width: 480px) 100vw, (max-width: 768px) 90vw, (max-width: 1024px) 80vw, 760px"
src="https://www.koehn.ai/media/blog/yolo-groundtruth_hu_e9341bb2b95b9c71.webp"
width="370"
height="58"
loading="lazy" data-zoomable /&gt;&lt;/div&gt;
&lt;/div&gt;&lt;/figure&gt;
with corresponding numerical values for the coordinates and dimensions of the bounding box.
The image displayed above contains not one but several objects. Thus, a single seven-component vector is obviously not sufficient for description. YOLO solves this problem by rasterizing the image:
&lt;figure &gt;
&lt;div class="flex justify-center "&gt;
&lt;div class="w-full" &gt;
&lt;img alt="YOLO-Objekterkennung-Raster"
srcset="https://www.koehn.ai/media/blog/yolo-raster_hu_de434629b051fb45.webp 320w, https://www.koehn.ai/media/blog/yolo-raster_hu_355c55f2dd7a6633.webp 480w, https://www.koehn.ai/media/blog/yolo-raster_hu_a089ef8d513af2ad.webp 760w"
sizes="(max-width: 480px) 100vw, (max-width: 768px) 90vw, (max-width: 1024px) 80vw, 760px"
src="https://www.koehn.ai/media/blog/yolo-raster_hu_de434629b051fb45.webp"
width="760"
height="507"
loading="lazy" data-zoomable /&gt;&lt;/div&gt;
&lt;/div&gt;&lt;/figure&gt;
Instead of using a single seven-component vector, the above example uses a 6x9 array of seven-component vectors, one vector for each cell. Responsible for recognition, classification and bounding of an object is in each case the cell in which the center of the object lies. The bounding box can, of course, extend beyond the cell itself. In actual practice, the vector, which is seven-component in our example, is multiplied again so that several objects can be detected in the same cell. In order to keep this blog article as comprehensible as possible, we will refrain from more detailed explanations at this point.&lt;/p&gt;
&lt;h2 id="the-network-architecture"&gt;The network architecture&lt;/h2&gt;
&lt;p&gt;With a dataset of images prepared as before, in which bounding boxes and class labels for these boxes have been manually added, the system can now be trained. The actual architecture consists of several groups of convolutional layers, followed by a smaller number of fully-connected layers [1].
&lt;figure &gt;
&lt;div class="flex justify-center "&gt;
&lt;div class="w-full" &gt;
&lt;img alt="CNN"
srcset="https://www.koehn.ai/media/blog/cnn_hu_5f347e6e6cf12c60.webp 320w, https://www.koehn.ai/media/blog/cnn_hu_78ad69f7f2c157c5.webp 480w, https://www.koehn.ai/media/blog/cnn_hu_cb273c5ffe3bf43.webp 760w"
sizes="(max-width: 480px) 100vw, (max-width: 768px) 90vw, (max-width: 1024px) 80vw, 760px"
src="https://www.koehn.ai/media/blog/cnn_hu_5f347e6e6cf12c60.webp"
width="760"
height="317"
loading="lazy" data-zoomable /&gt;&lt;/div&gt;
&lt;/div&gt;&lt;/figure&gt;
where the output layer in this case has the dimension 6x9x7. For the initial training of the AI architecture, a large number of prepared images is required as well as a computer system/cluster with sufficient GPU power. Due to these circumstances, it often makes sense in practice to work with pre-trained systems that have already been trained on a large dataset and are freely available. If the desired class is not contained in the pre-trained model, it is often sufficient to modify the output layer of the system and re-train it with a few hundred examples of the new class. This approach also ensures the practical applicability of the technology on a smaller scale, since the labor-intensive step of data preparation is reduced to a minimum.
If a system trained in this way is applied to images not contained in the training set, it is not uncommon for the algorithm to output several bounding boxes with different probabilities per object. This can happen, for example, if an object extends over several cells.
&lt;figure &gt;
&lt;div class="flex justify-center "&gt;
&lt;div class="w-full" &gt;
&lt;img alt="YOLO-Bounding-Boxes"
srcset="https://www.koehn.ai/media/blog/yolo-anchoring_hu_d7ae0876745bb87f.webp 320w, https://www.koehn.ai/media/blog/yolo-anchoring_hu_d73b9c24cb63d0a2.webp 480w, https://www.koehn.ai/media/blog/yolo-anchoring_hu_2850dcfe72235f1.webp 760w"
sizes="(max-width: 480px) 100vw, (max-width: 768px) 90vw, (max-width: 1024px) 80vw, 760px"
src="https://www.koehn.ai/media/blog/yolo-anchoring_hu_d7ae0876745bb87f.webp"
width="760"
height="507"
loading="lazy" data-zoomable /&gt;&lt;/div&gt;
&lt;/div&gt;&lt;/figure&gt;
A simple global non-maximum suppression is clearly out of the question, since in this operation only the object with the highest probability would survive. A non-maximum suppression must therefore be performed in the individual groups. But how to identify these groups algorithmically? The concept used for this purpose in YOLO is known as Intersection Over Union (IOU). This method divides the area of the average of two bounding boxes by that of the union:
&lt;figure &gt;
&lt;div class="flex justify-center "&gt;
&lt;div class="w-full" &gt;&lt;img alt="Intersection-Over-Union"
src="https://www.koehn.ai/media/blog/IOU.svg"
loading="lazy" data-zoomable /&gt;&lt;/div&gt;
&lt;/div&gt;&lt;/figure&gt;
By appropriately choosing a threshold value, this concept can be used to identify the individual groups that belong together and then determine the final bounding boxes and class probabilities via group-wise non-maximum suppression. As already mentioned, the forward path of the network has to be traversed only once per image, which makes the network suitable for almost all object detection tasks, especially real-time applications.
[1] &lt;a href="https://arxiv.org/abs/1506.02640" target="_blank" rel="noopener"&gt;https://arxiv.org/abs/1506.02640&lt;/a&gt;&lt;/p&gt;</description></item><item><title>Recurrent neural networks for personalized customer journeys</title><link>https://www.koehn.ai/en/blog/recurrent-neural-networks-personalized-customer-journeys/</link><pubDate>Wed, 15 Jun 2022 00:00:00 +0000</pubDate><guid>https://www.koehn.ai/en/blog/recurrent-neural-networks-personalized-customer-journeys/</guid><description>&lt;h2 id="know-thy-customer-flog-thy-product"&gt;Know thy customer, flog thy product.&lt;/h2&gt;
&lt;p&gt;Machine learning for data-assisted customer relationship management is becoming an increasingly important topic in marketing and quality of service. For large companies with extensive product ranges, and millions of customers, a clear challenge is the delivery of personalized service. In response to this challenge, retailers are turning to machine-learning assisted tools to sift through transactions, customers histories, and other data in order to make better predictions about future consumer behavior from prior trends. For retailers that are able to effectively leverage the vast amounts of data at their fingertips, the potential upside is enormous.
Applications range from improved customer recommendations and targeted advertising, to fraud detection, real-time bidding for online ad-inventory, optimized newsletter send-out timing, and more accurate product demand predictions. On the other hand, without targeted assistance customers may miss products of interest, be turned off by frequent irrelevant advertising, or find it easier to seek products elsewhere. The aim of this article is to introduce you to a special kind of neural network known as a recurrent neural network, which may be of particular interest for your business. We can implement similar tools for you. Feel free to reach out.&lt;/p&gt;
&lt;h2 id="machine-learning-in-marketing-and-services"&gt;Machine-learning in marketing and services&lt;/h2&gt;
&lt;p&gt;The question many Retailers face is how to best make use of the data they have at their fingertips. Traditional approaches to machine learning rely on input that is of a fixed format, which allows fixed neural architecture to take advantage of the known, and constant size of the input data. The classic example is that of image recognition, in which input is always represented as an nxn grid of colored pixels, while the output corresponds to a finite list of target labels (i.e. numbers, or letters, or the names of animals). In contrast, commercial data is usually structured as a time series, with different customers having vastly different purchasing histories. The traditional approach to dealing with diverse consumer behaviors and purchasing channels, has been to rely on feature engineering that attempts to re-express large and amorphous input datasets in terms of a small number key parameters, which can then be fed into some fixed neural architecture. For instance, the complicated purchasing history of any customer can be re-parameterized in terms of so called &lt;em&gt;RFM data&lt;/em&gt; detailing the &lt;em&gt;recency&lt;/em&gt;, &lt;em&gt;frequency&lt;/em&gt;, and &lt;em&gt;monetary&lt;/em&gt; values of a full purchasing history. The benefit of feature engineering is its simplicity, and that it evolves naturally from the classical analysis of large commercial data-sets (RFM data, for instance, has been used for many years to calculate the &lt;strong&gt;CLV&lt;/strong&gt; or &lt;em&gt;customer lifetime value&lt;/em&gt; of customers). The downside, however, is that determining which finite set of features best captures the essence of consumer histories is a time-consuming and fiddly art which at its core involves throwing away input data. If not done prudently, this reduction risks incorrect or incomplete conclusions being drawn. It would be better to have complete access to the full richness of the data set. After all, isn’t that the promised benefit of machine learning over traditional approaches in the first place?
Because consumer histories are inherently sequential and of varying length, a natural approach to consider in place of feature engineering is that of recurrent neural networks (RNNs). RNNs are artificial neural networks that are specifically designed to deal with sequential data of varying lengths. RNNs use a fixed neural architecture, however this architecture is employed to analyze each element of a sequence of data in turn. At each step, output from the proceeding step is included along with the input, providing &lt;em&gt;contextual&lt;/em&gt; information for the calculation. For the engineers reading, the difference between RNNs and more traditional feed forward neural networks is analogous to the difference between open loop and closed loop control theory. The following schematic is helpful for understanding the idea:&lt;/p&gt;
&lt;p&gt;
&lt;figure &gt;
&lt;div class="flex justify-center "&gt;
&lt;div class="w-full" &gt;
&lt;img alt="RNN"
srcset="https://www.koehn.ai/media/blog/RNN_hu_c92cd6aee445121.webp 320w, https://www.koehn.ai/media/blog/RNN_hu_a660ace1375ba088.webp 480w, https://www.koehn.ai/media/blog/RNN_hu_86f0f44cd05c7a52.webp 760w"
sizes="(max-width: 480px) 100vw, (max-width: 768px) 90vw, (max-width: 1024px) 80vw, 760px"
src="https://www.koehn.ai/media/blog/RNN_hu_c92cd6aee445121.webp"
width="760"
height="221"
loading="lazy" data-zoomable /&gt;&lt;/div&gt;
&lt;/div&gt;&lt;/figure&gt;
&lt;/p&gt;
&lt;p&gt;The kinds of input sequences that you should be thinking of are things like English sentences or songs, where each element of the sequences is given by a word, or a note. A useful way of understanding a RNN is to think of it &lt;code&gt;unrolled’ and acting on each element of a sequence of data one step at a time. At each step in an input sequence, the network takes in two pieces of input: (i) External input (i.e. a word, a photo, a piece of music), and (ii) output &lt;/code&gt;memory’ from the proceeding step. In turn, the network produces two pieces of output at each moment in time: (i) some usable output (perhaps an image, or some word), and (ii) an output ‘memory’ to feed into the next iteration of the network. The specifics of the input and output, as well as the internal topology of the network will depend on the problem at hand. We will say a bit more about these shortly. For now, the key point is that the same network is employed at each step in the sequence, and sequences of arbitrary length are able to be considered, which allows RNNs to process arbitrarily long inputs, and also to produce arbitrarily long outputs.
While the key idea behind RNNs of feeding output back into the input may sound simple, in practice it is extremely powerful, and has achieved remarkable results in natural language processing, speech translation, and a range of other domains. A classic example is that of a time series, in which temporal context should be taken into consideration at each moment in time.
Take for instance the problem of determining the future or past trajectory of a thrown ball from a sequence of photos. From a single photo it would be very difficult (and perhaps even impossible) to determine in which direction the ball had initially been thrown or where it is headed. On the other hand, with two or more photos, and knowledge about which order they occurred in, it should be possible to piece together information about the trajectory of the ball over time. Or said another way, context allows one not only to know the position of the ball at a given point in time, but also its derivatives.&lt;/p&gt;
&lt;h2 id="how-rnns-function"&gt;How RNNs function&lt;/h2&gt;
&lt;p&gt;Before discussing potential business applications, let&amp;rsquo;s pull back the curtain just a little, to see how RNNs work. In order to properly motivate the neural architecture behind RNNs, it is helpful to first make mention of how RNNs are trained. As with any neural network, training is achieved by updating the internal weights of the network in order to minimize the error of a predicted output in comparison to that expected for a given input. For those completely unfamiliar with neural networks, you can think of one as a &lt;em&gt;black box&lt;/em&gt; that takes some input, and uses it to produce an output. The &lt;em&gt;weights&lt;/em&gt; determine exactly what function is performed by the network, and so &lt;em&gt;training&lt;/em&gt; a network adjusts how the black box performs.&lt;/p&gt;
&lt;p&gt;
&lt;figure &gt;
&lt;div class="flex justify-center "&gt;
&lt;div class="w-full" &gt;
&lt;img alt="RNN Black Box"
srcset="https://www.koehn.ai/media/blog/blackbox_hu_b556b6318db034db.webp 320w, https://www.koehn.ai/media/blog/blackbox_hu_10df49c41b5948ea.webp 480w, https://www.koehn.ai/media/blog/blackbox_hu_5636ee787b31e2bc.webp 661w"
sizes="(max-width: 480px) 100vw, (max-width: 768px) 90vw, (max-width: 1024px) 80vw, 760px"
src="https://www.koehn.ai/media/blog/blackbox_hu_b556b6318db034db.webp"
width="661"
height="350"
loading="lazy" data-zoomable /&gt;&lt;/div&gt;
&lt;/div&gt;&lt;/figure&gt;
&lt;/p&gt;
&lt;p&gt;For a standard feed-forward neural network, this training process follows three key steps:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;Feed some input into the network to calculate a predicted output.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Calculate the `error’ or difference from the expected output, as well as the derivatives of the error with respect to the network weights.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Use the derivatives of the error to adjust the network&amp;rsquo;s internal weights in order to minimize the error.&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;This training process, known as back propagation, is repeated many times and preferably with a large amount of training data, with the ultimate goal of developing a set of weights capable of producing highly accurate output predictions for any given set of input data. For RNNs, the analogous process is known as back propagation through time (BPTT), but conceptually it is very similar to regular back propagation, and can be understood by analyzing the &lt;em&gt;unraveled&lt;/em&gt; neural network applied to a sequence of input data (as in the very first figure above). Each step of the unrolled network can be viewed as a &lt;em&gt;hidden layer&lt;/em&gt; of a regular feed forward deep neural network, which consists of an identical copy of the network. In this way, the exact same training techniques (which at their core reduce to the repeated application of the chain rule for derivatives) used in feed forward networks can also be applied to RNNs. In short: errors are calculated at each step, and the weights are correspondingly updated.
From the brief description above, readers familiar with training deep neural networks may be anticipating some of the problems that arise when training RNNs. Deep neural networks often suffer from &lt;em&gt;gradient problems&lt;/em&gt;, in which the training algorithm is more efficient at training the last layers of a deep Neural network, and becomes increasingly less effective the deeper the network is. Intuitively, this effect has to do with the dependence that each layer of a network has on input from the proceeding layers and so one sees compounding effects as one proceeds through the layers. This can lead to derivatives in the back propagation calculation that either vanish or explode, resulting in slow and noisy learning. Because RNNs are designed to work on sequences of arbitrary length, when unraveled (as in the first figure above) they may be viewed as deep neural networks of arbitrary depth. The usual result is &lt;strong&gt;memory loss&lt;/strong&gt; in training. That is, as the training algorithm adjusts the weights of a network while working over a sequence of training data, it does a much better job towards the end of a sequence. RNNs therefore tend to naturally assign far more importance to the end of an input data sequence.
At its heart, the reason that vanilla RNNs are subject to gradient problems is that the output from each step in the unrolled network is only shared at the next step in the sequence, and so there is no direct connection between the start and the end of the sequence. An obvious solution would be to directly feed the input from each step in the calculation into every subsequent step, however this would drastically increase the number of connections and the complexity of the algorithm. A less invasive approach is to explicitly create a single long term memory state that is propagated through the network, and shared at each step in the sequence along with the usual short-term memory. This is the approach of ‘long short-term memory’ networks or LSTMs, which have been employed to great effect in circumventing the gradient problems of RNNs. At each step when analyzing a sequence of data, an LSTM receives the current long-term memory of the network, known as the ‘cell state’, in addition to the usual output from the previous point in the sequence, and the external input data for the current point in the sequence.
The key new idea in LSTMs is the &lt;strong&gt;cell state&lt;/strong&gt;, which provides contextual information about the data that has already been processed in a sequence. The beauty of LSTMs is that the network itself is trained to regulate the flow of information into and out of the cell. LSTMs are composed of three smaller neural networks known as the &lt;strong&gt;forget gate&lt;/strong&gt;, the &lt;strong&gt;input gate&lt;/strong&gt;, and the &lt;strong&gt;output gate&lt;/strong&gt;. These three gates can be understood schematically by the following diagram:&lt;/p&gt;
&lt;p&gt;
&lt;figure &gt;
&lt;div class="flex justify-center "&gt;
&lt;div class="w-full" &gt;
&lt;img alt="LSTM"
srcset="https://www.koehn.ai/media/blog/LSTM_hu_5fed096c0efed965.webp 320w, https://www.koehn.ai/media/blog/LSTM_hu_10f8afb3ff930764.webp 480w, https://www.koehn.ai/media/blog/LSTM_hu_2ffd3b9cf40736c8.webp 760w"
sizes="(max-width: 480px) 100vw, (max-width: 768px) 90vw, (max-width: 1024px) 80vw, 760px"
src="https://www.koehn.ai/media/blog/LSTM_hu_5fed096c0efed965.webp"
width="760"
height="300"
loading="lazy" data-zoomable /&gt;&lt;/div&gt;
&lt;/div&gt;&lt;/figure&gt;
&lt;/p&gt;
&lt;p&gt;The first gate, known as the forget gate, decides which information in the incoming long-term memory &lt;strong&gt;cell state&lt;/strong&gt; vector is important, and which should be dropped. To do so it takes the output from the previous step in the sequence, together with external input, and uses it to generate a &lt;strong&gt;forget vector&lt;/strong&gt;, with elements between 0 and 1. This vector is the same dimension as the cell state vector. The forget vector and cell state are multiplied together point-wise, which has the effect of removing information from the cell state, or long-term memory. In other words, the forget gate decides which pieces of the long-term memory should be forgotten, given the output of the proceeding hidden state and the current data in the input sequence.
The next gate, known as the &lt;strong&gt;memory network&lt;/strong&gt; gate (&lt;em&gt;New Memory Update Gate&lt;/em&gt; in picture), determines what new information should be added to the long term memory cell state.
To do so it uses the output from the previous hidden state together with the new input data to generate a &lt;strong&gt;new memory update&lt;/strong&gt; vector with both positive and negative elements. The new memory-update vector is added to the cell state, resulting in the long-term memory of the network being updated with information that depends on the new input data and the context given by the previous hidden state. In combination the &lt;em&gt;Forget&lt;/em&gt; and &lt;em&gt;new memory&lt;/em&gt; gates update the long term memory or &lt;em&gt;cell state&lt;/em&gt; of the network. The final &lt;em&gt;output&lt;/em&gt; gate then combines all of the data from the cell state, the input, and the output of the proceeding step to produce the output, which is passed along to the next step in the sequence together with the cell state.&lt;/p&gt;
&lt;h2 id="rnns-in-retail"&gt;RNNs in retail&lt;/h2&gt;
&lt;p&gt;We secretly experience the power of RNNs every day when we use auto-complete on our mobile phones, or when Google suggests search queries. The same properties that make RNNs ideal for language processing, however, also make them perfectly suited for tasks in retail and commerce such as customer sentiment analysis, calculating customer lifetime value, attribution analysis, and next purchase prediction, as well as in analyzing other consumer behaviors and interests. From the perspective of data processing, customer transaction histories, just like sentences, are sequences of `words’ with arbitrary length, and in which the ordering of words holds information. RNNs reduce the effort for feature analysis: they allow to feed in sequential data where otherwise onlz aggregated data would be usable - thereby also increasing the quality of the analysis as data aggregation always translates to a loss of information.
Take the example of a return forecast model, where you want to predict the likeliness of an ordered item to be returned. You can immediately write down a long list of different input information that should be relevant for this deduction. However, they come in two different types: On the one hand, you have a set of sequential data where you collect i.a. the return rate per past order of the customer. On top of that, you also have non-sequential, single information about the customer and the current order – like the time of the order or whether the customer subscribed to your newsletter. If you want to get the most out of your model, it should be able to process both types of data and it is the sequential data where RNNs come into play.
By now, you should have a big picture view of what RNNs are and roughly how they function. You may already be imagining intriguing new use cases for your own business. The applications in retail are really endless and down to your own imagination, with huge potential for creating a data driven, highly efficient business. If you have an application you would like to discuss, we will be happy to help bring your ideas to life. From analyzing transaction tables to customer classification and segmentation to making predictions based on customer online activity, RNNs provide a host of possibilities.&lt;/p&gt;</description></item><item><title>Conversion Delay: Marketing Performance</title><link>https://www.koehn.ai/en/blog/conversion-delay-marketing-performance/</link><pubDate>Sat, 09 Apr 2022 00:00:00 +0000</pubDate><guid>https://www.koehn.ai/en/blog/conversion-delay-marketing-performance/</guid><description>&lt;p&gt;When it comes to quantifying the performance of marketing channels, the first thing that comes to mind is counting the orders per day that were placed per marketing channels and summing up their corresponding profit or revenue. To improve this direct approach, attribution models can be used to redistribute the impact of an order to the preceding interactions of the customer: The fact that the customer finally bought a product via marketing channel A is of course important, but so is the marketing channel B that caused the customer to start interacting with your shop after all – ultimately leading to spending money. Attribution models therefore reallocate (parts of) the revenue to the previous stations of the customer’s journey. This can be done either via attribution models that assign increased ratios to the first and last interaction(s), while giving less impact to those in the middle. Alternatively, dynamical attribution models determine these weights based on the data of all your customers, resulting in bespoke weights fitting their behaviour. If you are interested in more details on dynamical attribution models, you can read more in the corresponding separate Insights article on this blog.&lt;/p&gt;
&lt;h2 id="customer-journeys"&gt;Customer Journeys&lt;/h2&gt;
&lt;p&gt;Underlying these attribution models are the customer journeys, following certain rules like maximum length or whether they end after an order. This prescribed logics has direct influence on the attributed order shares / revenue: If a journey can have a maximum length of, say, 50 days, interactions of the last 50 may still get assigned a certain amount / revenue. If your journey logics allows for journeys with several consecutive orders, this holds even more. This circumstance is referred to as the
&lt;strong&gt;conversion delay&lt;/strong&gt; : some of yesterday’s interactions with your website may well only lead to revenue in the next upcoming days.
&lt;figure &gt;
&lt;div class="flex justify-center "&gt;
&lt;div class="w-full" &gt;&lt;img alt="Conversion Delay"
src="https://www.koehn.ai/media/blog/conversion_delay.svg"
loading="lazy" data-zoomable /&gt;&lt;/div&gt;
&lt;/div&gt;&lt;/figure&gt;
&lt;/p&gt;
&lt;h2 id="conversion-delay"&gt;Conversion Delay&lt;/h2&gt;
&lt;p&gt;When you are interested in evaluating the overall impact of a marketing campaign, e.g., the attributed orders / revenue is already a good additional measurement. However, it can only consider orders that were already placed. If you want to monitor the daily performance of more recent days, too, you need to compensate for the conversion delay and with appropriate tools as well as suitable data, this is indeed possible!
The first idea of how to possibly fix the revenue gap due to the conversion delay is of course to use the historic rates of attributed revenue per interaction of the marketing channels. Knowing yesterday’s interactions per marketing channel, we can then estimate the revenue that is likely to be generated via these interactions over the next days. While this may already yield a reasonable result, it is not of much help when monitoring specific marketing campaigns where the customers’ behaviour deviates (as provoked!) from the usual one: the revenue per interaction is probably quite different on Black Friday than the average ratio and maybe even different enough before Christmas as compared to summer. The latter may be compensable by considering the average ratio of the last weeks only, but more temporarily limited scenarios like Black Friday still won’t be covered well enough.&lt;/p&gt;
&lt;h2 id="machine-learning"&gt;Machine Learning&lt;/h2&gt;
&lt;p&gt;This is where machine learning models come into play. These allow us to draw on more input data, enabling the model to derive, e.g., whether a special situation like Black Friday is present or whether your customers show seasonal behaviour. When it comes to data acquisition, generating the training data for such a model can become rather complex, especially if the model should also use monetary values as input data: These should not be the ones the attribution model provides as they rely on the “perfect knowledge” of all future orders within the next 50 days after the reference date. If we want the model to consider the attributed revenue of the respective last days – to derive whether we are currently in a phase of a high rate of revenue per interaction –, the model should be trained on these values the same way we know them when evaluating the model today. This means that for all days of the past, we need to acquire the attributed revenues of the respective last days as we would have known them back then, on that day.&lt;/p&gt;</description></item><item><title>Markov and Shapley: Marketing attribution modelling at interaction level or path level</title><link>https://www.koehn.ai/en/blog/dynamic-marketing-attribution-modelling-markov-chain-and-shapley-value/</link><pubDate>Sun, 17 Jan 2021 00:00:00 +0000</pubDate><guid>https://www.koehn.ai/en/blog/dynamic-marketing-attribution-modelling-markov-chain-and-shapley-value/</guid><description>&lt;p&gt;Markov chain and Shapley value: In the field of marketing,
&lt;strong&gt;first-click&lt;/strong&gt; ,
&lt;strong&gt;last-click&lt;/strong&gt; or multi-click models (
&lt;strong&gt;linear&lt;/strong&gt; or
&lt;strong&gt;bathtub&lt;/strong&gt; ) are frequently used as attribution models to measure the success - or profitability - of individual marketing channels (SEA, SEO, e-mail, etc.). What all these models have in common is that they divide the value of a conversion (a purchase) in a predefined way between the different steps in the list of a customer&amp;rsquo;s interactions. For example, if one uses a last-click model and the customer has purchased a product after clicking on a Facebook ad, the value of this conversion is attributed to the &amp;ldquo;Facebook&amp;rdquo; marketing channel, regardless of any previous interactions by the customer. In the case of multi-click models, the value of a conversion is allocated to all interactions associated with this purchase according to predefined weights. However, the weightings in all these models appear
&lt;strong&gt;ad-hoc&lt;/strong&gt; , as they are not based on precise data analysis, but are
&lt;strong&gt;determined manually&lt;/strong&gt; in advance. This is where the
&lt;strong&gt;dynamic attribution&lt;/strong&gt; models come in. Instead of assigning arbitrary weights to the interactions in advance, dynamic attribution models determine these weights independently based on the data provided. The
&lt;strong&gt;Markov model&lt;/strong&gt; and the
&lt;strong&gt;Shapley value model&lt;/strong&gt; are considered state-of-the-art models. Both will be discussed in more detail below. Both are designed to produce results on the level of channels. To obtain results at the
&lt;strong&gt;interaction level&lt;/strong&gt; or
&lt;strong&gt;path level&lt;/strong&gt; requires some extra work. The latter is not within the scope of this article, but we will be happy to help you with it. Feel free to contact us for rates, we can implement the Markov and Shapley models for your business on a short notice.&lt;/p&gt;
&lt;h2 id="markov-model"&gt;Markov model&lt;/h2&gt;
&lt;p&gt;The fundamental object in the Markov model on which the entire analysis is built is the
&lt;strong&gt;Markov graph&lt;/strong&gt; . For a given data set containing the
&lt;strong&gt;interaction paths&lt;/strong&gt; of different customers (e.g., Start -&amp;gt; Facebook -&amp;gt; Remarketing -&amp;gt; Conversion/Purchase), this can be constructed as follows:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;All marketing channels in the data set as well as the terms &amp;ldquo;start&amp;rdquo;, &amp;ldquo;conversion&amp;rdquo; and &amp;ldquo;null&amp;rdquo; (no conversion) are written individually on an index card and then spread out on a flat surface.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Now you go through the interaction paths of the individual customers and illustrate each of them by connecting the corresponding index cards with arrows. If we choose an example with a total of three marketing channels and four different interaction paths, the resulting graphic could look like this, for example:
&lt;figure &gt;
&lt;div class="flex justify-center "&gt;
&lt;div class="w-full" &gt;&lt;img alt="Markov interaction paths"
src="https://www.koehn.ai/media/blog/Markov_paths.svg"
loading="lazy" data-zoomable /&gt;&lt;/div&gt;
&lt;/div&gt;&lt;/figure&gt;
&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Then, for each marketing channel, count the number of arrows that lead to a fixed other marketing channel and divide this number by the total number of arrows starting from this node. In the example above, you get:
&lt;figure &gt;
&lt;div class="flex justify-center "&gt;
&lt;div class="w-full" &gt;&lt;img alt="Markov transition probabilities"
src="https://www.koehn.ai/media/blog/Markov_ratios.svg"
loading="lazy" data-zoomable /&gt;&lt;/div&gt;
&lt;/div&gt;&lt;/figure&gt;
Since out of three arrows starting from the Facebook channel, two point in the direction of Google and one in the direction of remarketing, you get the numbers 2/3 and 1/3. These numbers represent the so-called
&lt;strong&gt;transition probabilities&lt;/strong&gt; , i.e. for a customer who has just clicked on a Facebook ad, the probability is 2/3 that the next stop in his interaction path is Google, while the probability is that the next stop is Remarketing is 1/3.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;The last step is to calculate the overall probability of a conversion. In the above example, there are three Markov paths that lead from the starting point to a conversion. For example, if we look at the path Start -&amp;gt; Facebook -&amp;gt; Remarketing -&amp;gt; Conversion, we get 3/4 _ 1/3 _ 2/3 = 1/6 for its probability. Correspondingly, the other two paths are 1/9 and 2/9 respectively, so that the total probability of a conversion is 1/6 + 1/9 + 2/9 = 1/2. To quantify the success of the individual marketing channels, each one of the three marketing
&lt;strong&gt;channels&lt;/strong&gt; is now
&lt;strong&gt;removed in turn&lt;/strong&gt; from the Markov graph and the calculation repeated. The success of the channel is then calculated using the formula
&lt;figure &gt;
&lt;div class="flex justify-center "&gt;
&lt;div class="w-full" &gt;
&lt;img alt="Markov Formula 1"
srcset="https://www.koehn.ai/media/blog/formula1_hu_512b690e301c7f20.webp 279w"
sizes="(max-width: 480px) 100vw, (max-width: 768px) 90vw, (max-width: 1024px) 80vw, 760px"
src="https://www.koehn.ai/media/blog/formula1_hu_512b690e301c7f20.webp"
width="279"
height="56"
loading="lazy" data-zoomable /&gt;&lt;/div&gt;
&lt;/div&gt;&lt;/figure&gt;
Even without explicitly following the mathematical explanations, it is intuitively clear that the above Markov graph can be used to
&lt;strong&gt;sort the marketing channels according to importance&lt;/strong&gt; . If, for example, the remarketing channel is removed, none of the three converting Markov paths remain. This channel is therefore essential in the example discussed here. If, on the other hand, Facebook or Google are removed, one converting Markov path remains in each case. These two channels are therefore somewhat less important in comparison. In this way, the success of individual marketing channels can be precisely determined on the basis of customer data,
&lt;strong&gt;without having to make further assumptions in advance&lt;/strong&gt; .&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id="shapley-value-model"&gt;Shapley value model&lt;/h2&gt;
&lt;p&gt;An alternative to the Markov model is the Shapley value model. The Shapley value is a concept that belongs to the mathematical subfield of
&lt;strong&gt;game theory&lt;/strong&gt; . The basic problem solved by the Shapley value is to
&lt;strong&gt;distribute profits fairly&lt;/strong&gt; within a game in which players can form
&lt;strong&gt;coalitions&lt;/strong&gt; . However, the concept of Shapley value can also be applied to the attribution problem. Here, the different marketing channels are seen as players who typically interact in a customer&amp;rsquo;s interaction path, i.e., form a coalition. The
&lt;strong&gt;conversion rate&lt;/strong&gt; , for example, can be used as the profit to be distributed. This is determined from the customer data by counting the number of conversions (and non-conversions) for each theoretically possible interaction path. The number of conversions is then set into relation with the overal number of appearances of this interaction paths, i.e. the quotient (number of conversions) / (number of conversions + number of non-conversions) is computed. Put simply, the Shapley value model quantifies the impact of a particular marketing channel by
&lt;strong&gt;comparing&lt;/strong&gt; interaction paths that differ only in the
&lt;strong&gt;presence or absence&lt;/strong&gt; of the
&lt;strong&gt;channel&lt;/strong&gt; under consideration. To illustrate the point, consider the following examples:
&lt;figure &gt;
&lt;div class="flex justify-center "&gt;
&lt;div class="w-full" &gt;&lt;img alt="High Shapley value"
src="https://www.koehn.ai/media/blog/Shapley_high_impact.svg"
loading="lazy" data-zoomable /&gt;&lt;/div&gt;
&lt;/div&gt;&lt;/figure&gt;
Both interaction paths obviously differed only by the presence of the &amp;ldquo;Video Branding&amp;rdquo; channel. However, while the upper interaction path has a conversion rate of 10%, the lower path only has a conversion rate of 6%. The &amp;ldquo;Video Branding&amp;rdquo; channel thus
&lt;strong&gt;increases the conversion rate&lt;/strong&gt; by
&lt;strong&gt;about 67%&lt;/strong&gt; in relative terms (4% in absolute terms) and it receives a high Shapley value as a result, since it generates
&lt;strong&gt;substantial added value&lt;/strong&gt; . In the second example, the situation is exactly the opposite:
&lt;figure &gt;
&lt;div class="flex justify-center "&gt;
&lt;div class="w-full" &gt;&lt;img alt="Low Shapley value"
src="https://www.koehn.ai/media/blog/Shapley_low_impact.svg"
loading="lazy" data-zoomable /&gt;&lt;/div&gt;
&lt;/div&gt;&lt;/figure&gt;
In relative terms, the &amp;ldquo;Display&amp;rdquo; channel obviously
&lt;strong&gt;only&lt;/strong&gt; ensures an increase in the conversion rate of
&lt;strong&gt;around 2%&lt;/strong&gt; (0.2% absolute). The Shapley value of the &amp;ldquo;Display&amp;rdquo; channel is therefore significantly lower than that of the &amp;ldquo;Video Branding&amp;rdquo; channel, as the added value generated by this channel must be regarded as
&lt;strong&gt;marginal&lt;/strong&gt; .
In the following, the exact definition of the Shapley value will now be discussed. In mathematical terms, the Shapley value for the individual marketing channels is determined using the following formula:
&lt;figure &gt;
&lt;div class="flex justify-center "&gt;
&lt;div class="w-full" &gt;
&lt;img alt="Shapley Formula 2"
srcset="https://www.koehn.ai/media/blog/formula2_hu_de6988b6668b9a35.webp 320w, https://www.koehn.ai/media/blog/formula2_hu_62795b0d318bdca9.webp 480w, https://www.koehn.ai/media/blog/formula2_hu_68e0a6eb8f3aecb6.webp 760w"
sizes="(max-width: 480px) 100vw, (max-width: 768px) 90vw, (max-width: 1024px) 80vw, 760px"
src="https://www.koehn.ai/media/blog/formula2_hu_de6988b6668b9a35.webp"
width="760"
height="61"
loading="lazy" data-zoomable /&gt;&lt;/div&gt;
&lt;/div&gt;&lt;/figure&gt;
Here, the marginal contribution of channel i to a coalition is defined as the difference between the profit that a coalition S generates together with channel i and the profit it generates without channel i, i.e.
&lt;figure &gt;
&lt;div class="flex justify-center "&gt;
&lt;div class="w-full" &gt;
&lt;img alt="Shapley Formula 3"
srcset="https://www.koehn.ai/media/blog/formula3_hu_a8bde1c37b784809.webp 320w, https://www.koehn.ai/media/blog/formula3_hu_76123877157fb2c1.webp 480w, https://www.koehn.ai/media/blog/formula3_hu_22e101d6a55f8b46.webp 669w"
sizes="(max-width: 480px) 100vw, (max-width: 768px) 90vw, (max-width: 1024px) 80vw, 760px"
src="https://www.koehn.ai/media/blog/formula3_hu_a8bde1c37b784809.webp"
width="669"
height="42"
loading="lazy" data-zoomable /&gt;&lt;/div&gt;
&lt;/div&gt;&lt;/figure&gt;
Here, G is the
&lt;strong&gt;profit function&lt;/strong&gt; and S is a combination of marketing channels which does not include channel i. So in the above examples, the marginal profit is given exactly by the differences of the conversion rates, i.e. 4% in the first example and 0.2% in the second example. However, to calculate the actual Shapley value of a channel, not only one interaction path is considered. Rather, the Shapley value is determined by calculating the marginal contribution of the channel under consideration for all possible coalitions and then taking the
&lt;strong&gt;average&lt;/strong&gt; . Thus, the other factors in the previously stated formula only ensure that the average is correct. In other words, the Shapley value reflects the average added value generated by a marketing channel.
One subtlety in the Shapley value model concerns the profit function G. This is
&lt;strong&gt;not predetermined&lt;/strong&gt; by the definition of the Shapley value but can be
&lt;strong&gt;determined independently&lt;/strong&gt; . In the examples given, the conversion rate was defined as the profit in the sense of the Shapley value. Alternatively, however, the
&lt;strong&gt;net revenue&lt;/strong&gt; generated by the conversions can also be used as the Shapley profit. Often, the latter version is a suitable choice. If the primary focus is on determining the cost-to-sales ratio, for example, the net revenue is in fact the necessary quantity. However, an adjustment of the profit function is possible at any time and a comparative analysis regarding different profit functions can generate further valuable insights.&lt;/p&gt;
&lt;h2 id="summary"&gt;Summary&lt;/h2&gt;
&lt;p&gt;The
&lt;strong&gt;primary advantage&lt;/strong&gt; of dynamic attribution models is that they produce
&lt;strong&gt;more accurate results&lt;/strong&gt; than the heuristic models, which include the Bathtub model. The reason for this is that both the Markov and Shapley value models do not perform their calculations using arbitrarily determined weights but
&lt;strong&gt;determine the weights&lt;/strong&gt; of the steps in the interaction paths
&lt;strong&gt;independently on the basis of the data&lt;/strong&gt; . Consequently, they eliminate human influence on the analysis and are therefore
&lt;strong&gt;clearly superior&lt;/strong&gt; to heuristic models. In particular, when it comes to calculating the cost-to-sales ratio for very expensive marketing channels such as
&lt;strong&gt;Search Engine Advertising (SEA)&lt;/strong&gt; , the use of models with the highest precision seems almost imperative, as any misjudgement can lead to
&lt;strong&gt;unnecessarily high follow-up costs&lt;/strong&gt; .&lt;/p&gt;</description></item><item><title>MLOps (Machine-Learning DevOps)</title><link>https://www.koehn.ai/en/blog/mlops-machine-learning-devops/</link><pubDate>Fri, 06 Nov 2020 00:00:00 +0000</pubDate><guid>https://www.koehn.ai/en/blog/mlops-machine-learning-devops/</guid><description>&lt;p&gt;Deploying machine-learning models takes about 25% of data scientists&amp;rsquo; time, while 75% of models never go beyond the experimental phase, resulting in a significant
&lt;strong&gt;productivity bottleneck&lt;/strong&gt; . Automated deployment and retraining processes decrease the
&lt;strong&gt;time to market&lt;/strong&gt; and
&lt;strong&gt;reduce operations cost&lt;/strong&gt; . This is the subject of machine-learning operations - or in short MLOps. MLOps is an
&lt;strong&gt;extrapolation of the DevOps&lt;/strong&gt; approach to include the machine-learning modelling life cycle. Models degrade over time because the input changes. MLOps introduces
&lt;strong&gt;continuous retraining, model monitoring and evaluation of performance&lt;/strong&gt; . It saves a version history not only of code, but also of data and models. Versioning of data allows data scientists to keep track of where their data came from, and versioning of models allows to efficiently keep track of the model quality in the development process. Note that MLOps is not to be confused with AIOps, which merely augments the DevOps framework with AI techniques.
&lt;figure &gt;
&lt;div class="flex justify-center "&gt;
&lt;div class="w-full" &gt;&lt;img alt="MLOps (Machine-Learning DevOps)"
src="https://www.koehn.ai/media/blog/mlops-machine-learning-devops.svg"
loading="lazy" data-zoomable /&gt;&lt;/div&gt;
&lt;/div&gt;&lt;/figure&gt;
&lt;/p&gt;
&lt;h2 id="data-scientists-pain-points"&gt;Data scientists&amp;rsquo; pain points&lt;/h2&gt;
&lt;p&gt;Data scientists will tell you that their productivity is largely impaired by manually having to keep track of&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;machine-learning models,&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;code versions,&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;hyperparameters,&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;metrics,&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;ideas tried, and whether they worked or failed.&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;They will have trouble pinpointing the best model that had been trained two weeks prior, in order to reproduce it and to run it on full production data, or to rerun it with a more thorough parameter sweep.&lt;/p&gt;
&lt;h2 id="from-devops-to-mlops"&gt;From DevOps to MLOps&lt;/h2&gt;
&lt;p&gt;MLOps expands the DevOps integration stage with data &amp;amp; model validation. It expands delivery with the complexity of ML deployment. The team shall be able to successfully train a model and make it ready for production usage in a streamlined fashion, thereby significantly improving performance &amp;amp; agility. When in production, models need to be updated on a regular basis as new data comes in. Updates and changes need to be traceable. Continuous training of ML models has to encompass the whole
&lt;strong&gt;model life cycle&lt;/strong&gt; :&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;Model training pipeline (TFX, MLflow, Pachyderm, Kubeflow)&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Model Registry (e.g. platforms such as Data Bricks or Google)&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Model Serving (Deployment)&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Model Monitoring&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;CI/CD orchestration&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Instead of simply training offline and then deploying into production, a multistep pipeline to automatically retrain and deploy models is put in place. Automatic restart of training cycles can be triggered either as scheduled, when new data arrives, when there is a difference between training and live data, or when a degradation in model performance is observed. Summary statistics will be tracked and notifications sent out or models rolled back when values deviate from expectations.&lt;/p&gt;
&lt;h2 id="summary"&gt;Summary&lt;/h2&gt;
&lt;p&gt;The machine-learning product development process is not only about a software package. Beyond unit-testing of methods and functions, it requires validation of data, parameters and code together in a system. Machine learning is experimental in nature. The MLOps concept expands DevOps with specific processes that help data scientists to not get lost in the model zoo or in a swamp of deployment issues.&lt;/p&gt;</description></item><item><title>Yes, but what *is* Artificial Intelligence?</title><link>https://www.koehn.ai/en/blog/what-is-artificial-intelligence/</link><pubDate>Mon, 12 Oct 2020 00:00:00 +0000</pubDate><guid>https://www.koehn.ai/en/blog/what-is-artificial-intelligence/</guid><description>&lt;p&gt;In most cases, not actually much beyond a function fit.&lt;/p&gt;
&lt;h2 id="a-simple-example"&gt;A simple example&lt;/h2&gt;
&lt;p&gt;Let us take a look at one of the simplest examples - an example so simple that you might feel fooled. Imagine you have a list of twenty apartments, containing information about price and size of each apartment. You decide to create a two-dimensional diagram, with axes labeled &amp;ldquo;price&amp;rdquo; and &amp;ldquo;size&amp;rdquo;, respectively. Within this diagram, you mark one tick for every apartment on the list, with coordinates given by its price and size. You might observe that the price is generally increasing with larger size. Now you draw a line through your diagram in an optimal way. Optimal might mean here that the distances between data point and line are as small as possible on average. Your newly drawn line gives you a prediction for the price of any apartment based on its size. You can tell a computer to find that optimal line based on your list of apartments. A suitable algorithm takes some initial line and evolves it step by step towards the optimal line. This process of convergence constitutes the essence of machine learning, and machine learning is how AI is approached these days.
&lt;figure &gt;
&lt;div class="flex justify-center "&gt;
&lt;div class="w-full" &gt;
&lt;img alt="Yes, but what is Artificial Intelligence?"
srcset="https://www.koehn.ai/media/blog/what-is-artificial-intelligence_hu_69357eba289c2750.webp 320w, https://www.koehn.ai/media/blog/what-is-artificial-intelligence_hu_130fc223dd5f0915.webp 378w"
sizes="(max-width: 480px) 100vw, (max-width: 768px) 90vw, (max-width: 1024px) 80vw, 760px"
src="https://www.koehn.ai/media/blog/what-is-artificial-intelligence_hu_69357eba289c2750.webp"
width="378"
height="353"
loading="lazy" data-zoomable /&gt;&lt;/div&gt;
&lt;/div&gt;&lt;/figure&gt;
&lt;/p&gt;
&lt;h2 id="a-more-realistic-fit"&gt;A more realistic fit&lt;/h2&gt;
&lt;p&gt;A straight line is a strong restriction on the function fit. A strong restriction makes learning easier, but a straight line can only cover linear dependencies and this is in most cases just too restrictive. It underfits the more interesting dependencies. What the computer draws does not have to be a line, it could also be curved. The meaning of optimal then needs to be reassessed. With a curve, it is possible to directly connect all the ticks, rendering the average distance between data and curve zero. Although the average distance is zero, this curve is not necessarily optimal. For example, your list of apartments might contain one highly unusual sample, leading to correnspondingly unusual predictions for the prices of other apartments of the same size. This is called overfitting. Note that the clustering of similar apartments according to what is called an unsupervised algorithm also fits within this picture. Striking the right balance between underfitting and overfitting is an engineering problem, as is the distinction between supervised and unsupervised learning.&lt;/p&gt;
&lt;h2 id="more-realistic-scenarios"&gt;More realistic scenarios&lt;/h2&gt;
&lt;p&gt;Expecting the apartment price to depend only on its size is way too naive. What about its location, architecture, facilities, nearby infrastructure? Each apartment has a long list of properties, and many of them act as features for the pricing prediction. If we repeat the above process, every one of these features will require its own axis. Needless to state, we are unable to bijectively draw anything beyond two dimensions, and to imagine anything beyond three. But we might need a hundred dimensions. Making a prediction of price based on size and quality level requires us to draw a surface instead of a curve. Taking into account more than two features would require us to draw the higher-dimensional analog of a surface if we could. We can&amp;rsquo;t, hence they are called hypersurfaces. The problems humans have with imagining a high number of dimensions do not exist for computers - the computer is pragmatic and treats a further dimension merely as one further element in a list of numbers. There is one big problem however.&lt;/p&gt;
&lt;h2 id="what-is-the-algorithm-for-optimizing-on-a-high-dimensional-feature-space"&gt;What is the algorithm for optimizing on a high-dimensional feature space?&lt;/h2&gt;
&lt;p&gt;Computation time generally grows exponentially with increasing number of dimensions. Each one of the pixels of an image in a computer-vision problem could constitute its own dimension in feature space. The number of words in the vocabulary of a natural-language processing problem would map to the number of dimensions in feature space. Hence, efficient algorithms are needed. In an effort to reduce computational complexity, physicists create simplified models that need to be just complex enough to capture the relevant effects. Should it later turn out that not all relevant effects are mapped, a new and more complex model is needed. (Note that a more complex model can &lt;em&gt;look&lt;/em&gt; simpler by the style of its formulation, reflecting a sense of logical completeness up to a certain degree.) Ranging from linear and logistic regression to very deep neural networks, the space of machine-learning models is vast. The properties of all these different models are discussed elsewhere. In essence though, the idea is always the same. Give the model just enough structure to be able to learn what it should. Give it eyes if you want it to see and give it ears if you want it to hear. But don&amp;rsquo;t give it more structure than necessary, otherwise you&amp;rsquo;ll be off the fine line between conceptual progress and present-day computational feasibility.&lt;/p&gt;</description></item><item><title>Machine Learning and Football</title><link>https://www.koehn.ai/en/blog/machine-learning-football/</link><pubDate>Wed, 02 Sep 2020 00:00:00 +0000</pubDate><guid>https://www.koehn.ai/en/blog/machine-learning-football/</guid><description>&lt;p&gt;Up until 15 years ago, football was completely reliant on instinct and intuition. This changed with the then younger generation of so-called laptop coaches. The term itself signifies the drastic change of paradigm. Whereas before, choices were made mainly on gut feeling and professional experience, it now became possible to base decisions on data. One prominent early example being the little note passed on to goalkeeper Jens Lehmann right before the penalty shoot-out of Germany vs Argentina in the WC 2006.&lt;/p&gt;
&lt;h2 id="an-abundance-of-data-in-professional-football"&gt;An abundance of data in professional football&lt;/h2&gt;
&lt;p&gt;These days, there is an abundance of data in professional football.
Sportec Solutions
, a subsidiary of
DFL
, produces about 3 million data points per match. 25 times per second, a range of features are tracked for all 22 players on the pitch. Features include amongst others the coordinates of player and ball. Manually created sets of event data additionally provide information about corner kicks, successful and missed shots on targets, bookings, and much more. Data sets like these are being sold to TV broadcasters and clubs.
&lt;figure &gt;
&lt;div class="flex justify-center "&gt;
&lt;div class="w-full" &gt;
&lt;img alt="Machine Learning and Football (Photo by Bence Balla-Schottner on Unsplash)"
srcset="https://www.koehn.ai/media/blog/machine-learning-football_hu_b7d0000dd0186666.webp 320w, https://www.koehn.ai/media/blog/machine-learning-football_hu_73d11eeeeedf0e57.webp 387w"
sizes="(max-width: 480px) 100vw, (max-width: 768px) 90vw, (max-width: 1024px) 80vw, 760px"
src="https://www.koehn.ai/media/blog/machine-learning-football_hu_b7d0000dd0186666.webp"
width="387"
height="332"
loading="lazy" data-zoomable /&gt;&lt;/div&gt;
&lt;/div&gt;&lt;/figure&gt;
&lt;/p&gt;
&lt;h2 id="generating-tracking-data"&gt;Generating tracking data&lt;/h2&gt;
&lt;p&gt;Companies such as Sportec Solutions have access to special cameras placed in suitable spots around the pitch that in principle allow for a precise tracking of ball and players. This setup has its limitations: the data sets feature a significant level of noise and the accuracy is not high enough to meaningfully study ball trajectories such as swerve and acceleration. The position of extremities and vertical coordinates of players are not recorded. In principle, anyone can start producing data about football matches from suitable broadcasting images - albeit projected onto two dimensions, most of the information is there. Obviously, this task can not be done manually and calls for computer-vision techniques. The startup company
Subsequent
is implementing suitable services in an automated fashion using state-of-the-art techniques.&lt;/p&gt;
&lt;h2 id="use-cases"&gt;Use Cases&lt;/h2&gt;
&lt;p&gt;The tracking and event data can be used for a wide range of use cases. Insights can be supplied to coaches and analysts at a glance via accessible dashboards with tangible illustrations. On the one hand, these include the derivation of direct statistics about individual players, groups of players or the team as a whole. These are simple aggregate statistics such as the ones you are probably used to seeing on TV, including success rates of passes, tackles, shots, each for the team as a whole and for individual players. Beyond that, it can be very insightful to construct more abstract statistics, such as goalie metrics, effectiveness of passes, the infamous packing rates, or statistics about set pieces.&lt;/p&gt;
&lt;h2 id="machine-learning-in-professional-football"&gt;Machine Learning in Professional Football&lt;/h2&gt;
&lt;p&gt;The next level of insights will be generated via machine-learning techniques. The first glimpse of what might arrive in the not too distant future is given by the
expected goal values xG
which will be featured in TV broadcasting from season 20/21. Any shot of the current match will be compared against the history of all similar shots that the machine-learning model is trained with. The model setup includes amongst other properties the position of the shot taker and the opponent pressure. But machine learning enables many further use cases. For instance, detecting complex patterns automatically will save the match analysts great amounts of time which they can invest in other topics. Let us focus on a specific example.&lt;/p&gt;
&lt;h2 id="automated-tactical-analysis-of-team-behavior"&gt;Automated tactical analysis of team behavior&lt;/h2&gt;
&lt;p&gt;It is a very time-consuming task for analysts to watch scenes of matches and take note of the tactical variants played by an opponent. In the case of set pieces, this includes the initial line-up as well as players&amp;rsquo; trajectories in anticipation of the delivery of the set piece. Based on tracking data, state-of-the-art machine-learning algorithms can perform this process automatically. Technically, this can be solved by encoding the spatio-temporal coordinate trajectories of all players using a combination of convolutional and recurrent neural networks, compressing the high-dimensional information about all the players&amp;rsquo; coordinates into a lower-dimensional latent space via the
autoencoder technique
and subsequently running a clustering algorithm on the latent space.&lt;/p&gt;
&lt;h2 id="defensive-advice-board"&gt;Defensive Advice Board&lt;/h2&gt;
&lt;p&gt;The goal is to have the system cluster similar set-piece strategies together and to set up a cluster profile for each opponent. Via a suitable dashboard visualization, such a cluster profile enables the coach to tell at a glance which set-piece strategies have been conducted by the opponent and at which frequency. The analysis can be based on a user-defined time frame, but it can also detect pattern changes during the course of a season, e.g. due to the installment of a new head coach or injury of key players.&lt;/p&gt;
&lt;h2 id="opponent-behavior-simulation"&gt;Opponent Behavior Simulation&lt;/h2&gt;
&lt;p&gt;A further emerging technique is given by the
ghosting method
. This approached is based on LSTM networks and Imitation Learning and serves to illustrate the behavior of specific or of averaged teams with respect to concrete set-piece scenarios. This method enables automated answering of questions such as &amp;ldquo;how would team X defend against offensive strategy Y, and how will this influence the set piece’s xG value?&amp;rdquo;&lt;/p&gt;
&lt;h2 id="outlook"&gt;Outlook&lt;/h2&gt;
&lt;p&gt;In spite of being conceptually simple, football is an enormously complex game to optimize. While insights from machine learning won&amp;rsquo;t ever be able to make up for lack of motivation or character in a team, they will definitely change the way the game is played over the years to come. We will see playing strategies converge towards an overall higher degree of efficiency. The bottom-up approach for how to act locally in order to achieve a common outcome will be replaced by stringent instructions derived top-down. Other team sports such as handball or basketball will also profit from these advancements.&lt;/p&gt;</description></item><item><title>Online MBA Digital &amp; AI</title><link>https://www.koehn.ai/en/blog/online-mba-digital-ai/</link><pubDate>Mon, 17 Aug 2020 00:00:00 +0000</pubDate><guid>https://www.koehn.ai/en/blog/online-mba-digital-ai/</guid><description>&lt;p&gt;Earning an MBA degree can be beneficial for people with a technical degree. It entails however not only a time investment, but also a significant financial burden. Self-study constitutes an excellent alternative. All the material for the courses linked below are available at no cost.
The reputation of a business school depends on their alumni&amp;rsquo;s career success. This means they might be selective on admissions even if you are willing to make that investment. Tuition fees can be up to about 150.000 EUR, in addition students miss out on their regular salary during a full-time programme. In many cases, the student&amp;rsquo;s employer pays a significant fraction of the tuition fees. In contrast to self-study, the big advantage of real MBA programmes is the business network which you get on top.
Curricula of renowned business schools such as the
Wharton School
of the
University of Pennsylvania
consist usually of a fixed and a flexible core. The curriculum presented here is similar to that, plus it specializes on Digital &amp;amp; AI. The table below contains web links to online versions of courses at UPenn and similar institutions. If you allocate evening or weekend time for self-study, plan one to two weeks per course.&lt;/p&gt;
&lt;h2 id="fixed-core"&gt;Fixed Core&lt;/h2&gt;
&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Course Name &amp;amp; Link&lt;/th&gt;
&lt;th&gt;Instructor&lt;/th&gt;
&lt;th&gt;Affiliation&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;/td&gt;
&lt;td&gt;Rebecca Stein&lt;/td&gt;
&lt;td&gt;University of Pennsylvania Wharton&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;/td&gt;
&lt;td&gt;Andrew Conway&lt;/td&gt;
&lt;td&gt;Princeton University&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;/td&gt;
&lt;td&gt;Barbara E. Kahn Peter Fader Jagmohan Raju&lt;/td&gt;
&lt;td&gt;University of Pennsylvania&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;/td&gt;
&lt;td&gt;Christian Terwiesch&lt;/td&gt;
&lt;td&gt;University of Pennsylvania&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;/td&gt;
&lt;td&gt;Matt McGarrity&lt;/td&gt;
&lt;td&gt;University of Washington&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;/td&gt;
&lt;td&gt;Denise Comer&lt;/td&gt;
&lt;td&gt;Duke University&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;/td&gt;
&lt;td&gt;Richard Boyatzis&lt;/td&gt;
&lt;td&gt;Case Western Reserve University&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;h2 id="flexible-core"&gt;Flexible Core&lt;/h2&gt;
&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Course Name &amp;amp; Link&lt;/th&gt;
&lt;th&gt;Instructor&lt;/th&gt;
&lt;th&gt;Affiliation&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;/td&gt;
&lt;td&gt;Brian J Bushee&lt;/td&gt;
&lt;td&gt;University of Pennsylvania Wharton&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;/td&gt;
&lt;td&gt;Michael R Roberts&lt;/td&gt;
&lt;td&gt;University of Pennsylvania Wharton&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;/td&gt;
&lt;td&gt;Peter Navarro&lt;/td&gt;
&lt;td&gt;University of California, Irvine&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;/td&gt;
&lt;td&gt;Jeffrey Sachs&lt;/td&gt;
&lt;td&gt;Columbia University&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;/td&gt;
&lt;td&gt;Michael Goldberg&lt;/td&gt;
&lt;td&gt;Case Western Reserve University&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;/td&gt;
&lt;td&gt;Rolf Strom-Olsen&lt;/td&gt;
&lt;td&gt;IE Business School&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;/td&gt;
&lt;td&gt;Michael Lenox Jared Harris&lt;/td&gt;
&lt;td&gt;University of Virginia&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;/td&gt;
&lt;td&gt;Thomas Zoëga Ramsøy&lt;/td&gt;
&lt;td&gt;Copenhagen Business School&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;/td&gt;
&lt;td&gt;Udatta Palekar&lt;/td&gt;
&lt;td&gt;University of Illinois&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;/td&gt;
&lt;td&gt;Gad Allon Jan A. Van Mieghem&lt;/td&gt;
&lt;td&gt;University of Illinois&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;/td&gt;
&lt;td&gt;Walter Sinnot-Armstrong Ram Neta&lt;/td&gt;
&lt;td&gt;Duke University&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;/td&gt;
&lt;td&gt;George Siedel&lt;/td&gt;
&lt;td&gt;University of Michigan&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;/td&gt;
&lt;td&gt;Robert Shiller&lt;/td&gt;
&lt;td&gt;Yale University&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;/td&gt;
&lt;td&gt;John Mullins&lt;/td&gt;
&lt;td&gt;London Business School&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;/td&gt;
&lt;td&gt;Richard Waterman&lt;/td&gt;
&lt;td&gt;University of Pennsylvania Wharton&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;/td&gt;
&lt;td&gt;Richard Lambert Robert W. Holthausen&lt;/td&gt;
&lt;td&gt;University of Pennsylvania Wharton&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;/td&gt;
&lt;td&gt;Sergei Savin Senthil Veeraraghavan&lt;/td&gt;
&lt;td&gt;University of Pennsylvania Wharton&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;/td&gt;
&lt;td&gt;Lori Rosenkopf Karl T. Ulrich Ethan Mollick Kartik Hosanagar David Hsu&lt;/td&gt;
&lt;td&gt;University of Pennsylvania Wharton&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;/td&gt;
&lt;td&gt;Eric Bradlow, Peter Fader, Raghu Iyengar, Ron Berman, Senthil Veeraraghavan, Sergei Savin, Noah Gans, Cade Massey, Martine Haas, Matthew Bidwell, Brian J Bushee, Christopher D. Ittner&lt;/td&gt;
&lt;td&gt;University of Pennsylvania Wharton&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;h2 id="digital--ai-specialization"&gt;Digital &amp;amp; AI Specialization&lt;/h2&gt;
&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Course Name &amp;amp; Link&lt;/th&gt;
&lt;th&gt;Instructor&lt;/th&gt;
&lt;th&gt;Affiliation&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;/td&gt;
&lt;td&gt;Randy Hlavac&lt;/td&gt;
&lt;td&gt;Northwestern University&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;/td&gt;
&lt;td&gt;Santiago Gallino Antonio Moreno-Garcia&lt;/td&gt;
&lt;td&gt;Dartmouth University&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;/td&gt;
&lt;td&gt;John Lavine Candy Lee Randy Hlavac&lt;/td&gt;
&lt;td&gt;Northwestern University&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;/td&gt;
&lt;td&gt;Tim Peters&lt;/td&gt;
&lt;td&gt;University of California, Berkeley&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;/td&gt;
&lt;td&gt;Stephan Sorger&lt;/td&gt;
&lt;td&gt;University of California, Berkeley&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;/td&gt;
&lt;td&gt;Kamel Jedidi Asim Ansari&lt;/td&gt;
&lt;td&gt;Columbia University&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;/td&gt;
&lt;td&gt;Igor Halperin&lt;/td&gt;
&lt;td&gt;New York University&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;/td&gt;
&lt;td&gt;Christopher Geczy&lt;/td&gt;
&lt;td&gt;University of Pennsylvania Wharton&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;</description></item><item><title>Deep Learning Workstation</title><link>https://www.koehn.ai/en/blog/deep-learning-workstation-2020/</link><pubDate>Sun, 21 Jun 2020 00:00:00 +0000</pubDate><guid>https://www.koehn.ai/en/blog/deep-learning-workstation-2020/</guid><description>&lt;p&gt;Computing on cloud infrastructure is readily available with pre-constructed components and offers many operational advantages. The list of notable providers includes amongst others Amazon Web Services, Google Cloud Platform and Microsoft Azure. In many practical situations, it is nevertheless useful or even essential to have hardware on premises. This guide lists a few advantages of having a workstation on-premises, and it shall get you jumpstarted with ideas for what to buy in 2020, keeping in mind availability and pricing structure.&lt;/p&gt;
&lt;h2 id="when-to-prefer-a-local-workstation"&gt;When to prefer a local workstation&lt;/h2&gt;
&lt;p&gt;Firstly,
cost. Putting the benefit of scaling flexibility in cloud infrastructure aside, performing some serious deep-learning tasks can easily lead you into the four-figure range. In practice, this limits creativity because experiments are expensive. The break-even point for the profitability of a local workstation in comparison to cloud usage is reached rather rapid, usually after a few months.
&lt;figure &gt;
&lt;div class="flex justify-center "&gt;
&lt;div class="w-full" &gt;
&lt;img alt="Deep Learning Workstation"
srcset="https://www.koehn.ai/media/blog/deep-learning-workstation-2020_hu_9f787ea573212edc.webp 320w, https://www.koehn.ai/media/blog/deep-learning-workstation-2020_hu_b943aa184297091e.webp 387w"
sizes="(max-width: 480px) 100vw, (max-width: 768px) 90vw, (max-width: 1024px) 80vw, 760px"
src="https://www.koehn.ai/media/blog/deep-learning-workstation-2020_hu_9f787ea573212edc.webp"
width="387"
height="514"
loading="lazy" data-zoomable /&gt;&lt;/div&gt;
&lt;/div&gt;&lt;/figure&gt;
Secondly,
being connected to a computing instance via SSH or web portal is less comfortable for the daily workflow than being connected to your local workstation. Lags and connection drops are the daily reality for almost all users.
Thirdly,
computing on cloud servers automatically means storing your data on the cloud provider&amp;rsquo;s servers. Depending on the level of sensitivity of the data to be analyzed, this may be undesirable or even illegal. The unavailability of data due to such issues is a limiting factor for creativity and rapid prototyping.&lt;/p&gt;
&lt;h2 id="hardware-components"&gt;Hardware Components&lt;/h2&gt;
&lt;p&gt;A workstation composed from the following list of components allows you to perform state-of-the-art research projects at a reasonable price in 2020. Note that assembly is an interesting part of the process. It will take an expert roughly 15 minutes, a hobbyist will need two hours. People without prior experience should set aside a weekend.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;Workstation case:&lt;/strong&gt; As physical dimensions usually are no limiting factor in this setting, we recommend a workstation case that respects the E-ATX standard. Note that the chosen size standard affects the options for choice of main board. Good choice: Corsair Carbide Air 540.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;Power adaptor:&lt;/strong&gt; The graphics card(s) will consume a lot of power. Depending on the number of cards to be installed, the power supply needs to be able to supply a sufficient amount of power. Otherwise, you&amp;rsquo;ll be at risk of sudden power losses during work. If you want to be on the safe side with respect to future extensions, get a 1600W power supply. A higher quality certification will save a considerable amount of energy in daily use. Good choice: Super Flower Leadex 80 PLUS Platinum 1600W.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;Mainboard:&lt;/strong&gt; Get a very reliable workstation-class mainboard without multimedia frills but with evenly spaced PCI slots so that all your graphics cards fit in well. Note the standards: X299 for Intel processors, X399 for AMD processors. Good choice: Asus WS X299 SAGE.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;CPU:&lt;/strong&gt; Your choice: Intel or AMD. The advantage of AMD&amp;rsquo;s processors is that they are cheaper and feature more threads. Intel&amp;rsquo;s processors have a higher single-thread performance. Check out the new processors with VNNI. Note that Cascade Lake processors may require you to flash your main board&amp;rsquo;s BIOS beforehands. Depending on the type of main board, this can be done without a CPU installed. Good choice: Intel Core i9-10920X.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;CPU cooler:&lt;/strong&gt; A suitable cooling system to attach to your CPU. Good choice: Corsair Cooling Hydro Series H100i Platinum.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;RAM:&lt;/strong&gt; Get 8x 16GB RAM DDR4. If you&amp;rsquo;re running an Intel CPU, cheap RAM will suffice. Good choice: 8x G.SKILL RipJaws V 16GB DDR4-3200 CL16 DIMM.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;Hard drive(s):&lt;/strong&gt; One 1TB NVMe SSD drive for operating system and scratch plus two large magnetic hard drives for storage. Good choice: 1x SSD 1TB Samsung M.2 PCI-E NVMe 970 EVO Plus, 2x Seagate BarraCuda SATA 6G, 7200 U/min, 2 TB.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;Graphics card(s):&lt;/strong&gt; In 2020, we recommend one to four RTX 2080 Ti. These cards are being offered by a range of vendors, it doesn&amp;rsquo;t much matter which one you choose. Adding a second card will not double the performance, but increase it roughly by half. To manage the heat inside the case, a blower-style fan version has to be selected if the workstation is to contain more than one card. Good choice: 1-4x ASUS GeForce RTX 2080 Ti Turbo 11G.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;Screen cables:&lt;/strong&gt; Suitable choice of HDMI and DisplayPort cables, depending on the configuration and number of screens to be connected. Note that the ASUS card features 2x DisplayPort and 1x HDMI.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;Screen(s):&lt;/strong&gt; One to three screens, each between 20 and 27 inches diagonal.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;Peripherals:&lt;/strong&gt; Such as keyboard, mouse and USB hub.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;Operating system and software:&lt;/strong&gt; Windows 10 and Linux are the candidates. Good choice: Download a recent version of Ubuntu Linux and boot it from a USB stick. Installation is a simple process. Afterwards, install all the required components from the Ubuntu&amp;rsquo;s repositories and the pip package manager, such as compilers, interpreters, Python package managers, your IDE of choice, TensorFlow, Keras, PyTorch, cloud platform SDK and of course the Midnight Commander. For remote access, set up SSH for command line access and xRDP via SSH tunnel for remote graphical access.&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;The total cost of this system will vary between EUR 4000 and 7000 depending on the number of GPUs included. The assembly of the parts will pose no insurmountable obstacle to any experienced server administrator.&lt;/p&gt;</description></item><item><title>Contact</title><link>https://www.koehn.ai/en/contact/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://www.koehn.ai/en/contact/</guid><description/></item><item><title>Deployment and Operations</title><link>https://www.koehn.ai/en/services/deployments_operations/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://www.koehn.ai/en/services/deployments_operations/</guid><description>&lt;p&gt;
&lt;span class="inline-block pr-1"&gt;
&lt;svg style="height: 1em; transform: translateY(0.1em);" height='100px' width='100px' fill="currentColor" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" x="0px" y="0px" viewBox="0 0 128 128" style="enable-background:new 0 0 128 128;" xml:space="preserve"&gt;&lt;g&gt;&lt;g&gt;&lt;g&gt;&lt;path d="M6.429,124.726c-0.535,0-1.071-0.199-1.487-0.598c-0.85-0.817-0.874-2.166-0.052-3.013l29.311-30.203 c0.823-0.845,2.176-0.869,3.027-0.052c0.85,0.817,0.874,2.166,0.052,3.013L7.969,124.076 C7.549,124.508,6.99,124.726,6.429,124.726z"&gt;&lt;/path&gt;&lt;path d="M27.054,126c-0.506,0-1.013-0.177-1.42-0.538c-0.884-0.782-0.964-2.128-0.179-3.008l18.997-21.279 c0.787-0.878,2.137-0.959,3.022-0.177c0.884,0.782,0.964,2.128,0.179,3.008l-18.997,21.279C28.232,125.758,27.645,126,27.054,126 z"&gt;&lt;/path&gt;&lt;path d="M5.139,105.605c-0.506,0-1.013-0.177-1.42-0.538c-0.884-0.782-0.964-2.128-0.179-3.008L22.538,80.78 c0.786-0.878,2.137-0.959,3.022-0.177c0.884,0.782,0.964,2.128,0.179,3.008L6.741,104.89 C6.317,105.363,5.73,105.605,5.139,105.605z"&gt;&lt;/path&gt;&lt;/g&gt;&lt;g&gt;&lt;path d="M76.384,82.589c-3.622,1.677-7.28,3.246-10.963,4.707l1.358,17.566c5.524-2.506,18.341-10.283,28.504-31.399 c-4.387,2.329-8.775,4.424-12.522,6.212C80.66,80.682,78.528,81.647,76.384,82.589z"&gt;&lt;/path&gt;&lt;path d="M86.461,32.591c-1.963,0-3.925,0.739-5.419,2.216c-1.442,1.427-2.237,3.323-2.237,5.339c0,2.016,0.794,3.912,2.238,5.339 c2.988,2.955,7.851,2.954,10.837,0c0-0.001,0.001-0.001,0.001-0.001c1.442-1.427,2.238-3.323,2.238-5.339 c0-2.016-0.795-3.912-2.238-5.339C90.387,33.329,88.424,32.591,86.461,32.591z"&gt;&lt;/path&gt;&lt;path d="M49.156,39.02c1.19-2.386,2.461-4.88,3.822-7.387C31.645,41.667,23.764,54.321,21.217,59.797l17.628,1.332 c1.844-4.555,3.855-9.076,6.041-13.535C46.213,44.877,47.632,41.975,49.156,39.02z"&gt;&lt;/path&gt;&lt;path d="M94.322,4.716l27.95,27.638c1.368-5.402,2.112-10.817,2.464-15.889c0.029-0.425,0.059-0.849,0.083-1.278 c0.037-0.642,0.067-1.276,0.092-1.905c0.028-0.722,0.05-1.449,0.064-2.179c0.01-0.502,0.018-0.999,0.021-1.49 c0.006-1.004,0.004-2.013-0.015-3.03c-0.004-0.23-0.01-0.455-0.016-0.682c-0.031-1.222-0.074-2.45-0.143-3.688 C116.675,1.723,105.533,1.896,94.322,4.716z"&gt;&lt;/path&gt;&lt;path d="M109.709,56.969c0.564-0.621,1.116-1.256,1.65-1.911c0.07-0.086,0.146-0.17,0.215-0.257 c0.563-0.701,1.102-1.428,1.631-2.167c0.183-0.256,0.363-0.514,0.541-0.773c0.41-0.596,0.808-1.205,1.196-1.825 c0.25-0.4,0.492-0.804,0.73-1.209c0.283-0.48,0.559-0.966,0.83-1.459c0.236-0.433,0.471-0.866,0.695-1.304 c0.167-0.326,0.325-0.661,0.487-0.992c0.429-0.881,0.841-1.769,1.224-2.666c0.06-0.141,0.119-0.283,0.179-0.425 c0.683-1.633,1.29-3.288,1.833-4.955L89.611,6.064c-7.978,2.575-14.739,6.353-20.17,11.245c-0.14,0.126-0.28,0.253-0.419,0.381 c-0.71,0.655-1.403,1.325-2.065,2.019c-0.235,0.248-0.462,0.511-0.693,0.767c-5.23,5.781-9.608,13.326-13.346,20.581 c-0.833,1.672-1.625,3.291-2.36,4.797c-2.914,5.943-5.566,12.097-7.884,18.293c-0.163,0.437-0.463,0.788-0.835,1.031 c-1.639,4.206-3.132,8.435-4.453,12.67l11.028,10.906c4.401-1.342,8.796-2.862,13.164-4.535c0.227-0.25,0.495-0.467,0.83-0.589 c4.129-1.509,8.236-3.177,12.284-4.956c0.819-0.38,1.639-0.758,2.454-1.149c10.344-4.892,22.058-10.432,30.082-18.013 c0.681-0.641,1.336-1.313,1.979-1.998C109.377,57.333,109.543,57.151,109.709,56.969z M94.898,48.507 c-2.326,2.301-5.382,3.451-8.437,3.451c-3.055,0-6.11-1.15-8.436-3.45c-2.258-2.233-3.501-5.202-3.501-8.362 c0-3.16,1.244-6.129,3.5-8.362c4.653-4.601,12.222-4.599,16.873-0.001c2.259,2.233,3.502,5.202,3.502,8.362 C98.399,43.304,97.156,46.274,94.898,48.507z"&gt;&lt;/path&gt;&lt;/g&gt;&lt;/g&gt;&lt;/g&gt;&lt;/svg&gt;
&lt;/span&gt; Deploying machine-learning models takes about 25% of data scientists&amp;rsquo; time, while 75% of models never go beyond the experimental phase, resulting in a significant productivity bottleneck.
Automated deployment and retraining processes decrease the time to market and reduce operations cost.
This is the subject of machine-learning operations - or in short MLOps.
MLOps is an extrapolation of the DevOps approach to include the machine-learning modelling life cycle.
Models degrade over time because the input changes.
MLOps introduces continuous retraining, model monitoring and evaluation of performance.
It saves a version history not only of code, but also of data and models.
Versioning of data allows data scientists to keep track of where their data came from, and versioning of models allows to efficiently keep track of the model quality in the development process.
We help you to streamline your deployment and operations process with model-training pipelines (TFX, MLflow, Pachyderm, Kubeflow, Weights &amp;amp; Biases), registry, serving, monitoring and CI/CD orchestration.
Furthermore, the machine-learning application needs an infrastructure to run on, oftentimes at scale for thousands of users with a fast response time. We set up Infrastructure-as-Code (IaC) using Kubernetes, Terraform or Ansible on cloud environments or on premise.
Send us a quick note via email or give us a call to discuss your deployment and operations setup.&lt;/p&gt;</description></item><item><title>Feasibility Assessment</title><link>https://www.koehn.ai/en/services/feasibility_assessment/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://www.koehn.ai/en/services/feasibility_assessment/</guid><description>&lt;p&gt;
&lt;span class="inline-block pr-1"&gt;
&lt;svg style="height: 1em; transform: translateY(0.1em);" height='100px' width='100px' fill="currentColor" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" x="0px" y="0px" viewBox="0 0 64 64" style="enable-background:new 0 0 64 64;" xml:space="preserve"&gt;&lt;g&gt;&lt;g&gt;&lt;g&gt;&lt;polygon points="11.8,38.8 11.8,50.5 16.5,50.5 16.5,35.2 "&gt;&lt;/polygon&gt;&lt;polygon points="3.6,37.5 3.6,50.5 8.3,50.5 8.3,39.7 "&gt;&lt;/polygon&gt;&lt;g&gt;&lt;path d="M41,34.9v-12h-0.1l-4.6,5.2v7.4c0.1,0,0.2,0,0.4,0C38.2,35.7,39.7,35.5,41,34.9z"&gt;&lt;/path&gt;&lt;path d="M36.3,41.5v9H41v-9.4C39.5,41.5,37.9,41.6,36.3,41.5z"&gt;&lt;/path&gt;&lt;/g&gt;&lt;g&gt;&lt;path d="M32.9,32l-1.3,1.4L31,33.2c0.6,0.5,1.2,0.9,1.9,1.3V32z"&gt;&lt;/path&gt;&lt;path d="M28.1,38.5v12h4.8v-9.7C31.2,40.4,29.5,39.6,28.1,38.5z"&gt;&lt;/path&gt;&lt;/g&gt;&lt;path d="M22.4,30.7l-2.5,1.9v18h4.8V35.1C23.7,33.7,22.9,32.2,22.4,30.7z"&gt;&lt;/path&gt;&lt;/g&gt;&lt;path d="M41,17.1l-5,1l1.4,1.3l-7.3,8.3L22.9,25c-0.5-0.2-1.1-0.1-1.5,0.2L9.1,34.6l-5-2.4L3,34.4L8.5,37c0.6,0.3,1.2,0.2,1.7-0.2 l12.4-9.4l7.3,2.7c0.6,0.2,1.3,0,1.8-0.4l7.7-8.7l1.3,1.2L41,17.1z"&gt;&lt;/path&gt;&lt;/g&gt;&lt;g&gt;&lt;path d="M57,52.2c0.8,0.9,2.2,1.1,3.1,0.3c0.9-0.8,1.1-2.2,0.3-3.1l-0.6-0.7l-3.4,2.9L57,52.2z"&gt;&lt;/path&gt;&lt;path d="M49.9,36.9l-0.7,0.6L48,36c5.2-5.4,5.6-13.9,0.7-19.7c-5.2-6.2-14.5-6.9-20.7-1.7c-2.9,2.4-4.5,5.7-5,9.2 c0.1,0,0.3,0.1,0.4,0.1l3.1,1.1c0.2-2.9,1.5-5.7,3.8-7.7c3.4-2.9,8-3.4,11.7-1.6l0.3-0.1l0,0.2c1.3,0.6,2.5,1.6,3.5,2.8 c3.9,4.6,3.4,11.6-1.2,15.6S33,37.5,29,32.9c-0.6-0.7-1.1-1.5-1.5-2.4l-4.4-1.6c0.5,2.3,1.5,4.4,3.1,6.3 c4.9,5.8,13.5,6.8,19.6,2.5l1.3,1.5l-0.7,0.6l9.1,10.6l3.4-2.9L49.9,36.9z"&gt;&lt;/path&gt;&lt;/g&gt;&lt;/g&gt;&lt;/svg&gt;
&lt;/span&gt; Artificial Intelligence is one of the most discussed topics these days when it comes to the development of new business models.
Numerous start-ups have undergone phases of considerable success and growth, spurring a surge of inspiration for others to follow on similar tracks.
For you as an investor, some of them will lead to huge returns, while most of them will never take off.
You might be thankful for some solid advice regarding the sound­ness of a business proposal and its technical viability.
A solid feasibility assessment of the new business case will give you a much better confidence level regarding your time and money investments.
Feel free to send us a quick message or give us a call to get the discussion under­way.&lt;/p&gt;</description></item><item><title>Privacy</title><link>https://www.koehn.ai/en/privacy/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://www.koehn.ai/en/privacy/</guid><description>&lt;h1 id="privacy-policy"&gt;Privacy Policy&lt;/h1&gt;
&lt;p&gt;We are committed to protecting and respecting your privacy.&lt;/p&gt;
&lt;p&gt;This policy (together with our Terms of Use and any other documents referred to therein) sets out the basis on which any personal data we collect from you or that you provide to us will be processed by us. Please read the following carefully to understand our views and practices regarding your personal information and how we will treat it.&lt;/p&gt;
&lt;h2 id="information-we-may-collect-from-you"&gt;Information we may collect from you&lt;/h2&gt;
&lt;p&gt;We may collect and process the following data about you:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Information that you provide by filling out forms on our website. This includes information that you provide when you register to use our website,&lt;/li&gt;
&lt;li&gt;to subscribe to our service, send material or request further services. We may also ask you for information. We may also ask you for information when you enter a contest or promotion and when you report a problem with our website.&lt;/li&gt;
&lt;li&gt;If you contact us, we may retain a copy of that correspondence.&lt;/li&gt;
&lt;li&gt;We may also ask you to complete surveys that we use for research purposes, although you do not have to respond to them.&lt;/li&gt;
&lt;li&gt;Details of any transactions you make through our website and the fulfilment of your orders.&lt;/li&gt;
&lt;li&gt;Details of your visits to our website, including but not limited to traffic data, location data, weblogs and other communications data, whether required for our own billing purposes or otherwise, and the resources you access.&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id="ip-addresses"&gt;IP Addresses&lt;/h2&gt;
&lt;p&gt;We may collect information about your computer, including, if available, your IP address, operating system and browser type for system administration purposes. This is statistical information about our users&amp;rsquo; browsing activities and patterns that does not directly link to the user&amp;rsquo;s real identity.&lt;/p&gt;
&lt;h2 id="cookies"&gt;Cookies&lt;/h2&gt;
&lt;p&gt;Our website does NOT use cookies to distinguish you from other users of our website.&lt;/p&gt;
&lt;p&gt;We do NOT employ Google Analytics or any other external service from this website.&lt;/p&gt;
&lt;h2 id="where-we-store-your-personal-data"&gt;Where we store your personal data&lt;/h2&gt;
&lt;p&gt;Your data is stored on servers located in Germany that are accessible by us exclusively.&lt;/p&gt;
&lt;p&gt;If we have given you a password (or if you have chosen a password) that enables you to access certain parts of our website, you are responsible for keeping this password confidential. We ask you not to share this password with anyone.&lt;/p&gt;
&lt;p&gt;Unfortunately, the transmission of information over the Internet is not completely secure. Although we do our best to protect your personal information, we cannot guarantee the security of any information you transmit to our website; any transmission is at your own risk. Once we have received your information, we will use strict procedures and security features to try to prevent unauthorized access.&lt;/p&gt;
&lt;h2 id="use-of-the-information"&gt;Use of the information&lt;/h2&gt;
&lt;p&gt;We use the information we hold about you in the following ways:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;To fulfil our obligations under the contracts concluded between you and us.&lt;/li&gt;
&lt;li&gt;To provide you with information, products or services that you have requested from us or that we believe may be of interest to you, if you have consented to be contacted for such purposes.&lt;/li&gt;
&lt;li&gt;To ensure that the content of our website is presented in the most effective way for you and for your computer.&lt;/li&gt;
&lt;li&gt;To enable you to participate in interactive features of our service if you choose to do so.&lt;/li&gt;
&lt;li&gt;To inform you about changes to our service.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;If you are an existing customer, we will only contact you via e-mail or ground mail with information about goods and services similar to those which were the subject of a previous sale to you.
Disclosure of your information&lt;/p&gt;
&lt;p&gt;We may share your personal information with third parties:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;In the event that we sell or buy a business or assets, we may share your personal information with the potential seller or buyer of that business or assets.&lt;/li&gt;
&lt;li&gt;If he or substantially all of his assets are acquired by a third party, in which case the personal information he holds about his customers will be one of the transferred assets.&lt;/li&gt;
&lt;li&gt;If we are required to disclose or share your personal information to comply with any legal obligation; or to enforce or apply our terms of use or delivery and other agreements; or to protect the rights, property, or safety of us, our customers, or others. This includes exchanging information with other companies and organizations for fraud protection and credit risk reduction purposes.&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id="your-rights"&gt;Your Rights&lt;/h2&gt;
&lt;p&gt;You have the right to ask us not to process your personal data for marketing purposes. You can also exercise this right at any time by contacting us at &lt;a href="mailto:webmaster@koehn.ai"&gt;webmaster@koehn.ai&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Our website may from time to time contain links to and from the websites of our partner networks, advertisers and partners. If you follow a link to any of these websites, please note that these websites have their own privacy policies and that we do not accept any responsibility or liability for these policies. Please review this policy before submitting personal information to these websites.&lt;/p&gt;
&lt;h2 id="provision-of-information"&gt;Provision of information&lt;/h2&gt;
&lt;p&gt;German law gives you the right of access to the information stored about you. Your right of access can be exercised in accordance with the law. In case of further copies in addition to the copy provided free of charge, or in case of excessive requests, a reasonable fee may be charged or the information may be refused.&lt;/p&gt;
&lt;h2 id="changes-to-our-privacy-policy"&gt;Changes to our privacy policy&lt;/h2&gt;
&lt;p&gt;Any changes we make to our privacy policy in the future will be posted on this page and, where appropriate, notified to you by e-mail.&lt;/p&gt;
&lt;h2 id="contact"&gt;Contact&lt;/h2&gt;
&lt;p&gt;Questions, comments and suggestions regarding this privacy policy are welcome and should be addressed to &lt;a href="mailto:webmaster@koehn.ai"&gt;webmaster@koehn.ai&lt;/a&gt;.&lt;/p&gt;</description></item><item><title>Prototyping</title><link>https://www.koehn.ai/en/services/prototyping/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://www.koehn.ai/en/services/prototyping/</guid><description>&lt;p&gt;
&lt;span class="inline-block pr-1"&gt;
&lt;svg style="height: 1em; transform: translateY(0.1em);" height='100px' width='100px' fill="currentColor" xmlns="http://www.w3.org/2000/svg" data-name="Layer 1" viewBox="0 0 128 128" x="0px" y="0px"&gt;&lt;title&gt;solid 1&lt;/title&gt;&lt;path d="M27.75,39.31a1,1,0,0,0,.81.78C29,40.17,39.62,42,44,42h.5A5.07,5.07,0,0,0,46,41.7L98,31.29a5.71,5.71,0,0,0,4.51-6.75l-.09-.44h0a5.71,5.71,0,0,0-.27-.9l0-.12a5.67,5.67,0,0,0-.39-.77l-.08-.14a5.72,5.72,0,0,0-.51-.68l-.09-.1a5.79,5.79,0,0,0-.64-.61h0a5.82,5.82,0,0,0-.72-.49l-.11-.06a5.81,5.81,0,0,0-.77-.35l-.15-.05a5.77,5.77,0,0,0-.82-.22l-.14,0a5.72,5.72,0,0,0-.9-.08l-.41,0h-.16a5.83,5.83,0,0,0-.58.09L76.71,23.4,43.6,30a5.07,5.07,0,0,0-1.44.3c-3.77,1.4-13.56,7.62-14,7.88A1.07,1.07,0,0,0,27.75,39.31ZM96,21.57a3.77,3.77,0,0,1,4.43,2.92l.09.44a3.68,3.68,0,0,1-.55,2.79,3.74,3.74,0,0,1-2.4,1.6L48.19,39.21A6.52,6.52,0,0,0,49,36l36.12-7.22a1,1,0,1,0-.39-2L48.68,34.06A6.32,6.32,0,0,0,46.9,31.4ZM42.41,32.2a3,3,0,0,1,2.62.26,4.3,4.3,0,0,1,2,2.82h0a4.43,4.43,0,0,1-.79,3.4A3,3,0,0,1,43.92,40c-2.61.1-8.92-.87-12.42-1.45C34.51,36.58,40,33.14,42.41,32.2Z"&gt;&lt;/path&gt;&lt;path d="M127.83,90.36a1,1,0,0,0,.14-.77L125.25,77.4h0a1,1,0,0,0-.34-.52v0a1,1,0,0,0-.62-.23l-.18,0L24.52,94.33a1,1,0,0,0-.8,1.2l2.72,12.19a1,1,0,0,0,1,.78l.18,0,43.18-7.67,56.4-10A1,1,0,0,0,127.83,90.36Zm-99.65,16L25.9,96.12l5.75-1,1.24,5.55a1,1,0,0,0,1,.78l.22,0a1,1,0,0,0,.76-1.19l-1.22-5.47,5.84-1,1.24,5.55a1,1,0,0,0,1,.78l.22,0a1,1,0,0,0,.76-1.19l-1.22-5.47,5.84-1,1.24,5.55a1,1,0,0,0,1,.78l.22,0a1,1,0,0,0,.76-1.19L49.24,92l5.84-1,1.24,5.55a1,1,0,0,0,1,.78l.22,0A1,1,0,0,0,58.27,96l-1.22-5.47,5.84-1,1.24,5.55a1,1,0,0,0,1,.78l.22,0a1,1,0,0,0,.76-1.19l-1.22-5.47,5.84-1,1.24,5.55a1,1,0,0,0,1,.78l.22,0a1,1,0,0,0,.76-1.19l-1.22-5.47,5.84-1,1.24,5.55a1,1,0,0,0,1,.78l.22,0a1,1,0,0,0,.76-1.19l-1.22-5.47,5.84-1,1.24,5.55a1,1,0,0,0,1,.78l.22,0a1,1,0,0,0,.76-1.19L88.29,85l5.84-1,1.24,5.55a1,1,0,0,0,1,.78l.22,0a1,1,0,0,0,.76-1.19L96.1,83.64l5.84-1,1.24,5.55a1,1,0,0,0,1,.78l.22,0a1,1,0,0,0,.76-1.19l-1.22-5.47,5.84-1L111,86.77a1,1,0,0,0,1,.78l.22,0a1,1,0,0,0,.76-1.19l-1.22-5.47,6.64-1.18,1.2,5.35a1,1,0,0,0,1,.78l.22,0a1,1,0,0,0,.76-1.19l-1.18-5.27,3.18-.56L125.8,89Z"&gt;&lt;/path&gt;&lt;path d="M123.73,74.67a3,3,0,0,1,.54-.05l-12.41-42.4a1,1,0,0,0-1-.72h-9a7.72,7.72,0,0,1-3.57,1.75L46.47,43.64a7,7,0,0,1-1.88.34H44c-4.57,0-15.34-1.85-15.79-1.93a3,3,0,0,1-2.43-2.34,3.06,3.06,0,0,1,1.32-3.2c1-.65,4.53-2.86,8-4.85l-17.82.23h0A9.68,9.68,0,0,0,9.7,28.29,9.25,9.25,0,0,0,4.3,30.1C1.87,31.79-.07,34.66,0,35.57a1,1,0,0,0,0,.16C2.57,46.1,3.22,65,3,73.75a1,1,0,0,0,0,.18,16.9,16.9,0,0,0,0,3.22c1.35,5.48,6.82,11,16,11H47.77ZM5.06,70.37c0-9.62-.79-25.45-3-34.83a11.71,11.71,0,0,1,3.41-3.8A7.29,7.29,0,0,1,9.7,30.29a7.7,7.7,0,0,1,6.12,3,1,1,0,0,0,0,.22L21.55,69A11.36,11.36,0,0,0,5.06,70.37Zm17.35,4.1c-.64,3.6-4.81,5.92-8.62,6.21L11.36,68.46a9.31,9.31,0,0,1,2.52-.35c4.14,0,7.81,2.72,8.54,6.32v0ZM43.25,57.7a2.86,2.86,0,0,1,3-2.68h2.87c.11,0,.79-.11,2.91-2.17.06-.05.09-.09.08-.12s-.13-.25-.41-.4l-2.13-1.13a1.95,1.95,0,0,1,0-3.64l.94-.5a5.18,5.18,0,0,1,4.47,0l2.13,1.13a4.78,4.78,0,0,0,2.94.3l3-.65a1.44,1.44,0,0,0,1.19-1.33v-.26a3,3,0,0,1,3-3h2.32a3,3,0,0,1,3,3v.26a1.42,1.42,0,0,0,1.13,1.32l3,.64a4.79,4.79,0,0,0,3-.29l2.12-1.13a5.17,5.17,0,0,1,4.47,0l.94.5a1.95,1.95,0,0,1,0,3.64l-2,1.08a4.65,4.65,0,0,0,.65,2A2.47,2.47,0,0,0,87.7,55h3.7a2.7,2.7,0,1,1,0,5.36H87.7c-.12,0-.8.11-2.92,2.17-.05.05-.08.09-.08.11s.13.25.41.4l2.13,1.13a1.95,1.95,0,0,1,0,3.64l-.94.5a5.17,5.17,0,0,1-4.47,0L79.7,67.21a4.75,4.75,0,0,0-2.94-.3l-3,.65a1.44,1.44,0,0,0-1.19,1.33v.26a3,3,0,0,1-3,3H67.25a3,3,0,0,1-3-3v-.26a1.42,1.42,0,0,0-1.13-1.32l-3-.64a4.79,4.79,0,0,0-3,.29L55,68.34a5.17,5.17,0,0,1-4.47,0l-.94-.5a1.95,1.95,0,0,1,0-3.64l2-1.08a4.64,4.64,0,0,0-.65-2,2.46,2.46,0,0,0-1.84-.77H46.25A2.86,2.86,0,0,1,43.25,57.7Z"&gt;&lt;/path&gt;&lt;path d="M63.48,65.6a3.39,3.39,0,0,1,2.77,3.29v.26a1,1,0,0,0,1,1h2.32a1,1,0,0,0,1-1v-.26a3.41,3.41,0,0,1,2.82-3.3L76.27,65a6.56,6.56,0,0,1,4.37.47l2.13,1.13a3.24,3.24,0,0,0,2.59,0l.94-.5.09-.06L86.3,66l-2.12-1.13A2.61,2.61,0,0,1,82.72,63a2.09,2.09,0,0,1,.64-1.8c1.42-1.38,3-2.76,4.34-2.76h3.7c.59,0,1-.36,1-.68S92,57,91.4,57H87.7a4.3,4.3,0,0,1-3.59-1.79c-.29-.51-1.19-2.28-.81-3.58a1.76,1.76,0,0,1,.87-1.08l2.12-1.13.09-.06-.09-.06-.94-.5a3.24,3.24,0,0,0-2.59,0L80.64,50a6.62,6.62,0,0,1-4.44.46l-2.87-.61a3.39,3.39,0,0,1-2.77-3.29v-.26a1,1,0,0,0-1-1H67.25a1,1,0,0,0-1,1v.26a3.41,3.41,0,0,1-2.82,3.3l-2.88.62A6.69,6.69,0,0,1,56.18,50l-2.13-1.13a3.24,3.24,0,0,0-2.59,0l-.94.5-.09.06.09.06,2.13,1.13a2.61,2.61,0,0,1,1.45,1.89,2.09,2.09,0,0,1-.64,1.8C52,55.64,50.43,57,49.12,57H46.25c-.59,0-1,.36-1,.68s.41.68,1,.68h2.87a4.3,4.3,0,0,1,3.59,1.79c.29.51,1.19,2.28.81,3.58a1.76,1.76,0,0,1-.87,1.08L50.52,66l-.09.06.09.06.94.5a3.24,3.24,0,0,0,2.59,0l2.12-1.13a6.61,6.61,0,0,1,2.94-.65,5.45,5.45,0,0,1,1.5.19Zm5.34-12.81c4.5,0,8,2.16,8,4.91s-3.52,4.91-8,4.91-8-2.16-8-4.91S64.33,52.79,68.83,52.79Z"&gt;&lt;/path&gt;&lt;path d="M68.83,60.62c3.55,0,6-1.54,6-2.91s-2.47-2.91-6-2.91-6,1.54-6,2.91S65.28,60.62,68.83,60.62Z"&gt;&lt;/path&gt;&lt;/svg&gt;
&lt;/span&gt; You might have a concrete business case in mind and you might have a rough idea that AI could be a key ingredient, but you are struggling to map out the concrete steps on how to tackle this problem.
Or you might want to rethink an existing prototype in light of the state of the art in AI research.
You might have heard about an intriguing new technique, and now you are curious to learn how it could help your business.
You might be faced with an extremely hard problem that none of your team members can solve.
We specialize in developing tech­nical concepts and solutions for advanced machine-learning problems.
We help you synthesize the business and the technical aspects of your use case.
We are well-versed in all the major state-of-the-art frameworks and para­digms for (deep) machine learning, whether supervised, unsupervised or reinforcement learning.
Our proficiency in harnessing contemporary research for real-life use cases will help you to stay ahead of the competition.
We can work either on your systems, or use our powerful NVIDIA workstation or cloud computing services.
Let us start the discussion.
Send us a quick note via the web form or give us a call.&lt;/p&gt;</description></item><item><title>Strategy Development</title><link>https://www.koehn.ai/en/services/strategy_development/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://www.koehn.ai/en/services/strategy_development/</guid><description>&lt;p&gt;
&lt;span class="inline-block pr-1"&gt;
&lt;svg style="height: 1em; transform: translateY(0.1em);" height='100px' width='100px' fill="currentColor" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" x="0px" y="0px" viewBox="0 0 50 50" enable-background="new 0 0 50 50" xml:space="preserve"&gt;&lt;g&gt;&lt;path d="M36.1434,39.6573c0-0.51-0.41-0.92-0.91-0.92h-20.46c-0.51,0-0.92,0.41-0.92,0.92v2.08h22.29V39.6573z"&gt;&lt;/path&gt;&lt;path d="M17.0791,16.6752h15.8417c0.504,0,0.9125-0.4086,0.9125-0.9125v-3.1988c0-0.504-0.4086-0.9125-0.9125-0.9125H17.0791 c-0.504,0-0.9125,0.4086-0.9125,0.9125v3.1988C16.1666,16.2666,16.5751,16.6752,17.0791,16.6752z"&gt;&lt;/path&gt;&lt;path d="M40.1841,43.2341H9.8158c-0.6761,0-1.2243,0.5482-1.2243,1.2243v4.5543h32.817v-4.5543 C41.4085,43.7823,40.8604,43.2341,40.1841,43.2341z"&gt;&lt;/path&gt;&lt;path d="M32.6534,37.2373c-3.09-7.41-3.73-11.65-2.77-19.06h-9.76c0.95,7.4,0.32,11.65-2.77,19.06H32.6534z"&gt;&lt;/path&gt;&lt;path d="M30.8033,10.1473c0.4-0.83,0.62-1.76,0.62-2.74c0-3.55-2.87-6.42-6.42-6.42s-6.43,2.87-6.43,6.42 c0,0.98,0.22,1.91,0.62,2.74H30.8033z"&gt;&lt;/path&gt;&lt;/g&gt;&lt;/svg&gt;
&lt;/span&gt; Artificial Intelligence or Adept Idiocy? A solid AI strategy tremen­dously benefits organi­zations large and small.
The often very heterogeneous data land­scapes of our clients hold an enormous value potential.
The approach to unlock this potential is given through Artificial Intelli­gence.
This results in considerable business value, or in process opti­mizations that enable a more productive work flow.
To this end, we work closely with executives and stakeholders.
We develop suitable metrics and KPI in order to measure the success and improve decision-making and busi­ness performance.
If you are interested in creating a solid AI strategy for your organization, or in challenging your existing one, send us a quick note via the web form or give us a call. We can take the discussion from there.&lt;/p&gt;</description></item><item><title>Terms of Service</title><link>https://www.koehn.ai/en/terms/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://www.koehn.ai/en/terms/</guid><description>&lt;h1 id="imprint"&gt;Imprint&lt;/h1&gt;
&lt;p&gt;according to German law §5 TMG:&lt;/p&gt;
&lt;p&gt;Koehn AI GmbH
Friedrichstr. 68
10117 Berlin
Germany&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Managing Director: Dr. Michael Koehn&lt;/li&gt;
&lt;li&gt;Phone: +49 30 629 38 17 80&lt;/li&gt;
&lt;li&gt;E-mail: &lt;a href="mailto:webmaster@koehn.ai"&gt;webmaster@koehn.ai&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;h1 id="responsible-for-contents"&gt;Responsible for contents&lt;/h1&gt;
&lt;p&gt;according to German law §55 paragraph 2 RStV:&lt;/p&gt;
&lt;p&gt;see Imprint&lt;/p&gt;
&lt;h2 id="terms-of-use-of-the-website"&gt;Terms of use of the website&lt;/h2&gt;
&lt;p&gt;On this page you will find the terms of use under which you can use our website &lt;a href="https://www.koehn.ai" target="_blank" rel="noopener"&gt;www.koehn.ai&lt;/a&gt;, either as a guest or as a registered user. Please read these terms of use carefully before you start using the website. By using our website you declare that you accept and adhere to these terms of use. If you do not agree with these terms of use, please do not use our website.&lt;/p&gt;
&lt;h3 id="information-about-us"&gt;Information about us&lt;/h3&gt;
&lt;p&gt;&lt;a href="https://www.koehn.ai" target="_blank" rel="noopener"&gt;www.koehn.ai&lt;/a&gt; is a site operated by Koehn AI Consulting (&amp;ldquo;We&amp;rdquo;). We are registered in Germany with the Sales Tax ID DE325515071. Our address is Friedrichstr. 68, 10117 Berlin, Germany.&lt;/p&gt;
&lt;h3 id="access-to-our-site"&gt;Access to our site&lt;/h3&gt;
&lt;p&gt;Access to our website is temporarily permitted and we reserve the right to discontinue or change the service we offer on our website without notice (see below). We accept no liability if our website is unavailable for any reason at any time or for any period.&lt;/p&gt;
&lt;p&gt;From time to time, we may restrict access to some or all of our website to users who have registered with us.&lt;/p&gt;
&lt;p&gt;If you choose or receive a user identification code, password or other information as part of our security procedures, you must keep this information confidential and may not disclose it to any third party. We have the right to deactivate any User Identification Code or password, whether chosen by you or assigned by us, at any time if we believe that you have failed to comply with any of the provisions of these Terms of Use.&lt;/p&gt;
&lt;p&gt;You must comply with the terms of our Terms of Use when using our Site.&lt;/p&gt;
&lt;p&gt;It is your responsibility to take all necessary precautions to comply with the terms and conditions for access to our website. You are also responsible for ensuring that all persons accessing our website via your internet connection are aware of these terms and conditions and that they comply with them.&lt;/p&gt;
&lt;h3 id="copyright"&gt;Copyright&lt;/h3&gt;
&lt;p&gt;We are the owner or licensee of all intellectual property rights in our website and in the material published on it. These works are protected by copyright laws and treaties worldwide. All such rights are reserved.&lt;/p&gt;
&lt;p&gt;You may print and download a copy of any page(s) of our website for your personal reference and you may bring the material published on our website to the attention of others within your organisation.&lt;/p&gt;
&lt;p&gt;You may not modify in any way the paper or digital copies of the materials you print or download and you may not use any illustrations, photographs, video or audio clips or graphics separately from the accompanying text.&lt;/p&gt;
&lt;p&gt;Our status (and that of any identified contributors) as authors of material on our website must always be acknowledged.&lt;/p&gt;
&lt;p&gt;You may not use any part of the material on our website for commercial purposes without obtaining a licence to do so from us or our licensors.&lt;/p&gt;
&lt;p&gt;If you print, copy or download any part of our website in breach of these Terms of Use, your right to use our website will immediately cease and you must, at our discretion, return or destroy all copies of the material you have made.&lt;/p&gt;
&lt;p&gt;Content on this site that was not created by us will be marked as third party content, subject to copyright law. We request that you notify the webmaster if you become aware of any copyright infringement. We will remove such contents immediately after notification.&lt;/p&gt;
&lt;h3 id="liability-for-comments-and-other-materials"&gt;Liability for comments and other materials&lt;/h3&gt;
&lt;p&gt;Comments and other materials posted on our website are not intended as advice to be relied upon. We therefore disclaim all liability and responsibility arising from reliance on such materials by visitors to our website or by persons who have been informed of their contents.&lt;/p&gt;
&lt;h3 id="our-site-changes-regularly"&gt;Our site changes regularly&lt;/h3&gt;
&lt;p&gt;We endeavour to update our website regularly and may change the content at any time. If necessary, we may suspend access to our website or close it indefinitely. The material on our website may be out of date at any time and we have no obligation to update this material.&lt;/p&gt;
&lt;h3 id="our-liability"&gt;Our liability&lt;/h3&gt;
&lt;p&gt;The material displayed on our website is provided without any guarantees, conditions or warranties as to its accuracy. We are responsible for our own content on this site according to § 7 Abs.1 TMG. According to §§ 8 to 10 TMG, however, we are not obliged to monitor third-party information that has been transmitted to and stored by us. We are also not obliged to search for illegal activities. Obligations to remove or block the use of information according to general laws remain unaffected. However, liability in this respect is only possible from the time of knowledge of a concrete infringement. If we become aware of any such infringements, we will remove these contents immediately. In this case, please send us an e-mail to &lt;a href="mailto:webmaster@koehn.ai"&gt;webmaster@koehn.ai&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;To the extent permitted by law, we, other members of our group of companies and third parties associated with us expressly exclude the following:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;All conditions, warranties and other terms which might otherwise be implied by law, customary law or equity&lt;/li&gt;
&lt;li&gt;Any liability for any direct, indirect or consequential damage or loss suffered by any user in connection with our website or in connection with the use, inability to use, or the results of the use of our website, any websites linked to it and any material published on it, including, without limitation, any liability for:
&lt;ul&gt;
&lt;li&gt;loss of income or revenue;&lt;/li&gt;
&lt;li&gt;loss of business;&lt;/li&gt;
&lt;li&gt;loss of profits or contracts;&lt;/li&gt;
&lt;li&gt;loss of anticipated savings;&lt;/li&gt;
&lt;li&gt;loss of data;&lt;/li&gt;
&lt;li&gt;loss of goodwill;&lt;/li&gt;
&lt;li&gt;wasted management or office time; and&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;for any other loss or damage of any kind, however arising and whether caused by tort (including negligence), breach of contract or otherwise, even if this condition is unforeseeable, provided that this condition does not prevent claims for loss of or damage to your material property or other claims for direct financial loss not excluded by any of the above categories.&lt;/p&gt;
&lt;p&gt;This shall not affect our liability for death or personal injury caused by our negligence, nor our liability for fraudulent misrepresentation or misrepresentation in relation to a fundamental matter, nor any other liability which cannot be excluded or limited under applicable law.&lt;/p&gt;
&lt;h3 id="privacy-policy"&gt;Privacy Policy&lt;/h3&gt;
&lt;p&gt;We process information about you in accordance with our privacy policy. By using our website, you consent to such processing and warrant that all data provided by you is accurate.&lt;/p&gt;
&lt;p&gt;Our website can be used without providing personal data. If personal data such as name and contact details are collected, this is always done on a voluntary basis. Without your express consent, these data will not be passed on to third parties. However, you are responsible for securing the channels through which your data reaches us via the Internet (e.g. by web or e-mail).
Transactions that are concluded via our website&lt;/p&gt;
&lt;p&gt;Contracts for the supply of goods, services or information formed via our website or as a result of visits by you are governed by our terms and conditions of supply.&lt;/p&gt;
&lt;h3 id="uploading-material-to-our-site"&gt;Uploading material to our site&lt;/h3&gt;
&lt;p&gt;Whenever you use a feature that allows you to upload material to our site or contact other users of our site, you must comply with the content standards set forth in our Acceptable Use Policy. You warrant that any such contribution will meet these standards and you will indemnify us for any breach of this warranty.&lt;/p&gt;
&lt;p&gt;Any material you upload to our website will be considered non-confidential and non-proprietary and we have the right to use, copy, distribute and disclose such material to third parties for any purpose. We also have the right to disclose your identity to third parties who claim that material posted or uploaded by you to our site constitutes an infringement of their intellectual property rights or right to privacy.&lt;/p&gt;
&lt;p&gt;We are not responsible or liable to third parties for the content or accuracy of any material posted by you or any other user of our site.&lt;/p&gt;
&lt;p&gt;We have the right to remove any material or your postings on our website if we believe that such material does not meet the standards of content set out in our Acceptable Use Policy.&lt;/p&gt;
&lt;h3 id="viruses-hacking-and-other-crimes"&gt;Viruses, hacking and other crimes&lt;/h3&gt;
&lt;p&gt;You must not misuse our website by knowingly introducing viruses, Trojan horses, worms, logic bombs or other material that is malicious or technologically harmful. You must not attempt to gain unauthorised access to our website, the server on which our website is stored or any server, computer or database connected to our website. You must not attack our website via a denial of service attack or a distributed denial of service attack.&lt;/p&gt;
&lt;p&gt;By violating this provision, you would be committing a criminal offence under applicable computer criminal law. We will report such a violation to the appropriate law enforcement authorities and will cooperate with those authorities by disclosing your identity. In the event of such a violation, your right to use our website will be terminated immediately.&lt;/p&gt;
&lt;p&gt;We will not be liable for any loss or damage caused by a distributed denial-of-service attack, viruses or other technologically harmful material that may infect your computer equipment, computer programs, data or other proprietary material as a result of your use of our website or as a result of you downloading material posted on our website or on any website linked to it.&lt;/p&gt;
&lt;h3 id="linking-to-our-site"&gt;Linking to our site&lt;/h3&gt;
&lt;p&gt;You may link to our site provided you do so in a manner that is fair and legal and does not damage or take advantage of our reputation, but you may not link in a manner that suggests association, approval or endorsement on our part where none exists.&lt;/p&gt;
&lt;p&gt;You may not create a link from a website that does not belong to you.&lt;/p&gt;
&lt;p&gt;Our website may not be framed on another website, nor may you create a link to any part of our website other than the home page. We reserve the right to withdraw permission to link without prior notice. The website from which you link must comply in all respects with the content standards set out in our Acceptable Use Policy.&lt;/p&gt;
&lt;p&gt;If you wish to use material on our website for purposes other than those stated above, please direct your request to &lt;a href="mailto:webmaster@koehn.ai"&gt;webmaster@koehn.ai&lt;/a&gt;.&lt;/p&gt;
&lt;h3 id="links-from-our-website"&gt;Links from our website&lt;/h3&gt;
&lt;p&gt;If our website contains links to other websites and resources of third parties, these links are provided for your information only. We have no control over the content of those sites or resources and accept no responsibility for those sites or for any loss or damage that may arise from your use of those sites or resources. If we become aware of any infringement, we will remove such links immediately. In this case, please notify &lt;a href="mailto:webmaster@koehn.ai"&gt;webmaster@koehn.ai&lt;/a&gt;.&lt;/p&gt;
&lt;h3 id="place-of-jurisdiction-and-applicable-law"&gt;Place of jurisdiction and applicable law&lt;/h3&gt;
&lt;p&gt;The German courts shall have exclusive jurisdiction over all claims arising out of or relating to a visit to our website, although we reserve the right to bring legal action against you for breach of these terms and conditions in your country of residence or any other relevant country.&lt;/p&gt;
&lt;p&gt;These Terms of Use and all disputes or claims arising out of or in connection with them or their subject matter or origination (including non-contractual disputes or claims) shall be governed by and construed in accordance with the laws of the Federal Republic of Germany.&lt;/p&gt;
&lt;h3 id="modifications"&gt;Modifications&lt;/h3&gt;
&lt;p&gt;We may revise these terms of use at any time by updating this page. You are expected to check this page from time to time to take note of any changes we make, as they are binding on you. Some of the provisions contained in these Terms of Use may also be superseded by provisions or notices published elsewhere on our website.&lt;/p&gt;
&lt;h3 id="your-objections"&gt;Your objections&lt;/h3&gt;
&lt;p&gt;If you have any concerns about material appearing on our website, please contact &lt;a href="mailto:webmaster@koehn.ai"&gt;webmaster@koehn.ai&lt;/a&gt;.&lt;/p&gt;</description></item></channel></rss>