Lecture 1: Introduction Advaith Siddharthan (Course Coordinator) Kees van Deemter Ehud Reiter Yaji Sripada Background read: Reiter and Dale, Building Natural.

Slides:



Advertisements
Similar presentations
1 OOA-HR Workshop, 11 October 2006 Semantic Metadata Extraction using GATE Diana Maynard Natural Language Processing Group University of Sheffield, UK.
Advertisements

A very short introduction to Natural Language Generation Kees van Deemter Computing Science University of Aberdeen.
NEXTGEN VITAL SIGNS DEMONSTRATION
Testing Asbru Guidelines and Protocols for Neonatal Intensive Care Christian Fuchsberger, Jim Hunter and Paul McCue.
Arterial Blood Gas Analysis
BabyTalk: Generating English Summaries of Clinical Data
Blood Gas Sampling, Analysis, Monitoring, and Interpretation
Part 3 Real World Applications: SumTime-Mousam. Dept. of Computing Science, University of Aberdeen2 In this lecture you learn SumTime-Mousam –Knowledge.
Time Series Analysis – Example Application. 2 Scuba Scuba – Self Contained Under-water Breathing Apparatus Scuba diving – popular form of recreational.
Supplemental Topic Weather Analysis and Forecasting.
Natural Language Generation Ling 571 Fei Xia Week 8: 11/17/05.
User interface design Designing effective interfaces for software systems Objectives To suggest some general design principles for user interface design.
Weather Forecast Unit 5 Talking About the Weather.
Estimation 8.
Total Quality Management BUS 3 – 142 Statistics for Variables Week of Mar 14, 2011.
NEXTGEN VITAL SIGNS DEMONSTRATION This demonstration reviews the documentation of vital signs in NextGen. This is similar across all specialties. This.
Monitoring and Measurement
Statistical Natural Language Processing. What is NLP?  Natural Language Processing (NLP), or Computational Linguistics, is concerned with theoretical.
User Interface Design Chapter 11. Objectives  Understand several fundamental user interface (UI) design principles.  Understand the process of UI design.
The Project AH Computing. Functional Requirements  What the product must do!  Examples attractive welcome screen all options available as clickable.
Time Series Data Analysis - II
Ehud Reiter, Computing Science, University of Aberdeen1 CS4025: Realisation and Entrepeneurship.
Results.
Dept. of Computing Science, University of Aberdeen1 CS4031/CS5012 Data Mining and Visualization Yaji Sripada.
Evaluation of Respondus assessment tool as a means of delivering summative assessments A KU SADRAS Project Student Academic Development Research Associate.
User Characteristics & Application design. 2 Introduction The starting point of this course: –Users want to understand information about something to.
Flexible Text Mining using Interactive Information Extraction David Milward
Time Series Data Analysis - I Yaji Sripada. Dept. of Computing Science, University of Aberdeen2 In this lecture you learn What are Time Series? How to.
PowerPoint Presentation for Dennis, Wixom, & Tegarden Systems Analysis and Design with UML, 3rd Edition Copyright © 2009 John Wiley & Sons, Inc. All rights.
Introduction to GATE Developer Ian Roberts. University of Sheffield NLP Overview The GATE component model (CREOLE) Documents, annotations and corpora.
Software Architecture
Dr. Ehud Reiter, Computing Science, University of Aberdeen1 Explaining Data to People Ehud Reiter (Univ of Aberdeen)
Using NLP to Support Scalable Assessment of Short Free Text Responses Alistair Willis Department of Computing and Communications, The Open University,
NCAR MDSS Functional Prototype Display System Preview – April 2002 Bill Mahoney National Center for Atmospheric Research Images shown are valid as of 15.
Spreadsheet Engineering Builders use blueprints or plans – Without plans structures will fail to be effective Advanced planning in any sort of design can.
Report Technical Writing
Changes to assessment and reporting of children’s attainment A guide for Parents and Carers Please use the SPACE bar to move this slideshow at your own.
Introduction Chapter 1 Foundations of statistical natural language processing.
AS ICT.  Have an understanding of how organizations use ICT.  Be able to describe a number of uses, giving the hardware and software requirements 
Ehud Reiter, Computing Science, University of Aberdeen1 CS4025: Content Determination and Document Planning.
Surveillance and Population-based Prevention Department for Prevention of Noncommunicable Diseases Displaying data and interpreting results.
Life without Levels Assessing children without levels.
SAT’s Information Parent’s Meeting 10 th February February 2016.
* Statutory Assessment Tasks and Tests (also includes Teacher Assessment). * Usually taken at the end of Key Stage 1 (at age 7) and at the end of Key.
BMC Medical Co., Ltd. Nov Training Course. 1 Table of Contents 1. CATALOGUE 2. INSTALL& DISASSEMBLE 3. SET UP.
KS2 Statutory Assessments. Key dates Monday 9 May: English reading test: reading booklet and answer booklet. Tuesday 10 May: English grammar, punctuation.
Standard Assessment Tests All children have to be tested before they go to secondary school Provide assessment information for secondary schools Purpose.
Management of Premature Infants in Neonatal Intensive Care Unit (NICU) with Severe Chronic Lung Disease of Infancy Requiring Discharge on Chronic Home.
Year 6 KS2 tests Tuesday 22 nd March. Overview of 2016 tests For 2016, a new set of KS2 national curriculum tests has been introduced consisting of: English.
PRESSURE CONTROL VENTILATION
Year 6 Assessment and SATs Information Monday 9 th May – Thursday 12 th May 2016.
Computer Control and Monitoring Today we will look at: What we mean by computer control Examples of computer control Sensors – analogue and digital Sampling.
Ehud Reiter, Computing Science, University of Aberdeen1 CS5545: Natural Language Generation Background Reading: Reiter and Dale, Building Natural Language.
Personal Home Healthcare System for the Cardiac Patient of Smart City Using Fuzzy Logic Shijia Liu.
Control Systems in Medical Applications
Measuring and Monitoring Data
What are the SATS tests? The end of KS2 assessments 14th May 2018.
Edexcel: Large Data Set Activities
What are the SATS tests? The end of KS2 assessments are sometimes informally referred to as ‘SATS’. SATS week across the country begins on 14th May 2018.
What are the SATS tests? The end of KS2 assessments are sometimes informally referred to as ‘SATS’. SATS week across the country begins on 14th May 2018.
Your Name METR 104 Today’s date
What are the SATS tests? The end of KS2 assessments are sometimes informally referred to as ‘SATS’. SATS week across the country begins on 13th May 2019.
Control Systems in Medical Applications
What are the SATS tests? The end of KS2 assessments are sometimes informally referred to as ‘SATS’. SATS week across the country begins on 13th May 2019.
Welcome parents and carers
Aims of the meeting To inform you of the end of Key Stage 2 assessment procedures. To give you a better understanding of what’s involved in the SATs tests.
What are the SATS tests? The end of KS2 assessments are sometimes informally referred to as ‘SATS’. SATS week across the country begins on 13th May 2019.
EBPS Year 6 SATs evening.
What are the SATS tests? SATS week begins on 13th May 2019.
Presentation transcript:

Lecture 1: Introduction Advaith Siddharthan (Course Coordinator) Kees van Deemter Ehud Reiter Yaji Sripada Background read: Reiter and Dale, Building Natural Language Generation Systems CS50AD: Natural Language Generation

What is NLG? NLG systems are computer systems which produces understandable and appropriate texts in English or other human languages  Input is data (raw, analysed)  Output is documents, reports, explanations, help messages, and other kinds of texts Requires  Knowledge of language  Knowledge of the domain

Text Natural Language Understanding Natural Language Generation Speech Recognition Speech Synthesis Text Meaning Speech Language Technology

Example 1a: Weather Forecasts Input: numerical weather predictions ― From supercomputer running a numerical weather simulation Output: textual weather forecast ― Users can prefer NLG texts to human texts! ― More consistent, better word choice

Grass pollen levels for Tuesday have decreased from the high levels of yesterday with values of around 4 to 5 across most parts of the country. However, in South Eastern areas, pollen levels will be high with values of 6. Example 1b: Pollen Forecasts

Example 1c: Gritting Forecasts Forecasts for gritting and other winter road maintenance procedures Input is 15 parameters over space and time ― Temperature, wind speed, rain, etc ― Over thousands of points on a grid ― Over 24 hours (20-min interval)

Points on a map

Generated Text Overview Road surface temperatures will reach marginal levels on most routes from this evening until tomorrow morning. Wind (mph) NW gusts for a time during the afternoon and evening in some southwestern places, veering NNW then backing NW and easing 5-10 tomorrow morning. Weather Light rain will affect all routes this afternoon, clearing by 17:00. Fog will affect some central and southern routes after midnight until early morning and light rain will return to all routes. Road surface temperatures will fall slowly during this afternoon until tonight, reaching marginal levels in some places above 200M by 17:00.

Exampe 2: Babytalk Goal: Summarise clinical data about premature babies in neonatal ICU Input: sensor data; records of actions/observations by medical staff Output: multi-para texts, summarise ― BT45: 45 mins data, for doctors ― BT-Nurse: 12 hrs data, for nurses ― BT-Family: 24 hrs data, for parents

Neonatal ICU

SpO2 (SO,HS) ECG (HR) Core Temperature (TC) Arterial Line (Blood Pressure) Peripheral Temperature (TP) Transcutaneous Probe (CO,OX) Data Sources in Neonatal ICU

Visualisation of Data as Time Series

Computer-generated text By 11:00 the baby had been hand-bagged a number of times causing 2 successive bradycardias. She was successfully re- intubated after 2 attempts. The baby was sucked out twice. At 11:02 FIO2 was raised to 79%. Human corpus text At 1046 the baby is turned for re-intubation and re-intubation is complete by 1100 the baby being bagged with 60% oxygen between tubes. During the re-intubation there have been some significant bradycardias down to 60/min, but the sats have remained OK. The mean BP has varied between 23 and 56, but has now settled at 30. The central temperature has fallen to 36.1°C and the peripheral temperature to 33.7°C. The baby has needed up to 80% oxygen to keep the sats up. BT-45 texts for doctors

Respiratory Support Current Status Currently, the baby is on CMV in 27 % O2. Vent RR is 55 breaths per minute. Pressures are 20/4 cms H2O. Tidal volume is 1.5. SaO2 is variable within the acceptable range and there have been some desaturations. … Events During the Shift A blood gas was taken at around 19:45. Parameters were acceptable. pH was CO2 was 7.71 kPa. BE was -4.8 mmol/L. … BT-Nurse Text

John was in intensive care. He was stable during the day and night. Since last week, his weight increased from 860 grams (1 lb 14 oz) to 1113 grams (2 lb 7 oz). He was nursed in an incubator. Yesterday, John was on a ventilator. The mode of ventilation is Bilevel Positive Airway Pressure (BiPAP) Ventilation. This machine helps to provide the support that enables him to breathe more comfortably. Since last week, his inspired Oxygen (FiO2) was lowered from 56 % to 21 % (which is the same as normal air). This is a positive development for your child. During the day, Nurse Johnson looked after your baby. Nurse Stevens cared for your baby during the night. BT-Family text (extract)

Example 3: Blogging Birds

Blogging Birds Wyvis’s Journeys (20/09/12 to 26/09/12), Female bird born in 2012 DOWHourHabitat Significant Weather Temp (C)Visibility (m) Wind Speed (mph) LocationFeatures Distance Flown Other Kites Friday8 coniferous woodland overcast East Croachy Loch Ruthven, rough grassland heavy rain Torness Loch Ruthven, rough grassland heavy rain Torness Loch Ruthven, rough grassland heavy rain Torness Loch Ruthven, 2.0Merida 16improved grassland overcast Torness 3.0

Standup: help children with learning disabilities tell jokes Skillsum: give adults feedback on literacy/numeracy assessment Thomson-Reuters: Automatically generate newswire articles Etc, etc Other NLG projects

Arria/Data2text Spinout company ― Monitoring complex equipment on oil platforms ― UK weather forecasts ― Financial summaries Based in Meston building ― Always looking for good developers

How do NLG Systems Work? Usually three stages ( Not including data analysis) Document planning: decide on content and structure of text Microplanning: decide how to linguistically express text (which words, sentences, etc to use) Realisation: actually produce text, conforming to rules of grammar

Scuba text example Demo system (Dr Sripada) for scuba divers: Input is dive computer data ― Depth-time profile of scuba dive Output is feedback to diver ― Mistakes, what to do better next time ― Encouragement of things done well

Scuba - input

Risky dive with some minor problems. Because your bottom time of 12 min exceeds no-stop limit by 4 min this dive is risky. But you performed the ascent well. Your buoyancy control in the bottom zone was poor as indicated by ‘saw tooth’ patterns. Scuba – output

Scuba: data analytics Look for trends and patterns in data ― Trends: eg, depth increases fairly steadily over first 3 minutes ― Patterns: eg, sawtooth between 3 and 15 minutes Will not further discuss data analytics in this course

Content selection: Of the zillions of things I could say, which should I say? – Depends on what is important – Also depends on what is easy to say Structure: How should I organise this content as a text? – What order do I say things in? – Rhetorical structure? Document Planning

Probably focus on patterns indicating dangerous activities – Most important thing to mention How much should we say about these? – Detail? Explanations? Should we say anything for safe dives? – Maybe just acknowledge them? – But encouragement also important Scuba: content

Mention most dangerous thing first? – Or should we just order by time? – Start with overview? Linking words (cue phrases) – Also, but, because, … Scuba: structure

Lexical/syntactic choice: Which words and linguistic structures to use? Aggregation: How should information be distributed across sentences and paras Reference: How should the text refer to objects and entities? Microplanning

Lexical/syntactic choice: – Risky vs dangerous vs unwise vs … – Performed the ascent vs ascended vs … – 12 min vs 720 sec vs 700 sec vs sec Aggregation: 1 sentence or 2 sent? – “Because your bottom time of 12 min exceeds no-stop limit by 4 min this dive is risky, but you performed the ascent well.” SCUBA: microplanning

Aggregation (continued) – Phrase merging “Your first ascent was fine. Your second ascent was fine” vs “Your first and second ascents were fine.” – Reference Your ascent vs Your first ascent vs Your ascent from 33m at 3 min Scuba: Microplanning

Grammars (linguistic): Form legal English sentences based on decisions made in previous stages – Obey sublanguage, genre constraints Structure: Form legal HTML, RTF, or whatever output format is desired Realisation

Simple linguistic processing – Capitalise first word of sentence – Subject-verb agreement Your first ascent was fine Your first and second ascents were fine Structure – Inserting line breaks in text (pouring) – Add HTML markups, eg, Scuba: Realisation

Speech output Text and visualisations – Produce separately, OR – Tight integration Eg, text refers to graphic, OR graphs has text annotations Multimodal NLG

Risky dive with some minor problems. Because your bottom time of 12.0min exceeds no-stop limit by 4.0min this dive is risky. But you performed the ascent well. Your buoyanc control in the bottom zone was poor as indicated by ‘saw tooth’ patterns marked ‘A’ on the depth-time profile. Combined (Preferred)

Knowledge and corpus analysis Systems Building NLG Systems

Need knowledge – Which patterns most important? – What order to use? – Which words to use? – When to merge phrases? – How to form plurals – Etc Where does this come from? Building NLG Systems: Knowledge

Imitate a corpus of human-written texts – Most straightforward, will focus on this Ask domain experts – Useful, but experts often not very good at explaining what they are doing Experiments with users – Very nice in principle, but a lot of work Knowledge Sources

See which patterns humans mention in the corpus, and have the system mention these See the words used by humans, and have the system use these as well etc Scuba: Corpus

Producing rather than understanding language Focus on content and AI issues as well as linguistic issues To date less usage of statistical tech – Focus on high-quality systems in limited domains NLG vs NLP

NLG has had much less commercial impact in past Hopefully this is changing! NLG vs NLP