×
1 Choose EITC/EITCA Certificates
2 Learn and take online exams
3 Get your IT skills certified

Confirm your IT skills and competencies under the European IT Certification framework from anywhere in the world fully online.

EITCA Academy

Digital skills attestation standard by the European IT Certification Institute aiming to support Digital Society development

LOG IN TO YOUR ACCOUNT

CREATE AN ACCOUNT FORGOT YOUR PASSWORD?

FORGOT YOUR PASSWORD?

AAH, WAIT, I REMEMBER NOW!

CREATE AN ACCOUNT

ALREADY HAVE AN ACCOUNT?
EUROPEAN INFORMATION TECHNOLOGIES CERTIFICATION ACADEMY - ATTESTING YOUR PROFESSIONAL DIGITAL SKILLS
  • SIGN UP
  • LOGIN
  • INFO

EITCA Academy

EITCA Academy

The European Information Technologies Certification Institute - EITCI ASBL

Certification Provider

EITCI Institute ASBL

Brussels, European Union

Governing European IT Certification (EITC) framework in support of the IT professionalism and Digital Society

  • CERTIFICATES
    • EITCA ACADEMIES
      • EITCA ACADEMIES CATALOGUE<
      • EITCA/CG COMPUTER GRAPHICS
      • EITCA/IS INFORMATION SECURITY
      • EITCA/BI BUSINESS INFORMATION
      • EITCA/KC KEY COMPETENCIES
      • EITCA/EG E-GOVERNMENT
      • EITCA/WD WEB DEVELOPMENT
      • EITCA/AI ARTIFICIAL INTELLIGENCE
    • EITC CERTIFICATES
      • EITC CERTIFICATES CATALOGUE<
      • COMPUTER GRAPHICS CERTIFICATES
      • WEB DESIGN CERTIFICATES
      • 3D DESIGN CERTIFICATES
      • OFFICE IT CERTIFICATES
      • BITCOIN BLOCKCHAIN CERTIFICATE
      • WORDPRESS CERTIFICATE
      • CLOUD PLATFORM CERTIFICATENEW
    • EITC CERTIFICATES
      • INTERNET CERTIFICATES
      • CRYPTOGRAPHY CERTIFICATES
      • BUSINESS IT CERTIFICATES
      • TELEWORK CERTIFICATES
      • PROGRAMMING CERTIFICATES
      • DIGITAL PORTRAIT CERTIFICATE
      • WEB DEVELOPMENT CERTIFICATES
      • DEEP LEARNING CERTIFICATESNEW
    • CERTIFICATES FOR
      • EU PUBLIC ADMINISTRATION
      • TEACHERS AND EDUCATORS
      • IT SECURITY PROFESSIONALS
      • GRAPHICS DESIGNERS & ARTISTS
      • BUSINESSMEN AND MANAGERS
      • BLOCKCHAIN DEVELOPERS
      • WEB DEVELOPERS
      • CLOUD AI EXPERTSNEW
  • FEATURED
  • SUBSIDY
  • HOW IT WORKS
  •   IT ID
  • ABOUT
  • CONTACT
  • MY ORDER
    Your current order is empty.
EITCIINSTITUTE
CERTIFIED

In what way should data related to time series prediction be labeled, where the result is the last x elements in a given row?

by Michał Otoka / Monday, 29 September 2025 / Published in Artificial Intelligence, EITC/AI/GCML Google Cloud Machine Learning, Google Cloud AI Platform, Cloud AI Data labeling service

When preparing data for time series prediction tasks, particularly when utilizing the Google Cloud AI Platform and its Data Labeling Service, the methodology for labeling data is determined by the specific nature of the prediction problem. If the objective is to predict the last x elements in a given row, the data labeling process must be aligned with the requirements of sequence-to-sequence modeling, a common framework for time series forecasting.

1. Understanding the Time Series Data Structure

Time series data consists of ordered sequences where each element is typically associated with a timestamp, reflecting the temporal order of observations. In many machine learning use cases, each row in a dataset represents a segment of the time series. For example, consider a dataset of daily stock prices where each row could represent the stock prices over a rolling window of 30 days.

2. Formulating the Prediction Task

If the prediction goal is to infer the last x elements in each row, this implies a sliding window approach. The window contains both the input features (historical data) and the target labels (future values to be predicted). For example, if each row contains 50 time steps and x is 10, then the first 40 values are used as model input, and the last 10 values are the target outputs.

3. Labeling Strategy for Supervised Time Series Prediction

The labeling should be performed by partitioning each data sequence (row) into two parts:

– Input Sequence: This consists of the initial (N – x) elements, where N is the total number of time steps in a row.
– Target Sequence (Labels): This consists of the last x elements, which represent the values the model is supposed to predict.

The segmentation can be represented mathematically as:

Let S = [s_1, s_2, ..., s_N] be a sequence of length N.
– Input: [s_1, s_2, ..., s_{N-x}]
– Label: [s_{N-x+1}, s_{N-x+2}, ..., s_N]

This approach is aligned with sequence-to-sequence prediction, where the model learns a mapping from an input sequence to a target (output) sequence.

4. Implementation in Google Cloud Data Labeling Service

Google Cloud Data Labeling Service is primarily designed for human-in-the-loop labeling of images, video, text, and audio. However, it can be adapted for time series labeling by structuring the data in a way that fits its supported formats, typically as textual or tabular data.

For time series prediction, the following steps should be taken:

– Data Preparation: Preprocess your time series data into sequences (rows) of consistent length (N). Each row should contain the full sequence, from which both input and target will be derived.
– Schema Definition: Define a schema that separates the input and label portions in a structured format. For tabular data, create columns such as "Input_1" to "Input_{N-x}", and "Label_1" to "Label_x".
– Uploading Data: Upload the prepared data to a Google Cloud Storage bucket in CSV or JSONL format, ensuring each row clearly distinguishes between input features and labels.
– Labeling Instructions: If manual labeling is needed, provide clear instructions to labelers to select or verify the last x elements as the target. In most cases with time series, labels can be programmatically generated due to the deterministic nature of the partition.

5. Example

Suppose a dataset capturing hourly temperature readings for 24 hours, and the objective is to predict the last 6 hours based on the first 18 hours. Each row represents a single day's data.

Hour_1 Hour_2 … Hour_18 Hour_19 Hour_20 Hour_21 Hour_22 Hour_23 Hour_24
20 21 … 25 26 27 26 25 23 22

– Input: [20, 21, …, 25] (Hours 1-18)
– Label: [26, 27, 26, 25, 23, 22] (Hours 19-24)

You can structure your CSV as:

Input_1 … Input_18 Label_1 … Label_6
20 … 25 26 … 22

6. Labeling Best Practices

– Sliding Window Generation: To maximize training data, apply a sliding window across the entire dataset. For each position, extract a window of length (N), split it into (N – x) inputs and x labels, and create a new labeled example.
– Temporal Consistency: Always preserve temporal order in the data to prevent information leakage. Do not allow any future information (from the label segment) to influence the input segment.
– Multiple Features: If the time series is multivariate, ensure that each input and label vector contains all relevant features per time step. For example, if at each time step you have temperature, humidity, and pressure, each "Input_i" and "Label_j" should be vectors rather than scalars.

7. Integration with Model Training

When ingesting the labeled data into a machine learning model on Google Cloud AI Platform, the distinction between input and label columns allows the model to optimize for the specific prediction goal: mapping the input sequence to the future output sequence. This is commonly used in architectures such as Recurrent Neural Networks (RNNs), Long Short-Term Memory networks (LSTMs), and Transformers tailored for time series.

8. Application to Google Cloud AI Platform Pipelines

After labeling, the dataset is used to train models via Cloud AI Platform Pipelines. The input-label split defined during labeling remains consistent through the pipeline: features are passed to the model's input, and labels are used to compute the loss and update model parameters.

9. Data Labeling Automation

Given that time series labeling for prediction tasks of this structure is deterministic, it is common to automate the labeling process via scripts or data processing jobs (e.g., using Python or Google Dataflow) before uploading to Google Cloud Storage. Human intervention is typically unnecessary unless the prediction target requires subjective judgment (such as anomaly annotation).

10. Example with Code (Python)

Here is a sample code snippet demonstrating the automated labeling process for such a task:

python
import pandas as pd

def create_time_series_labels(df, window_size, label_size):
    sequences = []
    for i in range(len(df) - window_size + 1):
        window = df.iloc[i:i+window_size].values
        inputs = window[:-label_size].flatten()
        labels = window[-label_size:].flatten()
        sequences.append(inputs.tolist() + labels.tolist())
    columns = [f'Input_{j+1}' for j in range(window_size-label_size)] + \
              [f'Label_{j+1}' for j in range(label_size)]
    return pd.DataFrame(sequences, columns=columns)

# Example: df is your original DataFrame with a 'value' column
result_df = create_time_series_labels(df['value'], window_size=24, label_size=6)
result_df.to_csv('labeled_time_series.csv', index=False)

11. Handling Edge Cases

Special considerations include:

– Missing Data: If there are missing values in the time series, apply imputation techniques prior to labeling, or discard windows containing missing values.
– Variable Length Sequences: For datasets where rows (sequences) are not of uniform length, consider zero-padding shorter sequences or using masking strategies during model training, but labeling should still follow the input-label split.
– Seasonality and Trends: If the time series exhibits seasonality or trends, ensure that the labeling windows are sufficiently representative of these patterns to prevent bias.

12. Alignment with Google Cloud's Best Practices

Google Cloud's documentation emphasizes the need for clear separation of features and labels in supervised learning datasets. By programmatically partitioning the time series data as described, you ensure compliance with these guidelines and facilitate seamless integration with Cloud AI Platform's training and evaluation pipelines.

13. Quality Assurance

It is advisable to check the correctness of the automated labeling process by:

– Randomly sampling rows from the labeled dataset and manually verifying the input-label split.
– Ensuring that no label data appears in the input columns and vice versa.
– Validating that the temporal order is preserved in each labeled example.

14. Version Control and Documentation

Maintain clear records of the labeling logic, window sizes, and label sizes used for each dataset version. This documentation aids reproducibility and facilitates collaboration, especially when multiple teams or model iterations are involved.

15. Summary Table

Step Action Cloud AI Platform Implication
Data Preprocessing Structure data into fixed-length sequences Enables batch processing of examples
Label Partitioning Split each row into input and label sections Facilitates sequence-to-sequence modeling
Data Upload Save as CSV/JSONL and upload to Cloud Storage Compatible with Data Labeling Service
Automated Labeling Generate labels programmatically Reduces manual labor, increases accuracy
Quality Control Perform random audits of labeled data Ensures labeling correctness

By following this structured approach, time series data intended for predicting the last x elements in each row is labeled in a manner that is both systematic and compatible with the requirements of supervised learning on Google Cloud AI Platform.

Other recent questions and answers regarding Cloud AI Data labeling service:

  • How does an AI data labeling service ensure that labelers are not biased?
  • How to label data that should not affect model training (e.g., important only for humans)?
  • What is the recommended approach for ramping up data labeling jobs to ensure the best results and efficient use of resources?
  • What security measures are in place to protect the data during the labeling process in the data labeling service?
  • How does the data labeling service ensure high labeling quality when multiple labelers are involved?
  • What are the different types of labeling tasks supported by the data labeling service for image, video, and text data?
  • What are the three core resources required to create a labeling task using the data labeling service?

More questions and answers:

  • Field: Artificial Intelligence
  • Programme: EITC/AI/GCML Google Cloud Machine Learning (go to the certification programme)
  • Lesson: Google Cloud AI Platform (go to related lesson)
  • Topic: Cloud AI Data labeling service (go to related topic)
Tagged under: Artificial Intelligence, Data Labeling, Google Cloud, Sequence Prediction, Supervised Learning, Time Series
Home » Artificial Intelligence » EITC/AI/GCML Google Cloud Machine Learning » Google Cloud AI Platform » Cloud AI Data labeling service » » In what way should data related to time series prediction be labeled, where the result is the last x elements in a given row?

Certification Center

USER MENU

  • My Account

CERTIFICATE CATEGORY

  • EITC Certification (105)
  • EITCA Certification (9)

What are you looking for?

  • Introduction
  • How it works?
  • EITCA Academies
  • EITCI DSJC Subsidy
  • Full EITC catalogue
  • Your order
  • Featured
  •   IT ID
  • EITCA reviews (Medium publ.)
  • About
  • Contact

EITCA Academy is a part of the European IT Certification framework

The European IT Certification framework has been established in 2008 as a Europe based and vendor independent standard in widely accessible online certification of digital skills and competencies in many areas of professional digital specializations. The EITC framework is governed by the European IT Certification Institute (EITCI), a non-profit certification authority supporting information society growth and bridging the digital skills gap in the EU.
Eligibility for EITCA Academy 90% EITCI DSJC Subsidy support
90% of EITCA Academy fees subsidized in enrolment

    EITCA Academy Secretary Office

    European IT Certification Institute ASBL
    Brussels, Belgium, European Union

    EITC / EITCA Certification Framework Operator
    Governing European IT Certification Standard
    Access contact form or call +32 25887351

    Follow EITCI on X
    Visit EITCA Academy on Facebook
    Engage with EITCA Academy on LinkedIn
    Check out EITCI and EITCA videos on YouTube

    Funded by the European Union

    Funded by the European Regional Development Fund (ERDF) and the European Social Fund (ESF) in series of projects since 2007, currently governed by the European IT Certification Institute (EITCI) since 2008

    Information Security Policy | DSRRM and GDPR Policy | Data Protection Policy | Record of Processing Activities | HSE Policy | Anti-Corruption Policy | Modern Slavery Policy

    Automatically translate to your language

    Terms and Conditions | Privacy Policy
    EITCA Academy
    • EITCA Academy on social media
    EITCA Academy


    © 2008-2026  European IT Certification Institute
    Brussels, Belgium, European Union

    TOP
    CHAT WITH SUPPORT
    Do you have any questions?
    We will reply here and by email. Your conversation is tracked with a support token.