Multi-Sensor Fusion Calculator
Try Change Temperature (°C): from 28 to 35.
Observe Compare Temp in Raw values (unequal scales) and Min-Max normalized [0, 1].
Explain Explain why min-max normalization brings different sensor scales into alignment within [0, 1].
Calculate
Reset
Technical boundaries. Min-max normalization uses fixed ranges: temperature 15-35, CO₂ 400-5000, and humidity 30-70. The comparison shows numeric scales for scale-sensitive ML methods.
Try It: Multi-Sensor Fusion Calculator
The next question is selection: after you can normalize one stream, which scaler should each feature use when the data set mixes clean bounded channels with outlier-prone sensor readings?
Adjust the sensor readings below to see how min-max normalization brings different scales into alignment:
viewof fusionTemp = Inputs. range ([15 , 35 ], {
value : 28 , step : 0.5 , label : "Temperature (°C):"
})
viewof fusionCO2 = Inputs. range ([400 , 5000 ], {
value : 1200 , step : 50 , label : "CO₂ (ppm):"
})
viewof fusionHumidity = Inputs. range ([30 , 70 ], {
value : 55 , step : 1 , label : "Humidity (%):"
})
{
const t = fusionTemp;
const c = fusionCO2;
const h = fusionHumidity;
const tNorm = (t - 15 ) / (35 - 15 );
const cNorm = (c - 400 ) / (5000 - 400 );
const hNorm = (h - 30 ) / (70 - 30 );
const maxRaw = Math . max (t, c, h);
const tBar = (t / maxRaw) * 100 ;
const cBar = (c / maxRaw) * 100 ;
const hBar = (h / maxRaw) * 100 ;
const tNormBar = tNorm * 100 ;
const cNormBar = cNorm * 100 ;
const hNormBar = hNorm * 100 ;
return html `<div style="background: var(--bs-light, #f8f9fa); padding: 1.2rem; border-radius: 8px; border-left: 4px solid #E67E22; color: var(--bs-body-color);">
<h4 style="margin-top: 0; color: #2C3E50;">Raw vs. Normalized Comparison</h4>
<div style="display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem;">
<div>
<strong>Raw values (unequal scales):</strong>
<div style="margin-top: 0.5rem;">
<div style="display: flex; align-items: center; margin-bottom: 4px;">
<span style="width: 90px; font-size: 0.85em;">Temp: ${ t} °C</span>
<div style="flex: 1; background: var(--bs-border-color, #dee2e6); border-radius: 4px; height: 18px;">
<div style="width: ${ tBar. toFixed (1 )} %; background: #E74C3C; border-radius: 4px; height: 100%;"></div>
</div>
</div>
<div style="display: flex; align-items: center; margin-bottom: 4px;">
<span style="width: 90px; font-size: 0.85em;">CO₂: ${ c} ppm</span>
<div style="flex: 1; background: var(--bs-border-color, #dee2e6); border-radius: 4px; height: 18px;">
<div style="width: ${ cBar. toFixed (1 )} %; background: #3498DB; border-radius: 4px; height: 100%;"></div>
</div>
</div>
<div style="display: flex; align-items: center;">
<span style="width: 90px; font-size: 0.85em;">Hum: ${ h} %</span>
<div style="flex: 1; background: var(--bs-border-color, #dee2e6); border-radius: 4px; height: 18px;">
<div style="width: ${ hBar. toFixed (1 )} %; background: #16A085; border-radius: 4px; height: 100%;"></div>
</div>
</div>
</div>
<p style="font-size: 0.8em; margin-top: 0.5rem; opacity: 0.7;">CO₂ dominates: ${ (c/ t). toFixed (0 )} x larger than temperature</p>
</div>
<div>
<strong>Min-Max normalized [0, 1]:</strong>
<div style="margin-top: 0.5rem;">
<div style="display: flex; align-items: center; margin-bottom: 4px;">
<span style="width: 90px; font-size: 0.85em;">Temp: ${ tNorm. toFixed (3 )} </span>
<div style="flex: 1; background: var(--bs-border-color, #dee2e6); border-radius: 4px; height: 18px;">
<div style="width: ${ tNormBar. toFixed (1 )} %; background: #E74C3C; border-radius: 4px; height: 100%;"></div>
</div>
</div>
<div style="display: flex; align-items: center; margin-bottom: 4px;">
<span style="width: 90px; font-size: 0.85em;">CO₂: ${ cNorm. toFixed (3 )} </span>
<div style="flex: 1; background: var(--bs-border-color, #dee2e6); border-radius: 4px; height: 18px;">
<div style="width: ${ cNormBar. toFixed (1 )} %; background: #3498DB; border-radius: 4px; height: 100%;"></div>
</div>
</div>
<div style="display: flex; align-items: center;">
<span style="width: 90px; font-size: 0.85em;">Hum: ${ hNorm. toFixed (3 )} </span>
<div style="flex: 1; background: var(--bs-border-color, #dee2e6); border-radius: 4px; height: 18px;">
<div style="width: ${ hNormBar. toFixed (1 )} %; background: #16A085; border-radius: 4px; height: 100%;"></div>
</div>
</div>
</div>
<p style="font-size: 0.8em; margin-top: 0.5rem; opacity: 0.7;">Sensors are on comparable numeric scales for scale-sensitive ML methods</p>
</div>
</div>
</div>` ;
}
Back to the chapter