The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
Ā
Semantic Technologies for Connected Vehicles in a Web of Things Environment
1. SEMANTIC TECHNOLOGIES FOR CONNECTED
VEHICLES IN A WEB OF THINGS ENVIRONMENT
Raphaƫl Troncy
ļŖraphael.troncy@eurecom.fr
2. CREDITS
ā Dr. Benjamin Klotz (EURECOM / BMW)
ā Daniel Alvarez Coello
(PhD Candidate, Uni. Oldenburg)
https://www.linkedin.com/in/jdacoello/
ā Dr. Daniel Wilms (BMW researcher)
https://www.linkedin.com/in/danielwilms/
http://www.eurecom.fr/~klotz/
Semantic Technologies for Connected Vehicles | SAW Workshop | Raphael Troncy | 25/10/2019 2
3. Semantic Technologies for Connected Vehicles | SAW Workshop | Raphael Troncy | 25/10/2019 3
DATA AROUND THE AUTOMOTIVE DOMAIN
Maps
POIs: āHomeā, āWorkā
Personal information
Contacts information
Weather dataTraffic data
Accident reports
Navigation
4. Semantic Technologies for Connected Vehicles | SAW Workshop | Raphael Troncy | 25/10/2019 4
SENSOR DATA IN THE AUTOMOTIVE DOMAIN
Front camera
Radar
Tire pressure sensor
Park assistant
Steering angle sensor
Wheel speed sensor
Blind spot detection
Adaptive cruise control
Temperature sensor
Oiltemperature sensor
Vehicle height sensor
{"name":"accelerator_pedal_position","value":0,"timestamp":1361454211.483000}
{"name":"fuel_level","value":23.478279,"timestamp":1361454211.485000}
{"name":"torque_at_transmission","value":1,"timestamp":1361454211.488000}
{"acceleratorPedal":{"position":"4095","ecoPosition":"3"},"brakeContact":"16","sp
eedActual":"0ā}, "timeStamp":"2018-01-10T17:01:27.297Z",}
Signal name?
Units?
Datetime?
5. Semantic Technologies for Connected Vehicles | SAW Workshop | Raphael Troncy | 25/10/2019 5
INTEROPERABILITY IN A FRAGMENTED IOT ECOSYSTEM
Auto
WG
Technology providers
6. HOW CAN PROVIDE INTEROPERABLE DESCRIPTION OF VEHICLE DATA?
REQUIREMENTS: COMPETENCY QUESTIONS
Semantic Technologies for Connected Vehicles | SAW Workshop | Raphael Troncy | 25/10/2019 6
Get information about attributes and signals on connectedvehicles
Complete list: https://github.com/klotzbenjamin/vss-ontology
Telematics
Garage/diagnosis Seamless experience
32 competency questionsā¦
Attributes
What type of fuel doesthis car need?
What isthe model of this car?
How old isthis car?
What type of transmission doesthis car have?
Signals and sensors
Isthere a signal measuring the steering wheel angle?
How many different speedometers doesthis car contain?
Dynamic signals
What isthe current gear?
What isthe localtemperature onthe driver side?
E-commerce
ā¦ generated from domain needs
on vehicle signals and attributes
7. VSS IN A NUTSHELL
ā¢ Data model: data structure for attributes, sensors
and actuators of vehicles
ā¢ Specifies uniform structure for data description
o Path / name
o (Data-)Type
o Unit
o Range
o Description
ā¢ Extensible and suitable for multi user
collaboration
VSS
ā451 branches
ā1103 leaves:
ā 43 attributes
ā 1060 signals: including
ā (700 seat-related),
ā 268 with unit
https://github.com/GENIVI/vehicle_signal_specification
Semantic Technologies for Connected Vehicles | SAW Workshop | Raphael Troncy | 25/10/2019 7
8. Semantic Technologies for Connected Vehicles | SAW Workshop | Raphael Troncy | 25/10/2019 8
HYPOTHESIS: SOSA PATTERN FOR VEHICLE SIGNALS
sosa:ObservableProperty
sosa:Sensor
sosa:Observationsosa:isObservedBy
rdf:type
sosa:Result
22.2 km/h^^cdt:speed
22.2^^xsd:double
qudt:KilometerPerHour
qudt:numericValuequdt:unit
sosa:phenomenonTime
geo:lat
:Speed
- Definition of a signal
- Definition of a sensor
- Formally-defined units
- Geolocation
No formal definition of:
- āspeedā or other observable properties
- āspeedometerā or other car sensors/actuators
- āVehicleā or vehicle parts
BUT
"2018-04-18T13:36:12Z"^^xsd:dateTime
geo:lon
sosa:hasSimpleResult
43.614386
7.071125
9. Semantic Technologies for Connected Vehicles | SAW Workshop | Raphael Troncy | 25/10/2019 9
VSSO DEVELOPMENT
VSS
Add sensors and
actuators
Reuse design patterns
- SSN/SOSA
- QUDT (unit)
Fixing problems
Generate definition of
VSS concepts
Manually validate and
clean the generated
ontology
VSS ontology(VSSo)
Fixing problems
1. VSS concepts have unique names
2. All signals are either observable, actuatable or both
3. Different signals canyieldthe same phenomenon (e.g. speed)
4. All branches are part of thetop āvsso:Vehicleā branch
5. All position-dependent branches have a property āpositionā
Benjamin Klotz, Raphael Troncy, Daniel Wilms, and Christian Bonnet.VSSo: AVehicle Signal and AttributeOntology.
In 9th International Semantic Sensor NetworksWorkshop (SSN), Monterey, California, October 2018.
10. Semantic Technologies for Connected Vehicles | SAW Workshop | Raphael Troncy | 25/10/2019 10
VSSO EXAMPLE
sosa:Observable
Property
sosa:Sensor
sosa:Observation
sosa:isObservedBy
:Speed
rdf:type
sosa:Result
22.2 km/h^^cdt:speed
22.2^^xsd:double
qudt:Unit
qudt:unit
sosa:hasSimple
Result
vsso:Speedometer
vsso:Speed
vsso:ObservableSignal
rdfs:subClassOf
rdfs:subClassOf
rdfs:subClassOf
vsso:Transmission
vsso:Drivetrain
vsso:Internal
Combustion
vss:partOf vss:partOf
vss:hasSignal
vsso:Branch
rdfs:subClassOf
4 Nm^^cdt:torque
vss:maxTorque
rdf:type
https://ci.mines-stetienne.fr/lindt/
Maxime LefranƧois, Antoine Zimmermann SupportingArbitrary Custom
Datatypes in RDF and SPARQL, In Proc. Extended Semantic Web Conference,
ESWC, Heraklion, Greece, 2016
11. VSSO SUMMARY
Semantic Technologies for Connected Vehicles | SAW Workshop | Raphael Troncy | 25/10/2019 11
VSSo: a Vehicle Signal and Attribute ontology (http://automotive.eurecom.fr/vsso)
āOWL ontology of DL expressivity: ALUHOI+
ā483 classes (~300 signals); 63 properties (~50 attributes)
āReuse SSN/SOSA modeling patterns
Evaluation:
Hypothesis: VSSo data enables SPARQL queries answering the set of competency questions
Dataset: simulated (random) values for 19 signals and 23 fixed attributes on a sliding window of 3 seconds
Experiment: set 2 SPARQL endpoints withVSSo data (with 1vehicle, with a fleet of 3vehicles)
http://automotive.eurecom.fr/simulator/query
http://automotive.eurecom.fr/simulator/fleetquery
12. VSSO USAGE
Semantic Technologies for Connected Vehicles | SAW Workshop | Raphael Troncy | 25/10/2019 12
VSSo expressivity: most requirements can betranslated into SPARQL queries
What arethe dimension of this car?
SELECT ?length ?width ?height
WHERE { ?branch vsso:length ?length;
vsso:width ?width;
vsso:height ?height.}
SELECT DISTINCT ?localTemperature ?value ?position ?time
WHERE { ?wheel avsso:SteeringWheel;
vsso:steeringWheelSide ?steeringWheelSide.
?branch avsso:LocalHVAC;
vsso:position ?position;
vsso:hasSignal ?localTemperature.
?localTemperature avsso:LocalTemperature.
FILTER regex(str(?steeringWheelSide),str(?position))
?obs a sosa:Observation;
sosa:observedProperty ?localTemperature;
sosa:hasSimpleResult ?value;
sosa:phenomenonTime ?time.
}
ORDER BY DESC(?time)
LIMIT 1
What isthe current temperature onthe driver
side?
90% of competency
questions can be answered
http://automotive.eurecom.fr/simulator/query
http://automotive.eurecom.fr/simulator/fleetquery
13. VSS2
Semantic Technologies for Connected Vehicles | SAW Workshop | Raphael Troncy | 25/10/2019 13
Attribute
Branch
Vehicle
Branch
VehicleIdentification
Branch
VIN
Attribute
Body
Branch
Drivetrain
Branch
Signal
Branch
Body
Branch
Drivetrain
Branch
Vehicle
Branch
AverageSpeed
Signal
Private
Branch
BMW
Branch
PrivateSignal
??
HMI
Branch
Vehicle
Body ADAS Cabin Chassis Drivetrain OBD
Private branches and leaves should:
- Overwrite pre-existing concepts
- Extendthe VSStree
VSS needs consistent position patterns
VSS1 |VSS2
14. TYPES
Semantic Technologies for Connected Vehicles | SAW Workshop | Raphael Troncy | 25/10/2019 14
VSS 1 - Attribute/Signal Branch: Attributes and signals were handled as separate
branches fromthe root node, which leadto:
- Duplication inthetree structure
- Leaf properties handled as branches
VSS 2 - Introducing new types: To avoid duplication andto addthe propertiestothe
leaf, newtypes were introduced and datatypes got their own property.
- Branch: Node inthetree, which has subnodes
- Sensor: Read-only, which updates in some interval x
- Actuator: sensor + write
- Attribute: read-only and static
15. Semantic Technologies for Connected Vehicles | SAW Workshop | Raphael Troncy | 25/10/2019 15
EXTENSIONS
VSS 2 ā Extensions as attributes: InVSS 2 extensions are modeled as attributes
wherethey occur.The specification is a straight pathtothe sensor.The sensor description
itself can be seen as āclassā andthe realization as itās āinstancesā.This allows for more
flexibility, a cleaner graph representation and zoning and filtering.
VSS 1 ā Extensions as branches: Extensions, often used for positioning, are modeled
inthe path of thetree.This leadsto duplication inthe resultingtree (not intooling), which
makes thetree hardto read. Further it hardens filtering and zoning, e.g. like all left tire
pressures.
16. ROOT NODE
Semantic Technologies for Connected Vehicles | SAW Workshop | Raphael Troncy | 25/10/2019 16
VSS 1 - Attribute/Signal Branch: Attributes and signals were handled as separate
branches fromthe root node, which leadto:
- Duplication inthetree structure
- Leaf properties handled as branches
VSS 2 - Introducing new types: To avoid duplication andto addthe propertiestothe
leaf, newtypes were introduced and datatypes got their own property.
- Branch: Node inthetree, which has subnodes
- Sensor: Read-only, which updates in some interval x
- Actuator: sensor + write
- Attribute: read-only and static
17. Semantic Technologies for Connected Vehicles | SAW Workshop | Raphael Troncy | 25/10/2019 17
CAN WE MAKE RELIABLE PREDICTION FROM VEHICLE DATA?
- Aggressiveness
- Drowsiness
- Driving style
- Diagnosis
- Topology
- Marks
- Potholes
- Obstacles
- Weather
- Emotions
- Stress
- Mental load
- Frustration
- Distraction
- Maneuvers
- Intents
Vehicle machine learning
In-car learning
Behavior Mental State Environment
Trajectory
patterns
Fleet
learning
Data sources:
- Car sensors
- Smartphones/cameras
- Physiological sensors
30. Semantic Technologies for Connected Vehicles | SAW Workshop | Raphael Troncy | 25/10/2019 30
RECONSTRUCTION OF DANGEROUS SITUATIONS
Important difference between safe and aggressive Track shape and speed far from public roads
2 biases
Daniel Alvarez Coello, Benjamin Klotz, Daniel Wilms, Jorge Marx GĆ³mez, and RaphaĆ«lTroncy. Modeling
dangerous driving events based on in-vehicle data using Random Forest and Recurrent Neural Network. In
1st InternationalWorkshop on Data Driven Intelligent Vehicle Applications (DDIVA), Paris, France, 2019
31. Semantic Technologies for Connected Vehicles | SAW Workshop | Raphael Troncy | 25/10/2019
W3C WoT servient
31
WEB OF THINGS DEVELOPMENT
Limited vehicle sensor/actuator access
SSN/SOSA
Domain
ontology
AutoWG
Web
Devices
IoT platforms
32. Semantic Technologies for Connected Vehicles | SAW Workshop | Raphael Troncy | 25/10/2019 32
WOT ONTOLOGY
āDefine a wot:Thing
āCentered on wot:interactionPattern
ā Properties
ā Actions
ā Events
āUse dataSchema
ā Literal value
ā wot:DataType
ā om:Unit_of_measure
http://iot.linkeddata.es/def/wot/index-en.html
33. AUTOMOTIVE WEB THINGS: CHALLENGES
Semantic Technologies for Connected Vehicles | SAW Workshop | Raphael Troncy | 25/10/2019 33
Domain vs Nature of
āThings
āInteractions
Complexity of vehicles
āDifferent access control and
security
āDifferent expertise
"@id": "property/accelerationā,
"@type": ["Property","vsso:LongitudinalAcceleration","iot:Property"],
Data access
āExternal hardware
āLegacy solutions
34. Semantic Technologies for Connected Vehicles | SAW Workshop | Raphael Troncy | 25/10/2019 34
DESCRIBING COMPLEXTHINGS IN THE WOT
Differing Safety, Security and Privacy ?
TD: full vehicle
@context
securityDefinitions
Interactions:
1. property/media-volume
2. action/stop-HVAC
3. event/sow-engine-oil
ā¦
2548. action/write-message
TD: main
TD: safety-critical
TD: HVAC TD: infotainment
@context
securityDefinitions
Interactions:
1. property/media-volume
ā¦
Interactions:
1. action/stop-HVAC
ā¦
TD: Engine
@type
@type
Interactions:
1. event/sow-engine-oil
ā¦
securityDefinitions
TD: privacy-critical
securityDefinitions
Requirements included inthe latest charter update (June 2019)
35. Semantic Technologies for Connected Vehicles | SAW Workshop | Raphael Troncy | 25/10/2019 35
ALIGNING WOT ā SOSA FOR THE AUTOMOTIVE DOMAIN
Modeling pattern:
i. Vehicles areThings
ii. Signals are properties
Read-write depending onthe signaltype
iii. Actuatable signals are actions
iv. DataSchema usethe domain Units
Benjamin Klotz, Soumya Kanti Datta, Daniel Wilms, Raphael Troncy, and Christian Bonnet. A car as a semantic webthing:
Motivation and demonstration. In 2nd Global Internet of Things Summit (GIoTS'18), Bilbao, Spain, June 2018.
37. Semantic Technologies for Connected Vehicles | SAW Workshop | Raphael Troncy | 25/10/2019 37
DEMONSTRATION: CONTROLLINGYOUR CAR WITHYOUR WEB BROWSER (2017)
Usage:
Behind a web browser, we can control the
windows, doors and honk
38. Semantic Technologies for Connected Vehicles | SAW Workshop | Raphael Troncy | 25/10/2019 38
Legacy
DEMONSTRATION: INTUITIVE INTERFACE ON LEGACYVEHICLES
Device servient
Vehicle Web API
TD
Application servient
HTTPS
Flow
Vehicle
Node
HTTPS
39. FLOW EXAMPLE (OPEN DAY)
Semantic Technologies for Connected Vehicles | SAW Workshop | Raphael Troncy | 25/10/2019 Page 39
Whenthe user is far fromthe unlocked vehicle, the vehicle lock is activated
40. Semantic Technologies for Connected Vehicles | SAW Workshop | Raphael Troncy | 25/10/2019 40
DEMONSTRATION: CAR INTERACTION IN THE WEB OF THINGS
Triggering actions based on rules:
- If a door is open while speed>0 then trigger a warning
- If longitudinal and lateral acceleration are high (dangerous driving),then turn on a red LED
- If the coordinates of the car are closeto a fixed destination, control a garage door an light
Application servient
Car servient
(mocked up)
Check
rules Other servient
Read properties
Write properties
https://www.youtube.com/watch?v=pjgTLPlAsKQ
https://www.youtube.com/watch?v=zkL8Cdgy8PE
41. Semantic Technologies for Connected Vehicles | SAW Workshop | Raphael Troncy | 25/10/2019 41
OUTLOOKAND PERSPECTIVES
Outlook: a step to make connected vehicles more interoperable
ā¢ Ontology for the Automotive domain / alignment with the Web of Things
- VSSo (http://automotive.eurecom.fr/vsso) ā¦ being further developed inthe W3C Automotive Business Group
- Alignment VSSo/VDC/WoT (axiomsto publish)
ā¢ Datasets: semantic trajectories
- VSSo data: 5trajectories, 8 signals, 16k observations (http://automotive.eurecom.fr/trajectory)
- VDC data: 2trajectories, 16 states, 16k observations, 130 events
ā¢ Classifiers (Internal BMW)
- Aggressive driving prediction / Maneuvers prediction
ā¢ WoT vehicles: https://www.youtube.com/watch?v=zkL8Cdgy8PE
Many remaining challenges:
ā¢ Next generation vehicle server:VISS server(implementations, w3c recommendation), RSI (or Gen2)
ā¢ In-vehicle machine learning
ā¢ Scalability of graph-based data representation (vehicle shadow data access using GraphQL)
ā¢ How much your vehicle should remember your driving patterns?
ā¢ Security / Privacy / Ethics / add yours ā¦