Search topics and sections

Data processing is the collection and handling of data to produce useful information. Computers, people, or machines such as tabulators (machines that count or sort records) take raw facts such as sales slips, census forms, or sensor readings. They check, sort, count, and combine them into results that people can use, such as a bill, a payroll, or a population count.[1][2]

The field began long before electronic computers. In 1890 the US Census Bureau used Herman Hollerith's punched-card machines to count the population.[3] Today the same basic steps can run on computer clusters (groups of connected computers that work together) with thousands of machines.[4]

Data and information

Data versus information

Data are raw facts, and information is what processing makes of them. A list of every purchase in a shop is data. The total sales per day, worked out from that list, is information that a manager can act on.[2]

The standard definition

Standards bodies define the term broadly. The information technology vocabulary standard ISO/IEC 2382 defines data processing as organized tasks performed on data, with math and logic operations among its examples.[5]

Data processing and information processing

Data processing is not the same as information processing. Information processing is the broader work of handling information, and ISO/IEC 2382 says it includes data processing and may also include tasks such as data communication and office automation.[5] The 2015 edition of ISO/IEC 2382, quoted in the ISO big data standard ISO/IEC 20546, notes that the two terms should not be used as words with the same meaning.[6]

The computer meaning

Encyclopaedia Britannica describes data processing as the handling of data by a computer. In this sense it covers three activities.[1]

  1. Turning raw data into a form a machine can read.
  2. Moving the data through the processor (the part that carries out instructions) and memory (the storage it uses while working).
  3. Arranging the output.

The business meaning

In business, the term has a narrower meaning. It refers to the processing of data needed to run an organization.[1]

The processing cycle

Most data processing follows the same four stages. Textbooks on information systems describe input, processing, storage, and output as a general model that fits any processing method or system.[2]

  1. Input. Raw data are coded and entered into the system.
  2. Processing. The system runs a sequence of operations on the data, such as classifying, sorting, and calculating.
  3. Storage. Data and results are kept for later use.
  4. Output. Results leave the system as forms, reports, or other useful information.

The cycle repeats for each new transaction, meaning one event being processed, such as a sale, until all are done.[2] Each stage can contain finer steps. The input stage, for example, may include these steps.[2]

  • Coding the data.
  • Batching, which groups transactions so they can be handled together.
  • Checking the data.
  • Sending the transactions on for processing.
The data processing cycleRaw dataInputProcessingOutputStorageNext transactionInformation
The data processing cycle: raw data is entered as input, processed, and returned as output information. Storage keeps data and results for reuse, and each new transaction starts the cycle again.

Common operations

The processing stage is built from a small set of basic operations. A common sequence uses recording, classifying, sorting, calculating, summarizing, updating, and storing.[2]

  • Recording. Writing down each event, such as a sale or a payment.
  • Classifying. Putting each record into a category, such as product type or region.
  • Sorting. Arranging records in an order, such as by date or by customer number.
  • Calculating. Doing arithmetic on the data, such as working out tax or totals.
  • Summarizing. Reducing many records to a few key figures, such as a monthly total.
  • Updating. Changing stored records to reflect new events, such as a new account balance.

The output of these steps is often a report. Data reporting turns the results into lists, tables, or summaries for people to read.[2]

Worked example of processing shop sales records Illustrative example with made-up data Raw records Validate Sort by store Summarize Report StoreItemQty Bpens3 Apaper2 Apens−1 Bpaper4 Apens5 StoreItemQty Bpens3 Apaper2 Apens−1 Bpaper4 Apens5 Rejected:quantity below 0 StoreItemQty Apaper2 Apens5 Bpens3 Bpaper4 StoreTotal A7 B7 77 AB
A made-up example of processing shop sales records in five stages: (1) raw records, (2) validation, (3) sorting by store, (4) summarizing, and (5) reporting. The row with quantity −1-1 is rejected, which leaves totals of A=2+5=7A = 2 + 5 = 7 and B=3+4=7B = 3 + 4 = 7.

Checking and cleaning data

Results are only as good as the data that go in. Data validation checks data before they are stored or used, to keep incorrect, incomplete, or unrelated values out of a database.[7] A range check, for example, rejects a value that falls outside set limits, such as a temperature outside a set range of -10 °C to 35 °C.[7]

Data cleansing fixes errors that are already in a dataset, a collection of related data. It can mean changing field formats, removing duplicate records, or renaming fields so the data fit their intended use.[8]

Batch, transaction, and stream processing

Systems differ in when they handle each piece of data.

Approach When data are handled Typical uses
Batch processing Collected first, then processed in jobs that run on a schedule or when computer resources are free, without a user taking part[9] Quarterly stock or pension statements, nightly sales reports[10]
Online transaction processing One request at a time, while the user waits; most finish in a short time, in some cases a fraction of a second[10] Essential business systems and web applications[10]
Stream processing Continuously and in real time, as each event is produced[11] Fraud detection, live monitoring, real-time recommendations[11]
Batch processing compared with stream processingBatch processingresults wait for the joboutputscheduled job (e.g., nightly)timeStream processingresults in real time or near real timeprocessed as it arrivestime
In batch processing, events collect until a scheduled job processes them all at once and produces one output. In stream processing, each event is processed as soon as it arrives.

The choice depends on how fast results are needed. Batch processing suits large volumes of historical data when delay matters less, and it can be simpler and cheaper to run. Many modern systems combine both, using streams for quick results and batches for deeper analysis of past data.[11]

History

Manual tallying

Before machines, the Census Office counted questionnaires by hand. The 1880 census took more than eight years to complete.[12]

The amount of data kept growing. Following the 1880 census, the Census Bureau was collecting more data than it could tabulate.[13]

Punched cards

In 1888 the Census Bureau held a contest to find a faster way to process census data. Three inventors entered, and Herman Hollerith, a former Census Bureau employee, won by a wide margin.[13]

Task (1888 contest) Contestant 1 Contestant 2 Hollerith
Capturing the data 144.5 hours 100.5 hours 72.5 hours
Preparing the data for tabulation 44.5 hours 55.5 hours 5.5 hours

Hollerith's system stored each person's answers as holes in a punched card. Clerks punched the cards with a pantograph (a hinged arm that guides a punch over a template). His tabulator then read the holes electrically and advanced 40 counting dials.[13]

The equipment worked quickly. A clerk with a pantograph could prepare about 500 cards per day, and an experienced tabulator clerk could process 80 cards per minute.[13]

Hollerith punched-card tabulating system, 1890 Pantograph punch Punch Blank card About 500 cards per clerk per day 40 counting dials Tabulator Spring pins Punched card Battery Sorting box Card placed in a sorter drawer Experienced clerk: 80 cards per minute
Hollerith's 1890 tabulating system had three parts: (1) a pantograph punch, on which a clerk punched about 500 cards a day; (2) a tabulator, whose spring pins closed a circuit (a path through which electric current can flow) through each hole to advance one of 40 counting dials; and (3) a sorting box, where each card then went into a drawer.

The machines made census results come out much sooner. In 1890 clerks counted data for nearly 63 million people, and the Census Bureau finished publishing the 1890 data 18 months sooner than it had published the 1880 data, despite having more data.[3]

The savings were also large. IBM states that the system saved the Census Office USD 5 million and more than two years of labor.[12]

Hollerith's work grew into a data processing industry. He received a patent for his tabulator on January 8, 1889, and founded the Tabulating Machine Company in 1896. In 1911 it joined three other firms to form the Computing-Tabulating-Recording Company, which was renamed International Business Machines (IBM) in 1924.[3]

Electronic computers

Electronic computers began replacing punched-card equipment in the 1950s. The Census Bureau signed the contract for UNIVAC I on March 31, 1951. The machine counted part of the 1950 population census and all of the 1954 economic census, and the Census Bureau calls it the first successful civilian computer.[14]

The change took about a decade across the industry. In 1962 IBM's revenue from electronic stored-program computers, which keep their instructions in memory, passed its revenue from punched-card systems for the first time.[15] Emerson Pugh and Lars Heide treat this as a good estimate of the turning point for the whole industry, since IBM's revenue from these systems was more than twice that of all other companies combined.[15]

Punched cards did not vanish at once. Punched-card equipment stayed in use for many years after 1962.[15]

Names and languages

The name of the field changed with the machines.

  • IBM introduced the term electronic data processing (EDP) for its business computers. Supervisors of punched-card shops then adopted "data processing" as a name for work done on computers, punched-card machines, and paper-tape machines alike.[16]
  • In 1962 their professional group renamed itself the Data Processing Management Association.[16]
  • The terms automatic data processing (ADP) and electronic data processing were common in the 1960s.[17]

Business programs needed their own language. COBOL, introduced in 1960, was for a long time the most used language for business data processing.[17]

Timeline of data processing, 1880 to 2010 1880 1900 1920 1940 1960 1980 2000 1888 Census Bureau contestwon by Hollerith 1890 US census tabulatedon punched cards 1911 Computing-Tabulating-Recording Company formed 1951 Census Bureau contractsUNIVAC I (Mar 31) 2004 MapReduce paper(Dean and Ghemawat) 1889 Hollerith tabulatorpatent (Jan 8) 1896 Tabulating MachineCompany founded 1924 Renamed IBM 1962 Data ProcessingManagement Association named Manual tallying Punched cards Electronic computers Big data clusters
Timeline of data processing from 1880 to 2010. The colored bar marks four eras: manual tallying, punched cards, electronic computers, and big data clusters.

Big data and many machines

Some datasets grew too large for one computer. Britannica describes big data by the "three V's": volume (size), velocity (how fast data are produced and analyzed), and variety (many types of data, such as text, audio, and video).[18]

Google engineers Jeffrey Dean and Sanjay Ghemawat described MapReduce in 2004. It lets programmers process very large datasets across a cluster of ordinary machines without handling the details of parallel computing themselves.[4] Parallel computing splits work into parts that run at the same time on many computers.

MapReduce ran at very large scale at Google. A typical MapReduce job there processed many terabytes of data on thousands of machines.[4] A terabyte is a unit of data equal to 101210^{12} bytes, or about one trillion bytes.[19]

Other tools followed. Apache Hadoop and Apache Spark, maintained by the Apache Software Foundation, are now widely used for big data.[18]

Pipelines and large-scale systems

Real systems chain many processing steps into a pipeline, where the output of one step feeds the next. This section describes three common designs.

Extract, transform, load

Extract, transform, load (ETL) moves data from many sources into one place for analysis. It combines, cleans, and organizes the data, then loads them into a data warehouse or other target.[20]

  1. Extract. Raw data are copied from the sources into a staging area, a temporary storage location between the sources and the target.
  2. Transform. The data are cleaned and combined according to business rules.
  3. Load. The transformed data move into the target warehouse.

A related method, extract, load, transform (ELT), changes the order. It loads the data into the target first and transforms them at the end.[20]

MapReduce

MapReduce works on key/value pairs. Each pair is a piece of data (the value) tagged with a label (the key), such as (cat, 1). The user writes two functions.[4]

  • The map function takes one key/value pair and produces a set of intermediate key/value pairs.
  • The reduce function merges all intermediate values that share the same key.

The system handles the rest.[4]

  • Splitting the input into pieces.
  • Scheduling the work across machines.
  • Recovering from machine failures.
  • Managing communication between machines.
MapReduce word count Input splits Map Group by key Reduce Output the cat the dog a cat map map map reduce the reduce cat reduce dog reduce a (the, 1) (cat, 1) (the, 1) (dog, 1) (a, 1) (cat, 1) the 2 cat 2 dog 1 a 1 shuffle system handles splitting, scheduling, failures, communication
MapReduce counting words, with the input divided into three input splits (smaller pieces of the input data). Each map task emits a pair (w,1)(w, 1) for each word ww, the shuffle (the step that groups intermediate pairs by key before the reduce step) sends each pair to the reduce task for its key, and each reduce task sums the values, giving the 2, cat 2, dog 1, a 1.

Lambda architecture

The lambda architecture combines batch and stream processing in one system. It works with views, which are results calculated in advance so that queries (requests for information) can read them quickly. Nathan Marz, who created it, describes three layers.[21]

  • The batch layer stores the master copy of all data and calculates batch views in advance, which are views built from the whole dataset.
  • The serving layer loads the batch views into a database so they can be queried.
  • The speed layer covers the data that arrived while the last batch ran. It looks only at recent data and updates its own realtime views step by step as data arrive.

Marz sums up the batch layer with one equation:[21]

batch view=function(all data)\text{batch view} = \text{function}(\text{all data})

Here "all data" is the full master dataset and "function" is any calculation over it.[21]

This design makes errors easy to fix. Because batch views are rebuilt from scratch, a mistake can be fixed by correcting the code or removing bad data and recomputing.[21]

Answers come from both paths. Queries draw on both the batch views and the speed layer's realtime views.[22]

Lambda architecture New data Batch layer master dataset (all data) batch view = function(all data) Serving layer batch views Speed layer recent data only step-by-step updates Realtime views Query
In the lambda architecture, new data feeds two paths. The batch layer recomputes views over all data for the serving layer, and the speed layer updates realtime views from recent data, so a query can combine both sets of views.

Uses in different fields

Business

Business data processing regularly stores and processes large amounts of data to produce information an organization needs. Typical uses include the following.[17]

  • Accounting
  • Order processing
  • Stock control
  • Payroll
  • Employee records

These systems are usually long-lived and handle data that are large in volume and complex in structure.[17]

Science and engineering

In science, data processing often means handling large amounts of experimental results.[17] Processing usually prepares the data, and data analysis then describes and models them, often with statistics (methods for analyzing numerical data).[8]

Many fields have their own specific methods.

  • Seismic inverse Q filtering sharpens images of rock layers from seismic surveys, which send sound waves into the ground and measure their reflections to map the layers below.[23] It reverses the energy loss and distortion that seismic waves suffer as they travel through the Earth.[24]
  • An epitome is a small, shortened version of an image that still holds most of the textures and shapes needed to rebuild it. It was introduced by Nebojsa Jojic, Brendan Frey, and Anitha Kannan in 2003.[25]

Law and privacy

In data protection law, "processing" has a wide meaning. The EU General Data Protection Regulation defines it as any operation on personal data (information about an identified or identifiable person), whether done automatically or not.[26] Its examples include these operations.[26]

  • Collection and recording
  • Organisation, structuring, and storage
  • Adaptation or alteration
  • Getting, looking at, and use
  • Disclosure by sending or sharing
  • Matching or combination
  • Restriction, erasure, and destruction

References

  1. Data processing, Encyclopaedia Britannica, 2024.
  2. Data Processing Stage: an overview, ScienceDirect Topics, Elsevier.
  3. History and the Census: Herman Hollerith and Mechanical Tabulation, US Census Bureau, 2016.
  4. MapReduce: Simplified Data Processing on Large Clusters, Jeffrey Dean and Sanjay Ghemawat, OSDI '04, 2004.
  5. ISO/IEC 2382-1:1993 Information technology, Vocabulary, Part 1: Fundamental terms, International Organization for Standardization, 1993.
  6. ISO/IEC 20546:2019 Information technology, Big data, Overview and vocabulary, International Organization for Standardization, 2019.
  7. What is data validation?, Teradata.
  8. Data analysis, Encyclopaedia Britannica.
  9. Processing work on z/OS: How the system starts and manages batch jobs, IBM Documentation.
  10. Mainframe workloads: Batch and online transaction processing, IBM Documentation.
  11. What is stream processing?, IBM.
  12. The punched card tabulator, IBM.
  13. The Hollerith Machine, US Census Bureau.
  14. UNIVAC I, US Census Bureau.
  15. Early Punched Card Equipment, 1880 - 1951, Emerson W. Pugh and Lars Heide, Engineering and Technology History Wiki, IEEE History Center.
  16. Inventing Information Systems: The Systems Men and the Computer, 1950-1968, Thomas Haigh, Business History Review, 2001.
  17. Data processing, A Dictionary of Computing, via Encyclopedia.com.
  18. Big data, Encyclopaedia Britannica.
  19. SP 330, Section 3: Decimal multiples and sub-multiples of SI units, National Institute of Standards and Technology.
  20. What is ETL (extract, transform, load)?, IBM.
  21. Big Data: Principles and best practices of scalable realtime data systems, chapter 1, Nathan Marz and James Warren, Manning, 2015.
  22. What is Lambda Architecture?, Databricks.
  23. Seismic Reflection, US Environmental Protection Agency.
  24. Seismic Inverse Q Filtering, Yanghua Wang, Wiley-Blackwell, 2008.
  25. Epitomic analysis of appearance and shape, Nebojsa Jojic, Brendan J. Frey, and Anitha Kannan, ICCV, 2003.
  26. Regulation (EU) 2016/679 (General Data Protection Regulation), Article 4, European Parliament and Council of the European Union, Official Journal of the European Union, 2016.

Figure