Skip to main content

What is unstructured data?

The AI Glossary

In our classes, we often pause to explain the ideas behind AI and the language used to describe it. These posts grew out of those conversations. They’re for anyone who would like to understand AI better, with no technical background assumed.

Unstructured data is information whose meaning is not already organized into a fixed set of fields for the task at hand. Written notes, photographs and recorded conversations are common examples. Structured data, by contrast, might place a date, a measurement and its unit into separate, explicitly named fields.

“Unstructured” does not mean that the information has no structure. A paragraph has grammar; an image has pixels arranged in space; an audio file has a defined recording format. The issue is that its useful meaning has not necessarily been separated into fields that a conventional database query can retrieve directly.

A referral note might say, “The patient prefers a call after five and is waiting for transport confirmation.” A database can store the whole sentence easily. Extracting a contact preference, a time constraint and an unresolved action requires additional interpretation. Natural language processing—the use of software to analyze human language—can assist with that work.

The categories are not absolute. A form may combine structured checkboxes with free text. A PDF may contain searchable text, scanned images or both. A sequence of physiological measurements may be highly structured even though it is not conveniently displayed as a simple spreadsheet. It is better to describe the actual format than assume that everything outside a table is unstructured.

AI has expanded the ways software can interpret such material, but it did not make previously impossible processing suddenly possible in every case. Rules, search methods and earlier language-processing systems have handled free text for decades. Modern models add capabilities as well as new failure modes.

In a clinical record, converting “no current insulin use; mother has diabetes” into a patient medication list would be a serious interpretive error. The extraction process needs to distinguish who is being described, whether a finding is present and when it applies. Preserve the original passage and make consequential additions reviewable. Converting language into fields can improve coordination, but a well-formatted field is not proof that the interpretation is correct.

Sources: Hugging Face — Token Classification; AMIA — Informatics: Research and Practice

Further reading from Harvard Chan: Public Health Perspectives — To Meet Future Needs, Health Care Leaders Must Look at the Data (Science) (2022).

To learn more, take a look at the AI in Health Care Certificate of Specialization from the Advanced Learning Academy at Harvard T.H. Chan School of Public Health. You can take an individual course or work toward the full certificate.


I’m a doctor, not a statistician. I teach the AI in Health Care Certificate of Specialization with Dr. Heather Mattie, a statistician and co-director of Harvard Chan’s Health Data Science master’s program. For more on data science and statistics, see Harvard Chan’s Health Data Science resources.

AI is a fast-moving field. This explanation reflects our class discussions and related material at the time of writing. Terminology, capabilities and tools may change.

For suggested additions or corrections, please email me at tpanch@hsph.harvard.edu.

Dr. Trishan Panch
Program Director, AI in Health Care
Harvard T.H. Chan School of Public Health — Advanced Learning Academy

Lead with AI in Health Care

The AI Pragmatist is a monthly newsletter from ALA faculty, with new explainers & essays from the Advanced Learning Academy