<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Machine Learning Archives - Artificial Intelligence</title>
	<atom:link href="https://www.aiuniverse.xyz/category/machine-learning/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.aiuniverse.xyz/category/machine-learning/</link>
	<description>Exploring the universe of Intelligence</description>
	<lastBuildDate>Sat, 28 Nov 2026 10:50:08 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	
	<item>
		<title>Why are tour operators neglecting machine learning?</title>
		<link>https://www.aiuniverse.xyz/why-are-tour-operators-neglecting-machine-learning/</link>
					<comments>https://www.aiuniverse.xyz/why-are-tour-operators-neglecting-machine-learning/#respond</comments>
		
		<dc:creator><![CDATA[aiuniverse]]></dc:creator>
		<pubDate>Sat, 28 Nov 2026 10:50:07 +0000</pubDate>
				<category><![CDATA[Machine Learning]]></category>
		<category><![CDATA[Artificial Intelligence]]></category>
		<category><![CDATA[Development]]></category>
		<category><![CDATA[Machine learning]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[tour operator]]></category>
		<guid isPermaLink="false">http://www.aiuniverse.xyz/?p=5160</guid>

					<description><![CDATA[<p><img width="300" height="158" src="https://www.aiuniverse.xyz/wp-content/uploads/2026/11/featured-5160-300x158.png" class="attachment-medium size-medium wp-post-image" alt="Why are tour operators neglecting machine learning?" decoding="async" srcset="https://www.aiuniverse.xyz/wp-content/uploads/2026/11/featured-5160-300x158.png 300w, https://www.aiuniverse.xyz/wp-content/uploads/2026/11/featured-5160-1024x538.png 1024w, https://www.aiuniverse.xyz/wp-content/uploads/2026/11/featured-5160-768x403.png 768w, https://www.aiuniverse.xyz/wp-content/uploads/2026/11/featured-5160.png 1200w" sizes="(max-width: 300px) 100vw, 300px" /></p>
<p>Last updated: 28 November 2026 Why are tour operators neglecting machine learning? The premise needs care. Surveys show many experience businesses trying AI, including generative tools. They do not show how many tour operators use machine learning on their own data to forecast demand, set prices or plan operations. Where operators do hold back, the <a class="read-more-link" href="https://www.aiuniverse.xyz/why-are-tour-operators-neglecting-machine-learning/">Read More</a></p>
<p>The post <a href="https://www.aiuniverse.xyz/why-are-tour-operators-neglecting-machine-learning/">Why are tour operators neglecting machine learning?</a> appeared first on <a href="https://www.aiuniverse.xyz">Artificial Intelligence</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p><img width="300" height="158" src="https://www.aiuniverse.xyz/wp-content/uploads/2026/11/featured-5160-300x158.png" class="attachment-medium size-medium wp-post-image" alt="Why are tour operators neglecting machine learning?" decoding="async" srcset="https://www.aiuniverse.xyz/wp-content/uploads/2026/11/featured-5160-300x158.png 300w, https://www.aiuniverse.xyz/wp-content/uploads/2026/11/featured-5160-1024x538.png 1024w, https://www.aiuniverse.xyz/wp-content/uploads/2026/11/featured-5160-768x403.png 768w, https://www.aiuniverse.xyz/wp-content/uploads/2026/11/featured-5160.png 1200w" sizes="(max-width: 300px) 100vw, 300px" /></p><p><em>Last updated: 28 November 2026</em></p>
<p>Why are tour operators neglecting machine learning? The premise needs care. Surveys show many experience businesses trying AI, including generative tools. They do not show how many tour operators use machine learning on their own data to forecast demand, set prices or plan operations.</p>
<p>Where operators do hold back, the likely reasons are practical: patchy data, limited expertise, small booking volumes and unclear payback. The surveys cited below measure AI broadly, and none isolates predictive machine learning among tour operators. Treat &#8220;neglect&#8221; as a reasonable concern, not a measured fact.</p>
<h2>What the 2026 evidence shows</h2>
<p>Arival&#8217;s Global Operator Landscape, 4th Edition, asked how organisations approach AI. The study has a reported base of 5,664 operators worldwide, surveyed from August to November 2025. GetYourGuide&#8217;s Spring 2026 trend tracker reproduces the results, citing Arival&#8217;s report The Profitable Operator, dated February 2026:</p>
<ul>
<li><strong>19%</strong> were actively using AI.</li>
<li><strong>33%</strong> were testing it.</li>
<li><strong>20%</strong> had only researched it.</li>
<li><strong>3%</strong> had tried it initially. GetYourGuide&#8217;s guide describes this group as having stepped back.</li>
<li><strong>25%</strong> had not used it.</li>
</ul>
<p>Be careful with the population. GetYourGuide&#8217;s guide calls these respondents tour operators, while its tracker says operators generally. Arival describes its study as covering tours, activities and attractions, so this should not be read as a tour-operator-only result. The pages checked do not say how many respondents answered this question.</p>
<h3>Other figures use a different or unclear base</h3>
<p>GetYourGuide also publishes research on travel experience operators, including a March 2026 poll of 505. Its materials mix this with Arival data. The figures below should not be compared with the adoption split or treated as tour-operator results:</p>
<ul>
<li><strong>Listings:</strong> The guide says 76% of operators already use AI to write them. It does not clearly define the base for this figure. It cannot be a share of the split above, where only about 55% had used or tried AI.</li>
<li><strong>Inaccuracy:</strong> GetYourGuide&#8217;s research announcement says 44% of operators had received inaccurate or misleading information from AI tools.</li>
<li><strong>Getting started:</strong> The guide says 35% find the pace of change overwhelming, and 56% would do more with a clear, simple starting point. The tracker attributes a similar 56% finding about clearer guidance to Arival. The announcement instead links 56% to feeling overwhelmed, so quote this figure cautiously.</li>
</ul>
<p>Multi-day operators form another sample. Arival&#8217;s April 2026 findings, drawn from 569 operators, showed 63% using or experimenting with AI. Yet 21% had no booking system, and half of supplier bookings were still handled manually by email.</p>
<p>Samples and definitions differ across these sources. Using a chatbot to draft a tour description also says little about whether a business forecasts demand with a trained model.</p>
<h2>Machine learning is not the same as using a chatbot</h2>
<p>Machine learning finds patterns in historical examples and applies them to new cases. A generative AI assistant is built with machine learning, but using one does not require you to train a model on your own data.</p>
<p>A predictive project usually needs four things:</p>
<ul>
<li>A specific prediction, such as travellers per departure four weeks ahead.</li>
<li>Historical records that include the outcome you want to predict.</li>
<li>Information that would really have been available when the prediction was made.</li>
<li>A decision that changes because of the result, such as adding a guide or releasing hotel rooms.</li>
</ul>
<p>If the last item is missing, even an accurate model has little value.</p>
<h2>Why tour operators may hold back from machine learning</h2>
<p>The following explanations combine related survey evidence with how predictive modelling works. Their weight will differ from one business to another.</p>
<h3>1. The data is scattered or incomplete</h3>
<p>Bookings may sit in a reservation system, online travel agency portals, spreadsheets and email threads. Cancellations may overwrite the original record. Enquiries that never converted may not be saved at all.</p>
<p>A model has little to learn from about lost sales if only completed ones are kept. Manual supplier handling can make costs and availability harder to analyse too.</p>
<h3>2. Each product has few examples</h3>
<p>Consider a hypothetical operator running one walking tour 40 times a year. Three years gives 120 departures, spread across different seasons, guides and prices. Closures or route changes shrink the comparable history further.</p>
<p>That may support a simple forecast, but a complex model can mistake coincidences for patterns. Pooling similar tours can help, if they truly behave alike.</p>
<h3>3. Expertise is scarce</h3>
<p>Eurostat&#8217;s 2025 figures cover EU enterprises with at least 10 employees across the economy, not tour operators specifically. AI was used by 17% of small enterprises, 30.36% of medium ones and 55.03% of large ones.</p>
<p>Among enterprises that had considered AI but did not use it, 70.89% cited a lack of relevant expertise. Unclear legal consequences (52.52%) and data protection concerns (48.83%) were also cited. Businesses with fewer than 10 employees fall outside this dataset.</p>
<h3>4. Content tools offer a faster first win</h3>
<p>A writing assistant can produce a draft in minutes, and a person can review it straight away. A demand model needs data preparation and testing against real outcomes before anyone knows whether it helps. For a busy owner, starting with content is understandable.</p>
<h3>5. The return is hard to prove</h3>
<p>GetYourGuide&#8217;s guide says operators with margins above 20% were 25% more likely to be actively using AI than those that were not profitable. The guide draws on both Arival and GetYourGuide data, but does not clearly say which produced this comparison or how many operators it covers. It is not specific to tour operators.</p>
<p>It is also only an association. It does not show that AI created the profit; healthier businesses may simply have more room to experiment.</p>
<h3>6. Trust and accountability matter</h3>
<p>A wrong price or staffing forecast has direct costs. Experience with inaccurate AI output may make operators cautious, although that survey complaint concerns AI tools rather than forecasting models. Staff also need to know when they may override a recommendation.</p>
<h2>Where machine learning is being applied</h2>
<p>Large travel groups show what has been attempted. In January 2022, TUI announced machine learning for its shared transfer platform, developed with Mobi Systems. It was designed to update transfer plans using live information on flights, traffic, weather, vehicles and bookings, starting in Palma de Mallorca.</p>
<p>TUI Cruises also worked with BCG on a revenue management system that uses machine learning to price cruises. BCG says the pilot met customers&#8217; willingness to pay better than the earlier manual approach. It also says the system improved yield and occupancy rates, without publishing figures for those gains.</p>
<p>These are company and supplier accounts, not independent evaluations. A large group may also have data volume and specialist staff that a local operator lacks.</p>
<h2>Which problem should come first?</h2>
<table>
<thead>
<tr>
<th>Use case</th>
<th>Data needed</th>
<th>Simple alternative</th>
<th>When ML may be worth it</th>
</tr>
</thead>
<tbody>
<tr>
<td>Demand forecasting</td>
<td>Departures, travellers, booking dates, capacity</td>
<td>Same week last year</td>
<td>Several factors shift demand and errors are costly</td>
</tr>
<tr>
<td>Cancellation risk</td>
<td>Original bookings, lead time, terms, final status</td>
<td>Cancellation rate by channel</td>
<td>Volume is high and you can act on risk scores fairly</td>
</tr>
<tr>
<td>Pricing</td>
<td>Prices offered, sales, availability, costs</td>
<td>Rules based on season and occupancy</td>
<td>Many departures and frequent price decisions</td>
</tr>
<tr>
<td>Enquiry prioritisation</td>
<td>All enquiries, response history, outcome</td>
<td>Sort by travel date and completeness</td>
<td>The team cannot answer every lead promptly</td>
</tr>
<tr>
<td>Transfer scheduling</td>
<td>Arrivals, vehicles, routes, pickup points</td>
<td>Manual plans or optimisation software</td>
<td>Travel times are variable and need predicting</td>
</tr>
</tbody>
</table>
<p>Scheduling is often an optimisation problem. Machine learning can estimate inputs such as journey time, while a separate method builds the plan.</p>
<p><figure class="wp-block-image size-full"><img decoding="async" src="https://www.aiuniverse.xyz/wp-content/uploads/2026/11/diagram-5160.png" alt="Flowchart: choose a decision, check the data, fix data capture if needed, set a simple baseline, test a model on later periods, then trial it with human review or keep the baseline." /><figcaption>A practical path for deciding whether machine learning is worth using</figcaption></figure>
</p>
<h2>How to start without overbuilding</h2>
<ol>
<li><strong>Pick one costly decision.</strong> Name who makes it, when, and what a mistake costs.</li>
<li><strong>Preserve history.</strong> Store booking, change and cancellation events with dates instead of overwriting them.</li>
<li><strong>Check existing software.</strong> Ask your booking system supplier what forecasting it offers and how accuracy is measured.</li>
<li><strong>Set a baseline.</strong> Record how well a simple rule or your current judgement performs.</li>
<li><strong>Test on later periods.</strong> Train on the past and evaluate on data that came afterwards.</li>
<li><strong>Run it alongside current practice.</strong> Compare recommendations before letting them affect customers.</li>
<li><strong>Agree a stopping rule.</strong> Drop the model if its benefit does not cover its upkeep.</li>
</ol>
<p>Minimise personal data. A weekly demand forecast does not need names, passport details or health information. Get appropriate legal advice before using models that affect individual customers&#8217; prices or terms.</p>
<h2>Hands-on exercise: can a model beat last year?</h2>
<p>Create a file called weekly_bookings.csv with two columns: week and travellers. Use one row per departure week for one tour or product group, ideally covering at least three years, with no missing weeks. Enter zero for weeks without travellers, and note closures separately.</p>
<p>The script below forecasts four weeks ahead. It compares a seasonal naive baseline (the value 52 weeks earlier) with a small regression model. It has not been tested here.</p>
<pre><code># pip install pandas numpy scikit-learn
import numpy as np
import pandas as pd
from sklearn.linear_model import Ridge
from sklearn.metrics import mean_absolute_error
from sklearn.model_selection import TimeSeriesSplit

df = pd.read_csv("weekly_bookings.csv", parse_dates=&#91;"week"])
df = df.sort_values("week").reset_index(drop=True)

# Only use values known four weeks before the target week
df&#91;"lag_4"] = df&#91;"travellers"].shift(4)
df&#91;"lag_52"] = df&#91;"travellers"].shift(52)
angle = 2 * np.pi * df&#91;"week"].dt.dayofyear / 365.25
df&#91;"season_sin"] = np.sin(angle)
df&#91;"season_cos"] = np.cos(angle)
df = df.dropna().reset_index(drop=True)

features = &#91;"lag_4", "lag_52", "season_sin", "season_cos"]
splitter = TimeSeriesSplit(n_splits=4, test_size=13, gap=3)

for train, test in splitter.split(df):
    model = Ridge(alpha=1.0)
    model.fit(df.loc&#91;train, features], df.loc&#91;train, "travellers"])
    pred = np.clip(model.predict(df.loc&#91;test, features]), 0, None)
    actual = df.loc&#91;test, "travellers"]
    base_mae = mean_absolute_error(actual, df.loc&#91;test, "lag_52"])
    model_mae = mean_absolute_error(actual, pred)
    print(f"baseline={base_mae:.1f}  model={model_mae:.1f}")
</code></pre>
<p>The output is the average error in travellers, so lower is better. Look for a consistent and useful improvement across the test periods, not one lucky result. If the baseline wins, keep it.</p>
<p>Remember that past bookings are not the same as demand. A sold-out departure hides how many more people wanted to go.</p>
<h2>Common mistakes and troubleshooting</h2>
<ul>
<li><strong>Leaking the future:</strong> Final occupancy or later cancellations must not appear as inputs to an earlier forecast.</li>
<li><strong>Random test splits:</strong> These can train on later data and test on earlier data, giving a misleading picture of accuracy.</li>
<li><strong>Unusual years:</strong> Pandemic disruption, closures or a one-off event can distort comparisons. Flag them and check results with and without them.</li>
<li><strong>Too little history:</strong> If the script cannot create four splits, collect more data. Fewer or shorter tests will run with less data, but the evidence is weaker.</li>
<li><strong>Confusing price and demand:</strong> High prices often coincide with peak season. A model may wrongly suggest that raising prices increases sales.</li>
<li><strong>No owner:</strong> Assign someone to monitor errors, data changes and overrides.</li>
</ul>
<h2>FAQ</h2>
<h3>Are tour operators really neglecting machine learning?</h3>
<p>The evidence reviewed here cannot say. It shows uneven AI adoption across experience operators, but does not separately measure predictive machine learning among tour operators.</p>
<h3>Can a small operator benefit?</h3>
<p>Possibly, including through features already built into its software. A custom model makes sense only with relevant data, a repeated decision and a worthwhile cost of error.</p>
<h3>How much data is enough?</h3>
<p>There is no single number that suits every case. It depends on variation, seasonality, the number of comparable departures and how far ahead you predict. Testing against a baseline is more informative than a row count.</p>
<h3>Is generative AI a good first step?</h3>
<p>It can help with drafts and routine documents, with human review. It does not replace clean booking records or a tested forecasting method.</p>
<h3>What should an operator do this week?</h3>
<p>Choose one decision, check that its history is being saved, and write down the current rule used to make it. That gives any future model something real to beat.</p>
<h2>Related reading</h2>
<ul>
<li><a href="https://www.aiuniverse.xyz/why-machine-learning-strategies-fail/">Why machine learning strategies fail</a></li>
<li><a href="https://www.aiuniverse.xyz/why-machine-learning-should-matter-to-you/">Why Machine Learning Should Matter to You?</a></li>
<li><a href="https://www.aiuniverse.xyz/why-machine-learning-not-artificial-intelligence-is-the-right-way-forward-for-data-science/">Why machine learning, not artificial intelligence, is the right way forward for data science</a></li>
</ul>
<p>The post <a href="https://www.aiuniverse.xyz/why-are-tour-operators-neglecting-machine-learning/">Why are tour operators neglecting machine learning?</a> appeared first on <a href="https://www.aiuniverse.xyz">Artificial Intelligence</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.aiuniverse.xyz/why-are-tour-operators-neglecting-machine-learning/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Why Machine Learning Is Important to Embedded</title>
		<link>https://www.aiuniverse.xyz/why-machine-learning-is-important-to-embedded/</link>
					<comments>https://www.aiuniverse.xyz/why-machine-learning-is-important-to-embedded/#comments</comments>
		
		<dc:creator><![CDATA[aiuniverse]]></dc:creator>
		<pubDate>Sat, 28 Nov 2026 09:42:21 +0000</pubDate>
				<category><![CDATA[Machine Learning]]></category>
		<category><![CDATA[applications]]></category>
		<category><![CDATA[Developers]]></category>
		<category><![CDATA[machine]]></category>
		<category><![CDATA[microcontroller]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Technologies]]></category>
		<guid isPermaLink="false">http://www.aiuniverse.xyz/?p=3477</guid>

					<description><![CDATA[<p><img width="300" height="158" src="https://www.aiuniverse.xyz/wp-content/uploads/2026/11/featured-3477-300x158.png" class="attachment-medium size-medium wp-post-image" alt="Why Machine Learning Is Important to Embedded" decoding="async" srcset="https://www.aiuniverse.xyz/wp-content/uploads/2026/11/featured-3477-300x158.png 300w, https://www.aiuniverse.xyz/wp-content/uploads/2026/11/featured-3477-1024x538.png 1024w, https://www.aiuniverse.xyz/wp-content/uploads/2026/11/featured-3477-768x403.png 768w, https://www.aiuniverse.xyz/wp-content/uploads/2026/11/featured-3477.png 1200w" sizes="(max-width: 300px) 100vw, 300px" /></p>
<p>Last updated: 28 November 2026 Machine learning is important to embedded development because it lets a small device interpret messy sensor data and act on it locally. A microcontroller can recognise a spoken word, spot a person in a low-resolution image or flag an unusual machine sound without sending every sample to a server. That <a class="read-more-link" href="https://www.aiuniverse.xyz/why-machine-learning-is-important-to-embedded/">Read More</a></p>
<p>The post <a href="https://www.aiuniverse.xyz/why-machine-learning-is-important-to-embedded/">Why Machine Learning Is Important to Embedded</a> appeared first on <a href="https://www.aiuniverse.xyz">Artificial Intelligence</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p><img width="300" height="158" src="https://www.aiuniverse.xyz/wp-content/uploads/2026/11/featured-3477-300x158.png" class="attachment-medium size-medium wp-post-image" alt="Why Machine Learning Is Important to Embedded" decoding="async" loading="lazy" srcset="https://www.aiuniverse.xyz/wp-content/uploads/2026/11/featured-3477-300x158.png 300w, https://www.aiuniverse.xyz/wp-content/uploads/2026/11/featured-3477-1024x538.png 1024w, https://www.aiuniverse.xyz/wp-content/uploads/2026/11/featured-3477-768x403.png 768w, https://www.aiuniverse.xyz/wp-content/uploads/2026/11/featured-3477.png 1200w" sizes="auto, (max-width: 300px) 100vw, 300px" /></p><p><em>Last updated: 28 November 2026</em></p>
<p>Machine learning is important to embedded development because it lets a small device interpret messy sensor data and act on it locally. A microcontroller can recognise a spoken word, spot a person in a low-resolution image or flag an unusual machine sound without sending every sample to a server.</p>
<p>That can mean faster responses, less radio traffic, better privacy and products that keep working offline. It also adds real costs in memory, testing and maintenance. This guide covers both sides.</p>
<h2>Why machine learning in embedded systems matters</h2>
<p>An embedded system is a computer built into a product to do a specific job, such as a motor controller, wearable or thermostat. Traditionally, engineers program its behaviour with explicit rules: if temperature exceeds a limit, switch on the fan.</p>
<p>Rules work well when you can describe the condition precisely. They struggle when the signal is complex. It is hard to hand-write a rule for &#8220;this bearing sounds wrong&#8221; or &#8220;that was the wake word, not background speech&#8221;. A model learns those patterns from examples.</p>
<p>Running such models on very constrained hardware is often called TinyML. In most projects the device performs only <strong>inference</strong>, meaning it applies an already trained model. Training happens on a workstation or in the cloud.</p>
<h3>1. Faster, more predictable responses</h3>
<p>Local inference removes the network round trip. The delay depends mainly on your processor, model and firmware, so you can measure it and design around it. This matters for gesture control, fault detection and anything that must react while an event is still happening. It does not make a system real-time by itself: you still need to check worst-case timing.</p>
<h3>2. Lower communication and energy cost</h3>
<p>Streaming raw audio, vibration or video uses bandwidth and radio power. A device that analyses data locally can transmit only results, such as &#8220;anomaly detected&#8221; with a timestamp. A small always-on model can also act as a gatekeeper that wakes a larger processor or radio only when needed.</p>
<p>The saving is not automatic. Inference uses energy too, so compare total energy for the local and remote designs on your actual hardware.</p>
<h3>3. Privacy and data minimisation</h3>
<p>If audio or images are processed and discarded on the device, less sensitive data leaves it. That reduces exposure, but it is not a complete privacy or security design. Stored data, debug logs, firmware updates and physical access still need protection.</p>
<h3>4. Operation without a reliable connection</h3>
<p>Equipment in fields, basements, vehicles or factories may have patchy connectivity. On-device inference keeps the core function available when the link is down, and results can be uploaded later.</p>
<h3>5. More value from sensors already in the product</h3>
<p>An accelerometer that only detected taps might also classify activities or reveal abnormal vibration, provided you can collect representative data and the model fits. This can turn a raw sensor into a useful feature without streaming everything elsewhere.</p>
<h2>How embedded machine learning works</h2>
<p>The workflow starts on a larger computer and ends in firmware. Data collected from the target sensor is used to train a model. The model is then converted, usually quantised, compiled into the application and measured on the device.</p>
<figure class="wp-block-image size-full"><img decoding="async" src="https://www.aiuniverse.xyz/wp-content/uploads/2026/11/diagram-3477.png" alt="Flow from sensor data collection through training, conversion and quantisation, firmware integration, on-device testing and local inference, with feedback loops for redesign and new data" /><figcaption>Embedded machine learning workflow from sensor data to on-device decisions</figcaption></figure>
<h3>Quantisation makes models fit</h3>
<p>Models are commonly trained with 32-bit floating-point numbers. Quantisation represents them with smaller types, often 8-bit integers. Google&#8217;s LiteRT documentation describes full integer quantisation as giving a model about 4 times smaller with a speed-up of 3 times or more on supported targets. Treat these as general guidance and measure your own model, including its accuracy.</p>
<p>Integer-only hardware needs every operation, plus the model input and output, to be integer. A converted model that falls back to floating point for some parts will not meet that requirement.</p>
<h3>Memory is more than model size</h3>
<p>Budget at least two things. <strong>Flash</strong> holds the firmware, the runtime and usually the model weights. <strong>RAM</strong> holds sensor buffers, application state and the intermediate results of inference. LiteRT for Microcontrollers uses a preallocated block called the tensor arena for its working memory. A model can fit in flash and still fail because RAM runs out.</p>
<h3>Optimised kernels and accelerators</h3>
<p>Software libraries matter. Arm&#8217;s CMSIS-NN provides neural network kernels for Cortex-M processors, with different implementations for cores without SIMD, with DSP extensions and with the M-Profile Vector Extension. It follows the int8 and int16 quantisation specification used by TensorFlow Lite for Microcontrollers.</p>
<p>Some chips add a neural processing unit (NPU). Specialised hardware is a visible theme in the MLPerf Tiny v1.4 results, published by MLCommons in July 2026. The benchmark covers keyword spotting, visual wake words, image classification, anomaly detection and streaming wake word, and measures accuracy, latency and energy. Submitted results are specific to their systems, so do not assume they transfer to your product.</p>
<h2>Choosing where the intelligence should run</h2>
<table>
<thead>
<tr>
<th>Approach</th>
<th>Best fit</th>
<th>Strengths</th>
<th>Limitations</th>
</tr>
</thead>
<tbody>
<tr>
<td>Fixed rules or signal processing</td>
<td>Well-understood conditions</td>
<td>Small, explainable, easier to test</td>
<td>Brittle when patterns are complex</td>
</tr>
<tr>
<td>ML on a microcontroller</td>
<td>Small, focused tasks on sensor data</td>
<td>Local response, works offline, low data transfer</td>
<td>Tight memory and operator support</td>
</tr>
<tr>
<td>ML on embedded Linux or an edge computer</td>
<td>Larger vision or multi-sensor workloads</td>
<td>More memory and software choice</td>
<td>Usually more power, cost and system upkeep</td>
</tr>
<tr>
<td>Cloud inference</td>
<td>Large models, tolerant of delay</td>
<td>Ample compute, central updates</td>
<td>Needs connectivity; data leaves the device</td>
</tr>
<tr>
<td>Hybrid</td>
<td>Local screening with remote follow-up</td>
<td>Balances responsiveness and capability</td>
<td>Two systems to build and monitor</td>
</tr>
</tbody>
</table>
<h2>Tools to know</h2>
<ul>
<li><strong>LiteRT for Microcontrollers</strong> (also known as TensorFlow Lite for Microcontrollers): written in C++17 for 32-bit platforms. It needs no operating system or dynamic memory allocation, and Google states the core runtime fits in 16 KB on an Arm Cortex-M3. It supports only a subset of operations and no on-device training.</li>
<li><strong>ExecuTorch:</strong> PyTorch&#8217;s on-device runtime. Its Arm Ethos-U backend targets the Ethos-U55, U65 and U85 NPUs, and operations run on the NPU must be quantised. Arm&#8217;s virtual platforms allow simulation before you have a board.</li>
<li><strong>CMSIS-NN:</strong> optimised Cortex-M kernels that sit beneath a runtime.</li>
</ul>
<p>Choose the chip, runtime and model together. Check operator support before you spend weeks training an architecture your target cannot execute.</p>
<h2>Practical examples</h2>
<p>These are illustrative scenarios, not reports of specific products.</p>
<ul>
<li><strong>Predictive maintenance:</strong> a sensor node learns normal motor sound or vibration and reports departures from it. An anomaly score signals &#8220;different&#8221;, not necessarily &#8220;broken&#8221;.</li>
<li><strong>Voice control:</strong> a tiny model listens for one phrase, then wakes the rest of the system.</li>
<li><strong>Presence detection:</strong> a camera node outputs &#8220;person present&#8221; without storing images.</li>
<li><strong>Wearables:</strong> motion data is classified into activities on the device.</li>
</ul>
<h3>Code example: quantised inference in C++</h3>
<p>This simplified fragment follows the pattern in the TensorFlow Lite Micro examples. It assumes a model with one fully connected operation, one int8 input and one int8 output. The model array name and arena size are placeholders. It has not been tested here.</p>
<pre><code>#include &lt;math.h&gt;
#include "tensorflow/lite/micro/micro_interpreter.h"
#include "tensorflow/lite/micro/micro_mutable_op_resolver.h"

extern const unsigned char g_model_data&#91;];
constexpr int kArenaSize = 3000;
alignas(16) static uint8_t arena&#91;kArenaSize];

bool RunOnce(float x, float* y) {
  const tflite::Model* model = tflite::GetModel(g_model_data);
  if (model-&gt;version() != TFLITE_SCHEMA_VERSION) return false;

  static tflite::MicroMutableOpResolver&lt;1&gt; ops;
  static bool added = (ops.AddFullyConnected() == kTfLiteOk);
  if (!added) return false;

  // Built per call for clarity; real firmware usually sets up once.
  tflite::MicroInterpreter interpreter(model, ops, arena, kArenaSize);
  if (interpreter.AllocateTensors() != kTfLiteOk) return false;

  TfLiteTensor* in = interpreter.input(0);
  long q = lroundf(x / in-&gt;params.scale) + in-&gt;params.zero_point;
  if (q &lt; -128) q = -128;
  if (q &gt; 127) q = 127;
  in-&gt;data.int8&#91;0] = static_cast&lt;int8_t&gt;(q);

  if (interpreter.Invoke() != kTfLiteOk) return false;

  TfLiteTensor* out = interpreter.output(0);
  *y = (out-&gt;data.int8&#91;0] - out-&gt;params.zero_point) * out-&gt;params.scale;
  return true;
}</code></pre>
<p>For new conversion work, note that Google&#8217;s documentation marks quantising during conversion as deprecated. It recommends converting to a float32 LiteRT model and then quantising it with LiteRT Quantizer.</p>
<h2>Best practices</h2>
<ul>
<li>Start with a simple baseline, such as a threshold or filter. Use ML only if it clearly does better.</li>
<li>Define limits for accuracy, latency, RAM, flash and energy before choosing a model.</li>
<li>Collect data with the real sensor, mounting position and environment.</li>
<li>Keep test data separate, ideally from different users, units or sites.</li>
<li>Re-evaluate after quantisation and again on the target hardware.</li>
<li>Decide what happens when confidence is low. Safety functions need independent safeguards.</li>
<li>Plan signed, recoverable updates and version the model with its preprocessing code.</li>
</ul>
<h2>Common mistakes and troubleshooting</h2>
<table>
<thead>
<tr>
<th>Symptom</th>
<th>Likely cause</th>
<th>What to check</th>
</tr>
</thead>
<tbody>
<tr>
<td>Tensor allocation fails</td>
<td>Arena too small or missing operation</td>
<td>Error logs, arena usage, registered operators</td>
</tr>
<tr>
<td>Good on the PC, poor on the device</td>
<td>Preprocessing mismatch</td>
<td>Sample rate, scaling, feature extraction, input type</td>
</tr>
<tr>
<td>Outputs look random</td>
<td>Wrong quantisation handling</td>
<td>Scale, zero point, tensor shape</td>
</tr>
<tr>
<td>Inference too slow</td>
<td>Reference kernels or oversized model</td>
<td>Build flags, optimised kernels, per-layer profile</td>
</tr>
<tr>
<td>Battery drains quickly</td>
<td>Sensor, radio or processor rarely sleeps</td>
<td>Whole-system current over a full duty cycle</td>
</tr>
<tr>
<td>Accuracy declines after release</td>
<td>Real conditions differ from training data</td>
<td>Field samples collected with appropriate consent</td>
</tr>
</tbody>
</table>
<h2>Hands-on exercise: check the budget first</h2>
<p>All numbers below are hypothetical. Your board has 256 KB of RAM and 1,024 KB of flash. Firmware without ML uses 90 KB of RAM and 400 KB of flash. The runtime adds 60 KB of flash, the model weights need 300 KB, the tensor arena needs 120 KB and sensor buffers need 32 KB. You want 15% of each memory left free.</p>
<pre><code>def fits(total, used, reserve=0.15):
    limit = total * (1 - reserve)
    need = sum(used)
    return need, limit, need &lt;= limit

print("RAM  ", fits(256, &#91;90, 120, 32]))
print("Flash", fits(1024, &#91;400, 60, 300]))</code></pre>
<p>Work it out before running the code (untested here). RAM needs 242 KB against a limit of 217.6 KB, so it fails. Flash needs 760 KB against 870.4 KB, so it passes. Now find at least 24.4 KB of RAM. Would you shrink the model&#8217;s intermediate layers, reduce the input window or choose a larger chip? Note how each choice could affect accuracy, cost or power.</p>
<h2>FAQ</h2>
<h3>Does every embedded system need machine learning?</h3>
<p>No. If a rule or classical signal-processing method meets the requirement, it is often the better choice because it is easier to verify and maintain.</p>
<h3>Can a microcontroller train a model?</h3>
<p>Some research and specialised tools explore on-device learning, but the common workflow trains elsewhere. LiteRT for Microcontrollers does not support on-device training.</p>
<h3>Which language should I learn?</h3>
<p>Python is widely used for data preparation and training. C and C++ remain central to firmware. Knowing how data moves between the two is especially useful.</p>
<h3>What should an embedded engineer learn first?</h3>
<p>Start with sensor data, train and evaluate a small classifier, then learn quantisation and profiling. Your existing knowledge of memory, timing and power is a strong advantage.</p>
<h3>The bottom line</h3>
<p>Machine learning matters to embedded systems when local pattern recognition solves a problem that rules handle poorly. Begin with one narrow task, set measurable limits and prove the result on the hardware you intend to ship.</p>
<h2>Related reading</h2>
<ul>
<li><a href="https://www.aiuniverse.xyz/why-machine-learning-strategies-fail/">Why machine learning strategies fail</a></li>
<li><a href="https://www.aiuniverse.xyz/why-machine-learning-should-matter-to-you/">Why Machine Learning Should Matter to You?</a></li>
<li><a href="https://www.aiuniverse.xyz/why-machine-learning-not-artificial-intelligence-is-the-right-way-forward-for-data-science/">Why machine learning, not artificial intelligence, is the right way forward for data science</a></li>
</ul>
<p>The post <a href="https://www.aiuniverse.xyz/why-machine-learning-is-important-to-embedded/">Why Machine Learning Is Important to Embedded</a> appeared first on <a href="https://www.aiuniverse.xyz">Artificial Intelligence</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.aiuniverse.xyz/why-machine-learning-is-important-to-embedded/feed/</wfw:commentRss>
			<slash:comments>2</slash:comments>
		
		
			</item>
		<item>
		<title>Why India ranks among the top 3 countries in AI skills</title>
		<link>https://www.aiuniverse.xyz/why-india-ranks-among-the-top-3-countries-in-ai-skills/</link>
					<comments>https://www.aiuniverse.xyz/why-india-ranks-among-the-top-3-countries-in-ai-skills/#comments</comments>
		
		<dc:creator><![CDATA[aiuniverse]]></dc:creator>
		<pubDate>Sat, 28 Nov 2026 08:56:03 +0000</pubDate>
				<category><![CDATA[Artificial Intelligence]]></category>
		<category><![CDATA[Human Intelligence]]></category>
		<category><![CDATA[Machine Learning]]></category>
		<category><![CDATA[AI]]></category>
		<category><![CDATA[AI in India]]></category>
		<category><![CDATA[AI Skills]]></category>
		<category><![CDATA[Countries]]></category>
		<category><![CDATA[Machine learning]]></category>
		<category><![CDATA[Top 3]]></category>
		<guid isPermaLink="false">http://www.aiuniverse.xyz/?p=2890</guid>

					<description><![CDATA[<p><img width="300" height="158" src="https://www.aiuniverse.xyz/wp-content/uploads/2026/11/featured-2890-300x158.png" class="attachment-medium size-medium wp-post-image" alt="Why India ranks among the top 3 countries in AI skills" decoding="async" loading="lazy" srcset="https://www.aiuniverse.xyz/wp-content/uploads/2026/11/featured-2890-300x158.png 300w, https://www.aiuniverse.xyz/wp-content/uploads/2026/11/featured-2890-1024x538.png 1024w, https://www.aiuniverse.xyz/wp-content/uploads/2026/11/featured-2890-768x403.png 768w, https://www.aiuniverse.xyz/wp-content/uploads/2026/11/featured-2890.png 1200w" sizes="auto, (max-width: 300px) 100vw, 300px" /></p>
<p>Last updated: 28 November 2026 The India AI skills ranking is stronger than &#8220;top 3&#8221; suggests on one measure and weaker on others. Stanford&#8217;s AI Index 2026 places India first on relative AI skill penetration, a metric built from LinkedIn data. Stanford&#8217;s separate Global AI Vibrancy Tool, in its 2025 edition, places India third overall, <a class="read-more-link" href="https://www.aiuniverse.xyz/why-india-ranks-among-the-top-3-countries-in-ai-skills/">Read More</a></p>
<p>The post <a href="https://www.aiuniverse.xyz/why-india-ranks-among-the-top-3-countries-in-ai-skills/">Why India ranks among the top 3 countries in AI skills</a> appeared first on <a href="https://www.aiuniverse.xyz">Artificial Intelligence</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p><img width="300" height="158" src="https://www.aiuniverse.xyz/wp-content/uploads/2026/11/featured-2890-300x158.png" class="attachment-medium size-medium wp-post-image" alt="Why India ranks among the top 3 countries in AI skills" decoding="async" loading="lazy" srcset="https://www.aiuniverse.xyz/wp-content/uploads/2026/11/featured-2890-300x158.png 300w, https://www.aiuniverse.xyz/wp-content/uploads/2026/11/featured-2890-1024x538.png 1024w, https://www.aiuniverse.xyz/wp-content/uploads/2026/11/featured-2890-768x403.png 768w, https://www.aiuniverse.xyz/wp-content/uploads/2026/11/featured-2890.png 1200w" sizes="auto, (max-width: 300px) 100vw, 300px" /></p><p><em>Last updated: 28 November 2026</em></p>
<p>The India AI skills ranking is stronger than &#8220;top 3&#8221; suggests on one measure and weaker on others. Stanford&#8217;s AI Index 2026 places India <strong>first</strong> on relative AI skill penetration, a metric built from LinkedIn data. Stanford&#8217;s separate Global AI Vibrancy Tool, in its 2025 edition, places India <strong>third</strong> overall, behind the United States and China.</p>
<p>These are different rankings. The first is about skills listed by workers. The second scores a country&#8217;s wider AI ecosystem, with talent as only one part. This article explains both, why India does well, and where the picture is less flattering. It reflects research as of 28 November 2026.</p>
<h2>India AI skills ranking at a glance</h2>
<table>
<thead>
<tr>
<th>Measure</th>
<th>What it captures</th>
<th>India&#8217;s result</th>
</tr>
</thead>
<tbody>
<tr>
<td>Relative AI skill penetration (AI Index 2026, LinkedIn data)</td>
<td>How prominent AI skills are compared with the global average in the same occupations</td>
<td>1st, at 3.0; United States 2.0, Germany 1.8</td>
</tr>
<tr>
<td>AI talent concentration growth (AI Index 2026)</td>
<td>Change in the share of LinkedIn members counted as AI talent</td>
<td>Among the fastest, with the UAE and Saudi Arabia: over 100% from 2019 to 2025</td>
</tr>
<tr>
<td>AI authors and inventors (AI Index 2026)</td>
<td>Number of identified AI researchers and patent inventors</td>
<td>2nd, roughly 50,000, behind the United States</td>
</tr>
<tr>
<td>Global AI Vibrancy Tool (2025 edition, data to 2024)</td>
<td>Composite score of national AI activity</td>
<td>3rd, score 21.59</td>
</tr>
<tr>
<td>AI-Human Skills Synergy Index (Coursera, 2026)</td>
<td>How learners build AI and human skills together, plus enabling conditions</td>
<td>40th of 98 countries</td>
</tr>
</tbody>
</table>
<p>So the accurate short answer is this: India is a top-three country on several AI measures, but not on every measure of AI skill.</p>
<h2>How AI skill penetration is measured</h2>
<p>The headline skills figure is often misread. It does not mean India has three times as many AI experts as an average country. Nor does it mean that a typical Indian worker is three times more proficient.</p>
<p>OECD.AI, which publishes LinkedIn-based indicators, describes the method in broad steps:</p>
<ol>
<li>LinkedIn looks at skills that members add to their profiles, using data from 2015 onward.</li>
<li>For a group such as an occupation, it identifies the 50 most characteristic skills, using a weighting method called TF-IDF that favours distinctive skills.</li>
<li>The share of those 50 that are AI skills is the penetration rate. Four AI skills out of 50 gives 8%.</li>
<li>A country&#8217;s rates are compared with global average rates across the occupations that both have in common.</li>
</ol>
<p>A relative value of 1.0 matches the benchmark. A value of 3.0 means AI skills are about three times as prominent as the average for the same set of occupations. Comparing like occupations reduces the effect of one country simply having more software jobs than another.</p>
<p><figure class="wp-block-image size-full"><img decoding="async" src="https://www.aiuniverse.xyz/wp-content/uploads/2026/11/diagram-2890.png" alt="Flow diagram with two separate paths. Profile skills are reduced to top skills per occupation, then an AI share, then a comparison with the global average, giving India first place. A separate path combines national indicators into pillars and a weighted score, giving India third place." /><figcaption>Two different rankings: LinkedIn-based skill penetration and Stanford&#039;s composite AI vibrancy score</figcaption></figure>
</p>
<h3>A worked example in code</h3>
<p>The Python below uses <strong>hypothetical numbers</strong> and a simplified version of the calculation. It is not LinkedIn&#8217;s production method, and it has not been tested here.</p>
<pre><code># Hypothetical AI skill penetration by occupation
country = {
    "software_engineer": 0.12,
    "data_analyst": 0.08,
    "teacher": 0.04,
}
global_avg = {
    "software_engineer": 0.06,
    "data_analyst": 0.04,
    "teacher": 0.02,
    "nurse": 0.01,
}

# Compare only occupations present in both
shared = country.keys() &amp; global_avg.keys()

country_total = sum(country&#91;job] for job in shared)
global_total = sum(global_avg&#91;job] for job in shared)

print(round(country_total / global_total, 2))  # expected: 2.0</code></pre>
<h3>Try it yourself</h3>
<ol>
<li>Set the teacher value for the country to 0.00. The expected result falls to about 1.67.</li>
<li>Restore it, then add a country-only occupation. The result should not change, because there is no shared benchmark.</li>
<li>Halve every value in both dictionaries. The ratio stays at 2.0, even though absolute penetration is much lower.</li>
</ol>
<p>The third step is the key lesson. A relative score tells you about position against a benchmark, not the absolute depth or number of skills.</p>
<h2>Why India ranks so high</h2>
<p>No single study isolates the cause of India&#8217;s position. The points below combine measured indicators with reasonable interpretation, and the two should be kept apart.</p>
<h3>AI skills show up strongly within occupations</h3>
<p>This is the direct reason for the first-place skills result. Compared with the same occupations elsewhere, AI skills feature far more prominently in Indian members&#8217; profiles. The lead is not new: the 2024 AI Index also put India first, ahead of the United States and Germany. Values from different editions should be compared with care.</p>
<p>The pattern also holds for women. Reporting on the 2026 Index gives Indian women a relative score of about 1.9, ahead of women in the United States at 1.71. Indian men score higher than Indian women, so a gender gap remains.</p>
<h3>The talent base is large and growing</h3>
<p>India ranks second to the United States in the number of AI authors and inventors identified by the 2026 Index. Its AI talent concentration also more than doubled between 2019 and 2025.</p>
<p>OECD.AI describes LinkedIn&#8217;s &#8220;AI talent&#8221; as members who list at least two AI engineering skills, hold an AI job, or both. This is a narrower idea than simply mentioning AI on a profile.</p>
<h3>Research and open-source activity</h3>
<p>Coverage of the 2026 Index reports that India produced 7.6% of AI publications in computer science in 2024, ahead of the United States. It also reports a 5.2% share of open-source AI projects with at least 10 GitHub stars. Publication share measures volume, not necessarily influence.</p>
<h3>AI is part of everyday work</h3>
<p>The same coverage reports that more than 80% of surveyed Indian respondents regularly use AI at work. Frequent use plausibly encourages people to learn and list AI skills, but this does not prove that it drives the ranking. A large software and technology services workforce is another commonly offered explanation.</p>
<h3>Large-scale training programmes</h3>
<p>Government figures presented to the Lok Sabha in August 2026 show the reach of FutureSkills PRIME, a reskilling programme covering emerging technologies:</p>
<ul>
<li>More than 34 lakh (3.4 million) registered candidates</li>
<li>More than 23 lakh (2.3 million) enrolled or trained</li>
<li>More than 13 lakh (1.3 million) certified</li>
<li>Over 86% of participants from Tier-2 and Tier-3 cities</li>
</ul>
<p>The same update reported 27 IndiaAI Data and AI Labs established. These totals are not all AI-specific, and they cannot be credited with the LinkedIn score. They do indicate a broad effort to widen access to digital skills.</p>
<h2>What the third-place vibrancy ranking means</h2>
<p>Stanford released the 2025 Global AI Vibrancy Tool in November 2025, with data through 2024. It places India third. The reported leading scores were:</p>
<table>
<thead>
<tr>
<th>Rank</th>
<th>Country</th>
<th>Score</th>
</tr>
</thead>
<tbody>
<tr>
<td>1</td>
<td>United States</td>
<td>78.60</td>
</tr>
<tr>
<td>2</td>
<td>China</td>
<td>36.95</td>
</tr>
<tr>
<td>3</td>
<td>India</td>
<td>21.59</td>
</tr>
<tr>
<td>4</td>
<td>South Korea</td>
<td>17.24</td>
</tr>
<tr>
<td>5</td>
<td>United Kingdom</td>
<td>16.64</td>
</tr>
</tbody>
</table>
<p>The tool groups dozens of indicators into pillars covering areas such as research, the economy, talent, infrastructure, policy and public opinion. Users can adjust the weighting.</p>
<h3>How this compares with the previous edition</h3>
<p>The edition published in November 2024, based on 2023 data, ranked India <strong>fourth</strong>, behind the United States, China and the United Kingdom. The published change between the two editions is therefore fourth to third.</p>
<p>Some December 2025 news coverage instead describes a rise from seventh. That is not India&#8217;s published rank in the November 2024 edition. It is likely a recalculation of the 2023 position under the revised method, although we did not confirm this on a Stanford page.</p>
<p>The 2025 release refined and streamlined the indicators, so ranks and scores from the two editions are not directly comparable. Note also that third place is far behind first: India&#8217;s 2025 score is less than a third of the US score. We found no newer edition at the time of writing.</p>
<h2>Where India still trails</h2>
<h3>Talent is leaving</h3>
<p>The 2026 Index shows India with the largest net outflow of AI authors and inventors in 2025. Stanford&#8217;s research summary notes that the flow was sharply negative over much of 2010 to 2025 but rebounded near the end. A large talent pool and a retention problem can exist together.</p>
<h3>Patents are limited</h3>
<p>Reported Index figures give India about 0.4% of global AI patents through 2024. That contrasts sharply with its publication volume and skills position.</p>
<h3>Combined skills and confidence</h3>
<p>Coursera&#8217;s 40th place suggests that strength in AI skill signals does not automatically carry over to a measure combining AI skills, human skills and national conditions. It draws on Coursera and Udemy learning data, so it reflects those learners rather than the whole workforce.</p>
<p>Coverage of the AI Index also reports that India saw the largest rise in nervousness about AI among surveyed countries between 2024 and 2025.</p>
<h3>The data has blind spots</h3>
<p>Profile skills are self-reported, and LinkedIn use differs across countries and professions. OECD.AI says India&#8217;s LinkedIn coverage is below the 40% workforce threshold used to select countries. India is included anyway because of its economic importance, with a warning that its insights may be less complete.</p>
<h2>Best practices for using these rankings</h2>
<ul>
<li><strong>Name the metric.</strong> Say &#8220;first in relative AI skill penetration,&#8221; not &#8220;number one in AI.&#8221;</li>
<li><strong>State the edition and data period.</strong> A report&#8217;s title year may differ from the years it measures.</li>
<li><strong>Separate share, count and growth.</strong> A high growth rate is not the same as a large total.</li>
<li><strong>Check actual ability when hiring.</strong> Use work samples that test data handling, model evaluation and error analysis.</li>
<li><strong>Turn learning into evidence.</strong> If you are a learner, build a small project, document how you evaluated it, and explain where it fails.</li>
</ul>
<h2>Common mistakes</h2>
<ul>
<li>Merging the skill ranking and the vibrancy ranking into one &#8220;top 3 in AI skills&#8221; claim.</li>
<li>Reading 3.0 as &#8220;three times more AI professionals.&#8221;</li>
<li>Treating course enrolments or certificates as proof of job-ready proficiency.</li>
<li>Comparing scores from different organisations, or from editions with different methods, as if they shared one scale.</li>
<li>Quoting the strengths while leaving out talent outflow and data coverage.</li>
</ul>
<h2>Frequently asked questions</h2>
<h3>Is India first or third in AI skills?</h3>
<p>It is first on relative AI skill penetration in the AI Index 2026. The widely quoted third place refers to overall AI vibrancy in Stanford&#8217;s 2025 tool.</p>
<h3>Does the ranking show that Indian workers are the best at AI?</h3>
<p>No. It measures how prominent AI skills are in LinkedIn skill data relative to a benchmark. It is not a proficiency test.</p>
<h3>Which countries are ahead of India overall?</h3>
<p>In the 2025 Global AI Vibrancy Tool, only the United States and China.</p>
<h3>What would strengthen India&#8217;s position?</h3>
<p>The gaps point to retaining researchers, turning research into patents and products, and building human judgment alongside technical skills. These are editorial conclusions from the data, not a forecast.</p>
<p>The post <a href="https://www.aiuniverse.xyz/why-india-ranks-among-the-top-3-countries-in-ai-skills/">Why India ranks among the top 3 countries in AI skills</a> appeared first on <a href="https://www.aiuniverse.xyz">Artificial Intelligence</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.aiuniverse.xyz/why-india-ranks-among-the-top-3-countries-in-ai-skills/feed/</wfw:commentRss>
			<slash:comments>3</slash:comments>
		
		
			</item>
		<item>
		<title>How Can We Trust Machine Learning and AI?</title>
		<link>https://www.aiuniverse.xyz/how-can-we-trust-machine-learning-and-ai/</link>
					<comments>https://www.aiuniverse.xyz/how-can-we-trust-machine-learning-and-ai/#comments</comments>
		
		<dc:creator><![CDATA[aiuniverse]]></dc:creator>
		<pubDate>Sat, 28 Nov 2026 08:42:08 +0000</pubDate>
				<category><![CDATA[Data Science]]></category>
		<category><![CDATA[Machine Learning]]></category>
		<category><![CDATA[AI]]></category>
		<category><![CDATA[data scientists]]></category>
		<category><![CDATA[Machine learning]]></category>
		<category><![CDATA[machine learning algorithms]]></category>
		<guid isPermaLink="false">http://www.aiuniverse.xyz/?p=1732</guid>

					<description><![CDATA[<p><img width="300" height="158" src="https://www.aiuniverse.xyz/wp-content/uploads/2026/11/featured-1732-300x158.png" class="attachment-medium size-medium wp-post-image" alt="How Can We Trust Machine Learning and AI?" decoding="async" loading="lazy" srcset="https://www.aiuniverse.xyz/wp-content/uploads/2026/11/featured-1732-300x158.png 300w, https://www.aiuniverse.xyz/wp-content/uploads/2026/11/featured-1732-1024x538.png 1024w, https://www.aiuniverse.xyz/wp-content/uploads/2026/11/featured-1732-768x403.png 768w, https://www.aiuniverse.xyz/wp-content/uploads/2026/11/featured-1732.png 1200w" sizes="auto, (max-width: 300px) 100vw, 300px" /></p>
<p>Last updated: 28 November 2026 We can trust machine learning and AI only as far as evidence supports it, for a specific task, in a specific setting, with someone accountable when it fails. A model that is dependable for sorting support tickets has not earned the right to screen job applicants. So &#8220;Is this AI <a class="read-more-link" href="https://www.aiuniverse.xyz/how-can-we-trust-machine-learning-and-ai/">Read More</a></p>
<p>The post <a href="https://www.aiuniverse.xyz/how-can-we-trust-machine-learning-and-ai/">How Can We Trust Machine Learning and AI?</a> appeared first on <a href="https://www.aiuniverse.xyz">Artificial Intelligence</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p><img width="300" height="158" src="https://www.aiuniverse.xyz/wp-content/uploads/2026/11/featured-1732-300x158.png" class="attachment-medium size-medium wp-post-image" alt="How Can We Trust Machine Learning and AI?" decoding="async" loading="lazy" srcset="https://www.aiuniverse.xyz/wp-content/uploads/2026/11/featured-1732-300x158.png 300w, https://www.aiuniverse.xyz/wp-content/uploads/2026/11/featured-1732-1024x538.png 1024w, https://www.aiuniverse.xyz/wp-content/uploads/2026/11/featured-1732-768x403.png 768w, https://www.aiuniverse.xyz/wp-content/uploads/2026/11/featured-1732.png 1200w" sizes="auto, (max-width: 300px) 100vw, 300px" /></p><p><em>Last updated: 28 November 2026</em></p>
<p>We can trust machine learning and AI only as far as evidence supports it, for a specific task, in a specific setting, with someone accountable when it fails. A model that is dependable for sorting support tickets has not earned the right to screen job applicants.</p>
<p>So &#8220;Is this AI trustworthy?&#8221; is too broad to answer. A better question is: &#8220;What could go wrong here, what have we tested, and what happens when the system is wrong?&#8221; This guide shows how to answer it.</p>
<h2>What It Takes to Trust Machine Learning and AI</h2>
<p>A useful starting point is the AI Risk Management Framework (AI RMF) from the US National Institute of Standards and Technology (NIST). It is voluntary, and version 1.0 appeared in January 2023. As of late November 2026, NIST&#8217;s website says the framework is being revised, so check for a newer version.</p>
<p>AI RMF 1.0 describes seven characteristics of trustworthy AI. The table turns each into a question and the kind of evidence you might request. The questions and evidence examples are our practical interpretation.</p>
<table>
<thead>
<tr>
<th>Characteristic</th>
<th>Question to ask</th>
<th>Evidence to request</th>
</tr>
</thead>
<tbody>
<tr>
<td>Valid and reliable</td>
<td>Does it work for this use, over time?</td>
<td>Tests on unseen, representative data; monitoring results</td>
</tr>
<tr>
<td>Safe</td>
<td>Could it endanger people, property or the environment?</td>
<td>Hazard analysis, fallback and shutdown procedures</td>
</tr>
<tr>
<td>Secure and resilient</td>
<td>Can it withstand attacks and disruption?</td>
<td>Adversarial testing, access controls, recovery plan</td>
</tr>
<tr>
<td>Accountable and transparent</td>
<td>Who owns outcomes, and what is disclosed?</td>
<td>Named owner, documentation, decision logs</td>
</tr>
<tr>
<td>Explainable and interpretable</td>
<td>Can people understand how and why it produced a result?</td>
<td>Explanations checked with their intended readers</td>
</tr>
<tr>
<td>Privacy-enhanced</td>
<td>Is personal data protected?</td>
<td>Data inventory, minimisation, access and retention rules</td>
</tr>
<tr>
<td>Fair, with harmful bias managed</td>
<td>Who bears the errors?</td>
<td>Results by group, bias review, appeal route</td>
</tr>
</tbody>
</table>
<p>NIST treats validity and reliability as the base for the others, and accountability and transparency as connected to all of them. It also warns that the characteristics can involve trade-offs. For example, a privacy technique may reduce accuracy.</p>
<p>The framework organises the work into four functions: <strong>Govern</strong>, <strong>Map</strong>, <strong>Measure</strong> and <strong>Manage</strong>. In plain terms, set responsibilities, understand the context, test the risks, then act on what you find.</p>
<figure class="wp-block-image size-full"><img decoding="async" src="https://www.aiuniverse.xyz/wp-content/uploads/2026/11/diagram-1732.png" alt="Flow from defining use and harm, through data checks, testing, a release decision and monitored operation, with loops back when criteria are not met or conditions change." /><figcaption>A continuous cycle for earning and keeping trust in an AI system</figcaption></figure>
<h2>How to Build Evidence, Step by Step</h2>
<h3>1. Define the decision and the harm</h3>
<p>Write down what the system will decide or suggest, who is affected, and what each kind of error costs. A false fraud alert may annoy a customer. A missed fraud case loses money. These costs should shape your metrics and thresholds.</p>
<p>Set acceptance criteria before testing. Otherwise it is tempting to choose whichever number looks best afterwards. Also compare against a simple baseline, such as the current manual process or a basic rule.</p>
<h3>2. Check the data</h3>
<p>Ask where the data came from, whether you may use it, how labels were created and which groups or conditions are missing. Historical decisions can carry historical bias into the labels.</p>
<p>Keep test data separate from training and tuning. Watch for leakage, where information unavailable at prediction time slips into training. If the model will predict the future, test on a later time period than you trained on.</p>
<h3>3. Look past average accuracy</h3>
<p>Consider a hypothetical fraud dataset where 1% of transactions are fraudulent. A model that always answers &#8220;not fraud&#8221; is 99% accurate and catches nothing.</p>
<p>Report precision, recall and the actual counts of errors. Break results down by relevant groups, regions, devices or document types. Show sample sizes too, because a score from a handful of cases is very uncertain.</p>
<h3>4. Check whether confidence means anything</h3>
<p>A classifier is well calibrated when its probabilities match observed frequencies. Among cases scored near 0.8, about 80% should really be positive. This matters whenever a score triggers an action.</p>
<p>A calibration curve, also called a reliability diagram, compares predicted probabilities with observed outcomes. The Brier score helps, but scikit-learn&#8217;s documentation cautions that a lower score does not necessarily mean better calibration, because it also reflects how well the model separates classes.</p>
<h3>5. Test fairness as a choice</h3>
<p>There is no single fairness number. Research by Kleinberg, Mullainathan and Raghavan showed that three reasonable fairness conditions for risk scores cannot all be met at once, except in highly constrained cases.</p>
<p>Decide which errors and disparities matter most in your context, involve affected people and legal advisers, and record the reasoning. Removing a sensitive column is not enough, since other features can act as proxies.</p>
<h3>6. Explain, but verify the explanation</h3>
<p>Prefer a simple, interpretable model when it performs well enough. For complex models, tools such as permutation importance show how much a score drops when a feature&#8217;s values are shuffled.</p>
<p>Read the results carefully. They describe what a particular model relies on, not what causes the outcome. Correlated features can make each other look unimportant, and explanations of a weak model are of little value.</p>
<h3>7. Plan for human oversight and failure</h3>
<p>A person &#8220;in the loop&#8221; helps only if they have the time, information, skill and authority to disagree. Show reviewers the relevant inputs and uncertainty, and track how often they override the system. Near-zero overrides may mean the system is excellent, or that nobody is really checking.</p>
<p>Give affected people a way to challenge outcomes. Define when the system should abstain, escalate or be switched off, and keep a fallback process working.</p>
<h3>8. Monitor after release</h3>
<p>Data, users and attackers change. Track input drift, error rates once true outcomes arrive, group-level results, complaints and incidents. Re-test after any change to the model, prompt, data source or supplier.</p>
<h2>Why Generative AI Needs Extra Care</h2>
<p>Chatbots and AI agents produce open-ended output or take actions, so one accuracy score says little. The International AI Safety Report 2026, an expert review chaired by Yoshua Bengio, highlights several limits:</p>
<ul>
<li>Performance on pre-deployment tests does not reliably predict real-world usefulness or risk.</li>
<li>Current techniques reduce failure rates, but not to the level many high-stakes settings require.</li>
<li>Models are increasingly able to distinguish tests from real deployment.</li>
<li>Agents act with more autonomy, leaving people less opportunity to intervene.</li>
</ul>
<p>The report discusses layering safeguards, often called defence in depth. In practice, you might test on your own tasks, check answers against approved sources, limit what tools an agent can access, require approval for irreversible actions and log activity.</p>
<p>Do not treat a fluent answer, a citation or a model&#8217;s account of its own reasoning as proof. Verify important claims independently. NIST also publishes a Generative AI Profile (NIST AI 600-1, July 2024) to help organisations identify and manage these risks.</p>
<h2>What Laws and Standards Can and Cannot Tell You</h2>
<p>The EU AI Act sorts systems by risk and entered into force on 1 August 2024. Bans on certain practices and AI literacy duties have applied since February 2025, and obligations for general-purpose AI models since August 2025. Transparency rules began applying in August 2026, with some transitional relief.</p>
<p>An amending package, the AI Omnibus, entered into force on 27 July 2026 and delayed the main high-risk rules:</p>
<ul>
<li><strong>2 December 2026:</strong> a new ban covering AI that generates non-consensual intimate content or child sexual abuse material applies.</li>
<li><strong>2 December 2027:</strong> high-risk rules apply to listed uses (Annex III), including areas such as employment and education.</li>
<li><strong>2 August 2028:</strong> high-risk rules apply to AI embedded in regulated products (Annex I).</li>
</ul>
<p>High-risk requirements include risk management, data quality, logging, documentation, human oversight, accuracy, robustness and cybersecurity. A later deadline does not make an untested system safe, and other laws may already apply.</p>
<p>ISO/IEC 42001:2023 sets requirements for an AI management system. Certification assesses how an organisation manages AI. It does not certify that a particular model or product is accurate or fair.</p>
<h2>Hands-On Exercise: Audit a Small Model</h2>
<p>This exercise uses synthetic data with a deliberately noisier minority group, B. It requires NumPy and scikit-learn 1.6 or later. The code has not been tested here.</p>
<pre><code>import numpy as np
from sklearn.datasets import make_classification
from sklearn.model_selection import train_test_split
from sklearn.ensemble import RandomForestClassifier
from sklearn.calibration import CalibratedClassifierCV, calibration_curve
from sklearn.frozen import FrozenEstimator
from sklearn.metrics import brier_score_loss, precision_score, recall_score

X, y = make_classification(n_samples=20000, n_features=12,
                           weights=&#91;0.8, 0.2], random_state=42)
rng = np.random.default_rng(42)
group = rng.choice(&#91;"A", "B"], size=len(y), p=&#91;0.9, 0.1])
b = group == "B"
X&#91;b] += rng.normal(0, 1.5, size=(b.sum(), X.shape&#91;1]))

# 60% train, 20% calibration, 20% test
X_train, X_rest, y_train, y_rest, _, g_rest = train_test_split(
    X, y, group, test_size=0.4, stratify=y, random_state=42)
X_cal, X_test, y_cal, y_test, _, g_test = train_test_split(
    X_rest, y_rest, g_rest, test_size=0.5,
    stratify=y_rest, random_state=42)

model = RandomForestClassifier(random_state=42).fit(X_train, y_train)
calibrated = CalibratedClassifierCV(
    FrozenEstimator(model), method="isotonic").fit(X_cal, y_cal)

for name, m in &#91;("raw", model), ("calibrated", calibrated)]:
    p = m.predict_proba(X_test)&#91;:, 1]
    print(name, "Brier:", round(brier_score_loss(y_test, p), 4))
    observed, predicted = calibration_curve(y_test, p, n_bins=10)
    for pr, ob in zip(predicted, observed):
        print(f"  predicted {pr:.2f}  observed {ob:.2f}")

p = calibrated.predict_proba(X_test)&#91;:, 1]
for threshold in &#91;0.5, 0.3]:
    pred = (p >= threshold).astype(int)
    for g in &#91;"A", "B"]:
        m = g_test == g
        print(threshold, g,
              "n =", m.sum(),
              "positives =", y_test&#91;m].sum(),
              "precision =", round(precision_score(
                  y_test&#91;m], pred&#91;m], zero_division=0), 3),
              "recall =", round(recall_score(
                  y_test&#91;m], pred&#91;m], zero_division=0), 3))
</code></pre>
<p>Then answer these questions:</p>
<ol>
<li>Did calibration bring predicted and observed values closer?</li>
<li>How do precision and recall differ between groups?</li>
<li>What do you gain and lose by lowering the threshold?</li>
<li>Would you release this model? State the criterion you used.</li>
</ol>
<p>For a real project, choose thresholds on validation data, not the final test set. The threshold comparison above is for learning only.</p>
<h2>Best Practices and Common Mistakes</h2>
<p>Document each model in a short, readable record. The &#8220;model cards&#8221; proposal by Mitchell and colleagues recommends reporting intended use, evaluation methods and performance across relevant groups. Add known limits, an owner and a review date.</p>
<table>
<thead>
<tr>
<th>Common mistake</th>
<th>Better practice</th>
</tr>
</thead>
<tbody>
<tr>
<td>Relying on a vendor benchmark</td>
<td>Test on your own data and workflow</td>
</tr>
<tr>
<td>Reporting one average score</td>
<td>Show error types, groups and sample sizes</td>
</tr>
<tr>
<td>Reading probability as certainty</td>
<td>Check calibration and allow abstention</td>
</tr>
<tr>
<td>Treating explanations as proof</td>
<td>Validate performance and explanations separately</td>
</tr>
<tr>
<td>Adding a rubber-stamp reviewer</td>
<td>Give reviewers evidence, time and authority</td>
</tr>
<tr>
<td>Testing only before launch</td>
<td>Monitor, re-test and record incidents</td>
</tr>
</tbody>
</table>
<p>If production results are worse than test results, check for leakage, changes in input data, differences in preprocessing and groups missing from the test set. If users ignore or blindly accept outputs, review how uncertainty is presented.</p>
<h2>FAQ</h2>
<h3>Can AI ever be completely trustworthy?</h3>
<p>You should not assume so. Testing covers a limited set of conditions. The goal is justified, limited trust, with controls for the remaining risk.</p>
<h3>Does high accuracy mean a model is reliable?</h3>
<p>No. Accuracy can hide rare but costly errors, poor results for some groups and failures when conditions change.</p>
<h3>Is an explainable model automatically fair?</h3>
<p>No. Explanations may help you find bias, but a model can be easy to understand and still produce unfair results.</p>
<h3>How can an ordinary user decide whether to rely on AI?</h3>
<p>Ask what happens if the answer is wrong. For low-stakes drafting, a quick review may be enough. For health, legal, financial or safety decisions, confirm with authoritative sources and a qualified person.</p>
<h3>Who is responsible when AI makes a mistake?</h3>
<p>Legal responsibility depends on the jurisdiction, contracts and facts. Operationally, every system should have a named owner before release, with a clear process for correcting harm.</p>
<h2>The Bottom Line</h2>
<p>Trust in AI should be earned, bounded and open to withdrawal. Start with one system: name its owner, write down its worst plausible failure, and find the evidence that you would catch it. If that evidence is missing, you know what to do next.</p>
<h2>Related reading</h2>
<ul>
<li><a href="https://www.aiuniverse.xyz/why-machine-learning-strategies-fail/">Why machine learning strategies fail</a></li>
<li><a href="https://www.aiuniverse.xyz/why-machine-learning-should-matter-to-you/">Why Machine Learning Should Matter to You?</a></li>
<li><a href="https://www.aiuniverse.xyz/why-machine-learning-not-artificial-intelligence-is-the-right-way-forward-for-data-science/">Why machine learning, not artificial intelligence, is the right way forward for data science</a></li>
</ul>
<p>The post <a href="https://www.aiuniverse.xyz/how-can-we-trust-machine-learning-and-ai/">How Can We Trust Machine Learning and AI?</a> appeared first on <a href="https://www.aiuniverse.xyz">Artificial Intelligence</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.aiuniverse.xyz/how-can-we-trust-machine-learning-and-ai/feed/</wfw:commentRss>
			<slash:comments>4</slash:comments>
		
		
			</item>
		<item>
		<title>How to Use Machine Learning to Manage User Access</title>
		<link>https://www.aiuniverse.xyz/how-to-use-machine-learning-to-manage-user-access/</link>
					<comments>https://www.aiuniverse.xyz/how-to-use-machine-learning-to-manage-user-access/#comments</comments>
		
		<dc:creator><![CDATA[aiuniverse]]></dc:creator>
		<pubDate>Sat, 28 Nov 2026 07:49:16 +0000</pubDate>
				<category><![CDATA[Artificial Intelligence]]></category>
		<category><![CDATA[Machine Learning]]></category>
		<category><![CDATA[AI]]></category>
		<category><![CDATA[data goldmine hackers]]></category>
		<category><![CDATA[Machine learning]]></category>
		<category><![CDATA[ML algorithm]]></category>
		<category><![CDATA[ML Engineer]]></category>
		<category><![CDATA[Social security]]></category>
		<guid isPermaLink="false">http://www.aiuniverse.xyz/?p=1155</guid>

					<description><![CDATA[<p><img width="300" height="158" src="https://www.aiuniverse.xyz/wp-content/uploads/2026/11/featured-1155-300x158.png" class="attachment-medium size-medium wp-post-image" alt="How to Use Machine Learning to Manage User Access" decoding="async" loading="lazy" srcset="https://www.aiuniverse.xyz/wp-content/uploads/2026/11/featured-1155-300x158.png 300w, https://www.aiuniverse.xyz/wp-content/uploads/2026/11/featured-1155-1024x538.png 1024w, https://www.aiuniverse.xyz/wp-content/uploads/2026/11/featured-1155-768x403.png 768w, https://www.aiuniverse.xyz/wp-content/uploads/2026/11/featured-1155.png 1200w" sizes="auto, (max-width: 300px) 100vw, 300px" /></p>
<p>Last updated: 28 November 2026 To use machine learning to manage user access, let models score risk and suggest changes, and let explicit policy decide what happens. A model can flag an unusual sign-in or a group member who does not seem to belong. It should not be the only thing standing between a person <a class="read-more-link" href="https://www.aiuniverse.xyz/how-to-use-machine-learning-to-manage-user-access/">Read More</a></p>
<p>The post <a href="https://www.aiuniverse.xyz/how-to-use-machine-learning-to-manage-user-access/">How to Use Machine Learning to Manage User Access</a> appeared first on <a href="https://www.aiuniverse.xyz">Artificial Intelligence</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p><img width="300" height="158" src="https://www.aiuniverse.xyz/wp-content/uploads/2026/11/featured-1155-300x158.png" class="attachment-medium size-medium wp-post-image" alt="How to Use Machine Learning to Manage User Access" decoding="async" loading="lazy" srcset="https://www.aiuniverse.xyz/wp-content/uploads/2026/11/featured-1155-300x158.png 300w, https://www.aiuniverse.xyz/wp-content/uploads/2026/11/featured-1155-1024x538.png 1024w, https://www.aiuniverse.xyz/wp-content/uploads/2026/11/featured-1155-768x403.png 768w, https://www.aiuniverse.xyz/wp-content/uploads/2026/11/featured-1155.png 1200w" sizes="auto, (max-width: 300px) 100vw, 300px" /></p><p><em>Last updated: 28 November 2026</em></p>
<p>To use machine learning to manage user access, let models score risk and suggest changes, and let explicit policy decide what happens. A model can flag an unusual sign-in or a group member who does not seem to belong. It should not be the only thing standing between a person and your payroll system.</p>
<p>Start with one narrow problem, such as risky sign-ins or stale permissions. Run the model silently, compare its output with real investigations, and then connect it to low-impact actions such as a multifactor authentication (MFA) prompt.</p>
<h2>What Machine Learning Can and Cannot Do</h2>
<p>Access management answers two questions. Is this really the person they claim to be? Should that person have this permission? Machine learning can help with both by finding patterns that are hard to write as fixed rules.</p>
<ul>
<li><strong>Good fit:</strong> spotting unfamiliar sign-in behavior, ranking access review items, finding peer-group outliers and proposing candidate roles.</li>
<li><strong>Poor fit:</strong> deciding legal entitlement, enforcing separation of duties, or removing leavers&#8217; accounts. These have clear answers, so use deterministic rules.</li>
</ul>
<p>An unusual action is not necessarily a malicious one. A new project, a business trip or a rare job function can all look strange to a model. Treat scores as evidence, not verdicts.</p>
<p>Also check what a product really does. Many useful access features are simple rules or policy analysis, even when they sit next to ML features.</p>
<h2>How an ML-Driven Access System Works</h2>
<p>Most designs follow the same loop: collect signals, turn them into features, score them, apply policy, and feed outcomes back.</p>
<figure class="wp-block-image size-full"><img decoding="async" src="https://www.aiuniverse.xyz/wp-content/uploads/2026/11/diagram-1155.png" alt="Flow from identity and activity signals to features and model scoring, then to a policy decision informed by fixed rules, leading to allow, step-up authentication, or human review, with outcomes fed back to the model." /><figcaption>A machine learning access loop: rules set hard limits, the model scores risk, policy chooses the action, and outcomes improve the system.</figcaption></figure>
<h3>Signals and features</h3>
<p>Useful inputs usually come from systems you already run:</p>
<ul>
<li><strong>Identity data:</strong> department, manager, job title, employment status and account type.</li>
<li><strong>Entitlements:</strong> groups, roles, application assignments and direct permissions.</li>
<li><strong>Sign-in events:</strong> time, IP network, location, device, browser and authentication result.</li>
<li><strong>Activity logs:</strong> which applications, APIs and resources were actually used.</li>
<li><strong>Outcomes:</strong> confirmed incidents, dismissed alerts and reviewer decisions.</li>
</ul>
<p>Features describe behavior relative to a baseline: &#8220;first time on this device&#8221;, &#8220;failed attempts in the last hour&#8221; or &#8220;share of peers with this entitlement&#8221;.</p>
<h3>Common model types</h3>
<p><strong>Anomaly detection</strong> learns what normal looks like and scores departures from it. It helps when you have few labeled attacks.</p>
<p><strong>Supervised classification</strong> learns from labeled examples, such as confirmed account compromises. It needs enough trustworthy labels.</p>
<p><strong>Clustering and peer-group analysis</strong> compare users with similar access or organizational positions. The results can suggest roles or highlight entitlements that few peers hold.</p>
<h2>Use Cases Compared</h2>
<table>
<thead>
<tr>
<th>Use case</th>
<th>Typical technique</th>
<th>Key data</th>
<th>Safe first action</th>
<th>Main risk</th>
</tr>
</thead>
<tbody>
<tr>
<td>Risky sign-in detection</td>
<td>Anomaly detection or classification</td>
<td>Sign-in history, device, network</td>
<td>Require MFA</td>
<td>False alarms for travelers and new users</td>
</tr>
<tr>
<td>Access review support</td>
<td>Peer-group scoring</td>
<td>Org chart, group membership</td>
<td>Show a recommendation to the reviewer</td>
<td>Reviewers accept it without thinking</td>
</tr>
<tr>
<td>Role mining</td>
<td>Clustering</td>
<td>User-to-entitlement matrix</td>
<td>Propose roles to owners</td>
<td>Copies existing excess access into roles</td>
</tr>
<tr>
<td>Least privilege cleanup</td>
<td>Usage analysis (often rules, not ML)</td>
<td>Activity logs</td>
<td>Open a ticket to remove unused rights</td>
<td>Removes rare but necessary access</td>
</tr>
<tr>
<td>Access request triage</td>
<td>Classification or peer comparison</td>
<td>Request history, peer access</td>
<td>Route to the right approver</td>
<td>Learns past bad approvals</td>
</tr>
</tbody>
</table>
<h2>How to Use Machine Learning to Manage User Access, Step by Step</h2>
<h3>1. Pick one measurable problem</h3>
<p>For example: &#8220;reduce account takeover on remote sign-ins&#8221; or &#8220;make quarterly reviews of finance groups more accurate&#8221;. Record the current baseline before changing anything.</p>
<h3>2. Fix the access foundation</h3>
<p>Remove orphaned accounts, assign an owner to each important group, and correct manager and department fields. A model trained on messy entitlements will treat the mess as normal.</p>
<h3>3. Write the non-negotiable rules first</h3>
<p>Disabled users get no access. Privileged roles require strong authentication. Conflicting duties are blocked. A model score must never override these rules in a more permissive direction.</p>
<h3>4. Decide whether to build or buy</h3>
<p>Your identity provider may already score sign-in risk using far more signals than you can collect. Build your own model mainly for gaps, such as activity inside an internal application.</p>
<h3>5. Run in shadow mode</h3>
<p>Score real events without affecting users. Have analysts review a sample of flagged and unflagged events. Measure precision (how many alerts were justified), recall on known incidents, and daily alert volume.</p>
<h3>6. Tie actions to risk and impact</h3>
<ul>
<li><strong>Low risk:</strong> allow and log.</li>
<li><strong>Medium risk:</strong> ask for stronger authentication.</li>
<li><strong>High risk:</strong> block or limit the session, alert an analyst, and offer a recovery path.</li>
<li><strong>Permission removal:</strong> require an accountable owner&#8217;s approval until evidence supports more automation.</li>
</ul>
<h3>7. Monitor and retrain</h3>
<p>Reorganizations, new applications and remote-work changes shift behavior. Track alert rates, override rates and help desk complaints, broken down by user population. Version every model and keep a way to roll back.</p>
<h2>Using Built-In Platform Features</h2>
<h3>Microsoft Entra: sign-in and user risk</h3>
<p>Microsoft Entra ID Protection separates sign-in risk (is this request from the account owner?) from user risk (is the account likely compromised?). Its machine learning assigns low, medium or high risk levels.</p>
<p>You can use those levels in Conditional Access, for instance to require MFA for medium or high sign-in risk. Risk-based access policies need Microsoft Entra ID P2. Use report-only mode to study the effect before enforcing. Microsoft scheduled the older risk policies inside ID Protection to retire on October 1, 2026, so manage these in Conditional Access.</p>
<p>Plan around timing. Microsoft says real-time detections take 5 to 10 minutes to appear in reports, while offline ones can take up to 48 hours, so a risk level can change after sign-in. The unfamiliar sign-in properties detection also has a learning period of at least five days for new users.</p>
<h3>Microsoft Entra: access review recommendations</h3>
<p>Access reviews offer two different kinds of help. The <strong>inactive user</strong> recommendation is a rule: it suggests Deny for someone with no sign-in in the last 30 days, evaluated when the review starts. Application reviews check activity in that application.</p>
<p>The <strong>user-to-group affiliation</strong> recommendation is ML-based. It suggests Deny for members who are far from the rest of the group in the reporting structure. It needs a Microsoft Entra ID Governance license, depends on manager data, and does not support groups with more than 600 users. A cross-functional team member may be flagged for a perfectly good reason.</p>
<h3>AWS: unused access and policy generation</h3>
<p>AWS IAM Access Analyzer can report unused roles, access keys, passwords, services and actions. Unused access analysis is charged per IAM role and user analyzed. AWS documentation describes these features as access analysis, so do not assume they are ML models.</p>
<p>It can also generate a policy template from up to 90 days of CloudTrail activity. Review it carefully. It omits <code>iam:PassRole</code>, lacks action-level detail for data events such as S3 object access, and considers denied actions as well as successful ones. Annual jobs may fall outside the window.</p>
<h2>Hands-On Exercise: Score Sign-Ins With Isolation Forest</h2>
<p>This exercise uses made-up data and scikit-learn&#8217;s Isolation Forest, where a lower value from <code>score_samples</code> means a more abnormal event. The code has not been tested here. It is a learning aid, not a production control.</p>
<pre><code>pip install numpy scikit-learn</code></pre>
<pre><code>import numpy as np
from sklearn.ensemble import IsolationForest

rng = np.random.default_rng(42)

def make_events(n):
    hour = rng.normal(11, 2.5, n) % 24
    return np.column_stack(&#91;
        np.sin(2 * np.pi * hour / 24),
        np.cos(2 * np.pi * hour / 24),
        rng.binomial(1, 0.03, n),   # new device
        rng.binomial(1, 0.01, n),   # new country
        rng.poisson(0.2, n),        # failed attempts, last hour
    ])

train = make_events(5000)
calibration = make_events(2000)

model = IsolationForest(n_estimators=200, random_state=42)
model.fit(train)

cal_scores = model.score_samples(calibration)
step_up_cut = np.quantile(cal_scores, 0.05)
review_cut = np.quantile(cal_scores, 0.01)

def decide(features, account_active=True):
    if not account_active:
        return "deny (rule)", None
    score = model.score_samples(&#91;features])&#91;0]
    if score &lt; review_cut:
        return "step-up MFA and analyst review", score
    if score &lt; step_up_cut:
        return "step-up MFA", score
    return "allow and log", score

def event(hour, device, country, failures):
    angle = 2 * np.pi * hour / 24
    return &#91;np.sin(angle), np.cos(angle), device, country, failures]

print(decide(event(10, 0, 0, 0)))
print(decide(event(3, 1, 1, 6)))
print(decide(event(10, 0, 0, 0), account_active=False))</code></pre>
<p>Now experiment:</p>
<ol>
<li>Change one feature at a time and see which changes move the score most.</li>
<li>Add night-shift users to the data. Compare one shared model with a model per population.</li>
<li>Count how many events each threshold would send to analysts at 100,000 sign-ins a day. With similar traffic, a 1% cut means roughly 1,000 reviews.</li>
</ol>
<p>The percentile thresholds set workload; they do not prove that 1% of events are attacks. A real system also needs past-only features, protected logs, a tested fallback if scoring fails, and a recorded reason for each decision.</p>
<h2>Governance, Privacy and Accountability</h2>
<p>NIST&#8217;s Digital Identity Guidelines, SP 800-63-4, finalized in 2025, address AI and ML in identity systems. They require that uses be documented and communicated to organizations relying on those systems. Organizations using AI/ML must also share information on training methods, datasets, update frequency and test results with entities that use their technology.</p>
<p>The guidelines require documented privacy risk assessments for the personal data such systems process, and recommend the NIST AI Risk Management Framework. Even where they do not bind you, they make a useful checklist and a good set of vendor questions.</p>
<p>Add your own controls: limit who can see behavioral data, set retention periods, give users a way to contest a block, and check legal obligations in each region where you operate.</p>
<h2>Common Mistakes and Troubleshooting</h2>
<table>
<thead>
<tr>
<th>Symptom</th>
<th>Likely cause</th>
<th>What to try</th>
</tr>
</thead>
<tbody>
<tr>
<td>Too many alerts</td>
<td>Threshold too sensitive or mixed populations</td>
<td>Recalibrate, segment users, add device context</td>
</tr>
<tr>
<td>Obvious risk scores as normal</td>
<td>Feature never varied in training, or attacks polluted the baseline</td>
<td>Add a rule, inspect training data, remove confirmed incidents</td>
</tr>
<tr>
<td>New employees get challenged often</td>
<td>No history yet</td>
<td>Use peer baselines and stricter onboarding rules</td>
</tr>
<tr>
<td>Reviewers approve whatever is suggested</td>
<td>Automation bias</td>
<td>Show reasons, sample decisions for audit, require justification for privileged access</td>
</tr>
<tr>
<td>Quality drops after a reorganization</td>
<td>Data drift</td>
<td>Refresh directory data and re-evaluate the model</td>
</tr>
<tr>
<td>Administrators locked out</td>
<td>Enforcement without a recovery plan</td>
<td>Maintain monitored emergency access accounts and test policies first</td>
</tr>
</tbody>
</table>
<h2>FAQ</h2>
<h3>Can machine learning replace role-based access control?</h3>
<p>No. Roles and attribute rules define who should have access. Machine learning helps find outliers, suggest roles and adjust scrutiny based on risk.</p>
<h3>Do I need labeled attack data?</h3>
<p>Not for basic anomaly detection. You still need investigated examples to judge whether its alerts are useful, and supervised models require labels.</p>
<h3>Should a model remove access automatically?</h3>
<p>Begin with recommendations. Consider automation only for low-impact, reversible changes after measured results support it. Keep human approval for privileged or business-critical access.</p>
<h3>What about service accounts and AI agents?</h3>
<p>Manage them separately from people, with a named owner and their own baselines. Their patterns differ, and some platforms now report agent risk separately, including Microsoft Entra ID Protection.</p>
<h3>Where should a small team start?</h3>
<p>Enforce MFA, clean up stale accounts, and try the risk and review features your current platform license includes. Build custom models only when you can name a gap and have someone to maintain them.</p>
<h2>Related reading</h2>
<ul>
<li><a href="https://www.aiuniverse.xyz/how-to-use-ux-to-make-machine-learning-systems-more-effective/">How To Use UX To Make Machine-Learning Systems More Effective</a></li>
<li><a href="https://www.aiuniverse.xyz/how-to-use-machine-learning-for-your-startups-product/">How to use machine learning for your startup’s product</a></li>
<li><a href="https://www.aiuniverse.xyz/how-to-use-machine-learning-for-seo-competitor-research/">How to Use Machine Learning for SEO Competitor Research</a></li>
</ul>
<p>The post <a href="https://www.aiuniverse.xyz/how-to-use-machine-learning-to-manage-user-access/">How to Use Machine Learning to Manage User Access</a> appeared first on <a href="https://www.aiuniverse.xyz">Artificial Intelligence</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.aiuniverse.xyz/how-to-use-machine-learning-to-manage-user-access/feed/</wfw:commentRss>
			<slash:comments>3</slash:comments>
		
		
			</item>
		<item>
		<title>How to get started with machine learning</title>
		<link>https://www.aiuniverse.xyz/how-to-get-started-with-machine-learning/</link>
					<comments>https://www.aiuniverse.xyz/how-to-get-started-with-machine-learning/#comments</comments>
		
		<dc:creator><![CDATA[aiuniverse]]></dc:creator>
		<pubDate>Sat, 28 Nov 2026 07:42:36 +0000</pubDate>
				<category><![CDATA[Machine Learning]]></category>
		<category><![CDATA[Machine learning]]></category>
		<category><![CDATA[Machine learning guide]]></category>
		<category><![CDATA[Machine learning Tips]]></category>
		<guid isPermaLink="false">http://www.aiuniverse.xyz/?p=491</guid>

					<description><![CDATA[<p><img width="300" height="158" src="https://www.aiuniverse.xyz/wp-content/uploads/2026/11/featured-491-300x158.png" class="attachment-medium size-medium wp-post-image" alt="How to get started with machine learning" decoding="async" loading="lazy" srcset="https://www.aiuniverse.xyz/wp-content/uploads/2026/11/featured-491-300x158.png 300w, https://www.aiuniverse.xyz/wp-content/uploads/2026/11/featured-491-1024x538.png 1024w, https://www.aiuniverse.xyz/wp-content/uploads/2026/11/featured-491-768x403.png 768w, https://www.aiuniverse.xyz/wp-content/uploads/2026/11/featured-491.png 1200w" sizes="auto, (max-width: 300px) 100vw, 300px" /></p>
<p>Last updated: 28 November 2026 To get started with machine learning, learn basic Python and a little maths, install scikit-learn, and build one small project from start to finish. Then improve it, explain your results, and move to a harder problem. You do not need a powerful computer or advanced calculus for that first step. <a class="read-more-link" href="https://www.aiuniverse.xyz/how-to-get-started-with-machine-learning/">Read More</a></p>
<p>The post <a href="https://www.aiuniverse.xyz/how-to-get-started-with-machine-learning/">How to get started with machine learning</a> appeared first on <a href="https://www.aiuniverse.xyz">Artificial Intelligence</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p><img width="300" height="158" src="https://www.aiuniverse.xyz/wp-content/uploads/2026/11/featured-491-300x158.png" class="attachment-medium size-medium wp-post-image" alt="How to get started with machine learning" decoding="async" loading="lazy" srcset="https://www.aiuniverse.xyz/wp-content/uploads/2026/11/featured-491-300x158.png 300w, https://www.aiuniverse.xyz/wp-content/uploads/2026/11/featured-491-1024x538.png 1024w, https://www.aiuniverse.xyz/wp-content/uploads/2026/11/featured-491-768x403.png 768w, https://www.aiuniverse.xyz/wp-content/uploads/2026/11/featured-491.png 1200w" sizes="auto, (max-width: 300px) 100vw, 300px" /></p><p><em>Last updated: 28 November 2026</em></p>
<p>To get started with machine learning, learn basic Python and a little maths, install scikit-learn, and build one small project from start to finish. Then improve it, explain your results, and move to a harder problem.</p>
<p>You do not need a powerful computer or advanced calculus for that first step. You do need a clear question, some data, and an honest way to check whether your model works.</p>
<h2>What machine learning is</h2>
<p>In traditional programming, you write the rules. In machine learning, an algorithm learns patterns from examples, and you use the resulting model to make predictions about new data.</p>
<p>A few terms appear everywhere:</p>
<ul>
<li><strong>Features:</strong> the inputs, such as a house&#8217;s size and age.</li>
<li><strong>Label or target:</strong> the answer you want to predict, such as its price.</li>
<li><strong>Training:</strong> fitting a model to examples.</li>
<li><strong>Inference:</strong> using the fitted model on new inputs.</li>
<li><strong>Generalisation:</strong> how well the model performs on data it did not learn from.</li>
</ul>
<h3>The main problem types</h3>
<table>
<thead>
<tr>
<th>Task</th>
<th>What it does</th>
<th>Example question</th>
<th>Good first method</th>
<th>Common metric</th>
</tr>
</thead>
<tbody>
<tr>
<td>Classification (supervised)</td>
<td>Predicts a category</td>
<td>Is this email spam?</td>
<td>Logistic regression</td>
<td>Precision, recall, balanced accuracy</td>
</tr>
<tr>
<td>Regression (supervised)</td>
<td>Predicts a number</td>
<td>What will this house sell for?</td>
<td>Linear regression</td>
<td>Mean absolute or squared error</td>
</tr>
<tr>
<td>Clustering (unsupervised)</td>
<td>Groups similar items without labels</td>
<td>Which customers behave alike?</td>
<td>k-means</td>
<td>Silhouette score, plus human review</td>
</tr>
</tbody>
</table>
<p>Start with supervised learning. You have known answers to compare against, so mistakes are easier to see.</p>
<h2>Skills you need before you begin</h2>
<p>You can learn much of this as you go. Aim for working comfort, not mastery.</p>
<ul>
<li><strong>Python:</strong> functions, lists, dictionaries, loops, conditionals and list comprehensions.</li>
<li><strong>Data tools:</strong> NumPy for arrays and pandas for tables.</li>
<li><strong>Algebra:</strong> variables, linear equations, function graphs and logarithms.</li>
<li><strong>Statistics:</strong> mean, median, standard deviation, outliers and histograms.</li>
<li><strong>Later topics:</strong> matrix multiplication, derivatives, gradients and the chain rule.</li>
</ul>
<p>Google&#8217;s free Machine Learning Crash Course publishes a similar list of prerequisites. It suggests an introductory ML lesson plus short NumPy and pandas tutorials for newcomers. Its programming exercises run in the browser through Colaboratory.</p>
<p>The course is organised into four areas: core models (linear regression, logistic regression and classification), data, advanced models (including neural networks, embeddings and large language models), and real-world ML (including production systems and fairness). Take the first two areas before the others.</p>
<h2>The machine learning workflow</h2>
<p>Most beginner projects follow the same steps. Learn them once and you can reuse them with many algorithms.</p>
<p><figure class="wp-block-image size-full"><img decoding="async" src="https://www.aiuniverse.xyz/wp-content/uploads/2026/11/diagram-491.png" alt="Flow from defining a question to inspecting data and splitting it. Training data feeds a baseline and cross-validation, which lead to a final test and error review. The test set goes only to the final test." /><figcaption>A beginner machine learning workflow, with the test set held back until a model is chosen</figcaption></figure>
</p>
<ol>
<li><strong>Define the question.</strong> Say what you will predict and what decision it supports.</li>
<li><strong>Inspect the data.</strong> Look for missing values, duplicates, odd ranges and rare classes.</li>
<li><strong>Split the data.</strong> Set aside a test set before fitting any preprocessing.</li>
<li><strong>Build a baseline.</strong> Measure what a trivial guess achieves.</li>
<li><strong>Train and compare.</strong> Use cross-validation on the training data.</li>
<li><strong>Test once.</strong> Check your chosen model on the held-out set.</li>
<li><strong>Review errors.</strong> Find which cases fail and why.</li>
</ol>
<p>Cross-validation divides the training data into several parts, called folds. The model trains on most folds and is scored on the remaining one, rotating until each fold has been used for scoring. This gives a steadier estimate than a single split.</p>
<p>The random split suits independent examples. For time-ordered data, or many rows from the same person or device, use a split that respects time or groups.</p>
<h2>Set up your environment</h2>
<p>scikit-learn is a sensible first library. It is open source, covers supervised and unsupervised learning, and uses a consistent interface. As of late November 2026, the version we checked is 1.9.1, and its package listing requires Python 3.11 or later.</p>
<p>Use a virtual environment so project packages stay separate. These commands have not been tested here. On macOS or Linux:</p>
<pre><code>python3 -m venv sklearn-env
source sklearn-env/bin/activate
pip install -U scikit-learn
python -c "import sklearn; sklearn.show_versions()"</code></pre>
<p>On Windows:</p>
<pre><code>python -m venv sklearn-env
sklearn-env\Scripts\activate
pip install -U scikit-learn
python -c "import sklearn; sklearn.show_versions()"</code></pre>
<p>If you prefer conda:</p>
<pre><code>conda create -n sklearn-env -c conda-forge scikit-learn
conda activate sklearn-env</code></pre>
<p>Activate the environment again whenever you open a new terminal.</p>
<h2>Your first machine learning project</h2>
<p>This example uses the breast cancer dataset bundled with scikit-learn. It has 569 samples and 30 numeric features: 212 samples are labelled malignant and 357 benign. It is a learning exercise only, not a diagnostic tool.</p>
<p>Save the code as <code>first_model.py</code> and run <code>python first_model.py</code>. The final test is switched off by default, so you can compare models without seeing test results. The code has not been tested here.</p>
<pre><code>from sklearn.datasets import load_breast_cancer
from sklearn.dummy import DummyClassifier
from sklearn.linear_model import LogisticRegression
from sklearn.metrics import classification_report, confusion_matrix
from sklearn.model_selection import cross_val_score, train_test_split
from sklearn.pipeline import make_pipeline
from sklearn.preprocessing import StandardScaler

# Keep False while you compare and change models
RUN_FINAL_TEST = False

# 0 = malignant, 1 = benign
X, y = load_breast_cancer(return_X_y=True)

# Hold out 20% and keep class proportions similar
X_train, X_test, y_train, y_test = train_test_split(
    X, y, test_size=0.2, stratify=y, random_state=42
)

baseline = DummyClassifier(strategy="most_frequent")
model = make_pipeline(StandardScaler(), LogisticRegression(max_iter=1000))

# Cross-validation uses only the training data
for name, estimator in &#91;("baseline", baseline), ("logistic", model)]:
    scores = cross_val_score(
        estimator, X_train, y_train, cv=5, scoring="balanced_accuracy"
    )
    print(name, scores.mean(), scores.std())

# Set this to the model you select from cross-validation
chosen_model = model

if RUN_FINAL_TEST:
    chosen_model.fit(X_train, y_train)
    predictions = chosen_model.predict(X_test)
    print(confusion_matrix(y_test, predictions))
    print(classification_report(
        y_test, predictions, target_names=&#91;"malignant", "benign"]
    ))
else:
    print("Final test skipped. Choose a model first.")</code></pre>
<h3>What the code does</h3>
<ul>
<li><strong>Estimators</strong> learn with <code>fit</code>. Predictive models then use <code>predict</code>.</li>
<li><strong>The scaler</strong> puts features on comparable scales.</li>
<li><strong>The pipeline</strong> joins scaling and modelling, so each cross-validation fold learns its scaling from its own training portion.</li>
<li><strong>The dummy model</strong> always predicts the most common class.</li>
<li><strong>random_state</strong> makes the shuffled split repeatable.</li>
<li><strong>RUN_FINAL_TEST</strong> keeps the test predictions and reports behind a deliberate choice.</li>
</ul>
<h3>How to read the cross-validation results</h3>
<p>Each output line shows a model&#8217;s name, its mean score across five folds, and the standard deviation of those scores. A large spread means the result varies considerably between folds, so be cautious about small differences between models.</p>
<p>In this dataset, about 63% of samples are benign. A model that always says &#8220;benign&#8221; could therefore look partly successful on plain accuracy while finding no malignant cases.</p>
<p>Balanced accuracy averages the recall of each class. An always-one-class guess scores 0.5 on a two-class problem, so your real model should do clearly better.</p>
<h2>Best practices from the start</h2>
<ul>
<li><strong>Split before preprocessing.</strong> Never call <code>fit</code> or <code>fit_transform</code> on test data.</li>
<li><strong>Use pipelines.</strong> They help keep scaling, imputation and feature selection inside the correct data subset.</li>
<li><strong>Begin simple.</strong> A linear or logistic model gives you something understandable to beat.</li>
<li><strong>Choose metrics from the goal.</strong> Ask which mistakes cost the most.</li>
<li><strong>Change one thing at a time.</strong> Record the change and its cross-validation score.</li>
<li><strong>Record your setup.</strong> Save package versions, random seeds and the data source.</li>
</ul>
<h2>Common mistakes and troubleshooting</h2>
<table>
<thead>
<tr>
<th>Symptom</th>
<th>Likely cause</th>
<th>What to try</th>
</tr>
</thead>
<tbody>
<tr>
<td>Scores look too good</td>
<td>Data leakage, duplicates, or a feature that reveals the answer</td>
<td>Audit features and move preprocessing into a pipeline</td>
</tr>
<tr>
<td>Training score high, validation score low</td>
<td>Overfitting</td>
<td>Simplify or regularise the model, or get more data</td>
</tr>
<tr>
<td>Both scores low</td>
<td>Underfitting or weak features</td>
<td>Improve features or try a more flexible model</td>
</tr>
<tr>
<td>High accuracy, rare class missed</td>
<td>Class imbalance</td>
<td>Check recall, precision and balanced accuracy</td>
</tr>
<tr>
<td>Convergence warning</td>
<td>Unscaled features or too few iterations</td>
<td>Scale inputs, then raise <code>max_iter</code></td>
</tr>
<tr>
<td>Import error for sklearn</td>
<td>Environment inactive or package installed elsewhere</td>
<td>Activate it and run <code>python -m pip show scikit-learn</code></td>
</tr>
</tbody>
</table>
<p>Leakage deserves special attention because it may raise no error at all. It happens when model building uses information that would not be available at prediction time. For example, selecting the &#8220;best&#8221; features using the whole dataset lets the test data influence the model.</p>
<h2>Hands-on exercise</h2>
<p>Spend an hour or two extending the project. Leave <code>RUN_FINAL_TEST = False</code> for steps 1 to 4.</p>
<ol>
<li>Run the script and note the baseline and logistic cross-validation scores.</li>
<li>Import <code>RandomForestClassifier</code> from <code>sklearn.ensemble</code>. Above the loop, create <code>forest = RandomForestClassifier(random_state=42)</code>, then add <code>("forest", forest)</code> to the loop&#8217;s list.</li>
<li>Remove <code>StandardScaler()</code> from the logistic pipeline and run the script again. Observe any warnings and score changes, then restore the scaler.</li>
<li>Choose a model using only cross-validation results. Set <code>chosen_model</code> to <code>model</code> or <code>forest</code>.</li>
<li>When your choice is settled, set <code>RUN_FINAL_TEST = True</code> and run the script once. Save the output, then set the switch back to <code>False</code>.</li>
<li>Write five sentences covering the question, data, baseline, result and one limitation.</li>
</ol>
<h3>How to read the final test results</h3>
<p>In the confusion matrix, rows are true classes and columns are predicted classes. Check the top-right cell: with this label order, it counts malignant samples predicted as benign. In a medical setting, that error would matter greatly.</p>
<p>The classification report shows precision and recall for each class. Malignant recall tells you what share of the malignant test samples the model found.</p>
<p>If you keep changing the model after seeing these results, the test set no longer gives a fresh estimate. Treat later scores with caution, or evaluate on new data that played no part in your choices.</p>
<h2>A suggested study plan</h2>
<p>This is an example schedule for a part-time learner. Adjust it to your background.</p>
<table>
<thead>
<tr>
<th>Weeks</th>
<th>Focus</th>
<th>Output</th>
</tr>
</thead>
<tbody>
<tr>
<td>1–2</td>
<td>Python, NumPy, pandas</td>
<td>A short data exploration notebook</td>
</tr>
<tr>
<td>3–4</td>
<td>Regression, classification, metrics</td>
<td>One model compared with a baseline</td>
</tr>
<tr>
<td>5–6</td>
<td>Data preparation, overfitting, pipelines</td>
<td>A project using mixed numeric and categorical data</td>
</tr>
<tr>
<td>7–8</td>
<td>Tree ensembles, parameter search</td>
<td>A written comparison of models</td>
</tr>
<tr>
<td>Afterwards</td>
<td>Neural networks or deployment</td>
<td>A project matched to your goals</td>
</tr>
</tbody>
</table>
<p>For parameter search, try <code>RandomizedSearchCV</code> on your training data and pass it the whole pipeline. For mixed column types, learn <code>ColumnTransformer</code>.</p>
<h2>FAQ</h2>
<h3>Can I learn machine learning without strong maths?</h3>
<p>You can start with basic algebra and statistics. Study linear algebra and calculus as you need to understand training methods in more depth.</p>
<h3>Do I need a GPU?</h3>
<p>Not for the small project above or typical introductory exercises with small tables of data. Larger neural networks are where specialised hardware becomes more relevant.</p>
<h3>Should I start with large language models?</h3>
<p>If your aim is to understand machine learning, learn data splitting, evaluation and simple models first. Those ideas help you judge more complex systems. If you only want to build an app on an existing model, you can learn both side by side.</p>
<h3>How long does it take?</h3>
<p>There is no fixed answer. It depends on your programming background, study time and goal. Measure progress by projects you can build and explain.</p>
<h3>What should my second project be?</h3>
<p>Pick a small public dataset on a subject you understand. Include missing or categorical values, define a baseline, and document where the model fails.</p>
<p>Your next action is simple: create the environment, run the script with the final test switched off, and explain how the model compares with the baseline.</p>
<h2>Related reading</h2>
<ul>
<li><a href="https://www.aiuniverse.xyz/why-machine-learning-strategies-fail/">Why machine learning strategies fail</a></li>
<li><a href="https://www.aiuniverse.xyz/why-machine-learning-should-matter-to-you/">Why Machine Learning Should Matter to You?</a></li>
<li><a href="https://www.aiuniverse.xyz/why-machine-learning-not-artificial-intelligence-is-the-right-way-forward-for-data-science/">Why machine learning, not artificial intelligence, is the right way forward for data science</a></li>
</ul>
<p>The post <a href="https://www.aiuniverse.xyz/how-to-get-started-with-machine-learning/">How to get started with machine learning</a> appeared first on <a href="https://www.aiuniverse.xyz">Artificial Intelligence</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.aiuniverse.xyz/how-to-get-started-with-machine-learning/feed/</wfw:commentRss>
			<slash:comments>7</slash:comments>
		
		
			</item>
		<item>
		<title>Why machine learning strategies fail</title>
		<link>https://www.aiuniverse.xyz/why-machine-learning-strategies-fail/</link>
					<comments>https://www.aiuniverse.xyz/why-machine-learning-strategies-fail/#respond</comments>
		
		<dc:creator><![CDATA[aiuniverse]]></dc:creator>
		<pubDate>Sat, 28 Nov 2026 06:48:08 +0000</pubDate>
				<category><![CDATA[Machine Learning]]></category>
		<category><![CDATA[companies]]></category>
		<category><![CDATA[fail]]></category>
		<category><![CDATA[Machine learning]]></category>
		<category><![CDATA[Strategies]]></category>
		<category><![CDATA[Why]]></category>
		<guid isPermaLink="false">http://www.aiuniverse.xyz/?p=13115</guid>

					<description><![CDATA[<p><img width="300" height="158" src="https://www.aiuniverse.xyz/wp-content/uploads/2026/11/featured-13115-300x158.png" class="attachment-medium size-medium wp-post-image" alt="Why machine learning strategies fail" decoding="async" loading="lazy" srcset="https://www.aiuniverse.xyz/wp-content/uploads/2026/11/featured-13115-300x158.png 300w, https://www.aiuniverse.xyz/wp-content/uploads/2026/11/featured-13115-1024x538.png 1024w, https://www.aiuniverse.xyz/wp-content/uploads/2026/11/featured-13115-768x403.png 768w, https://www.aiuniverse.xyz/wp-content/uploads/2026/11/featured-13115.png 1200w" sizes="auto, (max-width: 300px) 100vw, 300px" /></p>
<p>Last updated: 28 November 2026 Machine learning strategies fail mostly because the work around the model breaks down. The team solves the wrong problem, lacks suitable data, cannot run the model reliably in production, or applies machine learning where it does not fit. A better algorithm rarely repairs any of these. This guide explains each <a class="read-more-link" href="https://www.aiuniverse.xyz/why-machine-learning-strategies-fail/">Read More</a></p>
<p>The post <a href="https://www.aiuniverse.xyz/why-machine-learning-strategies-fail/">Why machine learning strategies fail</a> appeared first on <a href="https://www.aiuniverse.xyz">Artificial Intelligence</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p><img width="300" height="158" src="https://www.aiuniverse.xyz/wp-content/uploads/2026/11/featured-13115-300x158.png" class="attachment-medium size-medium wp-post-image" alt="Why machine learning strategies fail" decoding="async" loading="lazy" srcset="https://www.aiuniverse.xyz/wp-content/uploads/2026/11/featured-13115-300x158.png 300w, https://www.aiuniverse.xyz/wp-content/uploads/2026/11/featured-13115-1024x538.png 1024w, https://www.aiuniverse.xyz/wp-content/uploads/2026/11/featured-13115-768x403.png 768w, https://www.aiuniverse.xyz/wp-content/uploads/2026/11/featured-13115.png 1200w" sizes="auto, (max-width: 300px) 100vw, 300px" /></p><p><em>Last updated: 28 November 2026</em></p>
<p>Machine learning strategies fail mostly because the work around the model breaks down. The team solves the wrong problem, lacks suitable data, cannot run the model reliably in production, or applies machine learning where it does not fit. A better algorithm rarely repairs any of these.</p>
<p>This guide explains each failure, shows the warning signs, and gives you practical checks to run before and after launch.</p>
<h2>Why machine learning strategies fail: the root causes</h2>
<p>A useful starting point is a RAND report published in August 2024. Its authors interviewed 65 experienced data scientists and engineers, 50 from industry and 15 from academia, between August and December 2023. It covers AI projects broadly, and it relies on practitioners&#8217; accounts rather than a measured audit of projects.</p>
<p>The report identified five leading causes among its industry findings:</p>
<ol>
<li><strong>The problem is misunderstood.</strong> Business stakeholders and technical teams talk past each other, so the model optimizes the wrong thing or does not fit the workflow.</li>
<li><strong>The data is not good enough.</strong> The organization lacks the data needed to train an effective model.</li>
<li><strong>Technology comes first.</strong> Teams chase new techniques instead of solving a real problem for users.</li>
<li><strong>Infrastructure is weak.</strong> There is no dependable way to manage data and deploy models.</li>
<li><strong>The problem is too hard.</strong> The task is beyond what current methods can do.</li>
</ol>
<p>You may see the claim that more than 80 percent of AI projects fail. RAND mentions it as an outside estimate (&#8220;by some estimates&#8221;), not as its own measurement. Definitions of failure also vary, so avoid building a business case on any single failure rate.</p>
<h3>Strategy failure versus model failure</h3>
<p>A model fails when its predictions are poor. A strategy fails when the organization cannot turn predictions into value, repeatedly and safely. You can have an accurate model inside a failed strategy: nobody acts on its scores, or each new project rebuilds the same pipelines from scratch.</p>
<p>The diagram below shows where the chain usually breaks, and why later stages feed back into earlier ones.</p>
<figure class="wp-block-image size-full"><img decoding="async" src="https://www.aiuniverse.xyz/wp-content/uploads/2026/11/diagram-13115.png" alt="Flow from business decision to data, model, deployment, action and monitoring, with monitoring feeding back to the decision and the data" /><figcaption>Where a machine learning strategy can break, and the feedback needed to repair it</figcaption></figure>
<h2>How each failure happens</h2>
<h3>1. No decision is attached to the prediction</h3>
<p>&#8220;Predict customer churn&#8221; is not a goal. A goal names who will act, what they will do, how often, and what result should change. Without that, teams report offline scores while the business sees nothing.</p>
<p>Consider a hypothetical example. A subscription company builds a churn model that ranks customers well. The retention team can only call people at renewal time, but the model flags them two weeks before renewal and the call list refreshes monthly. Many flagged customers are contacted too late. The fix is to change the prediction window and delivery schedule, not the algorithm.</p>
<h3>2. Machine learning was not needed yet</h3>
<p>The first of Google&#8217;s Rules of Machine Learning is not to be afraid to launch a product without machine learning. A simple heuristic can deliver value while you collect data. It also gives you a baseline that any model must beat.</p>
<p>The same guide advises designing metrics first, then keeping the first model simple and getting the infrastructure right.</p>
<h3>3. Data does not match the real task</h3>
<p>Common problems include missing labels, labels that stand in poorly for the real outcome, history that reflects old business rules, and fields that arrive late in production. Gartner predicted in February 2025 that through 2026, organizations would abandon 60 percent of AI projects unsupported by AI-ready data. Treat that as a forecast, not a confirmed result.</p>
<p><strong>Data leakage</strong> is especially deceptive. It happens when training uses information that will not be available at prediction time. Test results look excellent, then performance collapses. Fitting a scaler or feature selector on the full dataset before splitting is a classic cause.</p>
<h3>4. Training and serving drift apart</h3>
<p>Training-serving skew means the model sees different inputs in production than it saw in training. This often happens when data scientists compute features one way and engineers rewrite them for the live system.</p>
<p>Google&#8217;s guidance is to reuse code between training and serving where possible, and to log the features used at serving time so they can be used for training. A feature store is another option, because it provides shared feature definitions to both paths.</p>
<h3>5. The system accumulates hidden debt</h3>
<p>The 2015 research paper <em>Hidden Technical Debt in Machine Learning Systems</em>, by Google researchers, warned that production ML can carry large ongoing maintenance costs. Its risk factors include:</p>
<ul>
<li><strong>Entanglement:</strong> changing one input or setting can shift the behavior of everything else.</li>
<li><strong>Hidden feedback loops:</strong> model outputs influence the data the model later learns from.</li>
<li><strong>Undeclared consumers:</strong> other systems quietly depend on the model&#8217;s output.</li>
<li><strong>Configuration issues and external change:</strong> settings become error-prone and the world moves on.</li>
</ul>
<h3>6. Nobody operates the model after launch</h3>
<p>Google Cloud&#8217;s MLOps guidance describes three maturity levels. Level 0 is a manual process with infrequent releases and no active performance monitoring. Level 1 automates the training pipeline so models can be retrained on new data, with data and model validation. Level 2 adds automated CI/CD for the pipeline itself.</p>
<p>Not every team needs the highest level. Every production model does need an owner, monitoring, and a way to roll back. A separate interview study of 18 ML engineers found that velocity, validation and versioning shape success in production deployments.</p>
<h2>Warning signs and fixes</h2>
<table>
<thead>
<tr>
<th>Failure mode</th>
<th>Warning sign</th>
<th>First fix</th>
</tr>
</thead>
<tbody>
<tr>
<td>Unclear problem</td>
<td>No named person will act on the output</td>
<td>Write the decision, action, owner and success metric</td>
</tr>
<tr>
<td>ML not needed</td>
<td>No rule-based baseline exists</td>
<td>Build and measure a simple heuristic</td>
</tr>
<tr>
<td>Poor data</td>
<td>Labels are disputed or arrive very late</td>
<td>Audit a sample by hand before modeling</td>
</tr>
<tr>
<td>Leakage</td>
<td>Offline results look too good</td>
<td>Split first; check when each feature becomes known</td>
</tr>
<tr>
<td>Training-serving skew</td>
<td>Live results trail recent holdout results</td>
<td>Share feature code and log served features</td>
</tr>
<tr>
<td>Weak operations</td>
<td>Users report problems before the team does</td>
<td>Add monitoring, alerts and rollback</td>
</tr>
<tr>
<td>Infeasible task</td>
<td>Domain experts cannot do it from the same information</td>
<td>Narrow the scope or stop</td>
</tr>
</tbody>
</table>
<p>The last warning sign is a rule of thumb, not a proof. Some models find patterns people miss, but the gap should prompt a feasibility test.</p>
<h2>A practical check: beat a baseline honestly</h2>
<p>This Python sketch compares a no-skill baseline with a simple model using time-ordered validation. It assumes a hypothetical file, churn.csv, with numeric features and a 0 or 1 label. It has not been tested here.</p>
<pre><code>import pandas as pd
from sklearn.dummy import DummyClassifier
from sklearn.impute import SimpleImputer
from sklearn.linear_model import LogisticRegression
from sklearn.model_selection import TimeSeriesSplit, cross_val_score
from sklearn.pipeline import make_pipeline
from sklearn.preprocessing import StandardScaler

df = pd.read_csv("churn.csv", parse_dates=&#91;"snapshot_date"])
df = df.sort_values("snapshot_date")

X = df&#91;&#91;"tenure_months", "tickets_90d", "monthly_spend"]]
y = df&#91;"churned_next_30d"]

# gap counts rows, not days. Set it to cover your label window.
cv = TimeSeriesSplit(n_splits=5, gap=1000)

models = {
    "baseline": DummyClassifier(strategy="prior"),
    "logistic": make_pipeline(
        SimpleImputer(strategy="median"),
        StandardScaler(),
        LogisticRegression(max_iter=1000),
    ),
}

for name, model in models.items():
    scores = cross_val_score(
        model, X, y, cv=cv, scoring="average_precision"
    )
    print(name, scores.round(3), scores.mean().round(3))
</code></pre>
<p>The pipeline fits imputation and scaling only on each training fold, which prevents that form of preprocessing leakage. It cannot detect a feature that was recorded after the customer left. You must check that yourself.</p>
<p>Also compare against the rule your business would otherwise use, such as contacting customers with the most support tickets. Beating a no-skill baseline alone proves little.</p>
<h2>Troubleshooting: good offline, bad in production</h2>
<p>Google&#8217;s rules suggest breaking skew into separate gaps, so you can locate the cause. Work through them in order:</p>
<ol>
<li><strong>Training versus holdout:</strong> some gap is expected. A large one suggests overfitting.</li>
<li><strong>Holdout versus next-day data:</strong> a gap can reveal time-sensitive features or changing behavior.</li>
<li><strong>Next-day data versus live results:</strong> a gap on the same examples usually points to an engineering bug.</li>
</ol>
<p>If all three look healthy but the business metric does not move, examine the action. Are users seeing the output in time? Do they trust it? Did the intervention itself work? A controlled experiment, where practical, helps separate these.</p>
<h2>Best practices for a strategy that holds up</h2>
<ul>
<li><strong>Start from a decision.</strong> Define success and a stop condition before modeling.</li>
<li><strong>Test feasibility early.</strong> Involve technical experts before promising outcomes.</li>
<li><strong>Commit to problems.</strong> RAND recommends dedicating each product team to a specific problem for at least a year.</li>
<li><strong>Fund data and deployment.</strong> Treat pipelines as products with owners.</li>
<li><strong>Ship an end-to-end version first.</strong> Test data ingestion and model export separately from the learning step.</li>
<li><strong>Know your freshness needs.</strong> Measure how quality changes as a model ages, then set the retraining schedule.</li>
<li><strong>Gate releases.</strong> Validate a model before it is exported to users.</li>
</ul>
<h3>Common mistakes</h3>
<ul>
<li>Counting prototypes or models built as progress.</li>
<li>Reporting accuracy on imbalanced data, where predicting the majority class can score highly.</li>
<li>Using a random split when the model must predict the future.</li>
<li>Retraining automatically without validating the new data and model.</li>
<li>Keeping a project alive because money has already been spent.</li>
</ul>
<h2>Exercise: run a 30-minute pre-mortem</h2>
<p>Pick one current or proposed project. Imagine it is a year from now and it has failed. With a business owner, an engineer and a data specialist, answer these in writing:</p>
<ol>
<li>What decision changes because of the prediction, and who makes it?</li>
<li>What is the baseline, and how much improvement justifies the cost?</li>
<li>Is every feature available at the moment of prediction?</li>
<li>How and when will you learn the true outcome?</li>
<li>Who is alerted when quality drops, and how do you roll back?</li>
<li>What evidence would make you stop?</li>
</ol>
<p>Mark each answer as known, assumed or unknown. Turn the riskiest unknown into your next task, with a name and date.</p>
<h2>FAQ</h2>
<h3>What is the most common reason ML projects fail?</h3>
<p>There is no definitive universal ranking. RAND&#8217;s interviews highlight misunderstanding or miscommunicating the problem as a leading cause, alongside data, technology focus, infrastructure and feasibility.</p>
<h3>Does more data fix a failing model?</h3>
<p>Only if the data is relevant, correctly labeled and available at prediction time. More of the wrong data can reinforce the error.</p>
<h3>Do small teams need an MLOps platform?</h3>
<p>Not necessarily. Version your code, data and models, validate before release, monitor results and keep a rollback path. Add automation when manual work becomes slow or risky.</p>
<h3>When should you cancel an ML project?</h3>
<p>Cancel or rescope when it cannot beat a sensible baseline, the needed data cannot be obtained, nobody will act on the output, or running costs exceed the likely benefit. Agreeing on these conditions early makes the decision easier.</p>
<h2>Related reading</h2>
<ul>
<li><a href="https://www.aiuniverse.xyz/why-machine-learning-should-matter-to-you/">Why Machine Learning Should Matter to You?</a></li>
<li><a href="https://www.aiuniverse.xyz/why-machine-learning-not-artificial-intelligence-is-the-right-way-forward-for-data-science/">Why machine learning, not artificial intelligence, is the right way forward for data science</a></li>
<li><a href="https://www.aiuniverse.xyz/what-is-the-role-of-machine-learning-in-networking/">What is the role of machine learning in networking?</a></li>
</ul>
<p>The post <a href="https://www.aiuniverse.xyz/why-machine-learning-strategies-fail/">Why machine learning strategies fail</a> appeared first on <a href="https://www.aiuniverse.xyz">Artificial Intelligence</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.aiuniverse.xyz/why-machine-learning-strategies-fail/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>What are machine learning and Artificial Intelligence?</title>
		<link>https://www.aiuniverse.xyz/what-are-machine-learning-and-artificial-intelligence/</link>
					<comments>https://www.aiuniverse.xyz/what-are-machine-learning-and-artificial-intelligence/#respond</comments>
		
		<dc:creator><![CDATA[aiuniverse]]></dc:creator>
		<pubDate>Sat, 28 Nov 2026 04:52:38 +0000</pubDate>
				<category><![CDATA[Machine Learning]]></category>
		<category><![CDATA[Artificial Intelligence]]></category>
		<category><![CDATA[Google]]></category>
		<category><![CDATA[Machine learning]]></category>
		<category><![CDATA[Technology]]></category>
		<guid isPermaLink="false">http://www.aiuniverse.xyz/?p=4604</guid>

					<description><![CDATA[<p><img width="300" height="158" src="https://www.aiuniverse.xyz/wp-content/uploads/2026/11/featured-4604-300x158.png" class="attachment-medium size-medium wp-post-image" alt="What are machine learning and Artificial Intelligence?" decoding="async" loading="lazy" srcset="https://www.aiuniverse.xyz/wp-content/uploads/2026/11/featured-4604-300x158.png 300w, https://www.aiuniverse.xyz/wp-content/uploads/2026/11/featured-4604-1024x538.png 1024w, https://www.aiuniverse.xyz/wp-content/uploads/2026/11/featured-4604-768x403.png 768w, https://www.aiuniverse.xyz/wp-content/uploads/2026/11/featured-4604.png 1200w" sizes="auto, (max-width: 300px) 100vw, 300px" /></p>
<p>Last updated: 28 November 2026 Artificial intelligence (AI) is the broad field of building machine-based systems that infer from their inputs how to produce outputs such as predictions, content, recommendations or decisions. Machine learning (ML) is a major way of building those systems: software called a model learns patterns from data instead of following only <a class="read-more-link" href="https://www.aiuniverse.xyz/what-are-machine-learning-and-artificial-intelligence/">Read More</a></p>
<p>The post <a href="https://www.aiuniverse.xyz/what-are-machine-learning-and-artificial-intelligence/">What are machine learning and Artificial Intelligence?</a> appeared first on <a href="https://www.aiuniverse.xyz">Artificial Intelligence</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p><img width="300" height="158" src="https://www.aiuniverse.xyz/wp-content/uploads/2026/11/featured-4604-300x158.png" class="attachment-medium size-medium wp-post-image" alt="What are machine learning and Artificial Intelligence?" decoding="async" loading="lazy" srcset="https://www.aiuniverse.xyz/wp-content/uploads/2026/11/featured-4604-300x158.png 300w, https://www.aiuniverse.xyz/wp-content/uploads/2026/11/featured-4604-1024x538.png 1024w, https://www.aiuniverse.xyz/wp-content/uploads/2026/11/featured-4604-768x403.png 768w, https://www.aiuniverse.xyz/wp-content/uploads/2026/11/featured-4604.png 1200w" sizes="auto, (max-width: 300px) 100vw, 300px" /></p><p><em>Last updated: 28 November 2026</em></p>
<p><strong>Artificial intelligence (AI)</strong> is the broad field of building machine-based systems that infer from their inputs how to produce outputs such as predictions, content, recommendations or decisions. <strong>Machine learning (ML)</strong> is a major way of building those systems: software called a model learns patterns from data instead of following only rules that people wrote.</p>
<p>So machine learning and artificial intelligence are related but not identical. In the usual picture, ML sits inside AI. All machine learning counts as an AI technique, but some AI uses other methods, such as logic and encoded knowledge.</p>
<h2>What is artificial intelligence?</h2>
<p>There is no single definition that everyone uses. A widely cited one comes from the OECD, which revised its wording in late 2023. In plain terms, an AI system is machine-based, works toward explicit or implicit objectives, and infers from its input how to generate outputs that can influence physical or virtual environments.</p>
<p>The OECD also notes that AI systems differ in how autonomous they are and how much they adapt after deployment. A system does not need to act on its own or keep learning to fit the idea.</p>
<p>The European Union&#8217;s AI Act uses a closely similar definition. Its explanatory text names two families of techniques that enable inference:</p>
<ul>
<li><strong>Machine learning:</strong> the system learns from data how to achieve certain objectives.</li>
<li><strong>Logic- and knowledge-based approaches:</strong> the system draws conclusions from encoded knowledge or a symbolic description of the task.</li>
</ul>
<p>The same text excludes software that only executes rules defined by people. A fixed formula in a spreadsheet may be useful automation, but that alone does not make it AI under this law. If you have a compliance question, read the official text and guidance rather than relying on a summary.</p>
<h2>What is machine learning?</h2>
<p>Google&#8217;s introductory ML material describes machine learning as training a model to make useful predictions or generate content from data. The key shift is where the behaviour comes from.</p>
<p>Take a hypothetical spam filter. With hand-written rules, a developer might block every message containing &#8220;free prize&#8221;. Spammers change the wording, and the developer adds more rules. With ML, you give a training algorithm many messages already marked &#8220;spam&#8221; or &#8220;not spam&#8221;. The model works out which patterns tend to separate the two.</p>
<h3>The basic workflow</h3>
<ol>
<li><strong>Define the question.</strong> Decide what the model should predict and how the answer will be used.</li>
<li><strong>Collect data.</strong> Examples should resemble what the model will see in real use.</li>
<li><strong>Split the data.</strong> Keep some examples aside for testing.</li>
<li><strong>Train.</strong> An algorithm adjusts the model to reduce its errors on the training data.</li>
<li><strong>Evaluate.</strong> Measure performance on data the model did not learn from.</li>
<li><strong>Deploy and monitor.</strong> Use the model on new inputs, known as inference, and check that it stays reliable.</li>
</ol>
<p>The inputs a model uses are called features. In supervised learning, the correct answer attached to an example is called the label. For a house price model, size and location could be features, and the sale price the label.</p>
<h2>How AI, ML, deep learning and generative AI fit together</h2>
<p>These terms are often used as if they meant the same thing. The diagram shows the usual relationship.</p>
<figure class="wp-block-image size-full"><img decoding="async" src="https://www.aiuniverse.xyz/wp-content/uploads/2026/11/diagram-4604.png" alt="Artificial intelligence branches into machine learning and logic- or knowledge-based approaches. Machine learning includes deep learning, which is used to build large language models, a form of generative AI." /><figcaption>How the main terms relate: each arrow points from a broader area to something within it or built with it.</figcaption></figure>
<p><strong>Neural networks</strong> are a family of model designs that can find nonlinear patterns in data. <strong>Deep learning</strong> refers to neural networks with multiple layers between input and output.</p>
<p><strong>Generative AI</strong> creates new content, such as text, images, video or code, in response to input. <strong>Large language models (LLMs)</strong> are neural networks that predict tokens, which can be words, parts of words or characters. When producing text, an LLM assigns probabilities to possible continuations. Most LLMs use an architecture called the transformer.</p>
<p>Fluent output is not proof of accuracy. LLMs can produce confident mistakes, often called hallucinations, and they can reflect bias.</p>
<h2>Types of machine learning</h2>
<table>
<thead>
<tr>
<th>Type</th>
<th>What it learns from</th>
<th>Typical output</th>
<th>Example use</th>
</tr>
</thead>
<tbody>
<tr>
<td>Supervised learning</td>
<td>Examples with correct answers</td>
<td>A number (regression) or category (classification)</td>
<td>Estimating a price; flagging spam</td>
</tr>
<tr>
<td>Unsupervised learning</td>
<td>Data without predefined answers</td>
<td>Groups or other structure</td>
<td>Clustering similar customers</td>
</tr>
<tr>
<td>Reinforcement learning</td>
<td>Rewards and penalties from actions in an environment</td>
<td>A policy: a strategy for choosing actions</td>
<td>Game playing; robot control</td>
</tr>
<tr>
<td>Generative AI</td>
<td>Patterns in large collections of content</td>
<td>New text, images, code and more</td>
<td>Drafting a reply; generating an image</td>
</tr>
</tbody>
</table>
<p>The categories overlap. Generative describes what a model produces, and generative models often combine methods: initial training without hand-labelled answers, followed by supervised or reinforcement learning for specific tasks.</p>
<h2>AI vs machine learning vs traditional software</h2>
<table>
<thead>
<tr>
<th>Question</th>
<th>Rule-based software</th>
<th>Artificial intelligence</th>
<th>Machine learning</th>
</tr>
</thead>
<tbody>
<tr>
<td>What is it?</td>
<td>Explicit instructions</td>
<td>A broad field and class of systems</td>
<td>A set of methods within AI</td>
</tr>
<tr>
<td>Where does behaviour come from?</td>
<td>Rules written by people</td>
<td>Learned patterns, encoded knowledge or both</td>
<td>Patterns learned from data</td>
</tr>
<tr>
<td>Good fit</td>
<td>Clear, stable logic</td>
<td>Tasks that need inference</td>
<td>Patterns that are hard to write as rules, with relevant data available</td>
</tr>
<tr>
<td>Main risk</td>
<td>Missing or wrong rules</td>
<td>Wrong or unsuitable outputs</td>
<td>Poor data and weak performance on new cases</td>
</tr>
<tr>
<td>Illustration</td>
<td>Apply a fixed tax rate</td>
<td>Plan a route using encoded knowledge</td>
<td>Predict delivery time from past trips</td>
</tr>
</tbody>
</table>
<h2>Hands-on exercise: train a small classifier</h2>
<p>This example uses the Iris dataset included with scikit-learn, a Python ML library. It has 150 flower samples, four numeric features and three species. The code has not been tested here.</p>
<pre><code>pip install scikit-learn</code></pre>
<pre><code>from sklearn.datasets import load_iris
from sklearn.dummy import DummyClassifier
from sklearn.linear_model import LogisticRegression
from sklearn.model_selection import train_test_split
from sklearn.pipeline import make_pipeline
from sklearn.preprocessing import StandardScaler

X, y = load_iris(return_X_y=True)

# Hold back 25% of the examples for testing
X_train, X_test, y_train, y_test = train_test_split(
    X, y, test_size=0.25, random_state=0, stratify=y
)

# Baseline: ignores the features
baseline = DummyClassifier(strategy="most_frequent")
baseline.fit(X_train, y_train)

# Scale the features, then fit a classifier
model = make_pipeline(StandardScaler(), LogisticRegression())
model.fit(X_train, y_train)

print("Baseline accuracy:", baseline.score(X_test, y_test))
print("Model accuracy:", model.score(X_test, y_test))
print("First predictions:", model.predict(X_test&#91;:5]))
print("Actual labels:    ", y_test&#91;:5])</code></pre>
<p>Then try the following:</p>
<ol>
<li>Compare the two accuracy scores. The model should clearly beat the baseline to show it learned something useful.</li>
<li>Change <code>random_state</code> to a few different values. Notice how much a score on a small test set can move.</li>
<li>Use only the first two features by replacing <code>X</code> with <code>X&#91;:, :2]</code> before the split. See what changes.</li>
<li>Print <code>model.score(X_train, y_train)</code> and compare it with the test score.</li>
</ol>
<h2>Common mistakes and how to fix them</h2>
<h3>Judging a model on its training data</h3>
<p><strong>Overfitting</strong> happens when a model matches its training data so closely that it predicts poorly on new data. A warning sign is training error that keeps improving while validation error gets worse. Use separate validation and test data, and consider a simpler model or more representative examples.</p>
<h3>Data leakage</h3>
<p>Leakage occurs when model building uses information that would not be available at prediction time. It can make results look far better than they are. Split the data before fitting any preprocessing, never fit on test data, and use a pipeline so the same steps are applied consistently.</p>
<h3>Trusting accuracy alone</h3>
<p>Consider a hypothetical set of 1,000 payments in which 10 are fraudulent. A model that always says &#8220;not fraud&#8221; is 99% accurate and catches nothing.</p>
<p>Now suppose another model flags 20 payments, including 8 real frauds. Its accuracy is 98.6%, slightly lower. Its <strong>recall</strong> is 80%, because it finds 8 of 10 frauds. Its <strong>precision</strong> is 40%, because 8 of 20 alerts are correct. Which errors cost more should guide your choice of metric.</p>
<h3>Using ML when a rule would do</h3>
<p>If the logic is known, stable and easy to write, ordinary code is usually easier to test and explain.</p>
<h2>Best practices for getting started</h2>
<ul>
<li>Start with a specific decision or task, not with a technology.</li>
<li>Build a simple baseline before trying complex models.</li>
<li>Check whether your data represents the people and situations affected.</li>
<li>Test performance across important subgroups, not only on average.</li>
<li>Protect personal and confidential data.</li>
<li>Keep human review where errors could cause serious harm.</li>
<li>Monitor after launch, because real-world data can change.</li>
</ul>
<p>For learning, a practical order is basic Python, simple statistics, supervised learning, evaluation, and then neural networks and LLMs.</p>
<h2>Frequently asked questions</h2>
<h3>Is machine learning the same as AI?</h3>
<p>No. AI is the broader category. Machine learning is one family of techniques used to build AI systems.</p>
<h3>Can there be AI without machine learning?</h3>
<p>Yes. Logic- and knowledge-based systems can infer conclusions without learning from data. Simple fixed-rule automation is a different matter and is excluded from the EU AI Act&#8217;s concept of an AI system.</p>
<h3>Is a chatbot AI or machine learning?</h3>
<p>An LLM-based chatbot is both. It is an AI system built around a model produced by machine learning. A scripted menu bot that follows only fixed paths may involve neither.</p>
<h3>Do AI systems keep learning while you use them?</h3>
<p>Not necessarily. Some adapt after deployment, while others use a model that stays unchanged until its developers update it.</p>
<h3>Do I need a lot of math to begin?</h3>
<p>You can run first experiments with basic programming. Statistics, linear algebra and calculus become more important as you explain, debug and design models.</p>
<h2>The short version</h2>
<p>AI describes systems that infer how to turn inputs into useful outputs. Machine learning builds that ability from data. Deep learning is a branch of ML, and today&#8217;s LLMs are built with it. Whatever the label, ask what the system was built from, how it was tested and what happens when it is wrong.</p>
<h2>Related reading</h2>
<ul>
<li><a href="https://www.aiuniverse.xyz/why-machine-learning-not-artificial-intelligence-is-the-right-way-forward-for-data-science/">Why machine learning, not artificial intelligence, is the right way forward for data science</a></li>
<li><a href="https://www.aiuniverse.xyz/how-to-avoid-the-ethical-pitfalls-of-artificial-intelligence-and-machine-learning/">How to avoid the ethical pitfalls of artificial intelligence and machine learning</a></li>
<li><a href="https://www.aiuniverse.xyz/why-we-should-study-about-biases-in-artificial-intelligence/">Why we should study about biases in artificial intelligence</a></li>
</ul>
<p>The post <a href="https://www.aiuniverse.xyz/what-are-machine-learning-and-artificial-intelligence/">What are machine learning and Artificial Intelligence?</a> appeared first on <a href="https://www.aiuniverse.xyz">Artificial Intelligence</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.aiuniverse.xyz/what-are-machine-learning-and-artificial-intelligence/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>What is the role of machine learning in networking?</title>
		<link>https://www.aiuniverse.xyz/what-is-the-role-of-machine-learning-in-networking/</link>
					<comments>https://www.aiuniverse.xyz/what-is-the-role-of-machine-learning-in-networking/#comments</comments>
		
		<dc:creator><![CDATA[aiuniverse]]></dc:creator>
		<pubDate>Sat, 28 Nov 2026 03:54:46 +0000</pubDate>
				<category><![CDATA[Machine Learning]]></category>
		<category><![CDATA[Analytics]]></category>
		<category><![CDATA[Artificial Intelligence]]></category>
		<category><![CDATA[Machine learning]]></category>
		<category><![CDATA[networking]]></category>
		<category><![CDATA[Security]]></category>
		<guid isPermaLink="false">http://www.aiuniverse.xyz/?p=3292</guid>

					<description><![CDATA[<p><img width="300" height="158" src="https://www.aiuniverse.xyz/wp-content/uploads/2026/11/featured-3292-300x158.png" class="attachment-medium size-medium wp-post-image" alt="What is the role of machine learning in networking?" decoding="async" loading="lazy" srcset="https://www.aiuniverse.xyz/wp-content/uploads/2026/11/featured-3292-300x158.png 300w, https://www.aiuniverse.xyz/wp-content/uploads/2026/11/featured-3292-1024x538.png 1024w, https://www.aiuniverse.xyz/wp-content/uploads/2026/11/featured-3292-768x403.png 768w, https://www.aiuniverse.xyz/wp-content/uploads/2026/11/featured-3292.png 1200w" sizes="auto, (max-width: 300px) 100vw, 300px" /></p>
<p>Last updated: 28 November 2026 The role of machine learning in networking is to turn network data into predictions and decisions that are hard to write as fixed rules. Models can forecast traffic, label flows, flag unusual behavior, help locate faults, and tune how resources are used. It does not replace routing protocols, firewalls, or <a class="read-more-link" href="https://www.aiuniverse.xyz/what-is-the-role-of-machine-learning-in-networking/">Read More</a></p>
<p>The post <a href="https://www.aiuniverse.xyz/what-is-the-role-of-machine-learning-in-networking/">What is the role of machine learning in networking?</a> appeared first on <a href="https://www.aiuniverse.xyz">Artificial Intelligence</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p><img width="300" height="158" src="https://www.aiuniverse.xyz/wp-content/uploads/2026/11/featured-3292-300x158.png" class="attachment-medium size-medium wp-post-image" alt="What is the role of machine learning in networking?" decoding="async" loading="lazy" srcset="https://www.aiuniverse.xyz/wp-content/uploads/2026/11/featured-3292-300x158.png 300w, https://www.aiuniverse.xyz/wp-content/uploads/2026/11/featured-3292-1024x538.png 1024w, https://www.aiuniverse.xyz/wp-content/uploads/2026/11/featured-3292-768x403.png 768w, https://www.aiuniverse.xyz/wp-content/uploads/2026/11/featured-3292.png 1200w" sizes="auto, (max-width: 300px) 100vw, 300px" /></p><p><em>Last updated: 28 November 2026</em></p>
<p>The role of machine learning in networking is to turn network data into predictions and decisions that are hard to write as fixed rules. Models can forecast traffic, label flows, flag unusual behavior, help locate faults, and tune how resources are used.</p>
<p>It does not replace routing protocols, firewalls, or engineers. In most designs it sits beside them, supplying a better estimate that a rule, controller, or person then acts on.</p>
<h2>How machine learning in networking works</h2>
<p>A traditional network tool follows logic someone wrote, such as &#8220;alert if link utilization exceeds 90%.&#8221; A machine learning system learns a pattern from data, such as what utilization normally looks like on a particular link at a particular hour.</p>
<p>The work usually runs as a loop:</p>
<ol>
<li><strong>Define the decision.</strong> State what will change because of the model&#8217;s output.</li>
<li><strong>Collect data.</strong> Typical inputs are interface counters, flow records, packet headers, logs, latency probes, and radio measurements.</li>
<li><strong>Build features.</strong> Examples include bytes per flow, packet inter-arrival times, retransmission rates, and time of day.</li>
<li><strong>Train and validate.</strong> Test the model on data it has not seen, ideally from a later period or another site.</li>
<li><strong>Run inference.</strong> Apply the model to live data.</li>
<li><strong>Act with limits.</strong> Raise a ticket, recommend a change, or apply one within approved bounds.</li>
<li><strong>Monitor.</strong> Check whether predictions still match reality, and retrain or roll back when they do not.</li>
</ol>
<figure class="wp-block-image size-full"><img decoding="async" src="https://www.aiuniverse.xyz/wp-content/uploads/2026/11/diagram-3292.png" alt="Network devices send telemetry to data preparation, which feeds model training and live inference. Predictions pass through guardrails before actions reach the network, and monitoring triggers retraining." /><figcaption>The machine learning loop in a network, with guardrails between predictions and changes</figcaption></figure>
<h3>The main learning approaches</h3>
<ul>
<li><strong>Supervised learning</strong> uses labeled examples, such as flows tagged by application or incidents tagged by root cause.</li>
<li><strong>Unsupervised learning</strong> finds structure without labels, for instance grouping similar hosts or spotting outliers.</li>
<li><strong>Reinforcement learning</strong> learns actions from reward signals, such as high throughput with low delay.</li>
<li><strong>Federated learning</strong> trains across several data holders while the raw data stays with each of them.</li>
</ul>
<h2>Where machine learning is used in networks</h2>
<p>A broad 2018 survey by Boutaba and colleagues, published in the Journal of Internet Services and Applications, covers traffic prediction, classification, routing, congestion control, resource and fault management, quality of service and experience, and security. Those categories remain a useful map.</p>
<table>
<thead>
<tr>
<th>Use case</th>
<th>Typical approach</th>
<th>Output</th>
<th>Main risk</th>
<th>Simpler baseline</th>
</tr>
</thead>
<tbody>
<tr>
<td>Traffic forecasting</td>
<td>Regression, time-series models</td>
<td>Expected load</td>
<td>Unusual events break patterns</td>
<td>Same hour last week</td>
</tr>
<tr>
<td>Traffic classification</td>
<td>Supervised learning</td>
<td>Application or class label</td>
<td>Applications change behavior</td>
<td>Port and signature rules</td>
</tr>
<tr>
<td>Anomaly and intrusion detection</td>
<td>Unsupervised or supervised</td>
<td>Alert or score</td>
<td>False alarms</td>
<td>Thresholds and signatures</td>
</tr>
<tr>
<td>Fault management</td>
<td>Classification, correlation</td>
<td>Likely cause or failure warning</td>
<td>Few labeled failures</td>
<td>Dependency rules</td>
</tr>
<tr>
<td>Routing and traffic engineering</td>
<td>Prediction, reinforcement learning</td>
<td>Path or weight choice</td>
<td>Instability</td>
<td>Shortest path, optimization</td>
</tr>
<tr>
<td>Congestion control and streaming</td>
<td>Reinforcement learning, learned predictors</td>
<td>Sending rate or video bitrate</td>
<td>Poor transfer to real paths</td>
<td>Established heuristics</td>
</tr>
</tbody>
</table>
<h3>Traffic prediction and capacity planning</h3>
<p>Forecasts help teams decide when to add capacity, when to schedule maintenance, and how to shift load. Hypothetically, if a model expects a backup job and a video peak to collide on one link, an operator could move the backup window.</p>
<h3>Traffic classification</h3>
<p>Classification identifies what kind of traffic a flow carries so the network can prioritize or inspect it. Where payloads are encrypted, models can work from metadata such as packet sizes and timing. Treat those labels as probabilities, not facts.</p>
<h3>Security and anomaly detection</h3>
<p>An anomaly detector learns a profile of normal activity and scores departures from it. This can surface behavior no signature describes, but unusual does not mean malicious.</p>
<p>Robin Sommer and Vern Paxson argued in a well-known 2010 paper that intrusion detection is unusually hard for machine learning. Errors are costly, traffic varies widely, and finding previously unseen activity clashes with how many learning methods work best.</p>
<h3>Faults, routing, and congestion</h3>
<p>For troubleshooting, models can group related alarms and rank probable causes. For control, they can estimate delay or demand that a routing optimizer then uses.</p>
<p>Reinforcement learning has also been studied for congestion control. Here, fairness between flows, safety, and behavior outside the training conditions need careful testing.</p>
<h2>Machine learning in 5G and open radio networks</h2>
<p>Mobile networks show how this function can be built into an architecture. In the 5G core, the Network Data Analytics Function (NWDAF), specified in 3GPP TS 23.288, collects data and provides analytics and predictions to other functions. Examples include network function load and device mobility.</p>
<p>It began with a single analytics use case in Release 15, and later releases expanded it considerably. Release 17 separated model training (the Model Training Logical Function) from the production of analytics (the Analytics Logical Function). Release 18 added horizontal federated learning.</p>
<p>In O-RAN designs, a RAN Intelligent Controller hosts applications that optimize the radio network. The near-real-time controller runs xApps for loops of roughly 10 milliseconds to 1 second. The non-real-time controller runs rApps for slower tasks, above about 1 second.</p>
<h3>Where the model runs</h3>
<p>Placement depends on how fast a decision is needed. Central platforms suit forecasting and planning. Edge systems suit quicker local decisions. Researchers have also run compact models, such as random forests, inside programmable switches to classify traffic at line rate, although switch memory and operations are tightly limited.</p>
<h3>What about LLMs and AI agents?</h3>
<p>Interest now extends to language models and agents that interpret operator intent, summarize incidents, or plan changes. IETF-related drafts on agentic network management exist, but an Internet-Draft is work in progress, not a standard.</p>
<p>The Internet Research Task Force has a broader document on research challenges in combining AI and network management. As of late November 2026 it was in the RFC Editor stage as an informational IRTF document, not an IETF standard. It highlights issues including scale, uncertainty, real-time limits, data quality, integration with existing practice, and compute cost.</p>
<h2>Benefits and limits</h2>
<p>The potential benefits are earlier warnings, fewer hand-tuned thresholds, better use of capacity, and faster triage. None is automatic.</p>
<p>A useful caution comes from a randomized video-streaming study presented at NSDI 2020. Across about 38.6 years of video streamed to 63,508 users, sophisticated and learned controllers found it difficult to beat a simple buffer-based scheme.</p>
<p>The authors&#8217; own successful design trained on data from the real deployment. It used machine learning for a checkable prediction (how long a video chunk would take to arrive) and left control to a classical method.</p>
<h2>Best practices</h2>
<ul>
<li>Start with one decision and a measurable outcome, such as time to detect a link fault.</li>
<li>Compare every model with a simple baseline.</li>
<li>Split data by time, and test on sites or devices held out from training.</li>
<li>Keep telemetry consistent: synchronized clocks, known units, and recorded sampling rates.</li>
<li>Begin in observe-only mode, then recommendations, then limited automation.</li>
<li>Put hard guardrails outside the model, including rate limits, approval steps, and rollback.</li>
<li>Collect only the data you need, and control who can see it.</li>
</ul>
<h2>Common mistakes and troubleshooting</h2>
<ul>
<li><strong>Great test scores, poor production results:</strong> Look for data leakage, such as packets from the same flow in both training and test sets. Also check for shortcuts like a lab IP address that identifies the attack class.</li>
<li><strong>Too many alerts:</strong> Check the base rate. Suppose, hypothetically, there are 1,000,000 flows a day and 100 are malicious. A detector that catches 99% with a 0.1% false positive rate raises 99 true alerts and about 1,000 false ones. Only about 9% of alerts are real.</li>
<li><strong>Accuracy slowly falls:</strong> New applications, topology changes, or firmware updates may have shifted the data. Monitor input distributions and retrain deliberately.</li>
<li><strong>Anomalies learned as normal:</strong> Review training windows for outages or attacks.</li>
<li><strong>Control loops oscillate:</strong> Slow the action rate, add hysteresis, and check whether several automated systems are reacting to each other.</li>
<li><strong>Operators ignore results:</strong> Show the affected device, the unusual measurements, and a suggested next check.</li>
</ul>
<h2>Hands-on exercise: detect unusual link behavior</h2>
<p>This exercise uses synthetic data and scikit-learn&#8217;s Isolation Forest. In the normal data, packet rate rises and falls with throughput, while the error percentage varies independently. Install the libraries with <code>pip install numpy scikit-learn</code>. The commands and code have not been tested here.</p>
<pre><code>import numpy as np
from sklearn.ensemble import IsolationForest

rng = np.random.default_rng(42)

def normal_samples(n):
    # columns: Mbps, thousand packets/s, error percentage
    mbps = rng.normal(400, 40, n)
    kpps = mbps * 0.15 + rng.normal(0, 1.5, n)  # tied to Mbps
    errors = rng.normal(0.10, 0.02, n)
    return np.column_stack(&#91;mbps, kpps, errors])

train = normal_samples(2000)
test = normal_samples(500)
odd = np.array(&#91;
    &#91;950, 142.5, 0.10],  # traffic surge
    &#91;400, 60, 2.50],     # error spike
    &#91;20, 3, 0.10],       # traffic collapse
    &#91;460, 52, 0.10],     # broken Mbps/packet relationship
])

model = IsolationForest(contamination=0.01, random_state=42)
model.fit(train)

print("Model false alarms:", (model.predict(test) == -1).sum())
print("Model on odd rows:", model.predict(odd))

mean, std = train.mean(axis=0), train.std(axis=0)

def baseline(x):
    return (np.abs((x - mean) / std) > 3.5).any(axis=1)

print("Baseline false alarms:", baseline(test).sum())
print("Baseline on odd rows:", baseline(odd))
</code></pre>
<p>For the model, <code>-1</code> means outlier and <code>1</code> means inlier. The <code>contamination</code> value sets the decision threshold according to the share of outliers you expect.</p>
<p>Look closely at the last row. Its values are each within the normal range of their column, so the per-column baseline will not flag it. Yet traffic at 460 Mbps would normally come with about 69 thousand packets per second, not 52.</p>
<p>Isolation Forest may or may not flag this row. It splits on one feature at a time, so it can miss an unusual point that cuts diagonally across a relationship between features. Check the output instead of assuming the model wins.</p>
<h3>Add a feature that exposes the relationship</h3>
<p>Average packet size can express the link between the first two columns directly. Append this code to the script, then compare the results.</p>
<pre><code>def add_ratio(x):
    bytes_per_packet = x&#91;:, 0] * 125 / x&#91;:, 1]
    return np.column_stack(&#91;x, bytes_per_packet])

train_r, test_r, odd_r = map(add_ratio, (train, test, odd))

model_r = IsolationForest(contamination=0.01, random_state=42)
model_r.fit(train_r)
print("Ratio model false alarms:", (model_r.predict(test_r) == -1).sum())
print("Ratio model on odd rows:", model_r.predict(odd_r))

mean, std = train_r.mean(axis=0), train_r.std(axis=0)
print("Ratio baseline false alarms:", baseline(test_r).sum())
print("Ratio baseline on odd rows:", baseline(odd_r))
</code></pre>
<p>Normal rows average roughly 830 bytes per packet, while the last odd row is about 1,100. A simple threshold on this new feature can therefore catch what the original baseline cannot. Good features sometimes matter more than a more complex model.</p>
<p>Now change contamination to 0.001 and 0.05. You can also add a daily cycle to <code>mbps</code> before deriving <code>kpps</code>, so both follow it. Compare false alarms and detections, then decide whether the extra complexity is justified.</p>
<h2>FAQ</h2>
<h3>Is machine learning necessary for network management?</h3>
<p>No. Rules, thresholds, and mathematical optimization handle many tasks well. Use machine learning when patterns are too variable or complex for them and you have suitable data.</p>
<h3>Can machine learning replace network engineers?</h3>
<p>It can automate parts of monitoring and triage. People still set objectives, design the network, judge risk, and handle situations the model has not seen.</p>
<h3>What skills should I learn first?</h3>
<p>Start with networking fundamentals, then Python, basic statistics, and model evaluation. Domain knowledge helps you recognize a misleading feature or result.</p>
<h3>How is it different from network automation?</h3>
<p>Automation carries out tasks. Machine learning estimates or decides from data. A script can automate a change with no model, and a model can give advice without automating anything.</p>
<h2>Bottom line</h2>
<p>Machine learning gives networks a way to predict, classify, and detect from data, and sometimes to control. Its value depends on good telemetry, honest comparison with simpler methods, and safe limits on what it can change. Start narrow, measure the result, and expand automation only as evidence supports it.</p>
<h2>Related reading</h2>
<ul>
<li><a href="https://www.aiuniverse.xyz/why-machine-learning-should-matter-to-you/">Why Machine Learning Should Matter to You?</a></li>
<li><a href="https://www.aiuniverse.xyz/why-machine-learning-not-artificial-intelligence-is-the-right-way-forward-for-data-science/">Why machine learning, not artificial intelligence, is the right way forward for data science</a></li>
<li><a href="https://www.aiuniverse.xyz/what-is-machine-learning-software-derived-from-data/">What is machine learning? Software derived from data</a></li>
</ul>
<p>The post <a href="https://www.aiuniverse.xyz/what-is-the-role-of-machine-learning-in-networking/">What is the role of machine learning in networking?</a> appeared first on <a href="https://www.aiuniverse.xyz">Artificial Intelligence</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.aiuniverse.xyz/what-is-the-role-of-machine-learning-in-networking/feed/</wfw:commentRss>
			<slash:comments>4</slash:comments>
		
		
			</item>
		<item>
		<title>What Is Deep Learning AI? A Simple Guide With 8 Practical Examples</title>
		<link>https://www.aiuniverse.xyz/what-is-deep-learning-ai-a-simple-guide-with-8-practical-examples/</link>
					<comments>https://www.aiuniverse.xyz/what-is-deep-learning-ai-a-simple-guide-with-8-practical-examples/#comments</comments>
		
		<dc:creator><![CDATA[aiuniverse]]></dc:creator>
		<pubDate>Sat, 28 Nov 2026 03:49:35 +0000</pubDate>
				<category><![CDATA[Artificial Intelligence]]></category>
		<category><![CDATA[Deep Learning]]></category>
		<category><![CDATA[Machine Learning]]></category>
		<category><![CDATA[deep learning]]></category>
		<category><![CDATA[Human Intelligence]]></category>
		<category><![CDATA[Machine learning]]></category>
		<category><![CDATA[Technology]]></category>
		<guid isPermaLink="false">http://www.aiuniverse.xyz/?p=2947</guid>

					<description><![CDATA[<p><img width="300" height="158" src="https://www.aiuniverse.xyz/wp-content/uploads/2026/11/featured-2947-300x158.png" class="attachment-medium size-medium wp-post-image" alt="What Is Deep Learning AI? A Simple Guide With 8 Practical Examples" decoding="async" loading="lazy" srcset="https://www.aiuniverse.xyz/wp-content/uploads/2026/11/featured-2947-300x158.png 300w, https://www.aiuniverse.xyz/wp-content/uploads/2026/11/featured-2947-1024x538.png 1024w, https://www.aiuniverse.xyz/wp-content/uploads/2026/11/featured-2947-768x403.png 768w, https://www.aiuniverse.xyz/wp-content/uploads/2026/11/featured-2947.png 1200w" sizes="auto, (max-width: 300px) 100vw, 300px" /></p>
<p>Last updated: 28 November 2026 What is deep learning AI? It is a branch of machine learning that uses neural networks with many layers to learn patterns directly from data. Instead of a programmer writing rules such as &#8220;a cat has pointed ears,&#8221; the system sees many examples and adjusts itself until its predictions improve. <a class="read-more-link" href="https://www.aiuniverse.xyz/what-is-deep-learning-ai-a-simple-guide-with-8-practical-examples/">Read More</a></p>
<p>The post <a href="https://www.aiuniverse.xyz/what-is-deep-learning-ai-a-simple-guide-with-8-practical-examples/">What Is Deep Learning AI? A Simple Guide With 8 Practical Examples</a> appeared first on <a href="https://www.aiuniverse.xyz">Artificial Intelligence</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p><img width="300" height="158" src="https://www.aiuniverse.xyz/wp-content/uploads/2026/11/featured-2947-300x158.png" class="attachment-medium size-medium wp-post-image" alt="What Is Deep Learning AI? A Simple Guide With 8 Practical Examples" decoding="async" loading="lazy" srcset="https://www.aiuniverse.xyz/wp-content/uploads/2026/11/featured-2947-300x158.png 300w, https://www.aiuniverse.xyz/wp-content/uploads/2026/11/featured-2947-1024x538.png 1024w, https://www.aiuniverse.xyz/wp-content/uploads/2026/11/featured-2947-768x403.png 768w, https://www.aiuniverse.xyz/wp-content/uploads/2026/11/featured-2947.png 1200w" sizes="auto, (max-width: 300px) 100vw, 300px" /></p><p><em>Last updated: 28 November 2026</em></p>
<p><strong>What is deep learning AI?</strong> It is a branch of machine learning that uses neural networks with many layers to learn patterns directly from data. Instead of a programmer writing rules such as &#8220;a cat has pointed ears,&#8221; the system sees many examples and adjusts itself until its predictions improve.</p>
<p>The word &#8220;deep&#8221; refers to the stack of layers between the input and the output. Each layer transforms what it receives, so later layers can work with richer descriptions of the data than earlier ones.</p>
<h2>Deep Learning, Machine Learning and AI</h2>
<p>These terms are nested. Artificial intelligence is the broad goal of getting machines to do tasks that seem to need intelligence. Machine learning is one way to reach that goal, by learning from data. Deep learning is a family of machine learning methods built on multi-layer neural networks.</p>
<p>The key difference is who designs the <strong>features</strong>, meaning the measurements a model uses to decide. In many traditional projects, people choose them. In deep learning, the network learns useful representations from fairly raw inputs such as pixels, audio or text.</p>
<table>
<thead>
<tr>
<th>Aspect</th>
<th>Rule-based software</th>
<th>Traditional machine learning</th>
<th>Deep learning</th>
</tr>
</thead>
<tbody>
<tr>
<td>Logic comes from</td>
<td>Hand-written rules</td>
<td>Patterns learned from data</td>
<td>Patterns learned by layered networks</td>
</tr>
<tr>
<td>Features</td>
<td>Defined by programmers</td>
<td>Often designed by people</td>
<td>Largely learned by the model</td>
</tr>
<tr>
<td>Typical inputs</td>
<td>Clear, structured values</td>
<td>Tables and engineered signals</td>
<td>Images, audio, text, complex signals</td>
</tr>
<tr>
<td>Data and computing needs</td>
<td>Low data needs</td>
<td>Often moderate</td>
<td>Often high</td>
</tr>
<tr>
<td>Ease of explanation</td>
<td>Usually easy</td>
<td>Varies by model</td>
<td>Usually harder</td>
</tr>
<tr>
<td>Example task</td>
<td>Applying a tax rule</td>
<td>Predicting customer churn</td>
<td>Transcribing speech</td>
</tr>
</tbody>
</table>
<p>These are tendencies, not laws. A simpler model is often the better choice for a small spreadsheet-style dataset.</p>
<h2>How Deep Learning Works</h2>
<h3>Layers, weights and activations</h3>
<p>A neural network has an input layer, one or more hidden layers and an output layer. The units in hidden layers are often called neurons. The name is inspired by biology, but each one performs simple arithmetic.</p>
<p>A neuron multiplies each input by a <strong>weight</strong>, adds the results and adds a constant called a <strong>bias</strong>. It then passes the total through an <strong>activation function</strong>. A common one, ReLU, turns negative values into zero and leaves positive values unchanged.</p>
<p>Activation functions matter because they are nonlinear. Without them, stacking more layers would still only produce a linear calculation, which cannot capture complicated patterns.</p>
<p><figure class="wp-block-image size-full"><img decoding="async" src="https://www.aiuniverse.xyz/wp-content/uploads/2026/11/diagram-2947.png" alt="Flow diagram showing input data passing through hidden layers to a prediction, which is compared with the correct label to compute loss; backpropagation and an optimizer then update the hidden layers." /><figcaption>How a deep neural network learns: predictions flow forward, and error signals guide weight updates.</figcaption></figure>
</p>
<h3>The training loop</h3>
<p>Weights usually start with values that are not useful. Training improves them through a repeated cycle:</p>
<ol>
<li><strong>Forward pass:</strong> a batch of examples goes through the network, producing predictions.</li>
<li><strong>Loss:</strong> a function measures how wrong those predictions are.</li>
<li><strong>Backpropagation:</strong> the algorithm works backward to calculate how each weight and bias affected the error.</li>
<li><strong>Update:</strong> an optimizer, often a form of gradient descent, nudges those values to reduce the loss.</li>
</ol>
<p>Here is a hypothetical example. A network is shown a photo of a shoe and scores &#8220;bag&#8221; highest. The label says &#8220;sneaker,&#8221; so the loss is high. Training shifts the weights so that the sneaker score is likely to rise for similar images.</p>
<p>Once trained, the model is used on new inputs. This stage is called <strong>inference</strong>. In a typical deployment, using the model does not by itself change its weights.</p>
<h3>Common network types</h3>
<ul>
<li><strong>Feedforward networks:</strong> information moves from input to output. They are a good starting point for learning.</li>
<li><strong>Convolutional neural networks (CNNs):</strong> they scan for local patterns and are widely used for images.</li>
<li><strong>Recurrent neural networks (RNNs):</strong> they process sequences step by step.</li>
<li><strong>Transformers:</strong> they use attention to weigh how parts of an input relate. The 2017 paper &#8220;Attention Is All You Need&#8221; introduced the design, initially showing strong machine translation results.</li>
<li><strong>Diffusion models:</strong> a generative approach, widely associated with creating images.</li>
</ul>
<h2>8 Practical Examples of Deep Learning</h2>
<h3>1. Face unlock</h3>
<p>Apple&#8217;s Face ID is a documented case. Its camera system captures a depth map and an infrared image of the face. Apple says neural networks check for attention, match the face against the enrolled data and resist spoofing attempts such as fakes.</p>
<h3>2. Speech to text</h3>
<p>OpenAI&#8217;s Whisper, released in 2022, is a Transformer-based speech recognition model. OpenAI reported training it on 680,000 hours of multilingual audio data. It can transcribe speech and translate other languages into English. Newer speech models have appeared since, but it remains a clear illustration of the method.</p>
<h3>3. Translation and text assistants</h3>
<p>Transformers learn relationships between words or word pieces, which helps with translation. The same architectural family underlies many large language models used in chat assistants. These can draft and summarize text, but they can also state false things fluently, so check important output.</p>
<h3>4. Image generation</h3>
<p>A 2020 research paper on denoising diffusion probabilistic models showed that this method could generate high-quality images. In simple terms, training adds noise to images and teaches a network to reverse the process. Generation then starts from noise and removes it step by step.</p>
<h3>5. Video recommendations</h3>
<p>Google researchers described a deep learning recommender for YouTube in 2016. One network narrowed a huge video collection to a set of candidates. A second network ranked them. That paper describes the system of its time, not necessarily today&#8217;s.</p>
<h3>6. Medical image screening</h3>
<p>A 2016 study in JAMA evaluated a deep learning algorithm that detected referable diabetic retinopathy, an eye disease, in retinal photographs. It performed strongly on two validation datasets. The authors also said further research was needed to determine whether it was feasible in clinical practice.</p>
<p>The lesson applies widely: good test results are one step, and real-world medical use needs its own evidence and oversight.</p>
<h3>7. Protein structure prediction</h3>
<p>AlphaFold2, presented in 2020, predicts a protein&#8217;s three-dimensional structure from its amino acid sequence. Demis Hassabis and John Jumper shared half of the 2024 Nobel Prize in Chemistry for this work. The other half went to David Baker for computational protein design.</p>
<h3>8. Weather forecasting</h3>
<p>The European Centre for Medium-Range Weather Forecasts (ECMWF) made its AI forecasting system, AIFS, operational in February 2025. An ensemble version, which produces a range of scenarios, followed in July 2025.</p>
<p>ECMWF reported gains of up to 20% on some measures, such as surface temperature, over physics-based models. At the July launch, the AI ensemble also had coarser resolution (31 km versus 9 km) and relied on physics-based methods for starting conditions. It ran alongside the traditional system.</p>
<h2>Strengths and Limits</h2>
<p>Deep learning is strong when the input is complex, examples are plentiful and the patterns are hard to write as rules. You can also start from a <strong>pretrained model</strong> and fine-tune it, which usually needs less data and computing than training from scratch.</p>
<p>The limits are just as important:</p>
<ul>
<li>Models can learn gaps and biases present in their training data.</li>
<li>Performance may drop when real inputs differ from training inputs.</li>
<li>It is often hard to explain why a network made a particular decision.</li>
<li>Training large models can require expensive hardware and energy.</li>
<li>A confident output is not proof of a correct one.</li>
</ul>
<h2>Hands-On Exercise: Train a Small Network</h2>
<p>This exercise follows the approach of the official PyTorch quickstart. It classifies small grayscale clothing images from the FashionMNIST dataset into 10 categories. The code has not been tested here, and library interfaces can change between versions.</p>
<p>Install the libraries in a Python virtual environment:</p>
<pre><code>pip install torch torchvision</code></pre>
<p>Save this as a Python file and run it. The first run downloads the dataset.</p>
<pre><code>import torch
from torch import nn
from torch.utils.data import DataLoader
from torchvision import datasets
from torchvision.transforms import v2

transform = v2.Compose(&#91;
    v2.ToImage(),
    v2.ToDtype(torch.float32, scale=True),
])

train_data = datasets.FashionMNIST(
    root="data", train=True, download=True, transform=transform)
test_data = datasets.FashionMNIST(
    root="data", train=False, download=True, transform=transform)

train_loader = DataLoader(train_data, batch_size=64, shuffle=True)
test_loader = DataLoader(test_data, batch_size=64)

model = nn.Sequential(
    nn.Flatten(),
    nn.Linear(28 * 28, 512), nn.ReLU(),
    nn.Linear(512, 512), nn.ReLU(),
    nn.Linear(512, 10),
)

loss_fn = nn.CrossEntropyLoss()
optimizer = torch.optim.SGD(model.parameters(), lr=1e-3)

for epoch in range(5):
    model.train()
    for images, labels in train_loader:
        loss = loss_fn(model(images), labels)
        loss.backward()
        optimizer.step()
        optimizer.zero_grad()

    model.eval()
    correct = 0
    with torch.no_grad():
        for images, labels in test_loader:
            predictions = model(images).argmax(1)
            correct += (predictions == labels).sum().item()

    print(f"Epoch {epoch + 1}: accuracy {correct / len(test_data):.1%}")</code></pre>
<p>Then experiment, changing one thing at a time:</p>
<ol>
<li>Raise the learning rate to 0.01 and compare accuracy.</li>
<li>Remove both ReLU layers and see what a purely linear model achieves.</li>
<li>Shrink the hidden layers from 512 units to 32.</li>
</ol>
<p>Write down your prediction before each run. For a serious project, tune on a separate validation set and keep the test set for the final check.</p>
<h2>Best Practices, Mistakes and Troubleshooting</h2>
<h3>Best practices</h3>
<ul>
<li>Define the decision and the success metric before choosing a model.</li>
<li>Build a simple baseline first, so you know whether deep learning adds value.</li>
<li>Split data into training, validation and test sets.</li>
<li>Check results for important subgroups, not only the overall average.</li>
<li>Monitor deployed models and keep human review for high-stakes decisions.</li>
</ul>
<h3>Common problems</h3>
<table>
<thead>
<tr>
<th>Symptom</th>
<th>Possible cause</th>
<th>What to try</th>
</tr>
</thead>
<tbody>
<tr>
<td>Training loss falls but validation loss rises</td>
<td>Overfitting</td>
<td>Add representative data, simplify the model, use dropout or stop earlier</td>
</tr>
<tr>
<td>Loss grows or becomes invalid</td>
<td>Unstable updates or exploding gradients</td>
<td>Lower the learning rate, check inputs, consider batch normalization</td>
</tr>
<tr>
<td>Early layers barely learn</td>
<td>Vanishing gradients</td>
<td>Try ReLU or a related activation</td>
</tr>
<tr>
<td>Many ReLU units stay at zero</td>
<td>Dead ReLU units</td>
<td>Lower the learning rate or try LeakyReLU</td>
</tr>
<tr>
<td>Great test score, poor real-world results</td>
<td>Data does not match actual use, or test data leaked into training</td>
<td>Audit the data splits and collect realistic examples</td>
</tr>
</tbody>
</table>
<h2>Frequently Asked Questions</h2>
<h3>Is deep learning the same as AI?</h3>
<p>No. Deep learning is one part of machine learning, which is one part of AI.</p>
<h3>Is generative AI deep learning?</h3>
<p>Prominent generative systems, such as large language models and diffusion image models, are built with deep learning. Deep learning also does non-generative work, such as classifying images or ranking videos.</p>
<h3>Does a neural network think like a human brain?</h3>
<p>The brain comparison is a loose analogy. A network is a mathematical function with adjustable values, and good performance on a task does not show human-like understanding.</p>
<h3>Do I need a GPU to learn it?</h3>
<p>Not for small exercises like the one above, which can run on a CPU. The code as written uses the CPU. Larger models benefit greatly from GPUs or other accelerators.</p>
<h3>What should I learn first?</h3>
<p>Start with basic Python, then vectors, probability and the idea of a gradient. Train a small model, study its errors and move on to CNNs or Transformers based on the data you care about.</p>
<h2>The Bottom Line</h2>
<p>Deep learning trains layered neural networks to turn examples into useful predictions or new content. It powers very different tasks, from speech transcription to weather forecasting. Its value depends on suitable data, honest testing and a clear understanding of what can go wrong.</p>
<h2>Related reading</h2>
<ul>
<li><a href="https://www.aiuniverse.xyz/why-ai-and-deep-learning-are-the-perfect-tools-to-help-us-understand-the-past/">Why AI and deep learning are the perfect tools to help us understand the past</a></li>
<li><a href="https://www.aiuniverse.xyz/what-is-machine-learning-a-quick-guide-to-basic-concepts/">WHAT IS MACHINE LEARNING? A QUICK GUIDE TO BASIC CONCEPTS</a></li>
<li><a href="https://www.aiuniverse.xyz/what-is-deep-reinforcement-learning-2/">What is Deep Reinforcement Learning?</a></li>
</ul>
<p>The post <a href="https://www.aiuniverse.xyz/what-is-deep-learning-ai-a-simple-guide-with-8-practical-examples/">What Is Deep Learning AI? A Simple Guide With 8 Practical Examples</a> appeared first on <a href="https://www.aiuniverse.xyz">Artificial Intelligence</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.aiuniverse.xyz/what-is-deep-learning-ai-a-simple-guide-with-8-practical-examples/feed/</wfw:commentRss>
			<slash:comments>1</slash:comments>
		
		
			</item>
	</channel>
</rss>
