-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathpresentation_v0.html
648 lines (523 loc) · 21.3 KB
/
presentation_v0.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Entrepreneurs d'Intérêt Général #2 - Défi Prévisecours</title>
<meta name="description" content="aider les sapeurs-pompiers à intervenir plus efficacement avec des modèles prédictifs">
<meta name="author" content="Tiphaine Phe-Neau et Guillaume Lancrenon">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
<link rel="stylesheet" href="css/reveal.css">
<link rel="stylesheet" href="css/theme/white.css" id="theme">
<!-- Theme used for syntax highlighting of code -->
<link rel="stylesheet" href="lib/css/zenburn.css">
<!-- Printing and PDF exports -->
<script>
var link = document.createElement( 'link' );
link.rel = 'stylesheet';
link.type = 'text/css';
link.href = window.location.search.match( /print-pdf/gi ) ? 'css/print/pdf.css' : 'css/print/paper.css';
document.getElementsByTagName( 'head' )[0].appendChild( link );
</script>
<!--[if lt IE 9]>
<script src="lib/js/html5shiv.js"></script>
<![endif]-->
</head>
<body>
<div class="reveal">
<!-- Any section element inside of this container is displayed as a slide -->
<div class="slides">
<section>
<section data-markdown>
<textarea data-template>
### Entrepreneurs d'Intérêt Général
#### Défi Prévisecours
<img width="550" style="background-color:white;border:0px;box-shadow:0" data-src="img/eig_previsecours.svg" alt="EIG logo">
<a href="https://previsecours.fr" style="font-size: 32px">previsecours.fr</a>
<p style="font-size: 28px">Guillaume Lancrenon, Tiphaine Phe-Neau, <br>
Daniel Ansellem, Fabien Antoine, Muriel Flottes et Fabrice Barret</p>
<img width="280" style="background-color:white;border:0px;box-shadow:0" data-src="img/etalab_mi_logos.svg" alt="Etalab Ministère de l'Intérieur"><img width="80" style="background-color:white;border:0px;box-shadow:0" data-src="img/sdis91_logo.jpg" alt="SDIS 91">
</textarea>
</section>
</section>
<section>
<section data-markdown>
<textarea data-template>
## Défi Prévisecours (EIG #2)
Aider les sapeurs-pompiers à intervenir plus efficacement avec des modèles prédictifs
- Modèle sur les volumes d’interventions et leurs géolocalisations pour anticiper les moyens à mobiliser
- Projet en partenariat avec les <a href="http://www.sdis-91.fr" target="_blank">sapeurs-pompiers de l’Essonne</a> (SDIS 91)
</textarea>
</section>
<section data-markdown>
<textarea data-template>
#### Où se trouve l'Essonne ?
<img width="480" style="background-color:white;border:0px;box-shadow:0" data-src="img/essonne.svg" alt="Etalab Ministère de l'Intérieur">
</textarea>
</section>
<section data-markdown>
<textarea data-template>
## Défi Prévisecours / EIG #2
- 10 mois
- 2 profils
- Full Stack Developer / Guillaume Lancrenon
- Data Scientist / Tiphaine Phe-Neau
- <a href="https://www.etalab.gouv.fr" target="_blank">Etalab</a> et <a href="https://www.interieur.gouv.fr/" target="_blank">Ministère de l'Intérieur</a> / MGMSIC
- Plus de <a target="_blank" href="http://dai.ly/x6fp47d">détails sur la 2e promotion EIG en vidéo!</a>
</textarea>
</section>
<section data-markdown>
<textarea data-template>
## <img width="500" style="background-color:white;border:0px;box-shadow:0" data-src="img/eig_logo.png" alt="EIG logo">
<iframe frameborder="0" width="800" height="448" src="https://www.dailymotion.com/embed/video/x6fp47d" allowfullscreen allow="autoplay"></iframe>
</textarea>
</section>
<section data-markdown>
<textarea data-template>
#### C'est sympa tout ça mais...
## Est ce possible?
### en 10 mois
<p>
<span style="float:left" class="fragment">
- 2 personnes<br>
- Partir de rien<br>
</span>
<span style="float:left" class="fragment">
- Récupérer des données administratives et ouvertes <br>
</span>
<span style="float:left" class="fragment">
- Flux de normalisation et pérennisation<br>
</span>
<span style="float:left" class="fragment">
- Sortir un produit utile et utilisable
</span>
</p>
</textarea>
</section>
<section data-background="https://media2.giphy.com/media/kKdgdeuO2M08M/giphy.gif" data-markdown>
<textarea data-template>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<p style="color:white;font-size:50px"><b>EST-CE POSSIBLE?</b></p>
</textarea>
</section>
</section>
<section>
<section data-markdown>
<textarea data-template>
## Prévisecours... <br>le début !
</textarea>
</section>
<section data-markdown>
<textarea data-template>
### 0. Discussions métiers
<img width="700" data-src="img/pompiers.jpg" alt="Metiers">
- Comprendre l'utilisation actuelle des données
- Ateliers "intuition" sur le SUAP
</textarea>
</section>
<section data-markdown>
<textarea data-template>
### 1. Données interventions
<img width="600" data-src="img/interventions.png" alt="Screen interventions">
- Vérification et analyse
- Aggrégation
- Anonymisation
</textarea>
</section>
<section data-markdown>
<textarea data-template>
### 2. Récupération open data
<img width="600" data-src="img/opendata.png" alt="Screen opendata">
- INSEE population, ménages, scolarisation, IDH2
- Pollens, pollution, transports
- Calendrier, météo
</textarea>
</section>
<section data-markdown>
<textarea data-template>
### 3. Feature engineering / variables
<img width="600" data-src="img/featuring.png" alt="Screen feature engineering">
- Création de features après discussions métiers
- Jointures avec les données interventions
</textarea>
</section>
<section data-markdown>
<textarea data-template>
## Alors, <br> au bout d'un mois <br>a-t-on quelque chose ?
</textarea>
</section>
<section data-markdown>
<textarea data-template>
### 4. Machine learning : modèles v0
<img width="600" data-src="img/mling.png" alt="Prévisecours models">
- Model farming
- ROC AUC: 0.918 sans tweaking
</textarea>
</section>
<section data-markdown>
<textarea data-template>
### 5. POC visualisation
<img width="650" data-src="img/map.png" alt="Screen interventions">
</textarea>
</section>
<section data-markdown>
<textarea data-template>
### 5. POC visualisation
#### Interventions par commune
<iframe id="freshwidget-frame" src="https://algo.previsecours.fr/dip/api/webapps/view?projectKey=PRVISECOURSVISUALISATION&webAppId=kwi1cbb&apiKey=nJxRZkRr0NK7sBS3gOSBKIVipz8Q5G6W" scrolling="auto" allowtransparency="true" style="height: 500px; width: 100%;" frameborder="0"> </div></iframe>
</textarea>
</section>
<section data-markdown>
<textarea data-template>
### 5. POC visualisation
#### Evolution des interventions par commune
<iframe id="freshwidget-frame" src="https://algo.previsecours.fr/dip/api/webapps/view?projectKey=PRVISECOURSVISUALISATION&webAppId=W0kS5vF&apiKey=932QkDr6PUcppTtKPUfoDWlOM8BHhSz6" scrolling="auto" allowtransparency="true" style="height: 500px; width: 100%;" frameborder="0"> </div></iframe>
</textarea>
</section>
<section data-markdown>
<textarea data-template>
### Workflow actuel
<img width="550" data-src="img/workflow.png" alt="Screen workflow">
- Division en brique pour une meilleure ré-utilisation des données ouvertes par d'autres projet
- Division par maille d'aggrégation temporelle
</textarea>
</section>
</section>
<section>
<section data-markdown>
<textarea data-template>
## Timeline au bout de <br>1 mois
<p>
<span style="float:left" class="fragment">
1. Données métiers - 1 semaine
</span>
<span style="float:left" class="fragment">
2. Open data - 1 semaine pour la base + en cours
</span>
<span style="float:left" class="fragment">
3. Feature engineering sur la base - 1 semaine
</span>
<span style="float:left" class="fragment">
4. Model farming - 1 semaine en //
</span>
<span style="float:left" class="fragment">
5. POC visualisation - 1 semaine en //
</span>
</p>
</textarea>
</section>
</section>
<section>
<section data-markdown>
<textarea data-template>
## Prévisecours... <br>Au mois 4!
</textarea>
</section>
<section data-markdown>
<textarea data-template>
### Data opérationnelle
<img width="750" style="background-color:white;box-shadow:0" data-src="img/flow_opes.png">
- Sollicitations opérationnelles
- SDIS91: détails des sollicitations de 2010 à 2017
</textarea>
</section>
<section data-markdown>
<textarea data-template>
### Open Data
<img width="750" style="background-color:white;box-shadow:0" data-src="img/flow_scolarisation.png">
<p style="font-size: 28px">__Annuel / Mensuel__: population, pyramide des âges, scolarisation, diplômes, composition des ménages, référents des ménages, FINESS (établissements de retraite, pharmacies, foyers, hopitaux...), IDH2, CAF (rsa, nombre d'allocataires)...</p>
</textarea>
</section>
<section data-markdown>
<textarea data-template>
### Open Data
<img width="750" style="background-color:white;box-shadow:0" data-src="img/flow_caf.png">
<p style="font-size: 28px">__Quotidien / Hebdo__: calendaire (vacances, jours fériés, fêtes), pollution, pollens (à confirmer), météo (pluie, température, humidité, durée du jour), phases de la lune, Sentinelle (épidémie)...</p>
</textarea>
</section>
<section data-markdown>
<textarea data-template>
### Data + (Open) data
<img width="1050" style="background-color:white;box-shadow:0" data-src="img/flow_featuring_static.png">
- Aggrégation DWH unique par code insee, journée, semaine ou mois
</textarea>
</section>
<section data-markdown>
<textarea data-template>
### Conduite de défi
- Rencontres SDIS 91
- Fevrier 2018 (Etampes)
- Janvier 2018 (Viry)
- Avril 2018 (Corbeil Essonne)
- COPIL
- Janvier 2018
- Avril 2018
- Mai 2018
- Juin 2018 (a venir)
- Rencontre Utilisateurs
- Mai 2018 (a venir)
</textarea>
</section>
<section data-markdown>
<textarea data-template>
### Conduite de défi
- <p style="font-size: 32px">Prédiction de classes de volumes (faible, moyen, élevé, exceptionnel) pour chaque commune.</p>
- <p style="font-size: 32px">Produits identifiés</p>
<p style="font-size: 28px">- Produit "année": prédiction sur l'année avec un détail par semaine: La granularité par semaine permet de prendre en compte les passages en période creuse du 15 juillet par exemple.</p>
<p style="font-size: 28px">- Produit "jour": prédiction sur "5 jours" avec un détail jour par jour: pour une aide à l'ajustement de la réponse opérationnelle à court terme avec des données conjoncturelles (météo...).</p>
</textarea>
</section>
<section data-markdown>
<textarea data-template>
### Utilisateurs
Les chefs de groupement territorial <br>
<p style="font-size: 28px">Au nombre de 4 en Essonne, responsables de coordonner les 4 zones (groupement territorial) qui découpent l'Essonne.
</p>
</textarea>
</section>
<section data-markdown>
<textarea data-template>
### Machine Learning / Prédictions
<img width="950" style="background-color:white;box-shadow:0" data-src="img/flow_ml_suap.png">
</textarea>
</section>
<section data-markdown>
<textarea data-template>
### Machine Learning / Prédictions
- Prédiction de classes de volumes (faible, moyen, élevé, exceptionnel) pour chaque commune
- Modèles basés sur des arbres de décision de type Random Forest
- SUAP: ROC AUC 0.83 / 1.0
- Incendies: ROC AUC 0.78 / 1.0
- Accidents: à venir
</textarea>
</section>
<section data-markdown>
<textarea data-template>
### Machine Learning / Prédictions
<img width="1250" style="background-color:white;box-shadow:0" data-src="img/corr_lin.png">
- Corrélations
- statistiques linéaire et non linéaire
- embarquées dans les modèles de ML
</textarea>
</section>
<section data-markdown>
<textarea data-template>
### Machine Learning / Prédictions
<img width="500" style="background-color:white;box-shadow:0" data-src="img/viz_prediction_semaines_v0.png">
</textarea>
</section>
<section data-markdown>
<textarea data-template>
### Workflow au mois 4
<img width="300" data-src="img/flow_mois_4.png" alt="Screen workflow">
- Evolution des flux de traitement de données en vue d'une mise en production et non plus d'un simple POC
</textarea>
</section>
</section>
<section>
<section data-markdown>
<textarea data-template>
## Timeline au bout de <br>4 mois
1. Données métiers - 2 semaine
2. Open data - 8 semaines au total pour la base
3. Feature engineering sur la base - 3 semaines
4. Model farming - 3 semaine en //
5. POC visualisation - 4 semaine en //
</textarea>
</section>
</section>
<section>
<section data-markdown>
<textarea data-template>
## COPIL 3
</textarea>
</section>
<section data-markdown>
<textarea data-template>
#### SUAP / Corrélations
<img width="750" style="background-color:white;box-shadow:0" data-src="img/copil3-suap-correlation-lin.png">
<table style="width:80%">
<tr>
<th><p style="font-size: 18px">Positif</p></th>
<th><p style="font-size: 18px">Négatif</p></th>
</tr>
<tr>
<td><ol style="font-size: 18px">
<li>`nb_ope_semaine/annee_minus_1`</li>
<li>`nb_ope_semaine/annee_minus_2`</li>
<li>`nb_ope_semaine/annee_minus_3` </li>
<li>`infra_FC_sum`</li>
<li>`densite` </li>
<li>`trafic_0.75+`</li>
<li>`finess_nb_pharmacie`</li>
<li>`nb_trafic` </li>
<li>`finess_nb_foyers`</li>
<li>`caf_pers_bas_revenu_prop`</li> </ol></td>
<td><ol style="font-size: 18px"><li>`idh2_revenu_plaf`</li>
<li>`pop_menage_ref_ceo`</li>
<li>`idh2_indicateur`</li>
<li>`pop_menage_ref_cadre`</li>
<li>`ens_brevet`</li>
<li>`pop_menage_ref_agric`</li>
<li>`femmes_post_bac`</li>
<li>`femmes_sup`</li>
<li>`pop_menage_ref_retraite`</li>
<li>`pop_menage_ref_interm`</li></ol></td>
</tr>
</table>
</textarea>
</section>
<section data-markdown>
<textarea data-template>
#### Incendies / Corrélations
<img width="750" style="background-color:white;box-shadow:0" data-src="img/copil3-incendies-correlation-lin.png">
<table style="width:80%">
<tr>
<th><p style="font-size: 18px">Positif</p></th>
<th><p style="font-size: 18px">Négatif</p></th>
</tr>
<tr>
<td><ol style="font-size: 18px">
<li>`pop_naiss_nb`</li>
<li>`nb_ope_semaine/annee_minus_2`</li>
<li>`nb_ope_semaine/annee_minus_3` </li>
<li>`nb_ope_semaine/annee_minus_1`</li>
<li>`pop_pop` </li>
<li>`infra_FC_sum`</li>
<li>`pop_deces_nb`</li>
<li>`finess_nb_pharmacie`</li>
<li>`caf_all_bas_revenu_prop`</li>
<li>`densite`</li> </ol></td>
<td><ol style="font-size: 18px"><li>`idh2_revenu_plaf`</li>
<li>`idh2_indicateur`</li>
<li>`pop_menage_ref_ceo`</li>
<li>`pop_menage_ref_cadre`</li>
<li>`femmes_post_bac`</li>
<li>`hommes_brevet`</li>
<li>`pop_menage_ref_retraite`</li>
<li>`pop_menage_ref_interm`</li>
<li>`pop_menage_ref_agric`</li>
<li>`ens_brevet`</li></ol></td>
</tr>
</table>
</textarea>
</section>
<section data-markdown>
<textarea data-template>
#### Focus: Incendies Végétation / Corrélations
<img width="750" style="background-color:white;box-shadow:0" data-src="img/copil3-incendies veg-correlation-lin.png">
<table style="width:80%">
<tr>
<th><p style="font-size: 18px">Positif</p></th>
<th><p style="font-size: 18px">Négatif</p></th>
</tr>
<tr>
<td><ol style="font-size: 18px">
<li>`meteo_avg_day_duration`</li>
<li>`meteo_avg_temp_max`</li>
<li>`cal_semaine_ramadan` </li>
<li>`epid_varicelle_nbr`</li>
<li>`pollution_cumul_O3` </li>
<li>`meteo_avg_temp_min`</li>
<li>`nb_ope_semaine/annee_minus_3`</li>
<li>`nb_ope_semaine/annee_minus_1`</li>
<li>`nb_ope_semaine/annee_minus_2`</li>
<li>`pop_deces_nb`</li> </ol></td>
<td><ol style="font-size: 18px"><li>`meteo_avg_humidity`</li>
<li>`epid_diharee_nbr`</li>
<li>`epid_grippe_nbr`</li>
<li>`meteo_avg_precip`</li>
<li>`pop_menage_ref_ceo`</li>
<li>`ope_semaine`</li>
<li>`femmes_bac`</li>
<li>`hommes_brevet`</li>
<li>`meteo_avg_wind_speed`</li>
<li>`pop_menage_ref_agric`</li></ol></td>
</tr>
</table>
</textarea>
</section>
<section data-markdown>
<textarea data-template>
#### Feature importance
<p style="font-size: 25px"> SUAP / RF</p>
<img width="650" style="background-color:white;box-shadow:0" data-src="img/copil3-suap-prediction-feature-importance.png">
<p style="font-size: 25px">Incendies / RF</p>
<img width="650" style="background-color:white;box-shadow:0" data-src="img/copil3-incendies-prediction-feature-importance.png">
</textarea>
</section>
</section>
<section>
<section data-markdown>
<textarea data-template>
## Prévisecours... <br>La suite?
<a target="_blank" href="https://previsecours.fr">previsecours.fr</a><br>
<a target="_blank" href="https://twitter.com/datatiph">@datatiph</a>
</textarea>
</section>
<section data-markdown data-background="img/previsecours_team.jpg">
<textarea data-template>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<p style="color:white;font-size:50px"><b> TEAM PREVISECOURS / EIG #2</b></p>
</textarea>
</section>
<section data-background="https://media2.giphy.com/media/ct1QrPXPkSEgg/giphy.gif" data-markdown>
<textarea data-template>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<p style="color:white;font-size:50px"><b>EN ATTENDANT, ON CONTINUE DE TRAVAILLER...</b></p>
</textarea>
</section>
</section>
</div>
</div>
<script src="lib/js/head.min.js"></script>
<script src="js/reveal.js"></script>
<script>
// More info https://github.com/hakimel/reveal.js#configuration
Reveal.initialize({
controls: true,
progress: true,
history: true,
center: true,
transition: 'slide', // none/fade/slide/convex/concave/zoom
// More info https://github.com/hakimel/reveal.js#dependencies
dependencies: [
{ src: 'lib/js/classList.js', condition: function() { return !document.body.classList; } },
{ src: 'plugin/markdown/marked.js', condition: function() { return !!document.querySelector( '[data-markdown]' ); } },
{ src: 'plugin/markdown/markdown.js', condition: function() { return !!document.querySelector( '[data-markdown]' ); } },
{ src: 'plugin/highlight/highlight.js', async: true, callback: function() { hljs.initHighlightingOnLoad(); } },
{ src: 'plugin/search/search.js', async: true },
{ src: 'plugin/zoom-js/zoom.js', async: true },
{ src: 'plugin/notes/notes.js', async: true }
]
});
</script>
</body>
</html>