Editor’s Note: The section provides various AI/ML solutions for potential requirements.
In this AI/ML model repository and deployment management feature, there are four new resource types suggested. For a CSE, there can be one or more
For an AE which represents an AIoT device (e.g. AI robot), AI service users can deploy model(s) to the device. To deploy models, a


Figure 7.1.1‑1: Resource tree structure for ML model management
NOTE: An alternative approach regarding the exising oneM2M device management capability is FFS.
The
Table 7.1.2.1‑1: Child resources of
Child Resources of |
Child Resource Type
|
Multiplicity
|
Description
|
|
|---|---|---|---|---|
[variable]
|
0..n
|
See clause 9.6.30 [1]
|
||
[variable]
|
0..n
|
See clause 9.6.8 [1]
|
||
[variable]
|
0..n
|
See clause 7.1.2.2
|
||
[variable]
|
1
|
See clause 9.6.27 [1]
|
None
|
|
[variable]
|
1
|
See clause 9.6.28 [1]
|
None
|
NOTE: The
andvirtual resources of arefer to the childresources with the most recent and the least recent creationTime respectively.
The
Table 7.1.2.1‑2: Attributes of
Attributes of |
Multiplicity
|
RW/ RO/ WO |
Description
|
|
|---|---|---|---|---|
resourceType
|
1
|
RO
|
See clause 9.6.1.3 [1]
|
NA
|
resourceID
|
1
|
RO
|
See clause 9.6.1.3 [1]
|
NA
|
resourceName
|
1
|
WO
|
See clause 9.6.1.3 [1]
|
NA
|
parentID
|
1
|
RO
|
See clause 9.6.1.3 [1]
|
NA
|
expirationTime
|
1
|
RW
|
See clause 9.6.1.3 [1]
|
MA
|
accessControlPolicyIDs
|
0..1 (L)
|
RW
|
See clause 9.6.1.3 [1]
|
MA
|
labels
|
0..1 (L)
|
RW
|
See clause 9.6.1.3 [1]
|
MA
|
creationTime
|
1
|
RO
|
See clause 9.6.1.3 [1]
|
NA
|
lastModifiedTime
|
1
|
RO
|
See clause 9.6.1.3 [1]
|
NA
|
announceTo
|
0..1 (L)
|
RW
|
See clause 9.6.1.3 [1]
|
NA
|
announcedAttribute
|
0..1 (L)
|
RW
|
See clause 9.6.1.3 [1]
|
NA
|
announceSyncType
|
0..1
|
RW
|
See clause 9.6.1.3 [1]
|
MA
|
dynamicAuthorizationConsultationIDs
|
0..1 (L)
|
RW
|
See clause 9.6.1.3 [1]
|
OA
|
creator
|
0..1
|
RO
|
See clause 9.6.1.3 [1]
|
NA
|
custodian
|
0..1
|
RW
|
See clause 9.6.1.3 [1]
|
NA
|
currentNumberOfModels
|
1
|
RO
|
The current number of ML models in the repository.
|
OA
|
currentByteOfModels
|
1
|
RO
|
The current total byte size of ML models in the repository.
|
OA
|
maxNumberOfModels
|
0..1
|
RW
|
The maximum number of ML models which can be stored in the repository.
|
OA
|
maxByteOfModels |
0..1
|
RW
|
The maximum byte size of ML models which can be stored in the repository. This maxByteOfModels bounds only the model bytes stored by the Hosting CSE, i.e. those carried in the mlModel attribute. resources registered by mlModelURL are bounded by maxNumberOfModels only.
|
OA
|
maxByteOfSingleModel
|
0..1
|
RW
|
The maximum byte size of an ML model that a single resource in this repository may carry in its mlModel attribute. The size is that of the decoded model, i.e. the value reported in mlModelSize, and not the length of its Base64 encoding. This attribute does not constrain resources that carry mlModelURL. When this attribute is not present, no repository specific per-model limit applies.
|
OA
|
The
Table 7.1.2.2‑1: Child resources of
Child Resources of |
Child Resource Type
|
Multiplicity
|
Description
|
|
|---|---|---|---|---|
[variable]
|
0..n
|
See clause 9.6.30 [1]
|
||
[variable]
|
0..n
|
See clause 9.6.8 [1]
|
The resource shall contain the attributes specified in table 7.1.2.2‑2.
Table 7.1.2.2‑2: Attributes of
Attributes of |
Multiplicity
|
RW/ RO/ WO |
Description
|
|
|---|---|---|---|---|
resourceType
|
1
|
RO
|
See clause 9.6.1.3 [1]
|
NA
|
resourceID
|
1
|
RO
|
See clause 9.6.1.3 [1]
|
NA
|
resourceName
|
1
|
WO
|
See clause 9.6.1.3 [1]
|
NA
|
parentID
|
1
|
RO
|
See clause 9.6.1.3 [1]
|
NA
|
expirationTime
|
1
|
RW
|
See clause 9.6.1.3 [1]
|
MA
|
accessControlPolicyIDs
|
0..1 (L)
|
RW
|
See clause 9.6.1.3 [1]
|
MA
|
labels
|
0..1 (L)
|
RW
|
See clause 9.6.1.3 [1]
|
MA
|
creationTime
|
1
|
RO
|
See clause 9.6.1.3 [1]
|
NA
|
lastModifiedTime
|
1
|
RO
|
See clause 9.6.1.3 [1]
|
NA
|
announceTo
|
0..1 (L)
|
RW
|
See clause 9.6.1.3 [1]
|
NA
|
announcedAttribute
|
0..1 (L)
|
RW
|
See clause 9.6.1.3 [1]
|
NA
|
announceSyncType
|
0..1
|
RW
|
See clause 9.6.1.3 [1]
|
MA
|
dynamicAuthorizationConsultationIDs
|
0..1 (L)
|
RW
|
See clause 9.6.1.3 [1]
|
OA
|
creator
|
0..1
|
RO
|
See clause 9.6.1.3 [1]
|
NA
|
custodian
|
0..1
|
RW
|
See clause 9.6.1.3 [1]
|
NA
|
name
|
0..1
|
RW
|
The human readable name of the ML model.
|
OA
|
version
|
1
|
RW
|
The version of the ML model.
|
OA
|
platform
|
1
|
RW
|
The ML platform that trained the model. (e.g. tensorFlow)
|
OA
|
mlType
|
1
|
RW
|
The type of ML algorithm (e.g. regression, classification).
|
OA
|
description
|
0..1
|
RW
|
The human readable description of the ML model.
|
OA
|
trainingDatasetID
|
0..1
|
WO
|
The resource ID of the |
OA
|
inputSample
|
0..1
|
RW
|
The sample data of inference input.
|
OA
|
outputSample
|
0..1
|
RW
|
The sample data of inference output.
|
OA
|
0..1(L)
|
RW
|
The |
OA
| |
0..1(L)
|
R |
The |
OA
| |
0..1
|
RW
|
OA
| ||
postprocessingRef
|
0..1
|
RW
|
A reference to the definition of the postprocessing to be applied to the raw output of the ML model in order to obtain the value that the inference is intended to produce, for example the dequantization of a quantized output. The value is a URI.
|
OA
|
modelSignatureRef
|
0..1
|
RW
|
A reference to an external description of the ML model's input and output signature that is more expressive than inputDescriptor and outputDescriptor, for example one that describes tensor shapes or that is specific to an ML framework. The value is a URI.
|
OA
|
mlModel
|
0..1
|
RW
|
The Base 64 encoded binary ML model. When a model consists more than one file, than the zipped file is stored in this attribute. This cannot be present with mlModelURL .
|
OA
|
modelFormat
|
0..1
|
RW
|
The serialization format of the ML model carried in mlModel or referenced by mlModelURL (e.g. "onnx", "pickle", "savedModel", "tflite").
|
OA
|
runtimeDependency
|
0..1(L)
|
RW
|
The software runtime(s) required to load and execute the ML model. Each element consists of a name identifying the runtime or library (e.g. "scikit-learn") and a versionRange constraining the versions of that runtime with which the model can be loaded (e.g. ">=1.5,<1.6").
|
OA
|
mlModelSize
|
0..1
|
RO
|
The byte size of the ML model stored in mlModel. This shall be present if and only if mlModel is present. An resources carrying mlModelURL shall not contribute to the currentByteOfModels of the parent resource.
|
OA
|
mlModelURL
|
0..1
|
RW
|
The URL of the ML model. This cannot be present with mlModel.
|
OA
|
mlModelIsArchive
|
0..1
|
RW
|
Indicates whether the content carried in mlModel or referenced by mlModelURL is an archive (e.g. a zip) containing more than one file, as opposed to a single model file.
|
OA
|
mlModelEntryPoint
|
0..1
|
RW
|
Shall be present if and only if mlModelIsArchive is true. The path, relative to the root of the archive, of the file that a consumer shall open first to load the model.
|
OA
|
NOTE 1: The platform attribute records the ML platform on which the model was trained. It is not a statement of what is required to execute the model, and it does not carry a runtime version. The version attribute is the version of the ML model itself, not of any runtime.
NOTE 2: The Hosting CSE does not interpret runtimeDependency. It is provided so that the entity that loads and executes the model can determine, before doing so, whether its own runtime satisfies the requirements stated by the model provider.
NOTE 3: modelFormat and the name component of runtimeDependency describe different things and are not interchangeable. modelFormat identifies how the ML model is serialized; name identifies the software that reads that serialization. A single format may be readable by more than one runtime, and a single runtime may read more than one format.
NOTE 4: mlModelEntryPoint identifies the file at which a consumer starts reading the ML model. It does not describe the internal layout of the archive. Some serialization formats require companion files at fixed paths relative to the entry point, and an archive is therefore to be unpacked as a whole, preserving relative paths, before the entry point is opened.
NOTE 5: The following illustrates inputDescriptor and outputDescriptor for a model that takes two sensor readings and produces one estimate:
inputDescriptor [ {"name": "temperature", "dataType": "xs:float", "unit": "Cel", "optional": false},
{"name": "humidity", "dataType": "xs:float", "unit": "%", "optional": false} ] outputDescriptor [ {"name": "y", "dataType": "xs:float", "optional": false} ]
The values of name are those of the listOfFeatures attribute of the
The
Table 7.1.2.3‑1: Child resources of
Child Resources of |
Child Resource Type
|
Multiplicity
|
Description
|
|
|---|---|---|---|---|
[variable]
|
0..n
|
See clause 9.6.30 [1]
|
||
[variable]
|
0..n
|
See clause 9.6.8 [1]
|
||
[variable]
|
0..n
|
See 7.1.2.4
|
The
Table 7.1.2.3‑2: Attributes of
Attributes of |
Multiplicity
|
RW/ RO/ WO |
Description
|
|
|---|---|---|---|---|
resourceType
|
1
|
RO
|
See clause 9.6.1.3 [1]
|
NA
|
resourceID
|
1
|
RO
|
See clause 9.6.1.3 [1]
|
NA
|
resourceName
|
1
|
WO
|
See clause 9.6.1.3 [1]
|
NA
|
parentID
|
1
|
RO
|
See clause 9.6.1.3 [1]
|
NA
|
expirationTime
|
1
|
RW
|
See clause 9.6.1.3 [1]
|
MA
|
accessControlPolicyIDs
|
0..1 (L)
|
RW
|
See clause 9.6.1.3 [1]
|
MA
|
labels
|
0..1 (L)
|
RW
|
See clause 9.6.1.3 [1]
|
MA
|
creationTime
|
1
|
RO
|
See clause 9.6.1.3 [1]
|
NA
|
lastModifiedTime
|
1
|
RO
|
See clause 9.6.1.3 [1]
|
NA
|
announceTo
|
0..1 (L)
|
RW
|
See clause 9.6.1.3 [1]
|
NA
|
announcedAttribute
|
0..1 (L)
|
RW
|
See clause 9.6.1.3 [1]
|
NA
|
announceSyncType
|
0..1
|
RW
|
See clause 9.6.1.3 [1]
|
MA
|
dynamicAuthorizationConsultationIDs
|
0..1 (L)
|
RW
|
See clause 9.6.1.3 [1]
|
OA
|
creator
|
0..1
|
RO
|
See clause 9.6.1.3 [1]
|
NA
|
custodian
|
0..1
|
RW
|
See clause 9.6.1.3 [1]
|
NA
|
numberOfDeployedModels
|
1
|
RO
|
The the number of ML models whose status is "deployed" among the models in this deployment list.
|
OA
|
numberOfRunningModels
|
1
|
RO
|
The the number of ML models whose status is "running" among the models in this deployment list.
|
OA
|
numberOfStoppedModels
|
1
|
RO
|
The the number of ML models whose status is "stopped" among the models in this deployment list.
|
OA
|
The
NOTE 2: The present document does not specify what a
resource becomes when theresource addressed by its modelID attribute is deleted, whether by an explicit Delete request or by the retention behaviour of clause 7.1.3.2. Three approaches have been identified: a)resources referenced by an existingresource are excluded from retention deletion; b) theresource is deleted, the Hosting CSE sets the modelStatus attribute of each referringresource to a value indicating that the model is no longer available, and subscribers are notified accordingly; c) a Create request that would cause the deletion of a referencedresource is rejected. Approach b) is consistent with the general oneM2M treatment of deletion, which does not prevent deletion but makes its effects observable, and it reuses the counters already defined on theresource. It requires an additional modelStatus enumeration value to be defined. This is for further study.
Another AE can remotely manipulate the model status with the modelCommand attribute. It can run or stop the deployed model.
Table 7.1.2.4‑1: Child resources of
Child Resources of |
Child Resource Type
|
Multiplicity
|
Description
|
|
|---|---|---|---|---|
[variable]
|
0..n
|
See clause 9.6.30 [1]
|
||
[variable]
|
0..n
|
See clause 9.6.8 [1]
|
The
Table 7.1.2.4‑2: Attributes of
Attributes of |
Multiplicity
|
RW/ RO/ WO |
Description
|
|
|---|---|---|---|---|
resourceType
|
1
|
RO
|
See clause 9.6.1.3 [1]
|
NA
|
resourceID
|
1
|
RO
|
See clause 9.6.1.3 [1]
|
NA
|
resourceName
|
1
|
WO
|
See clause 9.6.1.3 [1]
|
NA
|
parentID
|
1
|
RO
|
See clause 9.6.1.3 [1]
|
NA
|
expirationTime
|
1
|
RW
|
See clause 9.6.1.3 [1]
|
MA
|
accessControlPolicyIDs
|
0..1 (L)
|
RW
|
See clause 9.6.1.3 [1]
|
MA
|
labels
|
0..1 (L)
|
RW
|
See clause 9.6.1.3 [1]
|
MA
|
creationTime
|
1
|
RO
|
See clause 9.6.1.3 [1]
|
NA
|
lastModifiedTime
|
1
|
RO
|
See clause 9.6.1.3 [1]
|
NA
|
announceTo
|
0..1 (L)
|
RW
|
See clause 9.6.1.3 [1]
|
NA
|
announcedAttribute
|
0..1 (L)
|
RW
|
See clause 9.6.1.3 [1]
|
NA
|
announceSyncType
|
0..1
|
RW
|
See clause 9.6.1.3 [1]
|
MA
|
dynamicAuthorizationConsultationIDs
|
0..1 (L)
|
RW
|
See clause 9.6.1.3 [1]
|
OA
|
creator
|
0..1
|
RO
|
See clause 9.6.1.3 [1]
|
NA
|
custodian
|
0..1
|
RW
|
See clause 9.6.1.3 [1]
|
NA
|
modelID |
1 |
WO
|
The resource ID of the |
OA
|
modelCommand |
1
|
RW
|
This attribute is not returned in a response, but can be included in an Update request to update the modelStatus . Allowed values for an Update request is "run"(1) and "stop" (0).
|
NA
|
modelStatus |
1
|
RO
|
The status of the deployed ML model which is "deployed"(0), "running"(1) or "stopped"(2). The default is "deployed" |
OA
|
inputResource
|
1
|
RW
|
The resource ID of the inference input resource.
|
OA
|
outputResource
|
1
|
RW
|
The resource ID of the inference output.
|
OA
|
No change from the CRUD procedures in clause 10.1[1].
No change from the CRUD procedures iIn an clause 10.1[1].
When maxByteOfSingleModel, maxByteOfModels or maxNumberOfModels is not present in the parent
NOTE 1: The order above is significant. Steps 1) and 2) can reject the request, so they are evaluated before step 3), which deletes resources. Were the order reversed, a request that is subsequently rejected could already have deleted
resources that the Originator did not intend to remove.
NOTE 2: The behaviour specified for maxNumberOfModels follows the retention behaviour specified for
in clause 10.2.4.7 of TS-0001 [1], where a creation that violates maxNrOfInstances or maxByteSize causes the oldest resources to be removed.
NOTE 3: The behaviour specified for maxByteOfModels deliberately differs from that of
. Deletion by size is not bounded: admitting one large resource can delete several smaller ones in a single operation, whereas the number constraint removes at most one resource per creation. Since an resource may be referenced by resources that are in use, the number of resources removed as a side effect of a Create request is kept predictable. No change from the Retrieve, Update and Delete procedures in clause 10.1 [1].
No change from the CRUD procedures in clause 10.1[1].
In a
No change from the Create, Retrieve and Delete procedures in clause 10.1[1].
NOTE: A
resource identifies theresource to be executed. Its existence does not by itself grant the AE any privilege on thatresource. Access to anresource is granted only through its accessControlPolicyIDs attribute as specified in clause 9.6.1.3.2 of TS-0001 [1]. When accessControlPolicyIDs is not set on anresource, the default access policy of that clause grants unrestricted access only to the Originator that created it. An entity that registers an ML model for deployment to devices therefore needs to associate angranting Retrieve privilege to those devices; otherwise the Retrieve of theresource described in clause 7.1.2.4 fails with "ORIGINATOR_HAS_NO_PRIVILEGE".
The mechanism and the resource structure of AI/ML dataset management is similar to the


Figure 7.2.1‑1: Resource structure for AI/ML dataset management
When the resources get instantiated it would look like the figure 7.2.1‑2. One dataset policy resource can have two dataset resources: one for historical dataset which is used for AI/ML model training, and the other is the live dataset for inference with the trained models. Each dataset resource contains dataset fragments.
The datasetFormat attribute in the


Figure 7.2.1‑2: Resource tree example
The
Table 7.2.2.1‑1: Child resources of
Child Resources of |
Child Resource Type
|
Multiplicity
|
Description
|
|
|---|---|---|---|---|
[variable]
|
0..n
|
See clause 9.6.30 [1]
|
||
[variable]
|
0..n
|
See clause 9.6.8 [1]
|
The
Table 7.2.2.1‑2: Attributes of
Attributes of |
Multiplicity
|
RW/ RO/ WO |
Description
|
|
|---|---|---|---|---|
resourceType
|
1
|
RO
|
See clause 9.6.1.3 [1]
|
NA
|
resourceID
|
1
|
RO
|
See clause 9.6.1.3 [1]
|
NA
|
resourceName
|
1
|
WO
|
See clause 9.6.1.3 [1]
|
NA
|
parentID
|
1
|
RO
|
See clause 9.6.1.3 [1]
|
NA
|
expirationTime
|
1
|
RW
|
See clause 9.6.1.3 [1]
|
MA
|
accessControlPolicyIDs
|
0..1 (L)
|
RW
|
See clause 9.6.1.3 [1]
|
MA
|
labels
|
0..1 (L)
|
RW
|
See clause 9.6.1.3 [1]
|
MA
|
creationTime
|
1
|
RO
|
See clause 9.6.1.3 [1]
|
NA
|
lastModifiedTime
|
1
|
RO
|
See clause 9.6.1.3 [1]
|
NA
|
announceTo
|
0..1 (L)
|
RW
|
See clause 9.6.1.3 [1]
|
NA
|
announcedAttribute
|
0..1 (L)
|
RW
|
See clause 9.6.1.3 [1]
|
NA
|
announceSyncType
|
0..1
|
RW
|
See clause 9.6.1.3 [1]
|
MA
|
dynamicAuthorizationConsultationIDs
|
0..1 (L)
|
RW
|
See clause 9.6.1.3 [1]
|
OA
|
creator
|
0..1
|
RO
|
See clause 9.6.1.3 [1]
|
NA
|
custodian
|
0..1
|
RW
|
See clause 9.6.1.3 [1]
|
NA
|
sourceResourceIDs
|
1(L)
|
WO
|
The resource IDs which builds a dataset When the target resource is a When the target resource is a When the target resource is a |
OA
|
datasetStartTime
|
0..1
|
WO
|
The timestamp filter as the start time of source data resources. creationTime or dataGenerationTime depending on the source resource type, gets filtered. If datasetStartTime and datasetEndTime both are not provided, then all data instanes of source resources get included in the dataset. |
OA
|
datasetEndTime
|
0..1
|
WO
|
The timestamp filter as the end time of source data resources. creationTime or dataGenerationTime depending on the source resource type, gets filtered. If datasetStartTime and datasetEndTime both are not provided, then all data instanes of source resources get included in the dataset. |
OA
|
timeCorrelationStartTime
|
0..1
|
WO
|
When more than one data from source resources get batched as one, this timestamp indicates the start time of each recurring windows.
|
OA
|
timeCorrelationDuration
|
0..1
|
WO
|
This indicates duration for each data batch window.
|
OA
|
nullValuePolicy
|
0..1
|
WO
|
This indicates null(empty) value handling policy (e.g. leave as null, fill with last-known values) for the created dataset.
|
OA
|
datasetFormat
|
1
|
WO
|
The serialization format of the dataset. (e.g. CSV, JSON) Note: CSV format is not supported in oneM2M yet. |
OA
|
historicalDatasetID
|
0..1
|
RO
|
The ID of the <dataset > resource for a training dataset which gets generated with existing source resources (i.e. historical data) referred by the sourceResourceIDs attribute.
|
OA
|
numberOfRowsForHistoricalDataset |
0..1
|
WO
|
The number of data fragment of the dataset is stored in a single <datasetFragment > resource of the historical dataset. Default is all rows in one fragment. |
OA
|
numberOfRowsForLiveDataset |
0..1
|
WO
|
The number of data fragment of the dataset is stored in a single <datasetFragment > resource of the live dataset. Default is 1(one). |
OA
|
liveDatasetID |
0..1
|
RO
|
The ID of the <dataset > resource for a dataset which gets generated with newly created source resources after creation of the <mlDatasetPolicy > resource. When |
OA
|
The
The
Table 7.2.2.2‑1: Child resources of
Child Resources of |
Child Resource Type
|
Multiplicity
|
Description
|
|
|---|---|---|---|---|
[variable]
|
0..n
|
See clause 9.6.30 [1]
|
||
[variable]
|
0..n
|
See clause 9.6.8 [1]
|
||
la
|
1
|
This virual resource refers the latest |
None
|
|
ol
|
1
|
This virual resource refers the oldest |
None
|
|
[variable] |
0..n
|
See clause 7. |
NOTE: The
andvirtual resources of arefer to the childresources with the most recent and the least recent creationTime respectively.
The
Table 7.2.2.2‑2: Attributes of
Attributes of |
Multiplicity
|
RW/ RO/ WO |
Description
|
|
|---|---|---|---|---|
resourceType
|
1
|
RO
|
See clause 9.6.1.3 [1]
|
NA
|
resourceID
|
1
|
RO
|
See clause 9.6.1.3 [1]
|
NA
|
resourceName |
1
|
NA
| ||
parentID
|
1
|
RO
|
See clause 9.6.1.3 [1]
|
NA
|
expirationTime |
1
|
MA
| ||
accessControlPolicyIDs
|
0..1 (L)
|
RW
|
See clause 9.6.1.3 [1]
|
MA
|
labels
|
0..1 (L)
|
RW
|
See clause 9.6.1.3 [1]
|
MA
|
creationTime
|
1
|
RO
|
See clause 9.6.1.3 [1]
|
NA
|
lastModifiedTime
|
1
|
RO
|
See clause 9.6.1.3 [1]
|
NA
|
announceTo
|
0..1 (L)
|
RW
|
See clause 9.6.1.3 [1]
|
NA
|
announcedAttribute
|
0..1 (L)
|
RW
|
See clause 9.6.1.3 [1]
|
NA
|
announceSyncType
|
0..1
|
RW
|
See clause 9.6.1.3 [1]
|
MA
|
dynamicAuthorizationConsultationIDs
|
0..1 (L)
|
RW
|
See clause 9.6.1.3 [1]
|
OA
|
creator
|
0..1
|
RO
|
See clause 9.6.1.3 [1]
|
NA
|
custodian
|
0..1
|
RW
|
See clause 9.6.1.3 [1]
|
NA
|
mlDatasetPolicyID
|
1
|
RO
|
The ID of the <mlDatasetPolicyID > resource which generated this <dataset > resource.
|
OA
|
listOfFeatures
|
1
|
RO
|
The list of dataset feature names.
|
OA
|
NOTE: management mechanism for location attribute of a dataset which merges more than one data sharing resources is FFS
The
The
NOTE: A
resource has no child resources. It is immutable once created and is not a subscription target; subscribers observe new fragments through aon the parentresource.
Table 7.2.2.3‑1: Attributes of
Attributes of |
Multiplicity
|
RW/ RO/ WO |
Description
|
|
|---|---|---|---|---|
resourceType
|
1
|
RO
|
See clause 9.6.1.3 [1]
|
NA
|
resourceID
|
1
|
RO
|
See clause 9.6.1.3 [1]
|
NA
|
resourceName
|
1
|
RO
|
See clause 9.6.1.3 [1]
|
NA
|
parentID
|
1
|
RO
|
See clause 9.6.1.3 [1]
|
NA
|
labels
|
0..1 (L)
|
WO
|
See clause 9.6.1.3 [1]
|
MA
|
creationTime
|
1
|
RO
|
See clause 9.6.1.3 [1]
|
NA
|
expirationTime
|
1
|
WO
|
See clause 9.6.1.3 [1]
|
NA
|
announceTo
|
0..1 (L)
|
WO
|
See clause 9.6.1.3 [1]
|
NA
|
announcedAttribute
|
0..1 (L)
|
WO
|
See clause 9.6.1.3 [1]
|
NA
|
announceSyncType
|
0..1
|
RW
|
See clause 9.6.1.3 [1]
|
MA
|
lastModifiedTime
|
1
|
RO
|
See clause 9.6.1.3 [1]
|
NA
|
datasetFragmentStartTime
|
1
|
RO
|
The oldest timestamp among the data in the dataset attribute.
|
OA
|
datasetFragmentEndTime
|
1
|
RO
|
The latest timestamp among the data in the dataset attribute.
|
OA
|
numberOfRowsInFragment
|
1
|
RO
|
The number of data in the dataset attribute.
|
OA
|
datasetFragment
|
1
|
RO
|
The dataset fragment generated by the <mlDatasetPolicy > resource, referred by mlDatasetPolicyID of the parent <dataset > resource.
|
OA
|
datasetFormat
|
1
|
RO
|
The serialization format of the dataset. (e.g. CSV, JSON) Note: CSV format is not supported in oneM2M yet. |
OA
|
No change from the CRUD procedures in clause 10.1[1].
Editor’s Note: How to merge structured data into a single dataset is FFS. (e.g. flattening structured data to merge into one dataset table)A resource created by the Hosting CSE on its own initiative shall be treated, for the purposes of subscription and notification, in the same way as a resource created by a Create request from an Originator. In particular, a on the parent resource with a matching notificationEventType shall be notified.
NOTE: This present document does not constrain the order in which child
resources are returned by a Retrieve or Discovery request targeting the parentresource. An Originator that reconstructs a dataset from its fragments would order the retrieved fragments by ascending datasetFragmentStartTime before concatenating them.
oneM2M serves as a fundamental Internet of Things (IoT) platform for collecting and managing diverse data. Artificial Intelligence (AI) and Machine Learning (ML) applications extensively utilise data gathered within IoT platforms for model training. The performance of AI models is directly influenced by the quality and quantity of the collected dataset used for training. In order to facilitate the effective deployment of AI/ML models, it is crucial that the IoT platform provides robust capabilities for managing the entire AI/ML lifecycle, particularly concerning data and model management. This includes the ability to organise datasets into distinct categories such as training, validation, and testing sets, which are essential for rigorous model development and evaluation. Furthermore, effective AI/ML execution requires the management of selected algorithms, their corresponding parameters, and the resulting trained models directly within the oneM2M ecosystem.
Given the increasing integration of AI/ML technologies across various network systems, including telecommunication core networks, smart factory platforms, and IoT platforms, it is imperative to incorporate necessary AI enablement features directly into IoT platforms. By leveraging oneM2M platforms that support standardized AI/ML data and model management, AI applications can more readily develop and deploy intelligent services by utilizing platform-provided functionalities rather than implementing complex, bespoke solutions.
This proposal introduces a new resource,
Key features of the
Preconditions and Assumptions for this Proposal:
This proposed mechanism is based on the following key preconditions and assumptions:
By providing these capabilities within oneM2M, AI/ML applications can streamline the model development workflow, leveraging the platform's existing data management strengths and reducing the complexity associated with off-platform data handling and model lifecycle management.
The
Table 7.3.2.1‑1: Child resources of
Child Resources of |
Child Resource Type
|
Multiplicity
|
Description
|
|
|---|---|---|---|---|
[variable]
|
0..n
|
See clause 9.6.30 [1]
|
||
[variable]
|
0..n
|
See clause 9.6.8 [1]
|
||
[variable]
|
0..n
|
See clause 9.6.48 [1]
|
||
[variable]
|
0..n
|
See clause 9.6.61 [1]
|
The
Table 7.3.2.1‑2: Attributes of
Attributes of |
Multiplicity
|
RW/ RO/ WO |
Description
|
|
|---|---|---|---|---|
resourceType
|
1
|
RO
|
See clause 9.6.1.3 [1]
|
NA
|
resourceID
|
1
|
RO
|
See clause 9.6.1.3 [1]
|
NA
|
resourceName
|
1
|
WO
|
See clause 9.6.1.3 [1]
|
NA
|
parentID
|
1
|
RO
|
See clause 9.6.1.3 [1]
|
NA
|
expirationTime
|
1
|
RW
|
See clause 9.6.1.3 [1]
|
MA
|
accessControlPolicyIDs
|
0..1 (L)
|
RW
|
See clause 9.6.1.3 [1]
|
MA
|
labels
|
0..1 (L)
|
RW
|
See clause 9.6.1.3 [1]
|
MA
|
creationTime
|
1
|
RO
|
See clause 9.6.1.3 [1]
|
NA
|
lastModifiedTime
|
1
|
RO
|
See clause 9.6.1.3 [1]
|
NA
|
announceTo
|
0..1 (L)
|
RW
|
See clause 9.6.1.3 [1]
|
NA
|
announcedAttribute
|
0..1 (L)
|
RW
|
See clause 9.6.1.3 [1]
|
NA
|
announceSyncType
|
0..1
|
RW
|
See clause 9.6.1.3 [1]
|
MA
|
dynamicAuthorizationConsultationIDs
|
0..1 (L)
|
RW
|
See clause 9.6.1.3 [1]
|
OA
|
creator
|
0..1
|
RO
|
See clause 9.6.1.3 [1]
|
NA
|
custodian
|
0..1
|
RW
|
See clause 9.6.1.3 [1]
|
NA
|
datasetTrain
|
0..1 (L)
|
RW
|
A list of resources storing training data. This attribute can contain multiple resource references, allowing for distributed or segmented training datasets.
|
OA
|
datasetValidation
|
0..1 (L)
|
RW
|
A list of resources storing validation data. Similar to datasetTrain, it can hold multiple references.
|
OA
|
datasetTest
|
0..1 (L)
|
RW
|
A list of resources for testing a model. This attribute can also contain multiple resource references.
|
OA
|
selectedModel
|
0..1
|
RW
|
An ML algorithm that represents the model to be performed. This specifies which type of ML model (e.g., Linear Regression, Neural Network, Decision Tree) the platform should use.
|
OA
|
modelParameters
|
0..1
|
RW
|
The parameters (hyperparameters) utilized by the selected algorithm. This could be a complex data structure (e.g., JSON or XML) defining learning rates, epochs, layer configurations, etc.
|
OA
|
trainedModel
|
0..1
|
RO
|
The resulting model (e.g., executable software, a model file, or a reference to a model registry) after the successful completion of training and validation.
|
OA
|
controlBuildModel
|
0..1
|
WO
|
This is a write-only attribute used to control the model building process. For example, this attribute can indicate various control actions such as start, pause, stop, and restart. When updated, the platform performs the corresponding operation. The assumption is that proper values for datasetTrain, datasetValidation, datasetTest, and selectedModel must be pre-configured before triggering.
|
OA
|
modelBuildStatus
|
0..1
|
RO
|
This attribute indicates the current status of the model build process initiated by controlBuildModel. This attribute allows applications to monitor the build progression and completion. Applications can subscribe to changes in this attribute to detect when the model build has been successfully completed or altered its state. Possible status this attribute could indicate include: Pending, In progress, Successful and Failed.
|
OA
|
Editor’s note: It is FFS how and where to manage an actual trained model build out of this resource including architectural options (e.g., dedicated model repository resource, 3rd party location) and overall lifecycle management (e.g., versioning, deployment).
Editor’s note: It is FFS how to manage and operate the mlModelBuilder resource, especially for recurrent model build processes or when external control is required (e.g., via a semantic mash-up profile or other resources supporting process management).
Federated Learning (FL) is a distributed machine learning paradigm in which model training is performed locally on multiple participating nodes and only model parameters or model updates (for example, weights or gradients) are exchanged with aggregation entities, rather than raw training data. Each participating node (FL Client) trains a local model instance on its own data and reports model updates to one or more FL Servers and/or FL Aggregators, which combine such updates to refine a global model. This approach contributes to keeping training data local, reducing backhaul traffic, and enabling model training closer to IoT data sources.
In real-world IoT environments, heterogeneous devices from various manufacturers and protocols coexist, making interoperability and integrated management challenging. Therefore, there is a critical need to integrate FL capabilities into a standardized framework such as the oneM2M platform. By defining a dedicated resource for FL within oneM2M, the system ensures data compatibility and interoperability among heterogeneous devices, enabling a hierarchical FL structure that utilizes Infrastructure Nodes (IN-CSE) and Middle Nodes (MN-CSE).
The proposed solution supports a hierarchical FL topology:
role set to "FLClient", retrieves the global model, performs local training on private data, and reports back model updates only.role set to "FLServer", distributes the global model, and drives the round lifecycle.role = "FLServer"), which allows the FL Aggregator to be hosted separately (e.g. as a distinct AE, or on a MEC Platform/Application) in later revisions of this solution.maxRounds, roundDeadline, minReportingNodes, deviceStatusCriteria) that are set by the FL Server/Orchestrating AE when the job is created or updated.In this proposed solution, the FL Server, FL Aggregator and FL Orchestrator roles are co-located in a single AE, referred to below as the Coordinator Application (e.g. an IN-AE), while each AE performing the FL Client role is referred to as a Trainer Application (e.g. an MN-AE or ADN-AE).
To seamlessly decouple these AEs and standardize their interactions, a dedicated FL resource hosted on a CSE (
A oneM2M CSE (IN-CSE or MN-CSE) acts purely as a resource host: it stores the
Figure 7.4.1‑1 illustrates the resource-tree topology for a deployment with one FL Server (hosted on an IN-CSE) and two FL Clients (hosted on MN-CSEs).


Figure 7.4.1‑1: Resource tree structure for Federated Learning
The
Furthermore, a local
Table 7.4.2.1‑1: Child resources of
Table 7.4.2.1‑2 details the attributes of the
Table 7.4.2.1‑2: Attributes of
Attributes of |
Multiplicity
|
RW/RO/WO
|
Description
|
|
|---|---|---|---|---|
resourceType
|
1
|
RO
|
See clause 9.6.1.3 [1]
|
NA
|
resourceID
|
1
|
RO
|
See clause 9.6.1.3 [1]
|
NA
|
resourceName
|
1
|
WO
|
See clause 9.6.1.3 [1]
|
NA
|
parentID
|
1
|
RO
|
See clause 9.6.1.3 [1]
|
NA
|
expirationTime
|
1
|
RW
|
See clause 9.6.1.3 [1]
|
MA
|
accessControlPolicyIDs
|
0..1 (L)
|
RW
|
See clause 9.6.1.3 [1]
|
MA
|
labels
|
0..1 (L)
|
RW
|
See clause 9.6.1.3 [1]
|
MA
|
creationTime
|
1
|
RO
|
See clause 9.6.1.3 [1]
|
NA
|
lastModifiedTime
|
1
|
RO
|
See clause 9.6.1.3 [1]
|
NA
|
announceTo
|
0..1 (L)
|
RW
|
See clause 9.6.1.3 [1]. An FL Client's |
NA
|
announcedAttribute
|
0..1 (L)
|
RW
|
See clause 9.6.1.3 [1]
|
NA
|
announceSyncType
|
0..1
|
RW
|
See clause 9.6.1.3 [1]
|
MA
|
creator
|
0..1
|
RO
|
See clause 9.6.1.3 [1]
|
NA
|
custodian
|
0..1
|
RW
|
See clause 9.6.1.3 [1]
|
NA
|
role
|
1
|
WO
|
The federated learning role performed by the AE/CSE that created this resource. Allowed values: "FLServer", "FLClient". The FL Aggregator and FL Orchestrator functions are not separate role values; an FL Server-role AE's function(s) are identified by serverFunctions.
|
OA
|
serverFunctions
|
0..1 (L)
|
RW
|
Present only when role = "FLServer". Identifies which FL Server-side function(s) apply to this job. Allowed values (one or more): "FLOrchestrator", "FLAggregator". In this proposed solution both values are performed by the single AE that created the resource.
|
OA
|
jobState
|
1
|
RW
|
The current state of the federated learning job (FSM control attribute). Allowed values: "FL_READY" (initialized, awaiting participants), "FL_TRAINING" (global model distributed, local training in progress/expected), "FL_REPORTING" (an FL Client has completed local training and is uploading/has uploaded its update), "FL_AGGREGATING" (FL Aggregator is combining received updates), "FL_COMPLETED" (job terminated). See clause 7.4.3.2 for the state transition diagram.
|
OA
|
currentRound
|
1
|
RW
|
The index of the training round currently in progress. Incremented by the FL Server at the start of each round. An FL Client compares this value against the round of the model it holds to decide whether to (re)join training.
|
OA
|
maxRounds
|
0..1
|
RW
|
Present only when role = "FLServer". The maximum number of training rounds after which the job is terminated (jobState set to "FL_COMPLETED") regardless of convergence.
|
OA
|
minReportingNodes
|
0..1
|
RW
|
Present only when role = "FLServer". The minimum number of FL Client reports that must be received in the current round before aggregation may begin.
|
OA
|
roundDeadline
|
0..1
|
RW
|
Present only when role = "FLServer". The maximum duration (or absolute time) an FL Server waits for FL Client reports in the current round before proceeding to aggregation with the reports received so far.
|
OA
|
aggStrategy
|
0..1
|
RW
|
Present only when role = "FLServer". Identifies the aggregation algorithm to apply to received model updates (e.g. "FedAvg").
|
OA
|
globalModelRef
|
0..1
|
RW
|
The address (resource ID or URI) from which the current global model can be retrieved. Set by the FL Server/FL Aggregator when a new global model is published; retrieved by FL Clients at the start of each round. May reference an jobState = "FL_READY") but shall be present before jobState is set to "FL_TRAINING".
|
OA
|
localModelRef
|
0..1
|
RW
|
The address (resource ID or URI) to which a model update shall be, or has been, uploaded. For an FL Client's |
OA
|
hyperParams
|
1
|
RW
|
The set of training hyperparameters, encapsulated as a JSON string (e.g. learningRate, batchSize, optimizer), applied by an FL Client during local training. Set by the FL Server/FL Orchestrator and distributed as part of the |
OA
|
localEpochs
|
0..1
|
RW
|
The number of local training iterations (epochs) an FL Client shall perform on its own data before reporting an update, set to reduce communication overhead by allowing more than one local epoch per round.
|
OA
|
dataVolume
|
0..1
|
RW
|
Present only when role = "FLClient". The size (e.g. number of local training samples) used by the FL Client in the current round, written by the FL Client together with its report to localModelRef to support weighted aggregation strategies (e.g. sample-weighted FedAvg).
|
OA
|
participantList
|
0..1 (L)
|
RW
|
Present only when role = "FLServer". The list of identifiers of FL Client AEs/CSEs admitted to participate in the job.
|
OA
|
deviceStatusCriteria
|
0..1
|
RW
|
The minimum device-resource conditions (e.g. minimum battery level, available CPU/memory thresholds) that an FL Client shall verify locally before accepting a training-round notification and transitioning to "FL_TRAINING". Enables resource-aware client selection at the FL Client rather than requiring the FL Server to poll device status.
|
OA
|
Table 7.4.2.1‑3: Attribute usage by role
Attribute
|
FL Server
|
FL Client
|
|---|---|---|
role
|
"FLServer"
|
"FLClient"
|
serverFunctions
|
Set to one or both of "FLOrchestrator", "FLAggregator" for the job
|
Not present
|
jobState
|
Tracks overall round state for the job
|
Tracks the local training state
|
globalModelRef
|
Global model publication address
|
Global model download address
|
localModelRef
|
Collection address for received updates
|
Local update upload address
|
maxRounds, minReportingNodes, roundDeadline, aggStrategy, participantList
|
Set (job-level policy)
|
Not present
|
deviceStatusCriteria, localEpochs, dataVolume
|
Set as distributed policy / not applicable
|
Consumed to control local behaviour / reported
|


Figure 7.4.2.2‑1: jobState transition diagram