Survey
* Your assessment is very important for improving the work of artificial intelligence, which forms the content of this project
* Your assessment is very important for improving the work of artificial intelligence, which forms the content of this project
Data / Information / Knowledge Presentation by Pauline Lake Modifications by Rick Mercer Acknowledgment and Disclaimer: This presentation is supported in part by the National Science Foundation under Grant 1240841. Any opinions, findings, and conclusions or recommendations expressed in these materials are those of the authors and do not necessarily reflect the views of the National Science Foundation. Outline • Processing Large Data Sets • Using Data • Big Data and Mobile Computing Processing Large Data Sets Sort a Petabyte (1015) bytes of data • 1015 = 103 x 103 x 103 x 103 x 103 bytes • Quicksort assumes the data are in RAM • 1 Petabyte would occupy • 1,000 1-TB disk drives, or • 10,000 100-GB drives The MapReduce Model MapReduce is a programming model for processing large data sets • Distributed file system -- data sets are stored over many computers • Parallel algorithm -- i.e., many identical processes running simultaneously • MapReduce, developed at Google • Hadoop, open source Apache version MapReduce Experiment: Sort a Petabyte (1018 bytes) ● References: • Petabyte Sort Blog (Quantcast Sort Blog) • Sorting Petabytes with Map Reduce (Google Research) MapReduce Example Problem: Count the occurrences of every word in a large set of documents, D1, D2, …, DN. • D1: “a man, a plan, a canal, panama” • D2: “in for a penny in for a pound” • … • DN: ... MapReduce Example Algorithm: Map Step: for each word, w, in D1,...,DN, output the partial count (w, 1) Reduce: sum = 0 for each partial count, pc, produced by Map step sum = sum + pc MapReduce Example ● Problem: Count the occurrences of every word in a set of documents Count the occurrences of every word in D1, D2, … DN. Map/Reduce System MapReduce Example ● Problem: Count the occurrences of every word in a set of documents Count the occurrences of every word in D1, D2, … DN. “a man, a plan, a canal, panama” Map/Reduce System Master “in for a penny in for a pound” MapReduce Example ● Problem: Count the occurrences of every word in a set of documents Count the occurrences of every word in D1, D2, … DN. “a man, a plan, a canal, panama” Map/Reduce System Master Mapper1 “in for a penny in for a pound” MapperM MapReduce Example ● Problem: Count the occurrences of every word in a set of documents Count the occurrences of every word in D1, D2, … DN. “a man, a plan, a canal, panama” Map/Reduce System Master Mapper1 “in for a penny in for a pound” MapperM (a,1),(a,1),(a,1),(a,1),(a,1) (for,1),(for,1 (in,1),(in,1) ) MapReduce Example ● Problem: Count the occurrences of every word in a set of documents Count the occurrences of every word in D1, D2, … DN. ç “a man, a plan, a canal, panama” partial counts Map/Reduce System Master Mapper1 “in for a penny in for a pound” MapperM (a,1),(a,1),(a,1),(a,1),(a,1) (for,1),(for,1 (in,1),(in,1) ) MapReduce Example ● Problem: Count the occurrences of every word in a set of documents Count the occurrences of every word in D1, D2, … DN. “a man, a plan, a canal, panama” Map/Reduce System “in for a penny in for a pound” Master Mapper1 MapperM (a,1),(a,1),(a,1),(a,1),(a,1) Reducer1 Reducer2 (for,1),(for,1 (in,1),(in,1) ) Reducer3 ReducerR MapReduce Example ● Problem: Count the occurrences of every word in a set of documents Count the occurrences of every word in D1, D2, … DN. “a man, a plan, a canal, panama” Map/Reduce System “in for a penny in for a pound” Master Mapper1 MapperM (a,1),(a,1),(a,1),(a,1),(a,1) Reducer1 (man,1),... (for,1),(for,1 (in,1),(in,1) ) Reducer2 Reducer3 (a,5) (in,2) ReducerR (for,5) MapReduce Example ● Problem: Count the occurrences of every word in a set of documents Count the occurrences of every word in D1, D2, … DN. “a man, a plan, a canal, panama” Map/Reduce System Mapper1 sum of partial counts “in for a penny in for a pound” Master MapperM (a,1),(a,1),(a,1),(a,1),(a,1) Reducer1 (man,1),... (for,1),(for,1 (in,1),(in,1) ) Reducer2 Reducer3 (a,5) (in,2) ReducerR (for,2) MapReduce Example ● Problem: Count the occurrences of every word in a set of documents. Count the occurrences of every word in D1, D2, … DN. (a,5), (for,2), (in,2), (man,1), (plan,1), (canal,1), (panama,1), (penny,1), (pound,1) Map/Reduce System Using Data Big Data: Government Data ● 2012, Data.gov, 84 programs, six departments ○ Benefit: helping government address problems ○ Tradeoff: Government has too much data on us? Big Data: Web Analytics ● Analytics discovery and use of meaningful patterns in data ○ Benefit: Provide customers with targeted ads ○ Tradeoff: Loss of privacy and anonymity of web search Big Data: Data Mining ● Data Mining -- discovering patterns in large data sets. ○ Benefit: Discovering risk factors in medical data. ○ Tradeoff: Can we keep patient medical data secure? Normal patients Diabetic patients Data Visualization ● IBM chromogram of Wikipedia edits reveals known and new editing patterns Data Mining: Neonatal monitoring ● Data mining real-time data (heart rate, respiratory rate, O2 saturation) provides a non-invasive way of predicting neonatal health ● Traditional approach: Apgar score: measure tone, cry, color, breathing, … scale of 1 through 9, at birth 5 minutes, 10 minutes Big Data and Mobile Computing Big Data and Mobile Google: Translate “Ciao mondo!” Big Data and Mobile Google: Translate “Ciao mondo!” Map/Reduce (speech recognition) Big Data and Mobile Google: Translate “Ciao mondo!” “Hello world!” Map/Reduce (speech recognition) Big Data and Mobile Google: Translate “Ciao mondo!” “Hello world!” Map/Reduce (speech recognition) Benefit: Improves ability to learn foreign language Tradeoff: Google knows what we’re thinking about Big Data and Mobile Google: Augment reality Big Data and Mobile Google: Augment reality Map/Reduce Big Data and Mobile Google: Augment reality Map/Reduce Big Data and Mobile Google: Augment reality Map/Reduce Benefit: Better awareness of what’s around us. Tradeoff: Google knows where we are, what we’re thinking. Summary ● The Digital era involves Large Data Sets ● Presents challenges and opportunities. ● Requires new processing and visualization techniques ● Comes with the promise of benefits ● Comes with tradeoffs in terms of privacy and security