↓ Skip to main content
  1. Lab/

From Data to Knowledge

·3099 words·
Diego Ibáñez
Author
Diego Ibáñez
15+ years helping companies turn data, technology and AI into new capabilities to understand, decide and evolve.
Table of Contents

From Data to Knowledge
#

A practical experiment on turning data into actionable knowledge to understand, decide, and act.

Organizations generate information through their systems, processes, equipment, sensors, and customer relationships. However, accumulating data does not necessarily mean understanding what is happening or knowing what decision to make.

The challenge lies in connecting information to the context in which it is produced, organizing it for analysis, and helping people find answers they can verify and use.

To explore that challenge, I built a laboratory using real data from my cycling workouts. The goal was to walk through the full process: starting from records typically stored in files, preparing them for analysis, and enabling natural-language queries through an artificial intelligence assistant.

Cycling is the case study; the learning that matters is broader. The same approach can be explored in operations, logistics, maintenance, sales, or customer service, provided there is suitable data and well-defined business questions.

The Experiment
#

  • Starting point: real cycling training records.
  • Work performed: organizing files, structuring measurements, and enabling queries over prepared data.
  • What was explored: whether an AI assistant could interpret natural-language questions, rely on queries against the data, and explain the results.
  • Observed outcome: a functional workflow was built to query ride information and present answers in an understandable format.
  • Scope: a bounded demonstration using personal data; it is not a proof of enterprise scalability or a guarantee of accuracy for any query.

The Question That Sparked the Laboratory
#

Can we combine organized data, context, and artificial intelligence to help a person understand a situation and ask better questions before making a decision?

The starting hypothesis was that usefulness does not depend solely on the AI model. It also depends on data quality, definitions used, operations that produce metrics, and the ability to verify answers.

From Data to a Useful Answer
#

The conceptual journey of the laboratory can be summarized as follows:

Data → Organization → Context → Analysis → Explanation → Decision

First, we start from raw records. Then they are converted into a consistent structure, variables are defined, and queries are prepared to produce reproducible results. AI acts as an interface to interpret the question, select available tools, and explain the results.

AI does not replace data quality or analysis validation. Its role in this design is to facilitate interaction and the interpretation of results obtained through auditable operations.

Why Use Cycling Data?
#

I chose cycling because each workout produces records that can be analyzed: distance, duration, speed, elevation, heart rate, cadence, and location, among other variables.

In addition, I know the context of the rides and can cross-check answers against the original files. This makes it possible to ask concrete questions and distinguish between a calculated result, an observed pattern, and a possible explanation.

The case also allows evaluating how the system should behave when asked about a variable that is not available. I do not use a power meter, so the files in this laboratory contain no power measurements. When asked about that variable, the appropriate response is to state that there is no data to calculate it—not to estimate a value.

What Questions Can Be Explored?
#

The following examples represent the types of queries worked on in the laboratory. Associated images illustrate the querying experience; they should not be interpreted as an independent evaluation or as evidence that all conclusions hold outside the dataset used.

1. Comparing Workouts
#

Question

Compare my last three rides: duration, average speed, and average heart rate. What differences do you find?

AI comparison of three runs: duration, average speed, and average heart rate in a single unified response
Custom AI performance metrics analysis

The comparison brings together metrics from multiple rides in a single response. Determining which was “best” requires defining the goal first: completing a route in less time, sustaining a given effort, or comparing rides under similar conditions. Without that criterion, the system should present differences and avoid imposing a conclusion.

2. Identifying Changes Along a Ride
#

Question

Split ride 2 into five segments of similar distance. In which one was the largest speed drop recorded, and what was the elevation profile like?

Run split into five distance segments: speed drop and elevation profile per segment
Pace variability analysis with topographic context

The query allows observing speed and elevation profile together. It is a way to explore the ride with more context than a single average speed figure. The observed relationship does not by itself prove the cause of a variation.

3. Exploring the Relationship Between Effort and Speed
#

Question

Compare heart rate and speed across the 3 rides. What patterns appear?

Heart rate vs. speed correlation across three runs: effort-to-pace patterns
Custom AI performance pattern detection

The comparison can reveal patterns between effort and speed. However, a difference does not by itself prove an improvement or loss of fitness. Elevation gain, temperature, rest, wind, duration, and other training conditions can also play a role.

4. Recognizing When Information Is Missing
#

Question

What was my average power during the most demanding climb?

AI acknowledges missing power data: honest response when no power meter was available on the climb
Data absence as a design criterion in custom AI architecture

In this laboratory there are no power measurements because no meter was used to record them. Therefore, that metric cannot be calculated from the available files.

Recognizing missing information is part of expected behavior. In a company, the principle is the same: a tool should not present as confirmed a datum that does not exist or is unavailable in source systems.

5. Separating Facts from Interpretations
#

Question

Based on these 3 rides, separate measured results, observed patterns, and explanations that would still need to be verified.

AI separates measured data, observed patterns, and unverified explanations across three runs
Epistemic transparency as a design criterion in custom AI architecture

This distinction helps prevent an interpretation from being presented as a proven fact. It also makes it more transparent what we know, what appears to be happening, and what additional information we would need to explain why.

A Necessary Distinction: Facts, Observations, and Hypotheses
#

To interpret the results, I used three categories:

CategoryMeaningExample
Measured or calculated factA value recorded directly or derived through a defined operation on the records.Maximum heart rate recorded during an activity.
ObservationA pattern that emerges when comparing data under explicit criteria.Recorded speed tends to be lower on certain climbing segments.
HypothesisA possible explanation that requires additional evidence to be confirmed.The speed difference may have been related to temperature or fatigue.

This separation is important in any analytics or AI initiative. A response can be well written and still mix a measurement with an interpretation. Clarity about the type of statement is part of trust.

What Did the Experiment Allow Us to Learn?
#

The main takeaway is not simply that you can have a conversation with a dataset. It is that the experience depends on preparing the information and defining how it should be queried before introducing an AI model.

  1. Answer quality starts before the model. Data must be organized and its variables must have clear definitions.
  2. Context changes interpretation. A figure needs units, conditions, and criteria to gain meaning.
  3. Results must be verifiable. Metrics should come from reproducible calculations or queries, not free estimation by the model.
  4. Missing data must be made visible. If a variable was not measured, the system should acknowledge that limitation.
  5. Useful queries can be documented. Recurring questions can become defined, reusable queries.
  6. Human judgment remains essential. Final interpretation must consider context and decision consequences.

How to Evaluate Response Reliability?
#

The laboratory suggests five review criteria. They are evaluation criteria for this type of solution, not a formal certification that the system meets them in every case.

CriterionControl Question
AccuracyDo the values match source records and calculations?
Boundary handlingDoes the system recognize when information is missing or a question cannot be answered?
TraceabilityCan we identify which data and query support the answer?
ReproducibilityCan we repeat the analysis and obtain the same result under the same conditions?
UtilityDoes the answer help understand a situation or evaluate a concrete decision?

An answer is not reliable solely because it sounds convincing. There must be a way to review where it comes from and how it was obtained.

Where Could This Approach Be Applied in a Company?
#

The cycling case is a starting point for exploring a pattern that may be relevant across different processes:

AreaInformation That Could Be UsedPossible Business Question
Logistics and transportRoutes, times, consumption, and telemetry.Which routes show the largest deviations from expected times?
ManufacturingProduction logs, downtime, and sensors.Which equipment shows changes compared to its normal behavior?
EnergyConsumption and operational measurements.In which periods do deviations from the expected pattern appear?
RetailSales by store, product, and time slot.Which stores show different behaviors and which variables should be reviewed?
Customer serviceTickets, response times, and contact reasons.What are the most frequent ticket causes and where are delays concentrated?

These examples are application possibilities, not results proven by the laboratory. Feasibility depends on data availability, quality, and usage permissions, as well as process definition and the decisions to be supported.

Limits and Considerations
#

This experiment uses a bounded set of personal cycling data. It demonstrates a functional workflow for preparing, querying, and explaining information, but it is not a proof of enterprise scalability, financial impact, or performance across all scenarios.

A model can misinterpret a question, choose an unsuitable tool, or explain a result inaccurately. Controlled queries and structured data help bound the response space, but they do not eliminate all errors. That is why testing, traceability, and human validation are required, especially when answers can influence important decisions.

The local processing used in this case keeps the workflow within the chosen execution environment. An enterprise implementation would also need to evaluate access controls, privacy, security, data retention, operational continuity, and internal policies.

Finally, having an answer does not guarantee business improvement. To generate value, information must be tied to a concrete decision, an owner, and an action whose outcome can be evaluated.

Five Questions to Take to Your Team
#

  1. Which recurring decisions depend on information that is currently difficult to query?
  2. Do teams use shared definitions to interpret metrics?
  3. Which frequent questions could become documented, reusable analyses?
  4. How do we verify an AI-generated response before acting on it?
  5. Which information must remain under organizational control and under what access rules?

Conclusion: Building Capabilities, Not Just Adopting Technology
#

This laboratory started with a simple question about cycling data, but the learning goes beyond sports. Before getting value from artificial intelligence, it was necessary to understand available information, organize it, define how to analyze it, and establish how to verify results.

That work represents a capability: turning scattered data into interpretable information, linking it to context, and putting it at the service of relevant questions. AI can facilitate access and explanation, but it does not replace the responsibility of designing good processes, caring for data, or making well-founded decisions.

The advantage is not having an AI that answers more questions. It is building the organizational capability to ask better questions, obtain reliable evidence, and turn it into better decisions.

That is the journey documented: from data to knowledge, and from knowledge to action.


Technical Appendix
#

This appendix describes the technology layers supporting the laboratory. Its purpose is to explain how the information flow is organized and what responsibility each component fulfills. Diagrams should be read as representations of the case architecture; extension possibilities are identified as such and not as necessarily implemented features.

1. Capture and Ingestion: From Source to Available Data
#

Purpose: preserve records generated during activity and make files available for downstream processing.

Data ingestion pipeline: device capture, platform sync, and FIT export with full source traceability
Data pipeline design with traceability and reprocessing capability

Flow Stages
#

1. Generation and Capture
#
  • In the laboratory: devices used during workouts record variables such as time, location, elevation, and heart rate, depending on available sensors.
  • Enterprise equivalent: point-of-sale terminals, applications, industrial sensors, or operational systems generate event records.
2. Device Consolidation
#
  • In the laboratory: the bike computer or watch receives available signals and records the activity.
  • Enterprise equivalent: edge devices or local systems can collect and process information near where it is generated. This equivalence is conceptual; it does not mean the laboratory implements an industrial edge computing platform.
3. Platform Synchronization
#
  • In the laboratory: records sync with the platform associated with the device and can be exported for downstream processing.
  • Enterprise equivalent: operational applications, ERP, CRM, or other platforms receive information from multiple sources.
4. Export and Preservation of Original File
#
  • In the laboratory: activities are exported in .fit format and retained as source files for later ingestion.
  • Enterprise equivalent: original files or events are retained in a raw landing zone to preserve a reference of received data.

What Does This Stage Contribute?
#

  • Traceability: links analysis back to available original files.
  • Interoperability: using documented formats makes it easier to process information with different tools.
  • Reprocessing: keeping originals allows applying new transformation rules without relying solely on previously processed outputs.

Effective traceability depends on retaining files, recording provenance, and maintaining proper controls. It should not be interpreted as an automatic guarantee of legal or operational auditability.

2. Transformation and Organization: From File to Analytical Asset
#

Purpose: transform individual files into structured data that can be queried consistently.

Medallion architecture applied to cycling data: raw FIT layer, processed Parquet, and consolidated analytics
Transforming files into an analytics asset with differentiated layers

The flow is organized into three conceptual layers inspired by the medallion architecture. The names describe the level of data preparation; they do not by themselves imply quality certification or data governance.

2.1. Raw Layer — Bronze
#

  • Reference location: data/raw/routes/
  • Content: original activity files, for example ride-0-2026-10-25-12-46-51.fit.
  • Process: preserving the received file without modifying its original content.
  • Purpose: maintain a reference for inspection, traceability, and reprocessing.

2.2. Processed Layer — Silver
#

  • Reference location: data/processed/routes/
  • Content: track points transformed into a structured format such as Parquet.
  • Process: reading the original file, normalizing fields, and converting to a consistent structure. Internal identifiers link records to their activity.
  • Purpose: facilitate analysis and avoid having each query re-parse the source format.

Converting to Parquet can improve storage and query efficiency in certain scenarios. Actual benefit depends on volume, data structure, and usage patterns; cost or time reductions should not be assumed without measurement.

2.3. Analytical Layer — Gold
#

  • Reference location: data/analytics/routes/
  • Content: consolidated set of track points, for example all_track_points.parquet.
  • Process: integrating processed files into a common structure for analytical queries.
  • Purpose: provide an organized source to compute metrics and answer questions about rides.

Consolidation facilitates analysis, but does not automatically turn the dataset into a corporate “single source of truth.” That would require ownership agreements, definitions, quality, permissions, and governance beyond the scope of this laboratory.

Value of This Transformation
#

  1. Consistency: variables are organized under a common structure.
  2. Reusability: different queries can use the same prepared dataset.
  3. Maintainability: raw and processed data have distinct responsibilities.
  4. Foundation for analysis: queries run against prepared structures rather than isolated files directly.

3. AI-Assisted Querying: Connecting Questions with Data
#

Purpose: enable a person to ask questions in natural language and have the assistant use defined tools to query available information.

Conversational query architecture with MCP: LLM as orchestrator, MCP tools, and Parquet data layer
Layered design for conversational AI with access controls and traceability

Solution Layers
#

3.1. Interaction Interface
#

The point from which a person asks a question and receives an explanation. In the laboratory, a conversational interface is used to interact with the assistant.

Integration with channels such as WhatsApp, Telegram, Slack, a custom web chat, or a phone system represents an evolution path for the platform.

Potential value: bring information querying closer to a familiar interaction experience and reduce reliance on specialized interfaces for certain questions.

3.2. Language Model and Orchestration
#

The model interprets question intent and participates in selecting available tools. It then drafts an explanation based on the results received.

The model should not be considered the primary source of figures. Its response depends on configured tools, instructions, data, and controls.

Potential value: help non-technical users ask questions and understand results without writing technical queries directly.

3.3. Tool and Integration Layer — MCP
#

The Model Context Protocol (MCP) exposes tools and resources to compatible applications. In this design, the MCP server acts as an integration layer between the assistant and authorized query operations.

Available tools must have defined inputs and outputs, clear boundaries, and appropriate controls. MCP itself does not guarantee security, accuracy, or error-free behavior; those attributes depend on implementation, permissions, validations, and oversight.

Potential value: separate conversation from data-querying operations and maintain an explicit set of capabilities available to the assistant.

3.4. Data Layer
#

The data layer holds structured datasets used by the laboratory to run analytical queries. Reference artifacts include data/analytics/routes/all_track_points.parquet.

Query tools access needed information and return results that can be reviewed and explained. Permissions and access scope should be limited to what each tool needs.

Potential value: turn analysis-ready data into information that can be queried through a conversational experience.

What Controls Matter?
#

  • Define which tools the assistant can use.
  • Validate parameters for each query.
  • Prevent the model from having unrestricted access to data or write operations.
  • Log queries and results when context requires traceability.
  • Test questions with missing, ambiguous, or insufficient data.
  • Cross-check figures against reference queries or calculations.
  • Maintain human review for consequential decisions.

These controls reduce risks, but do not eliminate the possibility of model, integration, or underlying data errors.

4. Scope and Proper Reading of Results
#

To interpret the laboratory properly, it helps to separate three levels:

LevelWhat It RepresentsHow It Should Be Communicated
Implemented in the caseComponents and processes that are part of the workflow built and tested with laboratory data.As an experiment outcome, describing its real scope.
Observed during testingBehaviors noted when running specific queries against the available dataset.As an observation limited to the tests performed.
Possible evolutionIntegrations, controls, or applications that could be added in a future environment.As a possibility, not as an existing capability or proven result.

The laboratory does not by itself measure return on investment, handling-time reduction, enterprise productivity, or scalability with large user volumes. Those results would require metrics, a baseline, controlled trials, and evaluation in the real process where the solution is intended to be applied.

5. References for Further Reading
#

These sources allow consulting documentation for the mentioned technologies and concepts. Their inclusion serves as a technical reference; it does not constitute independent validation of the experiment.


End of document.