7 Proposed Solutions

Editor’s Note: The section provides various AI/ML solutions for potential requirements.

7.1 AI/ML model management

7.1.1 Overview

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 managementFigure 7.1.1-1: Resource tree structure for ML model management
Figure 7.1.1‑1: Resource tree structure for ML model management

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.

7.1.2 Resource types

7.1.2.1 Resource Type modelRepo

The

Table 7.1.2.1‑1: Child resources of resource

Child Resources of
Child Resource Type
Multiplicity
Description
Child Resource Types
[variable]
0..n
,
[variable]
0..n
[variable]
0..n
[variable]
1
None
[variable]
1
None

NOTE: The and virtual resources of a refer to the child resources with the most recent and the least recent creationTime respectively.

The resource shall contain the attributes specified in table 7.1.2.1‑2.

Table 7.1.2.1‑2: Attributes of resource

Attributes of
Multiplicity
RW/
RO/
WO
Description
Attributes
resourceType
1
RO
NA
resourceID
1
RO
NA
resourceName
1
WO
NA
parentID
1
RO
NA
expirationTime
1
RW
MA
accessControlPolicyIDs
0..1 (L)
RW
MA
labels
0..1 (L)
RW
MA
creationTime
1
RO
NA
lastModifiedTime
1
RO
NA
announceTo
0..1 (L)
RW
NA
announcedAttribute
0..1 (L)
RW
NA
announceSyncType
0..1
RW
MA
dynamicAuthorizationConsultationIDs
0..1 (L)
RW
OA
creator
0..1
RO
NA
custodian
0..1
RW
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

7.1.2.2 Resource Type mlModel

The

Table 7.1.2.2‑1: Child resources of resource

Child Resources of
Child Resource Type
Multiplicity
Description
Child Resource Types
[variable]
0..n
,
[variable]
0..n

The resource shall contain the attributes specified in table 7.1.2.2‑2 resource shall contain the attributes specified in table 7.1.2.2‑2..

Table 7.1.2.2‑2: Attributes of resource

Attributes of
Multiplicity
RW/
RO/
WO
Description
Attributes
resourceType
1
RO
NA
resourceID
1
RO
NA
resourceName
1
WO
NA
parentID
1
RO
NA
expirationTime
1
RW
MA
accessControlPolicyIDs
0..1 (L)
RW
MA
labels
0..1 (L)
RW
MA
creationTime
1
RO
NA
lastModifiedTime
1
RO
NA
announceTo
0..1 (L)
RW
NA
announcedAttribute
0..1 (L)
RW
NA
announceSyncType
0..1
RW
MA
dynamicAuthorizationConsultationIDs
0..1 (L)
RW
OA
creator
0..1
RO
NA
custodian
0..1
RW
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 resource from which this ML model was trained.
OA
inputSample
0..1
RW
The sample data of inference input.
OA
outputSample
0..1
RW
The sample data of inference output.
OA
mlModelinputDescriptor
0..1(L)
RW
The Base 64 encodedbinary ML model. When a model consists more than one file, than the zipped file is storeordered list of features that the ML model takes as its inference input. Each element consists of a name, a dataType, and optionally a unit and ian this attribute. This cannot be present withoptional flag. The name is the feature name and, where the ML model was trained from a mlModelURL resource, is drawn from the listOfFeatures attribute of that resource. The dataType is an XSD built-in datatype. The unit, when present, is the unit of measurement of the feature. The optional flag, when present and set to true, indicates that the feature may be absent from an inference input; the default is false. The order of the elements is significant: the element at position i describes the feature supplied at position i of the ML model's input vector.
OA
mlModelSizeoutputDescriptor
0..1(L)
ROW
The byte size of the ML model stored in ordered list of values that the ML model produces as its inference output. Each element has the same structure and the same ordering rule as an element of inputDescriptor. mlModel .
OA
mlModelURLpreprocessingRef
0..1
RW
The URL of the ML model. This cannot be present with A reference to the definition of the preprocessing to be applied to raw feature values before they are supplied to the ML model, for example normalization parameters or categorical encodings. The value is a URI. mlModel .
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 resource identified by trainingDatasetID.

7.1.2.3 Resource Type modelDeploymentList

The

Table 7.1.2.3‑1: Child resources of resource

Child Resources of
Child Resource Type
Multiplicity
Description
Child Resource Types
[variable]
0..n
,
[variable]
0..n
[variable]
0..n
See 7.1.2.4

The resource shall contain the attributes specified in table 7.1.2.3‑2.

Table 7.1.2.3‑2: Attributes of resource

Attributes of
Multiplicity
RW/
RO/
WO
Description
Attributes
resourceType
1
RO
NA
resourceID
1
RO
NA
resourceName
1
WO
NA
parentID
1
RO
NA
expirationTime
1
RW
MA
accessControlPolicyIDs
0..1 (L)
RW
MA
labels
0..1 (L)
RW
MA
creationTime
1
RO
NA
lastModifiedTime
1
RO
NA
announceTo
0..1 (L)
RW
NA
announcedAttribute
0..1 (L)
RW
NA
announceSyncType
0..1
RW
MA
dynamicAuthorizationConsultationIDs
0..1 (L)
RW
OA
creator
0..1
RO
NA
custodian
0..1
RW
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

7.1.2.4 Resource Type modelDeployment

The accessControlPolicyIDs is not set on an resource, the default access policy of clause 9.6.1.3.2 of TS-0001 [1] grants unrestricted access only to the Originator that created it. An entity registering a model for deployment to devices therefore needs to associate an granting Retrieve to those devices. Once the AE serves the model, then it gets the inference input by the inputResource and run the ML model. Then the AE stores the inference result into the resource indicated by the outputResource. A referred resource by inputResource and outputResource are aresource sharing resources (e.g. <container> resource).

NOTE 2: The present document does not specify what a resource becomes when the resource 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 existing resource are excluded from retention deletion; b) the resource is deleted, the Hosting CSE sets the modelStatus attribute of each referring resource 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 referenced resource 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 the resource. 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 resource

Child Resources of
Child Resource Type
Multiplicity
Description
Child Resource Types
[variable]
0..n
,
[variable]
0..n

The resource shall contain the attributes specified in table 7.1.2.4‑2.

Table 7.1.2.4‑2: Attributes of resource

Attributes of
Multiplicity
RW/
RO/
WO
Description
Attributes
resourceType
1
RO
NA
resourceID
1
RO
NA
resourceName
1
WO
NA
parentID
1
RO
NA
expirationTime
1
RW
MA
accessControlPolicyIDs
0..1 (L)
RW
MA
labels
0..1 (L)
RW
MA
creationTime
1
RO
NA
lastModifiedTime
1
RO
NA
announceTo
0..1 (L)
RW
NA
announcedAttribute
0..1 (L)
RW
NA
announceSyncType
0..1
RW
MA
dynamicAuthorizationConsultationIDs
0..1 (L)
RW
OA
creator
0..1
RO
NA
custodian
0..1
RW
NA
modelID
1(L)
WO
The resource ID of the resource that is deployed.
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

7.1.3 Procedures

7.1.3.1 Procedures for

No change from the CRUD procedures in clause 10.1[1].

7.1.3.2 Procedures for

No change from the CRUD procedures iIn an clause 10.1 Create procedure the Hosting CSE shall evaluate the storage constraints of the parent resource in the following order, before the requested resource is created. 1) When the decoded byte size of the mlModel attribute value in the request exceeds maxByteOfSingleModel, or exceeds a Hosting CSE specific limit when that attribute is not present, the Hosting CSE shall reject the request with "NOT_ACCEPTABLE". The Originator may instead register the model by reference using the mlModelURL attribute. 2) When the creation would cause the currentByteOfModels attribute of the parent resource to exceed maxByteOfModels, the Hosting CSE shall reject the request with "NOT_ACCEPTABLE". No existing resource shall be deleted as a result of such a request. 3) When the creation would cause the currentNumberOfModels attribute of the parent resource to exceed maxNumberOfModels, the Hosting CSE shall delete the oldest child resource(s), in ascending order of creationTime, until the constraint is satisfied, and shall then create the requested resource.[1].

When maxByteOfSingleModel, maxByteOfModels or maxNumberOfModels is not present in the parent resource, the corresponding constraint does not apply.

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].

7.1.3.3 Procedures for

No change from the CRUD procedures in clause 10.1[1].

7.1.3.4 Procedures for

In a

No change from the Create, Retrieve and Delete procedures in clause 10.1[1].

NOTE: A resource identifies the resource to be executed. Its existence does not by itself grant the AE any privilege on that resource. Access to an resource 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 an resource, 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 an granting Retrieve privilege to those devices; otherwise the Retrieve of the resource described in clause 7.1.2.4 fails with "ORIGINATOR_HAS_NO_PRIVILEGE".

7.2 AI/ML dataset management

7.2.1 Overview

The mechanism and the resource structure of AI/ML dataset management is similar to the [1]. When an AE creates the resource with preferred policies for the Hosting CSE, the AI/ML dataset is created and managed by the Hosting CSE on behalf of the AE. Once a dataset is managed, other AEs can use the datasets for different applications.

Figure 7.2.1-1: Resource structure for AI/ML dataset managementFigure 7.2.1-1: Resource structure for AI/ML dataset management
Figure 7.2.1‑1: Resource structure for AI/ML dataset management

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 exampleFigure 7.2.1-2: Resource tree example
Figure 7.2.1‑2: Resource tree example

Figure 7.2.1‑2: Resource tree example

7.2.2 Resource types

7.2.2.1 Resource Type mlDatasetPolicy

The

Table 7.2.2.1‑1: Child resources of resource

Child Resources of
Child Resource Type
Multiplicity
Description
Child Resource Types
[variable]
0..n
,
[variable]
0..n

The resource shall contain the attributes specified in table 7.2.2.1‑2.

Table 7.2.2.1‑2: Attributes of resource

Attributes of
Multiplicity
RW/
RO/
WO
Description
Attributes
resourceType
1
RO
NA
resourceID
1
RO
NA
resourceName
1
WO
NA
parentID
1
RO
NA
expirationTime
1
RW
MA
accessControlPolicyIDs
0..1 (L)
RW
MA
labels
0..1 (L)
RW
MA
creationTime
1
RO
NA
lastModifiedTime
1
RO
NA
announceTo
0..1 (L)
RW
NA
announcedAttribute
0..1 (L)
RW
NA
announceSyncType
0..1
RW
MA
dynamicAuthorizationConsultationIDs
0..1 (L)
RW
OA
creator
0..1
RO
NA
custodian
0..1
RW
NA
sourceResourceIDs
1(L)
WO
The resource IDs which builds a dataset
When the target resource is a resource, content attribute of the children resouces get included in the dataset.
When the target resource is a resource, content attribute of the cchildren resouces get included in the dataset.
When the target resource is a resource, custom attributes of the children resouces get included in the dataset.
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 the is numberOfDataForInferenceRowsForLiveDataset set, a separate <dataset > resource gets created for newly created source resources.
OA

7.2.2.2 Resource Type dataset

The

The

Table 7.2.2.2‑1: Child resources of resource

Child Resources of
Child Resource Type
Multiplicity
Description
Child Resource Types
[variable]
0..n
,
[variable]
0..n
la
1
This virual resource refers the latest resource.
None
ol
1
This virual resource refers the oldest resource.
None
[variable]
0..n

NOTE: The and virtual resources of a refer to the child resources with the most recent and the least recent creationTime respectively.

The resource shall contain the attributes specified in table 7.2.2.2‑2.

Table 7.2.2.2‑2: Attributes of resource

Attributes of
Multiplicity
RW/
RO/
WO
Description
Attributes
resourceType
1
RO
NA
resourceID
1
RO
NA
resourceName
1
RWO
NA
parentID
1
RO
NA
expirationTime
1
RWO
MA
accessControlPolicyIDs
0..1 (L)
RW
MA
labels
0..1 (L)
RW
MA
creationTime
1
RO
NA
lastModifiedTime
1
RO
NA
announceTo
0..1 (L)
RW
NA
announcedAttribute
0..1 (L)
RW
NA
announceSyncType
0..1
RW
MA
dynamicAuthorizationConsultationIDs
0..1 (L)
RW
OA
creator
0..1
RO
NA
custodian
0..1
RW
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

7.2.2.3 Resource Type datasetFragment

The

The resource shall contain the attributes specified in table 7.2.2.3‑1.

NOTE: A resource has no child resources. It is immutable once created and is not a subscription target; subscribers observe new fragments through a on the parent resource.

Table 7.2.2.3‑1: Attributes of resource

Attributes of
Multiplicity
RW/
RO/
WO
Description
Attributes
resourceType
1
RO
NA
resourceID
1
RO
NA
resourceName
1
RO
NA
parentID
1
RO
NA
labels
0..1 (L)
WO
MA
creationTime
1
RO
NA
expirationTime
1
WO
NA
announceTo
0..1 (L)
WO
NA
announcedAttribute
0..1 (L)
WO
NA
announceSyncType
0..1
RW
MA
lastModifiedTime
1
RO
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

7.2.3 Procedures

7.2.3.1 Procedures for

No change from the CRUD procedures in clause 10.1[1].

7.2.3.2 Procedures for

A clause 10.1[1].

7.2.3.3 Procedures for

A 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 parent resource. An Originator that reconstructs a dataset from its fragments would order the retrieved fragments by ascending datasetFragmentStartTime before concatenating them.

7.3 AI/ML Training Model Management

7.3.1 Overview

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, , within the oneM2M platform to facilitate comprehensive data and model management for AI/ML applications. This resource provides the necessary functionalities for AI/ML applications to construct predictive models.

Key features of the resource include:

  • Training Dataset Classification: Enables the classification and management of datasets into training, validation, and testing sets, vital for the iterative process of model development and evaluation.
  • AI/ML Model Selection and Parameters: Provides mechanisms to specify the AI/ML algorithm an AI application intends to use and to define the required hyperparameters for the selected model.
  • Trained Model Management: Facilitates the management and storage of the resulting model subsequent to the training and validation processes, making the learned model accessible for inference.
  • Model Building Control: Provides a controlling mechanism to initiate the model building process, assuming that all prerequisites are met.

Preconditions and Assumptions for this Proposal:

This proposed mechanism is based on the following key preconditions and assumptions:

  • Data Availability on oneM2M Platform: It is assumed that the oneM2M platform either already holds or can reliably acquire all necessary data for both model training and subsequent prediction tasks. This implies that relevant data sources (e.g., from sensors, devices) are accessible via oneM2M resources.
  • AI/ML Algorithm Awareness: It is assumed that the oneM2M platform, potentially through an "AI-enabled Common Service Function (CSF)" or similar entity, possesses knowledge of a predefined list of available ML algorithms that can be utilized for model building.
  • AI/ML Application Interaction: AI/ML applications are expected to interact with the oneM2M platform by creating and configuring resources, controlling model builds, and subsequently retrieving the trained models for their specific inference tasks.

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.

7.3.2 Resource types

7.3.2.1 Resource Type mlModelBuilder

The resource represents.

Table 7.3.2.1‑1: Child resources of resource

Child Resources of
Child Resource Type
Multiplicity
Description
Child Resource Types
[variable]
0..n
,
[variable]
0..n
[variable]
0..n
[variable]
0..n

The resource shall contain the attributes specified in table 7.3.2.1‑2.

Table 7.3.2.1‑2: Attributes of resource

Attributes of
Multiplicity
RW/
RO/
WO
Description
Attributes
resourceType
1
RO
NA
resourceID
1
RO
NA
resourceName
1
WO
NA
parentID
1
RO
NA
expirationTime
1
RW
MA
accessControlPolicyIDs
0..1 (L)
RW
MA
labels
0..1 (L)
RW
MA
creationTime
1
RO
NA
lastModifiedTime
1
RO
NA
announceTo
0..1 (L)
RW
NA
announcedAttribute
0..1 (L)
RW
NA
announceSyncType
0..1
RW
MA
dynamicAuthorizationConsultationIDs
0..1 (L)
RW
OA
creator
0..1
RO
NA
custodian
0..1
RW
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).

7.4 Enablement of Federated Learning

7.4.1 Overview

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:

  • FL Client: realized by an AE (e.g. an ADN-AE or MN-AE on a constrained edge device) that creates a local resource with role set to "FLClient", retrieves the global model, performs local training on private data, and reports back model updates only.
  • FL Server: realized by an AE (e.g. an IN-AE hosted on an IN-CSE, or an MN-AE hosted on an MN-CSE for a local/regional deployment) that creates and manages the resource with role set to "FLServer", distributes the global model, and drives the round lifecycle.
  • FL Aggregator: realized by the same, or a delegated, AE that retrieves the reported model updates from the Hosting CSE, performs the aggregation function (e.g. FedAvg), and republishes the updated global model. In this proposed solution the FL Aggregator function is co-located with the FL Server (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.
  • FL Orchestrator: the policy and lifecycle-management functions (round scheduling, client selection) are represented as attributes of the resource (e.g. 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 () is introduced. Rather than communicating directly, the Coordinator Application and Trainer Applications interact only through the following core properties defined within this resource:

  • State and Round Control: properties to synchronize the current training phase (e.g. training, reporting, aggregating) and track the current iteration round across all participating nodes.
  • Model and Aggregation Management: properties providing URI references for the global model to be downloaded and the target resource locations where local training results should be uploaded.
  • Training Hyperparameters: properties encapsulating the learning configurations required for local training, such as learning rate, batch size, local epochs, and optimizer.
  • Membership and Role Management: properties specifying the functional role of the node — Coordinator Application (encompassing the FL Orchestrator and FL Aggregator roles) or Trainer Application (acting as the FL Client) — and identifying the target devices authorized to participate in each training round.
  • Device Condition: an optional property defining minimum device status criteria (e.g. battery or memory thresholds) to dynamically filter eligible Trainer Applications before a round starts.

A oneM2M CSE (IN-CSE or MN-CSE) acts purely as a resource host: it stores the resource and associated model data, and notifies subscribed FL Clients of state changes. The CSE does not interpret FL semantics.

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 LearningFigure 7.4.1-1: Resource tree structure for Federated Learning
Figure 7.4.1‑1: Resource tree structure for Federated Learning

Figure 7.4.1‑1: Resource tree structure for Federated Learning

7.4.2 Resource Types

7.4.2.1 Resource Type flJob

The

Furthermore, a local

Table 7.4.2.1‑1: Child resources of resource |Child Resources of <flJob>|Child Resource Type|Multiplicity|Description|<flJob> Child Resource Types| |-|-|-|-|-| |[variable]|<semanticDescriptor>|0..n|See clause 9.6.30[1]|<semanticDescriptor>, <semanticDescriptorAnnc>| |[variable]||0..n|See clause 9.6.8[1]||

Table 7.4.2.1‑2 details the attributes of the resource used for Federated Learning control, model management, configurations, and membership.

Table 7.4.2.1‑2: Attributes of resource

Attributes of
Multiplicity
RW/RO/WO
Description
Attributes
resourceType
1
RO
NA
resourceID
1
RO
NA
resourceName
1
WO
NA
parentID
1
RO
NA
expirationTime
1
RW
MA
accessControlPolicyIDs
0..1 (L)
RW
MA
labels
0..1 (L)
RW
MA
creationTime
1
RO
NA
lastModifiedTime
1
RO
NA
announceTo
0..1 (L)
RW
See clause 9.6.1.3 [1]. An FL Client's resource sets this attribute to the address of the FL Server's Hosting CSE so that the FL Server can monitor job state without individually polling each FL Client.
NA
announcedAttribute
0..1 (L)
RW
NA
announceSyncType
0..1
RW
MA
creator
0..1
RO
NA
custodian
0..1
RW
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 resource as defined in clause 7.1.2.2, a /, or an external URL. This attribute need not be present when the resource is created (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 , this is the target resource on the FL Server's/FL Aggregator's Hosting CSE to which the FL Client uploads its local update. For an FL Server's/FL Aggregator's , this identifies the collection point (e.g. a ) where FL Client updates are gathered.
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 resource.
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

7.4.2.2 flJob state transition diagram

Figure 7.4.2.2-1:  jobState transition diagramFigure 7.4.2.2-1:  jobState transition diagram
Figure 7.4.2.2‑1: jobState transition diagram

Figure 7.4.2.2‑1: jobState transition diagram

7.n Solution n