How to: compute and save heatmaps, and to compute predictions with Python

×

Warning message

You can't delete this newsletter because it has not been sent to all its subscribers.

https://www.snap4city.org/dashboardSmartCity/view/Gea-Night.php?iddasboard=NDIzOQ==

Predictions

In order to compute predictons on some time series (such as traffic flow, parking, emission, etc.) specifi algorhtms should be set up to obtain high precise solutions/predictions. They are usually based on multiple features and not only the tempora series of the variable to be predicted.

in alternative, predictions can be obtained only on the basis of the temporal data of the same variable for which the prediction is needed. 

In this case it is possible to use some generic ARIMA, RF, LST models such as in:

https://github.com/disit/snap4city/tree/master/Computing/predictions

Heatmaps

On the basis of some scenario the operator can define the an area on which it is interested to make/compute: (i) the traffic flow reconstruction, TFR; (ii) the heatmaps; etc.

On the scenario, one can include the data related to sensors (traffic flow, wheater, emissions, etc.). Sensors can be actual and accessible data from the storage as well as TTT typical time trends to simulate some specific conditions as well as what-if analysis:

https://www.mdpi.com/1424-8220/24/7/2225/pdf

The computation  of the  heatmap has a sense only if the a number of variables of the  same kind are indentified in the scenario area. They are tpyically scattered, so that the  heatmap is performing an interpolation. The interopolation can be performed by using some interpolated algorithms, splines, etc

See  for this purpose: https://github.com/disit/snap4city/tree/master/Computing/predictions

where you can fined: https://github.com/disit/snap4city/blob/master/Computing/predictions/heatmap.py ed altri file.

The meaning of paramters and algorithm for computing the heatmap is described in https://www.snap4city.org/457

Once loaded the Heatmap cand be previewed on the Heatmap Manager from t he left side menu on Data Management HLT

https://main.snap4city.org/management/iframeApp.php?linkUrl=https%3A%2F%2Fprocessloader.snap4city.org%2Fprocessloader%2FssoLogin.php%3Fredirect%3Dheatmap.php%3FshowFrame%3Dfalse&pageTitle=HeatMap%20Manager&linkId=psLink2hh&fromSubmenu=datalinkgen

 

BOTH predictions and heatmaps processes can be loaded on containers to be used as microservices and made accessible from CSBL dashboards, as well as from IoT Apps.