Structured, Semi-Structured and Unstructured Data
The kind of data an organisation holds determines which AI approaches are possible and how much preparation they need. This lesson explains the main data types and their relevance to AI.
Learning outcomes
After completing this lesson, you will be able to:
- Distinguish structured, semi-structured and unstructured data.
- Match data types to the AI approaches that typically use them.
- Explain why generative AI makes unstructured data newly valuable.
- Describe the preparation each data type needs before AI can use it.
- Explain why permitted use must be confirmed before data is used for AI.
- Describe the uses and limits of synthetic data.
Structured data
Structured data is organised in a fixed schema of rows and columns, where each column has a defined meaning and type. Examples include sales transactions, customer records in a CRM system, inventory levels, sensor readings and financial ledgers. It is stored in relational databases, data warehouses and spreadsheets.
Structured data is the natural input for predictive ML: forecasting, scoring and classification models all work with columns of features. It is relatively easy to query, aggregate and check for quality, which is why many organisations' first AI projects use it.
Unstructured and semi-structured data
Unstructured data has no predefined data model. It includes emails, documents, contracts, chat logs, call recordings, images, videos and social media posts. Industry estimates commonly put it at around 80% or more of enterprise data. Until recently it was difficult to use at scale, because extracting meaning required people to read, listen or look.
Semi-structured data sits between the two: it has tags or keys that give some organisation but no rigid schema. JSON files, XML documents, application logs and email headers are examples.
Deep learning and generative AI have changed the economics of unstructured data. Models can now summarise thousands of call transcripts, extract fields from invoices, classify customer emails by intent or answer questions from a library of policy documents. For many organisations, this is the largest new source of AI value.
Name the data type
Matching data types to AI approaches
The following table summarises how each data type is typically used. It is a guide rather than a rule, because many solutions combine data types.
| Data type | Examples | Typical AI use |
|---|---|---|
| Structured | Transactions, CRM records, sensor readings | Forecasting, risk scoring, recommendations, anomaly detection |
| Semi-structured | JSON events, logs, XML messages | Operational analytics, anomaly detection, conversion to structured features |
| Unstructured text | Emails, contracts, chat logs, reports | Summarisation, classification, extraction, question answering with RAG |
| Unstructured media | Images, audio, video | Computer vision, speech-to-text, content moderation |
Preparing each data type for AI
Data rarely arrives in a form that AI can use directly, and the preparation work differs by type. Estimating this work is part of judging whether a use case is feasible, because preparation usually takes more time than building or configuring the model. The following list describes the typical preparation for each type.
- Structured data: correcting errors and duplicates, matching records about the same customer or product across systems, handling missing values and creating features such as "purchases in the last 90 days".
- Semi-structured data: extracting the relevant keys into fields, agreeing which fields matter, and coping with changes in format when the source application is updated.
- Unstructured text: extracting text from scanned documents with optical character recognition (OCR), splitting long documents into passages, and attaching metadata such as owner, date and access level. Text used for retrieval augmented generation is also converted into numerical representations of meaning, as the module on adapting foundation models explains.
- Images, audio and video: transcribing speech, labelling images for supervised learning, and managing large storage volumes.
One requirement applies to every type: access permissions must travel with the data. A document that only the HR team may read must not become readable by every employee because an AI assistant can retrieve it. Unstructured content is especially prone to this problem, because permissions are often managed loosely in shared drives and mailboxes.
Permitted use of data
Holding data is not the same as being permitted to use it for AI. Personal data collected for one purpose, such as delivering an order, may not be usable for another, such as training a marketing model, without a lawful basis under data protection law. Customer contracts may restrict how a client's data can be processed. Data licensed from third parties often limits use to specific purposes, and some content is protected by copyright or confidentiality obligations.
A data inventory for AI should therefore record, for each source, what it contains, who owns it, how sensitive it is and which uses are permitted. Checking permitted use early prevents a common failure: a pilot that works technically but cannot go into production because the data was never cleared for that purpose. The module on AI regulation and compliance covers the legal requirements in more depth.
May we use this data?
Synthetic data
Synthetic data is artificially generated data that reproduces the statistical properties of real data without describing real people or transactions. Organisations use it when real data is scarce, too sensitive to share with a development team or partner, or contains too few examples of a rare event. It has limits: it can only reflect patterns present in the data used to generate it, and it can carry over that data's biases. Synthetic data supplements representative real data; it does not replace it, and models that use it must still be tested on real cases.
Synthetic data
Finding the hidden asset
An insurance company's AI working group says it has "little usable data" because its claims database contains only basic fields. However, every claim file holds the customer's written description, adjuster notes, photographs and repair invoices. What does this mean for the AI strategy?
The company is underestimating its data. The structured fields support simple predictive models, but the real asset is the unstructured content in claim files. Generative AI and document extraction can summarise claims for adjusters, extract invoice amounts, and compare descriptions with photographs. The strategy should inventory unstructured data sources, check their quality and permitted use, and consider use cases that the structured data alone could not support.
An archive of customer emails
An online retailer wants to use five years of customer service emails to build an assistant that drafts replies for its agents. The archive holds the email headers, the customers' messages, the agents' replies and attachments such as photographs of damaged goods. What should the team consider before using it?
The archive mixes semi-structured headers (sender, date, subject) with unstructured message text and images, so it needs extraction and metadata before use. Three further issues matter. The emails contain personal data, so the team must confirm that using them for this purpose is permitted and remove details that the assistant does not need. Older replies reflect superseded policies, such as a previous returns period, so outdated content must be excluded or labelled. Finally, not every past reply is a good example: selecting replies that customers rated highly, or that quality reviewers approved, gives the assistant better patterns to follow.
Are application log files in JSON format structured, semi-structured or unstructured data?
Show answer
Semi-structured. JSON has keys and tags that give some organisation, but no rigid table schema.
Exam Tips
Remember for the exam
- Rows and columns with a fixed schema: structured. Documents, images and audio: unstructured.
- Predictive ML mainly uses structured data; generative AI unlocks unstructured data.
- Unstructured data is the majority of enterprise data and is often an under-used asset.
- Unstructured data needs extraction, splitting and metadata, and access permissions must carry through to AI.
- Holding data is not the same as being permitted to use it for AI; check permitted use early.
- Synthetic data supplements scarce or sensitive real data but does not replace representative real data.