Docsity

Appunti Data communication society, Appunti di Database Relazionali

Toggle sidebar
bg1
DATA COMMUNICATION SOCIETY – Ta ra n2n o Ma 4e o
Exam: 3 parts-> 1) theory exam, open ques8ons, 50% grade 2) day a?er test, coding test, 30% grade 3) project
work in group, 20% grade, NO DEADLINE. Grades for each part remain forever.
PORTARE COMPUTER + PORTARE APPUNTI PER ESAME (3 ore)
01.10.2024
DATA, COMMUNICATION & SOCIETY
Datafica8on: transforma8on of something into data, e.g. facial recogni8on, iden8fica8on through gate. It is
becoming a fundamental infrastructure in our lives.
What is data
Data is the raw material of measurement. Kitchin’s defini8on: «the raw material produced by abstrac8ng the
world into categories, measures and other representa8onal forms – numbers, characters, symbols, images,
sounds, electromagne8c waves, bits – that cons8tute the building blocks from which informa8on and
knowledge are created». E.g. when you take your temperature, thermometer is the sensor, tool that records
a difference; temperature = 37.2 = data, just numbers. To understand what it means, you need some kind of
context-> average temperature of human body-> piece of data becomes informa8on, something you didn’t
know before, and which can create ac8on. Informa8on = data + context.
Most informa8on we gain, we don’t retain because it’s irrelevant if we can’t connect it to meaningful ac8ons.
Knowledge: informa8on that can actually inform your ac8ons.
Dimensions of data: how can data vary?
• Form
o Quan8ta8ve: any data transferred to computers automa8cally translates into numbers.
Easier to aggregate and manipulate.
o Qualita8ve: non-numeric (language, sounds…). Easier in meaning but harder to manipulate.
• Structure: if our data fits into our predefined model or not
o E.g. ID cards of the same country follow the same model-> structured data, there is a data
model.
o Unstructured data has no predefined model, free flow of informa8on.
o Semi-structured: no predefined model, model changes according to needs of moment. Easier
to manipulate but most data on social media is unstructured.
• Source: where data comes from
o Captured: recorded specifically for a purpose.
o Derived: data that comes from manipula8ng other forms of data.
o Exhaust: not produced for a purpose but is a byproduct of other kinds of processes. E.g.
power consump8on data was originally recorded for billing people.
o Lost: passes through processes and is not captured at all.
• Producer
o Primary: produced specifically for a purpose
o Secondary: made available if asked for
o Ter 8 a r y: derived data, produced by deriving from other sources
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13

Anteprima parziale del testo

Scarica Appunti Data communication society e più Appunti in PDF di Database Relazionali solo su Docsity!

DATA COMMUNICATION SOCIETY – Taran2no Ma4eo Exam: 3 parts-> 1) theory exam, open ques8ons, 50% grade 2) day a?er test, coding test, 30% grade 3) project work in group, 20% grade, NO DEADLINE. Grades for each part remain forever. PORTARE COMPUTER + PORTARE APPUNTI PER ESAME (3 ore) 01.10. DATA, COMMUNICATION & SOCIETY Datafica8on: transforma8on of something into data, e.g. facial recogni8on, iden8fica8on through gate. It is becoming a fundamental infrastructure in our lives. What is data Data is the raw material of measurement. Kitchin’s defini8on: «the raw material produced by abstrac8ng the world into categories, measures and other representa8onal forms – numbers, characters, symbols, images, sounds, electromagne8c waves, bits – that cons8tute the building blocks from which informa8on and knowledge are created». E.g. when you take your temperature, thermometer is the sensor, tool that records a difference; temperature = 37.2 = data, just numbers. To understand what it means, you need some kind of context-> average temperature of human body-> piece of data becomes informa8on, something you didn’t know before, and which can create ac8on. Informa8on = data + context. Most informa8on we gain, we don’t retain because it’s irrelevant if we can’t connect it to meaningful ac8ons. Knowledge: informa8on that can actually inform your ac8ons. Dimensions of data: how can data vary?

  • Form o Quan8ta8ve: any data transferred to computers automa8cally translates into numbers. Easier to aggregate and manipulate. o Qualita8ve: non-numeric (language, sounds…). Easier in meaning but harder to manipulate.
  • Structure : if our data fits into our predefined model or not o E.g. ID cards of the same country follow the same model-> structured data, there is a data model. o Unstructured data has no predefined model, free flow of informa8on. o Semi-structured: no predefined model, model changes according to needs of moment. Easier to manipulate but most data on social media is unstructured.
  • Source : where data comes from o Captured: recorded specifically for a purpose. o Derived: data that comes from manipula8ng other forms of data. o Exhaust: not produced for a purpose but is a byproduct of other kinds of processes. E.g. power consump8on data was originally recorded for billing people. o Lost: passes through processes and is not captured at all.
  • Producer o Primary: produced specifically for a purpose o Secondary: made available if asked for o Ter8ary: derived data, produced by deriving from other sources
  • Type o Ahribute: e.g. eye colors. o Indexical: don’t talk primarily about en8ty, used to connect en8ty to other kinds of data to iden8fy you as an en8ty. Usually devoid of meaning but useful to connect different data points. E.g. tax code isn’t an ahribute of us, but can be connected to healthcare/school informa8on o Metadata: data that describes how other data is collected. Data materiality: digital vs analog Analog data has a direct rela8onship with en8ty it measures. E.g. mercury thermometer goes up and down depending on temperature but doesn’t have units. Digital data is expressed through numbers. It’s discrete, it’s segmental - > very basic level, smallest box = bit (1 / 0). More convenient but always less accurate than analog-> always needs to be transformed and by doing this you have to simplify it. Binary code Computers use a technology that is known as microprocessor-> machine that has a certain number of bits. Everyday life we use base 10-> posi8onal way of wri8ng numbers star8ng from right-> posi8on is the exponent of base you need to use to find the number. Binary is the exact same logic but is base 2-> everything mul8plied to power of 2. 15 .10. Transistors (& standardization) to the rescue Cost of IT has gone down in the last 40 years. Key technology = transistor , electronic component that allows to do logical opera8ons, mathema8cal opera8ons in binary code. Since 1950s we have had explosion of transistor technology-> swap valves and make them smaller and smaller-> now millions of transistors in a single chip. Very compact and very 8ny-> allows technology to get smaller. Binary processing smaller and cheaper-> not enough to explain today’s world. Two more components:
  1. 1970s, we agreed on a way to transmit data from computer to computer-> one protocol for data transmission emerged as dominant = TCP/iP , used by all machines that want to speak on internet. Fundamental part of today’s data explosion. Transistor tells dimension of data packages. This protocol is used for informa8on whose integrity is cri8cal. Other protocols: e.g. EDP, used by YouTube, doesn’t check packages, just needs data to come as fast as possible because videos need to con8nue. Now that we have shared protocols every item can speak to all devices.
  2. Storage : cheaper processors-> put into sensors - > get much data, where do we store it? In 1980 one GB of storage cost £10 million - > in 2010 1 GB of storage cost 10 cents. Became cheaper when streaming became popular. Dropping costs of storage allow for easier data accumula8on. 5 steps of data Any kind of data-related project has 5 steps:
  3. Basis = data capture , find data you need. This includes several opera8ons. Placement, calibra8on, interconnec8on, transport of data.

connect to database, it becomes slower. Best possible scenario but you need to know the language and you need to get access. Queries = requests. c. Using APIs: Applica8on Programming Interfaces. Sort of membrane between database and user-> you speak with API, much less complicated than SQL-> API goes to database, fetches data you need and gives it to you. Lowest barrier of access. Very good for data that keeps changing. APIs protect the database from access and manage usage. APIs keep track of each access, so we can charge per call. 22.10.

  1. Data is not made available for offline use: the one who owns data isn’t giving it away, e.g. social media data. If you want it, you need to steal it-> two ways: a. Scraping: build robots that go online and acquire data you need, as if they were human users. When you want to view a web page, computer makes a call to a web server = par8cular kind of computer which presents something to somebody who requested it, built to be on 24/7- > server sends to computer a HTML file (par8cular class of language known as markup language = doesn’t really do things, it specifies the way a document should look-> Hyper-Text Markup Language) - > s8ll the only language through which webpages are expressed-> computer puts it into HTML player = web browser. To extract data from website you manipulate HTML file. The one who owns the data packages it on a web page-> user develops a scraper that goes on webpage, extracts info needed and saves into a user database. User needs to build a so?ware robot. If you can see it on your screen, it can be scraped. Scraping streaming content can be intercepted but there’s no point-> you can screen record it. The server is trained to iden8fy scrapers (paherns of use of pla{orms which don’t look human) - > simulate as much as possible a human user BUT if you fail too many 8mes it’ll block you. Hardest websites to scrape = Chinese social media. AI is being used to detect scrapers but a lot of Captcha (which are there to block scrapers) are by now solvable through AI. Three countermeasures to oppose access to data: i. Walling : technical barrier to data access, put password and username to data. ii. Legal : juridical boundaries. Some websites need to keep their data visible-> can’t use walling-> when you apply for account of this website, terms of service you sign say that you can’t extract or scrape data from pla{orm. To enforce this in a court of law it’s difficult-> where juridical barrier works it’s not on point of collec8on but selling of data. iii. Obfusca/on : technique to increase cost of access-> website will present its data in such a way that it’ll make building a scraper as expensive as possible. e.g. some websites use classes to iden8fy different parts of website but change them every few minutes. b. Social engineering: calling the company, tricking them to give you the data. Data-poor environments raise the cost of any large-scale data-driven approach because of data fric8on. In absence of APIs or downloadable data (e.g. IMDB), we need scrapers, or data collec8on automata: so?ware that collects data from disparate online sources and unifies them into centralized databases. DATA ECONOMICS: TRANSPARENCY, SCORING AND SECURITY We live in a society with abundance of data, that tends to value transparency (=disclosing info) and visibility of data-> opposite = opacity (withholding, obscuring info). In principle as a society, we valued transparency more than opacity, however this transparency doesn’t include algorithms and data collec8on methods. Algorithm = set of instruc8ons that process an input towards a certain kind of output, e.g. recommender algorithms work by taking inventory of all content that pla{orm has and figures out which items are more likely to be consumed by each consumer-> present list of most likely items to user. Familiar with output, but no idea about input. This process of obfusca8on of algorithms = black boxing. Looks can be monodirec8onal-> somebody is looking at you, but you have no idea and therefore you have no way of counterac8ng - > e.g. when you apply for a job posi8on, they will look you up on the internet in any

way possible. E.g. Sherlock = when input a username, gets online and tells profiles of all main services that corresponds to that username. What are data licenses? Data is always released with license which specifies what can be done with it. Installing and using the data means accep8ng the license. Licenses regulate ownership, sharing and re-uses of data. We can model rela8onship between licensing and cost of data by fric2on = amount of trouble that you need to go through to access data.

  • Closed data = strongest licenses, one-on-one with end-user-> per-use, custom license. Most expensive both to purchase and to enforce.
  • Shared data = much more diffused-> don’t tell exactly what you must do with data, but they are preemp8ve because they’ll tell you what not to do. Free download, not per-use license - > releasing it to public under certain condi8ons-> majority of open data.
  • Open data = very lihle data, released and can be used for absolutely anything you want including reselling. Not always good, can have undesired impact that end up damaging weaker parts of popula8on. The data spectrum Kinds of access-licensing:
  • Open access : anyone can access, no limita8ons, e.g. bus 8metables.
  • Public access : preemp8ve license, anybody can access it but can’t do anything they want with it. e.g. social media.
  • Group-based access : ensembles of people can access info but need to authen8cate themselves. E.g. medical data-> doctors can access that but need to authen8cate on specific databases.
  • Named access : you have access to data, but you need to authen8cate to access, regulated by contract but s8ll open on outside.
  • Internal access : closest, you need to access it from inside organiza8on, only people inside organiza8on can access it unless you use a VPN. Credit score When you ask a bank for loan, bank assumes risk that you won’t pay it back-> it prices loan depending on risk that you pose = interest. Banks, ever since credit became mass credit (anyone can access it since 19th^ century), would loan to anybody-> ques8on: how do we measure risk? Birth of credit score = number that expresses likelihood that we will pay back a debt that we contract. Credit scores in 20th^ century were usually held by

dispersion: the more diverse the data formats are, the higher the costs of colla8ng data together will be. Another problem = data iner8a: the longer you do things in a certain way, the harder it will be to change the way you do things.

  1. Siloing : data exists but it’s kept by organiza8on/department for itself, and no access is provided outside. If I need this data, I will try to build that dataset myself using my own means-> if I keep doing it, I accumulate iner8a-> eventually we will have the same domain in different formats or disaligned content. This happens for several reasons: some8mes because of data quality (too low), some8mes it’s a technical problem-> stored in such a way that it’s impossible to have resources to access it. Why do we want to interconnect data? These two problems impede data colla8on, important part of data interconnec8on-> the more complex a system is, the more you need forecas8ng to govern it-> desperately needed skill (e.g. ci8es, climate). Understanding and governing complex systems require models combining different data sources. Combining data costs is equal to heterogeneity and dispersion-> macrolevel problems of data quality, the way data structure is organized. Key metrics If we move to microlevel, we get to actual metrics of data quality. Stabilize the level of fitness of quality of a data set-> if we fail, we have some issues. Subjective & objective Subjec8ve assessment of data quality = how good you think that your data is ≠ objec8ve assessment = done by somebody who knows how to use metrics, who is paid to perform assessment. Four situa8ons:
  2. High subjec8ve assessment BUT low objec8ve assessment, o?en happens in public ins8tu8ons-> bad decision-making.
  3. Low subjec8ve assessment and also low objec8ve assessment, you know your data is bad and it actually is-> you’re prone not to show it outside-> siloing, duplica8on of efforts, ad hoc solu8ons. You will do opinion-based decision-making: decision-maker takes the ul8mate decision ≠ data-driven decision- making: we agree on a mechanism so that something automa8cally happens.
  4. High subjec8ve assessment and also high objec8ve assessment: best possible situa8on, data is good, decisions made based on data.
  5. Low subjec8ve assessment but high objec8ve assessment happens o?en in ex-soviet countries. Waste-> good data but don’t do anything with it because you don’t trust it. How important assessing quality of data:
  • Accuracy : how close the data is to the phenomenon it’s supposed to represent. Distance between reality and data. Also dimension in which you have mistakes: situa8on in which data fails to represent phenomenon it’s supposed to. Not as straigh{orward as it looks, e.g. we have problems with names of ci8es in Switzerland (in which language should I put a certain city?) or translitera8ons from languages like Chinese or Russian. Issues can be: o Syntac8c: does X belong to the domain of informa8on? E.g. is “ndrew” a name? In English no, it’s probably a typo of Andrew ≠ in some central African countries it is a name. o Seman8c: does something actually correspond to what it’s supposed to?
  • Completeness : do we have enough data to represent accurately the phenomenon we are looking at? o Horizontal completeness: do I have enough variables in dataset to represent what I need to? o Ver8cal completeness: do I have enough cases? You usually measure gaps, a case that should be there but isn’t.
  • Consistency : o Conformity: do all datapoints in dataset obey to the same rules in terms of formawng? o Structural consistency: how database is structured in terms of rela8onship between records-

do we have unique keys in our dataset? § Inclusion : foreign key, key you have in a certain record points to another record->

make sure they are univocal

  • Timeliness : more discre8onal dimension, measures distance in 8me between when data was taken and moment in which decision based on it needs to be taken. Consequen8al metric, especially for pollu8on. Complicated to assess 8meliness if you don’t know which decision you have to take based on that data.
  • Accessibility
  • Value : is this data useful to me or not?
  • Comparability : it doesn’t have to do with specifics of data. How much can this data be stacked against other datasets regarding the same phenomenon? To acquire comparability, you need to have consistency, equal completeness, and accuracy. Without comparability you have no baseline-> essen8al to build informa8on out of data + fundamental to make people trust your data-> corporate social responsibility. 05.11. DATA QUALITY: DATABASES, TIDY DATA, DATA MANAGEMENT Low quality data costs:
  • Caused by low data quality: o Direct costs : direct damaging and now you need to pay for them. Verifica8on costs, re-entry costs, compensa8on costs. o Indirect costs : not related to immediate damage, but damages in the long term o Sunk investment costs : set of resources you put into something and there’s no way you can get it back.
  • Improving or assuring data quality: o Preven2on costs : related to framework that you set up to ensure monitoring of your data, to make sure you don’t get low quality data in future. Hardest part because some8mes you pay, and you won’t find any issue-> why pay for it? Training costs, monitoring costs, standard development and deployment costs. o Repair costs : once you find data quality issues, you need to fix it. Repair planning costs, repair implementa8on costs. o Detec2on costs : hardest part because some8mes you pay, and you won’t find any issue-> why pay for it? Analysis costs, repor8ng costs. Database structure Ensemble of datasets connected together through keys-> schema = organiza8on of variables and rela8onships. Data warehouses Most diffused model of database = data warehouse , kind of database that powers 9 5 % of databases in the world. Here data is organized in tables, which are connected through keys. In data warehouse model, first you design structure of database, then you input data. Very efficient, fast and clear in the way data is structured (= schema). Databases have iner8a - > the more data you put into database, the more resistant it will be to change. Data warehouses are efficient as long as you have consistency (data always in the same format). Good for 2D structured data ≠ bad for unstructured or semi-structured data. Data collec8on - > ETL (cleaning of data) - > main database-> sub-databases only on specific records/parts. Data warehouse is bad when you have new kinds of data: e.g. when upgrading a smart city infrastructure (data warehouse), new sensors-> run a separate experiment with a separate database OR you say no because it will be more costly to revise database to accommodate new data than benefit of new sensors. Bulk of costs = design and opera8on of database. Main principle = ACID (Atomicity, Consistency, Isola8on, Durability), every opera8on must be compartmentalized, different from others and there must be consistency between opera8ons. Data lake It powers a lot of AI databases, some emerging database languages which are becoming extremely well-paid for those who know how to use them. Finding something specific is much harder because formats are all mixed together. In recent years compu8ng power has become powerful enough that we have been able to design ways to sort through this database in order to find what we need even though formats of data are unstructured. Extremely flexible, no predefined schema, easy to adapt.

Data cultures iner2a = every company develops a way of doing things-> develop iner8a-> more costly to change. Whenever we design a data improvement strategy, we must take into considera8on that people tend to work the least possible for the largest amount of money. Key takeaways

  • Tidy data is but one standard to constrain data quality issues.
  • Good data quality management improves decision-making and reduces cost downstream.
  • Data quality management can help spot problems in organiza8onal processes.
  • Data quality management is strongly resisted by the workforce, because of iner8a of data cultures. 12.11. DATA, CHOICE & CONSUMPTION: INTRODUCTION TO RECOMMENDER SYSTEMS Recommender systems = programs that take in inputs and output recommenda8on. We need them to keep our customers happy and par8cularly consuming-> since mid2000s a vital part of www and all connected services. Challenge 1: dry catalog Nokia Ngage: videogame consol from 2000s. At the 8me Nokia was the most famous mobile brand. At the 8me also Nintendo Gameboy was popular, originated as black and white console. So, Nokia thought of Ngage as mobile phone and videogames console; it also had a camera. Google Stadia offered a cloud (service that virtualizes computers) - > didn’t have to buy a pc/videogame console, could play any game in a browser or even mobile phone. Problem: dry catalog = how users perceive your catalog, when users perceive they don’t have enough choice for money they’re spending. On Google Stadia you had couple of thousands of games, as well as Nokia Ngage where you had a catalog of many games-> s8ll not as large as Gameboy’s catalog. Nothing to do with how many games there are or how good the games are. People want the percep8on of choice-> if you pay too much for the choice you have. Whenever we deploy a service in which we want to give users choice, we want users to perceive our catalog as large enough to jus8fy the money they pay. Challenge 2: choice overload When you feel you have too much choice, you will back off from consuming (opposite problem to dry catalog, but same outcome). “Jam experiment” by Yiengar and Lepper, 2000: they found out that if you have more choice, you will be more interested in the product; but if you have more choice, you won’t necessarily buy more-> you buy more when you have less choice. You want to avoid both extremes: not enough choice / too much choice. Recommender systems typologies So?ware which helps users navigate complex choices-> vital when catalog of online resellers have become very extensive (e.g. Amazon). How do we build this kind of agents? Three essen8al types:
    1. Simple recommenders : likelihood of consump8on on basis of a single variable
    2. Content-based recommenders : based on what you liked and similarity with other items in catalog
    3. Collabora2ve filtering engines : based on what people similar to you already consumed Simple recommenders Catalog (a list of items and variables describing them)-> one variable, calculate average, then give to user a certain number of items above average. Parameter usually used has to do with consump8on: e.g. Spo8fy catalog, stream of each song every week, playlist top 50. Homophily = you are more inclined to consume what other people already consumed-> minimize risk-> reason why we publish rankings. Content-based recommenders Take what you already consumed, find similari8es in catalog - > how are similari8es calculated? You must have every movie described by certain variables. When variable is present you have value 1, if absent you have 0. This way of describing something is called vector = something that always starts from zero and has direc8on and magnitude. Calculate similarity score of each fairytale with the others-> if I know which fairytale you liked, I can give you the ones that are more similar to what you liked.

Founda8on of all AI, ability of represen8ng things as vectors-> direc8on of vector will encode informa8on. Each variable is technically known as feature. Not all features are equally important-> how do we reflect that on calcula8on? By weighing them-> mul8plying them by a certain weight (index of how much something is important). Who decides weights - > either analyst or you devise someway to do it automa8cally. Where do these variables come from? Analyst decided them-> content-based recommenders live or die depending on quality of variables you choose to describe your en88es. For complex things like movies, what variables should we use to classify them and how can we extract those for thousands of movies? You can derive something from sub8tles, summary, reviews etc.-> text processing-> system that does it automa8cally and derives variables that build a catalog. Music This is much easier for music-> Spo8fy has a beher recommenda8on system than streaming services for example. Music already comes with a lot of metadata (ar8st, genre, year etc.), but it’s not enough. Variables become all possible metadata (“is Madonna singing?”) - > advantage is that it’s all encoded in 1/0 (yes/no). Problem: genre of a song is usually derived from genre of album in which song is included. Problem 2: genres are subjec8ve. Problem 3: genres are always labels that are applied a?erwards. à metadata isn’t enough. Music is simple-> technically speaking it’s a wave, bidimensional-> don’t need to have a preconceived no8on of a genre-> you can analyze features of wave and then calculate similari8es based on that. Two songs with completely different metadata and genres may end up prehy similar sound-wise. Movies Technically a video (= images, frames mul8plied by 24 per second) + audio + sub8tles + metadata (derived by IMDb). You can process sub8tles, calculate cooccurrences (words that people say a lot in the movie-> useful to understand topic) - > topic analysis technique. Video processing: analyze colors-> movies tend to have a palehe of colors + apply en8ty recogni8on to images = machine learning algorithms that recognize what’s in a picture. Metadata: same director, same director of photography, actors etc. Books Only principle = word frequency. !!! There are things that are hard to decompose in vectors, for example food. Collaborative filtering engines Agents make some choices, then I look for least average difference. This simplified version assumes that agents are all the same kind of individuals, and that all of them expressed ra8ngs about things they consume-> explicit kind of data. As human beings, we rate things when we love them or hate them, no in-between. If I don’t know what people liked but I know what you consumed, how can I calculate similari8es? You explicitly ask people to rate things, or you can iden8fy sociodemographic variables-> recommend things that people similar to you liked. Same principle as content-based recommenders, however this doesn’t describe variables but people.

  • Security How do local governments use Facebook? Brescia (Italy): air/water quality, industrial sites, waste-to-energy plant. Active civil society-> observatories: participation entities. Caffaro plant Former chemical plant-> groundwater and soil pollution. Remediation-> urban location-> citizens’ concerns: potential impact on health and environment. Caffaro observatory Municipality of Brescia, 2021, enhance transparency regarding: remediation progress; initiatives to enhance quality of life and environmental well-being. Caffaro communication protocol Goal: provide regular updates to the public. Tool: Facebook. Communication: 1) bi-weekly bulletin 2) monthly technical insight. Future directions
  • Big data and AI tools
  • Expanding digital platforms
  • Data-driven content customization
  • Potential of digital communication URBAN SUSTAINABILITY AND DATA IN TRANSITIONING COUNTRIES Data cultures Data is not abstract. Data being local means that every piece of data is produced in a specific context by choices of people, even if data are automatically created. Locality of data = data in a specific socio-technical context. If data is local, it means that when we start working with certain kinds of data, we try to understand how we should work with these data-> imitate other people who work in the same office-> we adopt a specific culture. Data cultures = immaterial components made up of ideas, notions, preassumptions, priorities that people subconsciously assimilate when they start working somewhere on data. The ways in which these immaterial components are built, reproduced, opposed or assimilated by people who need to work on this data - > Science and Technology Studies (STS), any kind of technology is inextricably linked with human components of people who built it. STS emerged to oppose technological determinism = idea that technology evolves using a Darwinian model (progress towards the best technology) + technology by itself determines its social impact. Data cultures:
  • Conceptualize and make sense of the data flow: what they consider data (NOT only numbers)
  • Conceptualize and enact data-related practices: how data works
  • Conceptualize and design monitoring mechanisms: how they think their work should be evaluated afterwards and how they think the phenomenon they’re looking at should be monitored. These three dimensions exist in the space of interaction-> we just imitate e/o-> culture is always implicit: people interiorize it but never talk about it. Data cultures + technologies people use to work on data = data ecologies , which are entirety of factors that impact the way you work with data. Problem: institutions don’t want to move to data-driven decisions in housing. Urban data ecologies: objects of study Epistemologies & Representations : how local actors know or understand ‘data’, in particular in an age of (relative) data abundance (from datasets as rare resource and specialized type of information to more diffused, banal) Practices & Norms : what local actors do with data, what they might take for granted about how data is handled, and who does that handling. Formats & Infrastructures : how data is formatted and stored locally and shared and circulated across broader geographical scales.

Knowledge and Expertise : the extent and nature of data-related knowledge and expertise: information overload vs new kinds of digital literacies. 26.11. MACHINE LEARNING AND AI What is “smart”? Smart = not necessarily cultural depth (how much you know), it means to be able to respond and adapt to external inputs. Dumb = inability to respond to external inputs or you do it counterproductively. Smart thermostats from 1960s had wax inside-> when it was hotter, wax would melt blocking heating. Being smart has nothing to do with electronics-> machines able to perceive input and configure themselves according to it. Intelligence Complex and much broader notion. When speaking of artificial intelligence, we often mean smartness. Intelligence entails five dimensions:

  1. Observe : ability to acquire data by itself
  2. Remember : retain data, it has some sort of memory
  3. Learn : integrate data into a model (generalization of a phenomenon) = box with inputs and outputs-

    something you use to predict how a system will be. Ability to do causal inference-> if x happens, then y happens. If we stop here, these 3 components don’t allow us to act in the world.

  4. Respond : employ data collected to adjust system and respond to external outputs. So far, we’re in smartness dimension.
  5. Forecast : predict state in which system will be if something happens in future and anticipate possible responses to that (key for AI). Artificial intelligence This notion of intelligence can be applied to humans, animals and machines ≠ artificial intelligence : forms of intelligence that rely on machines to work. These machines simulate and/or mimic human behavior. We can identify two main families:
  6. Broad intelligence : idea of a machine able to simulate full spectrum of human intelligence (doesn’t exist)
  7. Narrow intelligence : machines that simulate specific subsets of human intelligence (e.g. ChatGPT simulates ability to construct language but it’s useless at doing math). Field of AI started in 1950s-> most experiments were about playing games better than humans-> games, especially highly formalized ones e.g. chess, are easy to simulate. 1950 - 1980s AI was mostly focused on idea of abstraction - > abstract rules of chess and find ways to mathematically express those rules, feed them to computers and teach them to play chess. By 1980s it became clear that this approach wasn’t giving significant results-> as soon as you moved to something fluid like language it became extremely expensive and almost impossible to feed into computer all rules. By that time, hype around AI started to dwindle down BUT at the same time another field started to rise-> idea of machine learning : doesn’t start from rules, but from text-> feed it into computer and find ways so that computer by itself deduces rules from text. We didn’t have technology to do it properly-> late 2000s, apply neural network architecture: conceptualized 1960-70s, made machine learning actually possible. Today everything AI is an application of deep learning : subset of machine learning. Machine learning Def. Adams, 1959: “[A]n application of artificial intelligence where a computer/machine learns from the past experiences (input data) and makes future predictions. The performance of such a system should be at least human level”. At the time people knew what to do to lead on but lacked technology. This definition implies

NEURAL NETWORKS

They mimic the way human neurons work-> connected to e/o-> fire a signal that ac8vates connected neurons. This is what lies behind idea of neural network: architecture built around this no8on-> machine that can produce any kind of output. Neuron fires signal with certain amount of strength-> signal can be more or less strong. E.g. input image of cat-> want to output above 90%-> reduce image to numbers (color value of every pixel) - > image is now a vector with as many direc8ons as number of pixels. We feed into input layer our dimensions-> arrange connec8ons with different weight-> adjust un8l ac8va8on junc8ons are set in a way that every 8me it comes out right irrespec8ve of how you input it. This can be done manually, but also done by back propaga8on: ini8alize it with totally random values-> if it doesn’t work, you go back and change in a way that gets you closer to the right answer un8l you actually get it right. We couldn’t do this in 1970s because it’s heavily computerized. When a neural network is wrong, you can’t just fix it, you must retrain it from scratch. This is why machine learning models based on neural networks have problem of intelligibility. This is why it’s called deep learning: no idea how or why hidden layers in between work. Big problems of opacity of AI. Key takeaways:

  1. Neural networks mark the genera8onal leap forward because they’re abstract-> can be applied to any problem-> combine flexibility of machine learning with abstrac8on
  2. No way of intercep8ng biases before they manifest
  3. Model is only as good as data you feed into it-> whoever has more data will be the more advanced-> issue of geopoli8cal data. 03.12. LLMs, TRANSFORMERS AND WORD EMBEDDINGS Numbers represented by vectors in a vector space. Images per se aren’t difficult to express by numbers-> table of pixel represented by a color BUT meaning of image is more complex. How can we represent words as numbers? Embedding: to insert something somewhere else-> place something in a system of axes, geometrical system-

con8nuous vector representa8ons of words in a high-dimensional space. Purpose: capture seman8c meanings and rela8onships between words. Two main kinds of word embeddings:

  1. Sentence embeddings : dic8onary (a list of words) - > for each word you say how many 8mes it’s present in that sentence. Problem: how do we define list of words-> take all text, take all words-> make a set. Problem: you can have completely different order of words-> very different vectors.
  2. Word embeddings : real problem-> how do we express meaning of words in numbers? Example with 2 variables: y = age, x = femininity. “boy” (0;2) – “girl” (4;2) – “man” (0;3)
    • “woman” (4;3) - > where do we put “person”? We lack enough features-> add one more dimension, z = level of royalty. “man” (0;3;0)
    • “woman” (4;3;0) – “king” (0;3;4) – “queen” (4;3;4). King 034 – man 030 = 004 + boy 020 = 024 prince. How can we have all features of all words in a language? By 1990s we started doing a different form of embedding: not a choice of arbitrary dimension but based on the way they relate to all other words in the language. E.g. The cat is in the bag. The house that Jack built. My cat sleeps in the house. We choose a window of observa8on (in this case 3-word window) - > what words are close to the chosen word? How o?en do they appear close to each other? Embedding changes depending on size of window. “the” = cat, is, in - > how many 8mes is it close to ‘cat’? 1 - > numerical representa8on of that word that represents the number of 8mes it is close to another word in a language, usually expressed with a percentage. Eventually you will have a n-dimensional embedding with all the words in your embedding.

Dimensionality reduc8on: most word embeddings today are done with just 512 dimensions; however, these lose completely any rela8onship with individual word-> becomes unreadable for human beings-> we can only infer meaning based on dimensions and words close to them. We reduce dimensionality but we preserve the meaning. E.g. same process as when you ask ChatGPT for synonyms. Transformers In 2017 different architectures called transformers were created-> they take en8rety of text as window-unit-

self-ahen8on mechanism: a way of understanding how important words are in sentences - > inverse frequency (the more common, the less important). This allows transformers to work without windows-> they have very long memory-> their job is to predict what word comes next depending on word that comes before. LLMs Language models, systems of embedding words, which have many words, high dimensional space and you train them (build embeddings), then you further train them but only linguis8cally-> telling it what to do and don’t. First you build machine and then teach machine what to do by programming it in natural language. Examples: GPT (Genera8ve Pre-trained Transformer), BERT (Bidirec8onal Encoder Representa8ons from Transformers), T5 (Text-to-Text Transfer Transformer). Geopoli8cs of data also applies to LLMs-> we don’t have enough new data to train these models much beher than they are right now. From now on there will be only small improvements. Also, the reason why countries are locking down social media. Key points:

  • What is ar8ficial intelligence
  • Difference between AI and machine learning
  • What is deep learning and why is it deep
  • What is supervised/unsupervised learning
  • How word embeddings work (transformers = technologies that allow LLMs to exist; based on ahen8on) 10.12. ENCRYPTION & BLOCKCHAINS How does a blockchain work? We have to understand cryptography-> securing messages by altering the context/content of messages. Encryp8on = process through which we convert plaintext into ciphertext (contains informa8on but cannot be decoded without a key). Symmetric encryp2on = you have the same key (like alphabet), and it is the same key you use to encrypt and decrypt. Asymmetric encryp2on = different keys to encode and decode-> more secure than symmetric encryp8on. Encryp8on is any process that subs8tutes lehers in a message with other lehers, numbers or other symbols. E.g. Caesar’s cypher used in the Roman empire-> you needed to transmit or to know-> it was the shi? lehers wheel. Hashing It’s a one-way encryp8on-> you can encrypt a message, and it will always end up with the same sequence of lehers and numbers, but you cannot go back. The same input will always give you the same hash-> hash can be used to iden8fy univocally something without exposing the informa8on. Impossible for someone to have the same hash as me-> avoids collision. If it happens, they change the hash algorithm. Important for websites because if they’re hacked, hackers will only get the hash connected to your username-> no way to go back to your actual username/password. Python: Words=[“house”, ”horse”, ”Mar8n”, ”Mary”, ”apple”, ”rabbit”] Results={} For year in range(1944,2012): For word in words: For symbol in [“!”,”,”,”.”,”_”,”#”,”@”,”?”] Encryptor=sha256() In_string=word+symbol+str(year) Encryptor.update(in_string.encode(‘u{-8’)) Results[in_string]=encryptor.hexdigest() Hashcash and proof-of-work algorithms Blockchain = distributed ledger (register where you mark down transac8ons) - > whenever there is a payment, the copy of ledger is updated on computers of everybody who is part of network. The more people are in

would anybody have supply chain of wood on their computer? Also, companies have all incen8ves to falsify it. Another problem: blockchain is theore8cally global-> what jurisdic8on to apply? Also, it’s non-revokable-> blockchain is immutable. NFTs Non-Fungible Tokens-> if you’re a digital ar8st, your problem is that being digital your art can be copied infinitely, and the copy is the same as the original-> how to recognize original? Problem solved by NFTs, because digital artwork has unique iden8fier and when you sell it it’s public in the blockchain. Value storage: as long as people believe that something has a specific value you can sell it and get money-> most «metaverse» applica8ons are 3D environments with blockchain-based in-game markets based on NFTs.

END