# Patent

## Title
Method and apparatus for interactive reports

## Abstract

Methods, apparatus and computer program products for interactive reports are disclosed herein. In some examples, a method for generating an output report that is an interactive report may include identifying one or more messages to be hyperlinked in an output report, wherein the one or more messages are data structures that are configured to linguistically describe at least a portion of raw input data; determining one or more interactive responses based on the one or more messages to be hyperlinked; determining one or more words in a phrase specification that are related to the one or more messages to be hyperlinked; and generating the output report, wherein the one or more words are hyperlinked in the output report such that when selected at least one of the one or more interactive responses is performed.

## Background
TECHNOLOGICAL FIELD
Embodiments of the present invention relate generally to natural language generation technologies and, more particularly, relate to a method, apparatus, and computer program product for providing interactive reports.
BACKGROUND
Natural language generation (NLG) is sometimes referred to as a subfield of artificial intelligence and computational linguistics that focuses on the production of understandable texts in English or other understandable language. In some examples, a natural language generation (NLG) system is configured to transform raw input data that is expressed in a non-linguistic format into a format that can be expressed linguistically, such as through the use of natural language (e.g., the conversion from data to text). In some cases the data is high frequency numerical data. For example, raw input data may take the form of a value of a stock market index over time and, as such, the raw input data may include data that is suggestive of a time, a duration, a value and/or the like. Other examples, may include the generation of textual weather forecasts base on numerical weather prediction data. Therefore, an NLG system may be configured to input the raw input data and output text that linguistically describes the value of the stock market index; for example, “securities markets rose steadily through most of the morning, before sliding downhill late in the day.” Importantly, for use in an NLG system, data must be analysed and interpreted in a way in which the analysis and interpretation can be linguistically communicated. For example, data that indicates the price of a stock market rising may be represent linguistically as rising, spiking or the like. A human may then make decisions based on how that human interprets rising versus spiking.
Data that is input into a NLG system may be provided in, for example, a recurrent formal structure. The recurrent formal structure may comprise a plurality of individual fields and defined relationships between the plurality of individual fields. For example, the input data may be contained in a spreadsheet or database, presented in a tabulated log message or other defined structure, encoded in a ‘knowledge representation’ such as the resource description framework (RDF) triples that make up the Semantic Web and/or the like. In some examples, the data may include numerical content, symbolic content or the like. Symbolic content may include, but is not limited to, alphanumeric and other non-numeric character sequences in any character encoding, used to represent arbitrary elements of information. In some examples, the output of the NLG system is text in a natural language (e.g. English, Japanese or Swahili), but may also be in the form of synthesized speech.
BRIEF SUMMARY
In some example embodiments, a computer implemented method is disclosed herein that includes identifying one or more messages to be hyperlinked in an output report, wherein the one or more messages are data structures that are configured to linguistically describe at least a portion of raw input data; determining one or more interactive responses based on the one or more messages to be hyperlinked; determining one or more words in a phrase specification that are related to the one or more messages to be hyperlinked; and generating the output report, wherein the one or more words are hyperlinked in the output report such that when selected at least one of the one or more interactive responses is performed.
In some example embodiments, an apparatus is disclosed herein that includes at least one processor; and at least one memory including computer program code, the at least one memory and the computer program code configured to, with the at least one processor, cause the apparatus to at least identify one or more messages to be hyperlinked in an output report, wherein the one or more messages are data structures that are configured to linguistically describe at least a portion of raw input data; determine one or more interactive responses based on the one or more messages to be hyperlinked; determine one or more words in a phrase specification that are related to the one or more messages to be hyperlinked; and generate the output report, wherein the one or more words are hyperlinked in the output report such that when selected at least one of the one or more interactive responses is performed.
In some example embodiments, a computer program product is disclosed herein that includes at least one computer readable non-transitory memory medium having program code instructions stored thereon, the program code instructions which when executed by an apparatus cause the apparatus at least to identify one or more messages to be hyperlinked in an output report, wherein the one or more messages are data structures that are configured to linguistically describe at least a portion of raw input data; determine one or more interactive responses based on the one or more messages to be hyperlinked; determine one or more words in a phrase specification that are related to the one or more messages to be hyperlinked; and generate the output report, wherein the one or more words are hyperlinked in the output report such that when selected at least one of the one or more interactive responses is performed.
In some example embodiments, an apparatus is disclosed herein that includes means for identifying one or more messages to be hyperlinked in an output report, wherein the one or more messages are data structures that are configured to linguistically describe at least a portion of raw input data; means for determining one or more interactive responses based on the one or more messages to be hyperlinked; means for determining one or more words in a phrase specification that are related to the one or more messages to be hyperlinked; and means for generating the output report, wherein the one or more words are hyperlinked in the output report such that when selected at least one of the one or more interactive responses is performed.
In some example embodiments, a computer implemented method is disclosed herein that includes displaying an output report having one or more hyperlinks surrounding one or more words, wherein the one or more hyperlinks provide an indication that an interactive response is available; receiving an indication of a selection of a hyperlink of the one or more hyperlinks; determining a communicative goal for a sentence having the hyperlink and a current context of the reader; and displaying an interactive response.
In some example embodiments, an apparatus is disclosed herein that includes at least one processor; and at least one memory including computer program code, the at least one memory and the computer program code configured to, with the at least one processor, cause the apparatus to at least display an output report having one or more hyperlinks surrounding one or more words, wherein the one or more hyperlinks provide an indication that an interactive response is available; receive an indication of a selection of a hyperlink of the one or more hyperlinks; determine a communicative goal for a sentence having the hyperlink and a current context of the reader; and display an interactive response.
In some example embodiments, a computer program product is disclosed herein that includes at least one computer readable non-transitory memory medium having program code instructions stored thereon, the program code instructions which when executed by an apparatus cause the apparatus at least to display an output report having one or more hyperlinks surrounding one or more words, wherein the one or more hyperlinks provide an indication that an interactive response is available; receive an indication of a selection of a hyperlink of the one or more hyperlinks; determine a communicative goal for a sentence having the hyperlink and a current context of the reader; and display an interactive response.
In some example embodiments, an apparatus is disclosed herein that includes means for displaying an output report having one or more hyperlinks surrounding one or more words, wherein the one or more hyperlinks provide an indication that an interactive response is available; means for receiving an indication of a selection of a hyperlink of the one or more hyperlinks; means for determining a communicative goal for a sentence having the hyperlink and a current context of the reader; and means for displaying an interactive response.



BRIEF DESCRIPTION OF THE DRAWINGS
Having thus described embodiments of the invention in general terms, reference will now be made to the accompanying drawings, which are not necessarily drawn to scale, and wherein:
FIG. 1 is a schematic representation of an interactive report generation environment that may benefit from some example embodiments of the present invention;
FIG. 2 illustrates an example document plan tree and a text specification in accordance with some example embodiments of the present invention;
FIG. 3 illustrates a block diagram of an apparatus that embodies an interactive report generation environment in accordance with some example embodiments of the present invention; and
FIGS. 4-7 illustrate flowcharts that may be performed by an interactive report generation environment in accordance with some example embodiments of the present invention.



DETAILED DESCRIPTION
Example embodiments will now be described more fully hereinafter with reference to the accompanying drawings, in which some, but not all embodiments are shown. Indeed, the embodiments may take many different forms and should not be construed as limited to the embodiments set forth herein; rather, these embodiments are provided so that this disclosure will satisfy applicable legal requirements. Like reference numerals refer to like elements throughout. The terms “data,” “content,” “information,” and similar terms may be used interchangeably, according to some example embodiments, to refer to data capable of being transmitted, received, operated on, and/or stored. Moreover, the term “exemplary”, as may be used herein, is not provided to convey any qualitative assessment, but instead merely to convey an illustration of an example. Thus, use of any such terms should not be taken to limit the spirit and scope of embodiments of the present invention.
Overview
In NLG implementations, a distinction has been drawn between dialogic systems and monologic systems. A dialogic system may take the form of a dialog system, such as a speech telephony based system, where a user interacts with a machine either via text or voice and then that user may receive a text or voice response from the machine. The dialogue may continue, in some examples, until a particular result is reached or until the user or machine ends the interaction. Examples of monologic systems generally include NLG systems that may be configured to generate a report or generate some other form of text without interaction with the user or with limited interaction with the user (e.g., a request for a report to be generated). A traditional monologic system can be viewed as a short dialogue that comprises a user requesting a report and the system responding by generating the report. In a monologic NLG system that generates a textual report based on a dataset, there is generally a single question (e.g., generate a report) and a single answer (e.g., the report). In such systems, a user may be left with follow up questions to the report or may desire additional awareness of the situation (e.g., additional elaboration or context) described in the report.
As such, the methods and apparatus described herein are configured to generate interactive reports by generating NLG reports (e.g., answers) or interactive reports in such a way that enables a user to interact further with the NLG system. In some examples, an interactive report may be configured such that a user may click on a sentence in the report and, in response, have a graph generated that elaborates on the content of the sentence. For example, if a sentence that talks about how the temperature rose over some period of time is selected (e.g., the question), then a graph associated with the temperature rise may be displayed (e.g., the answer). Advantageously, by enabling the selection of the sentence and the subsequent generation of the graph, the methods and apparatus described herein have added a further conversational turn (e.g., a question and answer pair) to what otherwise may be a monologic NLG system
In order to generate the interactive or subsequent response (e.g., the additional answer in the form of any one or more graphs, reports, speech, visualizations or the like) the method and apparatus are configured to generate or otherwise determine the communicative intent or goal of a particular portion of the output report. For example, a report may describe one or more data streams related to a compressor. In the example report, a sentence may be included that describes temperature readings over a period of time. Such a sentence might be displayed in the form of a hyperlink that functions like a request for further information in a dialog by generating a more detailed report about the temperature upon selection of the hyperlink or alternatively the sentence may be selectable through a graphical user interface, a user may interact with the sentence by selecting the type of response the user wants to receive (e.g., more detailed report, a report justifying the position taken in the sentence, voice output, pictorial representation, graph or the like) or the like. A selection of the sentence is, in some examples, a request to the NLG system to expand or otherwise elaborate on the content of the particular sentence. As such, the subsequent report may contain more elaborative responses, such as more detail on the temperature, an explanation of the importance of the temperature, a historical analysis of the temperature or the like.
In some examples, the methods and apparatus described herein may also take into account a context of the reader when generating subsequent responses (e.g., interactive response, another report or the like), such as what the reader has already read in the current report, historical reports, the last time the reader read about the particular piece of equipment described in the report or the like. As such, the method and apparatus described herein may generate subsequent responses based on the context of the portion of the text selected within the report, previously generated reports or the like. In other examples, context may include the context in which the reader analyzes information.
For example, a user may select a sentence related to a temperature of a compressor. In response to that interaction, the system may display a temperature graph but may also show the weather on that particular day, the temperature of a related compressor or the like in the same graph to provide the reader with context as to why the temperature sentence was important, to explain the temperature sentence, to provide the user with increased situational awareness or the like.
Context may also include not telling or not repeating in a subsequent response something that the reader has already been told. For example, if a user was previously told about or otherwise shown a related temperature in response to a previous click then that related temperature information may be omitted in the response to a subsequent click. In response to the subsequent click additional or alternate information may be described. In some examples, the additional information may be generated from messages not included in an original document plan.
In another example, a graphical output may be dynamically generated based on the context (e.g., based on data captured or otherwise defined by the one or more messages that were used to generate the portion of text selected). For example, if a report describes a stock portfolio by talking about how the portfolio performed and then it talks about individual stocks, if a user clicks on the text in the beginning of the report that talks about portfolios, a graph may be displayed that has a line or other indication of a performance for each stock. Whereas, if the same user did not click on the description of the portfolio but instead just selected the particular stock later in the report, that particular stock may be displayed with the remaining stocks in the portfolio or a graphical representation of the portfolio performance displayed in the background. As such, the resulting graph generated may be different depending on what graphs have already been shown to the user.
In some examples, portions of the output text may be highlighted, underlined or otherwise indicative (e.g., by using meta-tags) of an ability to be selected to enable elaboration. For example, a sentence may state that the temperature rose steeply between 5 am and 6 am. In one example, the entire sentence might be a hyperlink and clicking on the hyperlink that is tied to that text is considered to be a request for the NLG system to produce a subsequent report to explain temperature rise. However, in another example, only the terms ‘5 am and 6 am’ could be hyperlinked such that a graph may be displayed showing temperatures at a given time or alternatively may provide context to explain any related details of the temperature at the selected time. In other cases, the selection of a word or phrase may provide for the definition of the word or phrase in the context that the word or phrase is used in the report. In further examples, the selection of sentence might be equivalent to a request to explain the sentence or justify the claim made in the sentence. Each type of response provided by the NLG system may be defined by the system or may, in some examples, be defined by the user.
Natural Language Generation System
FIG. 1 is an example block diagram of example components of an example interactive report generation environment 100 that may take the form of, for example, a code module, a component, circuitry and/or the like. The components of the interactive report generation environment 100 are configured to provide various logic (e.g. code, instructions, functions, routines and/or the like) and/or services related to the generation of interactive reports. In some example embodiments, a natural language generation system, such as interactive report generation system 102, is configured to generate phrases, sentences, text or the like which may take the form of natural language text based on raw input data 110 and output the phrases, sentences, text or the like in the form of interactive reports 120 (e.g., output reports). The interactive report generation system 102 comprises a document planner 130, a microplanner 132 and/or a realizer 134. Other natural language generation systems may be used in some example embodiments, such as a natural language generation pipeline as described in Building Natural Language Generation Systems by Ehud Reiter and Robert Dale, Cambridge University Press (2000), which is incorporated by reference in its entirety herein.
In some examples, interactive report generation system 102 may be configured to populate or otherwise instantiate one or more messages based on data or information in a primary data feed, the one or more related data feeds, the historical data, the contextual data feed, one or more events and/or the like. In some examples, messages are language independent data structures that correspond to informational elements in a text and/or collect together underling data in such a way that the underlying data can be linguistically expressed. In some examples, messages are created based on a requirements analysis as to what is to be communicated for a particular scenario (e.g. for a particular domain). A message typically corresponds to a fact about the underlying data (for example, the existence of some observed event) that could be expressed via a simple sentence (although it may ultimately be realized by some other linguistic means). For example, to linguistically describe wind, a user may want to know a speed, a direction, a time period or the like, but also the user wants to know changes in speed over time, warm or cold fronts, geographic areas and or the like. In some cases, users do not even want to know wind speed; they simply want an indication of a dangerous wind condition. Thus, a message related to wind speed may include fields to be populated by data related to the speed, direction, time period or the like, and may have other fields related to different time points, front information or the like. The mere fact that wind exists may be found in the data, but to linguistically describe “light wind” or “gusts” different data interpretation must be undertaken as is described herein.
In some examples, a message is created by the interactive report generation system 102 in an instance in which the data in the one or more data feeds, may warrant the construction of such a message. For example, a wind message would only be constructed in an instance in which wind data was present in the raw input data. Alternatively or additionally, while messages may correspond directly to observations taken from the raw data input, others, however, may be derived from the observations by means of a process of inference. For example, the presence of rain may be indicative of other conditions, such as the potential for snow at some temperatures.
In some example embodiments, one or more messages may be identified or otherwise be predefined to define or otherwise include information that indicates which of the one or more messages are to be interactive (e.g., a flag, an indicator bit or the like) when realized. In other words, when realized, the identified message or messages may be selected by the user, such as via a hyperlink, to prompt the interactive response described herein. The messages may be marked based on a marking specification (e.g., a set of rules that defined the messages that are be hyperlinked) as defined by the domain model, based on an expert system or the like. In other examples, messages may be dynamically identified for hyperlinking based on a determined importance level, based on one or more features in one or more received data channels, based on a learning system or the like.
The concepts and relationships that make up messages may be drawn from an ontology (e.g. a domain model) that formally represents knowledge about the application scenario. For example, message structures may be defined by the domain model 114 based on a particular alert condition and/or the raw input data, such as but not limited to the primary and/or related data feeds. Messages may also be derived from another data structure, may be user defined and/or the like. Each type of message may also be represented by a message template, which expresses a relationship between instances of a number of concepts; the message template contains slots which may be filled in, or instantiated, using particular values that are derived from the raw input data.
As such, the interactive report generation system 102 is configured to instantiate a plurality of messages based on the one or more data feeds, such as the one or more data feeds received via raw input data 110. In order to instantiate the one or more messages, the importance level of each of the messages and relationships between the messages, the interactive report generation system 102 may be configured to access the domain model directly or indirectly. The domain model may contain information related to a particular domain or industry. In some examples, the domain model may provide importance levels, single data feed limits related to normal behaviors in a domain (e.g. normal ranges), information related to anomalous behaviors and/or the like. In other examples, the domain model may describe relationships between various events and/or phenomena in multiple data feeds. For example in a weather domain, a domain model may indicate or otherwise instantiate an extreme weather message in an instance in which wind speeds that are related to hurricane type events or temperatures that may cause harm to humans or other animals or may cause damage or interference to shipping are present in the data. The extreme weather message may then be labeled as important, whereas typical temperatures or a typical wind message may not be marked as important in some examples. Alternatively or additionally, the domain model may be configured to contain or otherwise have access to the diagnostic model.
In some example embodiments, the interactive report generation system 102 may be configured to annotate messages with an indication of their relative importance; this information can be used in subsequent processing steps or by the interactive report generation system 102 to make decisions about which information should be conveyed and which information may be suppressed, such as by using the domain model. In some examples, marking a message with as being related to a downstream hyperlink may be related to the importance level. The interactive report generation system 102 may assign an importance level to the one or more messages based on the pattern itself (e.g. magnitude, duration, rate of change or the like), defined constraints (e.g. defined thresholds, constraints or tolerances), temporal relationships between the pattern in the primary, data feed and patterns in other related data feeds and/or the like. For example, a heart rate over 170 beats per minute, or 100 mile per hour winds, may be assigned a high level of importance. In some examples, messages that describe other patterns and/or constraints may be defined by the domain model. Alternatively or additionally, the interactive report generation system 102 may also be configured to annotate messages with information about how they are related to each other; for example, the interactive report generation system 102 might indicate that an event described in one message is assumed to have been caused by the event described in another message.
Using the importance level, the interactive report generation system 102 may assign certain ones of the messages that describe or are otherwise are instantiated with patterns or other data in the primary data feed as including key events. A key event may be selected or otherwise identified based on a pre-determined importance level threshold, such as a threshold defined by a user, a constraint defined by the domain model, or the like. Alternatively or additionally, key events may be selected or otherwise identified based on those patterns in the primary data feed with the highest level of importance, those patterns that exceed or otherwise satisfy the pre-determined importance level threshold and/or the like. For example, a domain model or user preference may indicate that any messages having wind readings over 50 miles per hour may be designated as key events, whereas in other examples only a message with highest wind reading over a defined time period may be a determined to include a key event. In further examples, the importance level determination may be performed over a plurality of time scales that may be user defined, defined by the domain model or the like (e.g., one hour, one day, one week, one month and/or the like).
In some example embodiments, the interactive report generation system 102 may also be configured to determine the importance of messages that describe patterns or events detected in one or more secondary or related data feeds. In some examples, the interactive report generation system 102 may determine one or more messages that describe patterns or events in the related data feeds that overlap time-wise or occur within the same time period as the patterns in the primary data feed. For example, during the same time period as rain is detected, another data feed may detect temperature falling below the freezing point. The interactive report generation system 102 may then mark the one or more messages that describe patterns or events in the related channels as important, expected, unexpected or as having or not having some other property based on the domain model. For example, the domain model may suggest that the one or more patterns in the related data feed were expected to rise as they did in the primary channel. By way of example, as winds are rising, a wave height may then be expected to rise. In other cases, the behavior of the one or more related channels may be unexpected or may be anomalous when compared to the behavior of the primary data feed.
The one or more messages may be marked as including significant events based on the importance level, domain model, constraints, user settings or the like. For example, messages that include patterns or events in the related data feed that have an importance level above a predetermined threshold defined by the domain model, a user or the like, and may be marked as including significant events. In some example embodiments, messages including unexpected patterns or messages may also be categorized as significant events as they are suggestive of a particular condition or fault. Other messages including patterns or events may be determined to be significant events based on one or more constraints on channel value (e.g. expected range of values or the like), data anomalies, patterns marked as neither expected or unexpected that satisfy an importance level, and/or the like.
In some example embodiments, the interactive report generation system 102 may also be configured to determine the importance of messages built or otherwise instantiated using historical data, such as historical data, background information, event data, and/or the like. For example, historical data may contain information related to a previous condition and the actions taken or a result.
In further example embodiments, the interactive report generation system 102 may be configured to generate one or more messages based on determined or otherwise inferred events from the one or more data feeds, historical data, event data and/or the like. Events may include specific activities that may influence the one or more key events and/or may have caused the one or more significant events. In some examples, the one or more events may be inferred based in context with the one or more patterns in the primary and/or related data feeds. Alternatively or additionally events may be provided as a separate channel, such as a contextual data feed or may be provided directly to the interactive report generation system 102.
In some examples, raw input data may be received, such as the data in the following table, that illustrates a primary data feed (e.g. heart rate) and a related data feed (e.g. respiration rate):












Time
Heart Rate
Respiration Rate

















1
68
14


2
72
15


3
70
14


4
70
14


5
69
16


6
72
15


7
73
16


8
68
13


9
70
14


10
71
15


11
90
14


12
110 
14


13
118 
14


14
116 
15


15
105 
15


16
92
14


17
86
13


18
80
14


19
75
14


20
72
15


21
70
14


22
71
13


23
69
13


24
71
14









As is demonstrated by the raw input data in the table above, heart rate went above 115 beats per minute (bpm) at time point 13, thus causing an alert condition. An indication of an alarm condition may be received, such as by a patient monitoring system, patient monitoring equipment and/or based on the determination that the data indicates an alert situation. In response to the alert condition, the heart rate data feed may be designated the primary data feed. In other embodiments, a user, the domain model or the like may indicate that the primary data feed is the heart rate data feed. In some example embodiments, the rapid change of heart rate between time point 10 and time point 11 lasting to time point 15 may be detected for use by the interactive report generation system 102.
A secondary or related data feed (e.g. respiration rate) may be determined to have a pattern (e.g. no change when a change is generally expected) in a corresponding time period. In some examples, the corresponding time period may be the same time period or may be a later time period when compared to the time period of the key events. Further, the corresponding time period may, in some examples, be defined by a domain model, such as domain model. In some example embodiments, the relatively flat and/or steady respiration rate between time point 10 and time point 15 may be abstracted for use by the interactive report generation system 102.
In some example embodiments, the interactive report generation system 102 is configured to generate one or more messages based on the raw input data in the one or more data feeds. Using the heart rate example, a message may include portions of the raw input data, to include abstractions of the data, but may also include additional distinctions necessary for the generation of text as the raw input data is likely to be insufficient for such a purpose. For example, a HeartRateSpike message may be instantiated using the raw input data and such a message may include: a time and relative variation in terms of heart rate change or peak heart rate, a time period and a direction. In some examples, another message may be generated on related channels, historic data, events and/or the like. In some examples, the HeartRateSpike message may be related to an Alert Message that contains information relating to the alert itself. For example, in an instance in which caffeine was applied prior to the heart rate spike, a message may be generated to identify such an event. Such a message may be an Event message that is instantiated with an event time and an event description, such as from the event log 116; for example, a message that indicates that caffeine had been orally administered prior to the spike in heart rate. Other messages such as RespirationRate (e.g. respiration rate stable=yes), HeartRateAlertHistorical (e.g. previous alert condition quantity=2, time=yesterday), HeartRateHistorical (e.g. heart rate trend=no change, time period=10 days) may be instantiated to include information about the related data feeds and/or historical data. Alternatively or additionally, the interactive report generation system 102, the document planner 130 and/or the like may be configured to generate the one or more messages. In some examples, the one or more of the HeartRateSpike message, RespirationRate, HeartRateAlertHistorical, HeartRateHistorical may be marked so as to be hyperlinked in the output text.
The document planner 130 is configured to input the one or more messages that are generated and/or instantiated by the interactive report generation system 102. The document planner 130 is further configured to determine how to arrange those messages to describe the patterns in the one or more data feeds derived from the raw input data. The document planner 130 may comprise a content determination process that is configured to select the messages, such as based on the decisions of the recommendation and diagnosis processor.
The document planner 130 may also comprise a structuring process that determines the order of messages to be included in a natural language text. In some example embodiments, the document planner 130 may access one or more text schemas for the purposes of content determination and document structuring. A text schema is a rule set that defines the order in which a number of messages are to be presented in a document. For example, an event message (e.g. medication injection) may be described prior to a key event message (e.g. rise in heart rate). In other examples, a significant event message (e.g. falling respiration rate) may be described after, but in relation to, a key event message (e.g. rise in heart rate). By way of further example a document plan may include, but is not limited to, an AlertMessage, a HeartRateSpike message and then a RespirationRate message. An Event message, HeartRateAlertHistorical message and HeartRateHistorical message may then follow in the example document plan.
In other examples, the document planner may define one or more messages to be interactive messages. In such an example, the document planner may comprise logic that flags or otherwise identifies certain messages for hyperlinking if they are present in the message store based on the marking specification or the like. For example, the document planner may flag a temperature spike message, a historic service call message or the like for hyperlinking, if it is present in the message store and is included in the document plan.
In further examples, the document plan may further define the resultant action when one or more hyperlinks are selected. In other words, the document plan may define (e.g., messages to be included in the interactive response the arrangement thereof) the communicative goal of a particular message and therefore define an interactive response. For example, the document plan may include a section relating to historical activity of a particular piece of equipment. Such a section may be realized as a single sentence in the initial report. The document plan may also contain additional detail on what would be included in a subsequent text and how a subsequent text may be arranged should the user select the sentence on historical activity via a hyperlink.
Alternatively or additionally, the document plan may identify that a graph is to be generated in response to a selection of a temperature spike message. The document plan may therefore define the scale, content and the like of the graph. Alternatively or additionally, the document plan may identify messages that were not included in the document plan and provide a user with a hyperlink to information in the data that was not included in the document plan.
The output of the document planner 130 may be a tree-structured object or other data structure that is referred to as a document plan. In an instance in which a tree-structured object is chosen for the document plan, the leaf nodes of the tree may contain the messages, and the intermediate nodes of the tree structure object may be configured to indicate how the subordinate nodes are related (e.g. elaboration, consequence, contrast and/or the like) to each other. A sample document plan may include, but is not limited to, document plan 250 of FIG. 2. Document plan 250 may include but is not limited to one or more messages, such as message 252.
In some example embodiments, the microplanner 132 is configured to modify a document plan, to create a text specification for input into a realizer. As is shown in some examples, a document plan may contain one or more leaf nodes that contain messages. An example message may comprise a plurality of slots that contain a named attribute and a value (e.g. channel and “HeartRate”). A message may also comprise slots that contain a named attribute and a set of named attributes and their values. Other messages may include additional named attributes and values.
Initially and in some example embodiments, the text specification may include a tree structure that matches or is otherwise structured in the same or similar manner as a document plan tree. In some examples, one or more messages may be combined (e.g. one or more document plan nodes) to form a single phrase specification (e.g. to form a single text specification node). Each leaf node of a text specification may include a phrase specification with one or more empty elements. The microplanner 132 may be configured to populate those element values by applying genre parameters, lexicalization rules, reference rules, aggregation rules and the like.
In some example embodiments, the microplanner 132 may be configured to input a series of genre parameters that are representative of genre conventions. Genre conventions are rules about the use of language which apply throughout texts in that particular genre. In some examples, however, the rules may be overridden by a user, by lexicalization rules and/or the like. The genre conventions specify default behavior for the realizer so that these aspects of language use do not have to continually re-specified by a user. Examples of genre parameters include, but are not limited to, the particular tense (e.g. past, present or future) that should be used consistently throughout the text to be generated; a convention on the use of pronouns in the text to be generated; and/or a convention as to whether or not abbreviated names are to be used in the text to be generated. Alternatively or additionally, other elements of the phrase specification may be set by the one or more genre conventions.
Genre conventions may be applied by the microplanner 132 as a first step in the initialization of the phrase specification that corresponds to an individual message. In such a case, subsequently applied lexicalization rules may override the results of application of the genre parameters. Alternatively or additionally, genre parameters may be applied by the microplanner 132 once all the lexicalization rules have been applied to a given message. In such a case, the genre parameters are configured to populate the elements of the phrase specification that have not been specified or otherwise populated by the lexicalization rules. For example, a tense equal to past, may be set by genre parameter and/or a lexicalization rule.
In additional example embodiments, one or more lexicalization rules may be input. Lexicalization rules are rules that determine how the content of individual messages may be mapped into phrase specifications. In some examples, lexicalization rules may include, but are not limited to, message-level rules that are configured to apply to messages as a whole. Lexicalization rules may also be configured to apply to one or more slots within each message. For example, message-level rules may specify how the overall form of a phrase is to be constructed from the contents of a message (e.g. heart rate is rising, falling or staying steady). Slot-level rules may specify how specific kinds of entities that are present in a message should be described (e.g. heart rate is expressed via a prepositional phrase such as “to 118 bpm”) or otherwise referred to (e.g. refer to a machine by its machine ID or full machine title). For example a message-level rule may map a name value and high rate value from a message to a phrase specification.
For a given domain, there may be at least one message-level lexicalization rule for each type of message in the ontology for that domain that may be applied b. The one or more lexicalization rules for a message type define one or more constraints that are configured to test the message itself, the discourse model (e.g. a model that is configured to store the relevant aspects of the discourse context, such as a list of entities mentioned in the text so far, and the lexicalization of the previous sentence in a text), parameters set by the document planner 130 and/or the genre parameters. In an instance in which the one or more lexicalization rules matches the constraints, a default lexicalization rule may be defined for each message type and/or slot type.
In one example, a message-level rule may be configured to specify a canned text string to be used whenever a message of the specified type is received as input. For example, a GREETING message might result in the simple text string “Hello friend”. Message-level lexicalization rules may also be configured to assign the contents of the slots of a message to particular syntactic constituents (e.g. a word or group of words that function as a single unit, such as a noun phrase, a verb phrase, a prepositional phrase or the like, within a hierarchical structure) in a sentence as represented by a phrase specification. For example, a lexicalization rule, or the one or more lexicalization rules, may be configured to specify the verb to be used to express a particular type of message, and slots in the message might be assigned to the subject and object positions in the sentence. In some examples, a user may allocate information in the one or more slots of a message to the elements of a phrase specification by using the following non-exhaustive list of syntactic constituents, subject: typically the first position in the sentence; verb: the main action described in the sentence; object: typically the position following the verb; indirectobject: used in those cases where a verb has three arguments, as in “John gave the cat a bath”; frontmodifier: used to provide information that will be placed at the beginning of the sentence, as in “yesterday, John gave the cat a bath”; premodifier: used to provide information that will be placed immediately in front of the verb, as in “John reluctantly gave the cat a bath”; postmodifier: used to provide information that will be placed immediately after the object, as in “John took a bus to the city” and/or the like. Alternatively or additionally, a slot-level rule may be configured to specify a canned text string when a slot of a specified type is received and/or specify a slot to be mapped to a particular syntactic constituent in a sentence as represented by a phrase specification.
Alternatively or additionally, a message-level rule may also specify particular syntactic features of the sentence to be generated, such as by overriding default values for those features either as provided by the realizer itself or by the genre parameters. Typical features include but are not limited to tense, which may be set to PAST, PRESENT or FUTURE; aspect, which may be set to PERFECTIVE or PROGRESSIVE; passive, which may be set to either TRUE or FALSE; negation and/or the like. In some example embodiments, a slot-level rule may specify a particular feature of a sentence to be generated, such as by overriding a default value. Alternatively or additionally, tense and aspect may be computed, such as by using a Reichenbachian model which is based on the time of the message (e.g. when the event described by the message happened), the time the text is generated, and/or a reference time. In some examples, reference time can be computed using one or more of the following non-exhaustive list: setting a reference time to the time of the previous message in the text specification, setting the reference time as the time of the first message expressed in a current paragraph and/or the like.
In some example embodiments, the microplanner may also apply slot-level rules. Slot-level rules may be applied to each slot in each message to enable the slot to be mapped to an element of a phrase specification. In some example embodiments, the message-level rules described herein may also be expressed as slot-level rules, allowing recursive embedding. However, in some examples the value of the slot itself may be used to fill corresponding element in a phrase specification.
In some examples, the microplanner is configured to determine whether two or more phrase specifications can be combined together linguistically to produce a more complex sentence. For example, one or more other phrase specifications may be combined with phrase specification to form a more complex sentence. In some examples, a reference system is configured to determine how to refer to an entity so that it can be unambiguously identified by the reader. For example, in a first sentence “John Smith” may be used where “he” or “his” may be used in subsequent sentences.
Alternatively or additionally, a slot-level rule may be executed. In such cases, the slot-level rule may specify how the value of the slot should be described based on the reference rules. Possible reference rules include, but are not limited to, StringValue: indicating that a string value associated with the object should be used to refer to the object; NamedEntity: indicating that a predefined reference strategy for named entities should be used to refer to the object and may include the choice between a full name or description, a reduced form of description, or a pronoun, on the basis of information about the other entities that have been referred to in the text; NumericValue: indicating that a predefined strategy for referring to numeric values should be used; TimeValue: indicates that a predefined reference strategy for referring to time values should be used to refer to the object; DurationValue: indicating that a predefined reference strategy for referring to durations should be used to refer to the object; EnumValue: indicating how specific values of an enumerated type should be expressed and/or the like.
In some example embodiments, the microplanner may also use a slot-level rule to specify content for each of a number of syntactic constituents within a linguistic element that is to be realized as a noun phrase. For example, the following non-exhaustive example list of positions may be available: determiner, specifier, noun, modifier, premodifier, postmodifier and/or the like. In some examples, a slot-level rule may also contain conditions that determine its applicability; amongst other things, these may be used to determine when the rule should have a null output, resulting in the constituent being elided in the sentence being planned.
In some example embodiments, the microplanner may also use one or more slot-level rules to specify syntactic features. For example, a slot level rule may specify the following non-exhaustive example list of syntactic features: a pronominal (e.g. force a use of a pronoun), number (e.g. singular or plural), an indication of definite or indefinite and/or the like.
In some examples, after one or more messages have been marked as having a hyperlink at the message level or in the document planner level, a microplanner may be configured to select the particular words, phrases or the like to be hyperlinked:
1. If, for example, there is a single message realized in a sentence.

    
    
        a. Hyperlink the entire sentence in some examples.
    
    


2. If, for example, there are two or more messages that are realized in a sentence

    
    
        a. For each sentence, in some examples:
        
            i. Identify a subset of noun phrases, verb phrases and/or other sentence constituents that correspond to a particular message based on one or more predetermined conditions; and/or
            ii. Hyperlink the selected noun phrases, verb phrases and/or other sentence constituents.
        
        
    
    


In other examples, words, phrases, sentence constituents or the like may be individually hyperlinked. In some cases, the hyperlink may provide a technical definition based on the context of the report, whereas other examples may include historical information for a particular entity, etc. As such, one or more lexicalization rules may be used to enable hyperlinking for the word, phrase, sentence constituent, or the like. For example, a lexicalization rule may hyperlink each entity (e.g., a piece of equipment based on a defined hierarchy). In other examples, a lexicalization rule may identify particular sentence constituents based on a listing of terms that are available to be defined, based on a listing of available additional media (e.g., additional pictures, graphs or the like), or the like.
The output of the microplanner 132, in some example embodiments, is a tree-structured text specification whose leaf-nodes are phrase specifications, and whose internal nodes express rhetorical relations between the leaf nodes. A tree-structured text specification may include, but is not limited to text specification 260 of FIG. 2, having one or more phrase specifications, such as phrase specification 262. A phrase specification may correspond to a sentence or a sub-sentence fragment (e.g. a title) and are produced from one or more messages. A phrase specification is configured to contain one or more syntactic constituents (e.g. subject, verb, prepositional phrase and/or the like) and one or more syntactic features (e.g. tense).
A realizer 134 is configured to traverse the tree-structured text specification to express the tree-structured text specification in natural language. The realization process that is applied to each phrase specification in a text specification makes use of a grammar which specifies the valid syntactic structures in the language and further provides a way of mapping from text specifications into the corresponding natural language sentences. The output of the process is, in some example embodiments, a well-formed natural language text. In some examples, the natural language text may include embedded mark-up. The output of the realizer 134, in some example embodiments, is the output text, interactive response, interactive report or the like. The realizer may also output situational analysis text or a narrative that is configured to describe or otherwise summarize the one or more key events, the one or more significant events, the one or more contextual data feed s, and/or the one or more events.
In some examples, once realized, the report may be shown a screen via a user interface. The user interface may provide for a hyperlink, such as based on the word selection by the microplanner, in the form of an underline, box or the like. The hyperlink may be selectable, in some example embodiments, and may generate the interactive response, such as another text graph or the like. Alternatively or additionally, the hyperlink may provide a menu of potential responses in response to a click, thus prompting the user to determine whether a graph or text is desired. In some examples, the interactive response is dynamically generated based on the user's selection, whereas in other examples it may be generated, but not displayed, at the same time as the initial report.
By way of example, the realizer may output the following text in response to the text specification shown above (this example including one or more hyperlinks indicated by the underlined text):

    
    
        John Smith's heart rate monitor sounded an alarm at 10.56 because his heart rate went above 115 beats per minute (bpm). His respiratory rate and oxygen saturation did not change. Caffeine, which can affect heart rate, had been orally administered to John at 10.54. This alarm had gone off twice yesterday, but in both cases heart rate quickly reverted to 70 bpm. John's heart rate has not shown any long-term upward or downward trends since he was admitted 10 days ago. John's heart rate increase was likely caused by the administration of the caffeine.
    
    


By way of further example, a selection of “heart rate went above 115 beats per minute” may result in a graph that illustrated heart rate over time, a text explaining heart rate over time or both. In other examples, selecting “alarm had gone off twice yesterday” may result in a text that elaborates on the two previous alarm events. As indicated above, the elaborated text (e.g., interactive response) may be generated based on a part of the document plan or a separate document plan with a focus or communicative goal of describing historic events.
Alternatively or additionally, the interactive report generation system 102 may be configured to generate a graph to display one or more key events that are detected in a data feed. In some example embodiments, the graph may also include one or more significant events in one or more related feeds and/or events. In further examples, a time period or duration of the data shown in the graph may be selected such that the displayed graph illustrates the portion of the data feed that contains the one or more key events. The output graph is further configured to include textual annotations that provide a textual comment, phrase or otherwise is configured to explain, using text, the one or more key events, the one or more significant events and/or the events in a contextual data feed in natural language. In further examples, the textual annotations are generated from the raw input data and further are designed, in some examples, to textually describe identified patterns, anomalies and/or the context of the graph. In some examples, a narrative (e.g. situational analysis text) may be included with the graph that provides situational awareness or an overview of the data/patterns displayed on and/or off of the graph. Other output modalities may be included in an output in other example embodiments.
Example System Architecture
FIG. 3 is an example block diagram of an example computing device for practicing embodiments of an example interactive report generation system. As described herein, the interactive report may be described herein as an output report. An interactive response may be the graph, text or the like that is generated in response to a selection of a hyperlink and may be referred to as the another report herein.
In particular, FIG. 3 shows a computing system 300 that may be utilized to implement an interactive report generation environment 100 having an interactive report generation system 102 including, in some examples, a document planner 130, a microplanner 132 and/or a realizer 134; and/or an optional user interface (not shown). One or more general purpose or special purpose computing systems/devices may be used to implement the interactive report generation system 102. In addition, the computing system 300 may comprise one or more distinct computing systems/devices and may span distributed locations. In some example embodiments, the interactive report generation system 102 may be configured to operate remotely via the network 350. In some example embodiments, a pre-processing module or other module that requires heavy computational load may be configured to perform that computational load and thus may be on a remote device or server. In some examples, interactive report generation environment 100 may be offered using a software as a service model. Furthermore, each block shown may represent one or more such blocks as appropriate to a specific example embodiment. In some cases one or more of the blocks may be combined with other blocks. Also, the interactive report generation system 102 may be implemented in software, hardware, firmware, or in some combination to achieve the capabilities described herein.
In the example embodiment shown, computing system 300 comprises a computer memory (“memory”) 301, a display 302, one or more processors 303, input/output devices 304 (e.g., keyboard, mouse, CRT or LCD display, touch screen, gesture sensing device and/or the like), other computer-readable media 305, and communications interface 306. The processor 303 may, for example, be embodied as various means including one or more microprocessors with accompanying digital signal processor(s), one or more processor(s) without an accompanying digital signal processor, one or more coprocessors, one or more multi-core processors, one or more controllers, processing circuitry, one or more computers, various other processing elements including integrated circuits such as, for example, an application-specific integrated circuit (ASIC) or field-programmable gate array (FPGA), or some combination thereof. Accordingly, although illustrated in FIG. 3 as a single processor, in some embodiments the processor 303 comprises a plurality of processors. The plurality of processors may be in operative communication with each other and may be collectively configured to perform one or more functionalities of the interactive report generation system as described herein.
The interactive report generation system 102 is shown residing in memory 301. The memory 301 may comprise, for example, transitory and/or non-transitory memory, such as volatile memory, non-volatile memory, or some combination thereof. Although illustrated in FIG. 3 as a single memory, the memory 301 may comprise a plurality of memories. The plurality of memories may be embodied on a single computing device or may be distributed across a plurality of computing devices collectively configured to function as the interactive report generation system. In various example embodiments, the memory 301 may comprise, for example, a hard disk, random access memory, cache memory, flash memory, a compact disc read only memory (CD-ROM), digital versatile disc read only memory (DVD-ROM), an optical disc, circuitry configured to store information, or some combination thereof.
In other embodiments, some portion of the contents, some or all of the components of the interactive report generation system 102 may be stored on and/or transmitted over the other computer-readable media 305. The components of the interactive report generation system 102 preferably execute on one or more processors 303 and are configured to generate interactive reports, output texts, etc. as described herein.
Alternatively or additionally, other code or programs 330 (e.g., an administrative interface, a Web server, and the like) and potentially other data repositories, such as data repository 340, also reside in the memory 301, and preferably execute on one or more processors 303. Of note, one or more of the components in FIG. 3 may not be present in any specific implementation. For example, some embodiments may not provide other computer readable media 305 or a display 302.
The interactive report generation system 102 is further configured to provide functions such as those described with reference to FIG. 1. The interactive report generation system 102 may interact with the network 350, via the communications interface 306, with remote data sources 356, third-party content providers 354 and/or client devices 358. The network 350 may be any combination of media (e.g., twisted pair, coaxial, fiber optic, radio frequency), hardware (e.g., routers, switches, repeaters, transceivers), and protocols (e.g., TCP/IP, UDP, Ethernet, Wi-Fi, WiMAX, Bluetooth) that facilitate communication between remotely situated humans and/or devices. In some instance the network 350 may take the form of the internet or may be embodied by a cellular network such as an LTE based network. In this regard, the communications interface 306 may be capable of operating with one or more air interface standards, communication protocols, modulation types, access types, and/or the like. The client devices 358 include desktop computing systems, notebook computers, mobile phones, smart phones, personal digital assistants, tablets and/or the like.
In an example embodiment, components/modules of the interactive report generation system 102 are implemented using standard programming techniques. For example, the interactive report generation system 102 may be implemented as a “native” executable running on the processor 303, along with one or more static or dynamic libraries. In other embodiments, the interactive report generation system 102 may be implemented as instructions processed by a virtual machine that executes as one of the other programs 330. In general, a range of programming languages known in the art may be employed for implementing such example embodiments, including representative implementations of various programming language paradigms, including but not limited to, object-oriented (e.g., Java, C++, C#, Visual Basic.NET, Smalltalk, and the like), functional (e.g., ML, Lisp, Scheme, and the like), procedural (e.g., C, Pascal, Ada, Modula, and the like), scripting (e.g., Perl, Ruby, Python, JavaScript, VBScript, and the like), and declarative (e.g., SQL, Prolog, and the like).
The embodiments described above may also use synchronous or asynchronous client-server computing techniques. Also, the various components may be implemented using more monolithic programming techniques, for example, as an executable running on a single processor computer system, or alternatively decomposed using a variety of structuring techniques, including but not limited to, multiprogramming, multithreading, client-server, or peer-to-peer, running on one or more computer systems each having one or more processors. Some embodiments may execute concurrently and asynchronously, and communicate using message passing techniques. Equivalent synchronous embodiments are also supported. Also, other functions could be implemented and/or performed by each component/module, and in different orders, and by different components/modules, yet still achieve the described functions.
In addition, programming interfaces to the data stored as part of the interactive report generation system 102, such as by using one or more application programming interfaces can be made available by mechanisms such as through application programming interfaces (API) (e.g. C, C++, C#, and Java); libraries for accessing files, databases, or other data repositories; through scripting languages such as XML; or through Web servers, FTP servers, or other types of servers providing access to stored data. The raw input data 110, historical data 112, and/or the domain model 114 may be implemented as one or more database systems, file systems, or any other technique for storing such information, or any combination of the above, including implementations using distributed computing techniques. Alternatively or additionally, the raw input data 110, historical data 112, and/or the domain model 114 may be local data stores but may also be configured to access data from the remote data sources/356.
Different configurations and locations of programs and data are contemplated for use with techniques described herein. A variety of distributed computing techniques are appropriate for implementing the components of the illustrated embodiments in a distributed manner including but not limited to TCP/IP sockets, RPC, RMI, HTTP, Web Services (XML-RPC, JAX-RPC, SOAP, and the like). Other variations are possible. Also, other functionality could be provided by each component/module, or existing functionality could be distributed amongst the components/modules in different ways, yet still achieve the functions described herein.
Furthermore, in some embodiments, some or all of the components of the interactive report generation system 102 may be implemented or provided in other manners, such as at least partially in firmware and/or hardware, including, but not limited to one or more ASICs, standard integrated circuits, controllers executing appropriate instructions, and including microcontrollers and/or embedded controllers, FPGAs, complex programmable logic devices (“CPLDs”), and the like. Some or all of the system components and/or data structures may also be stored as contents (e.g., as executable or other machine-readable software instructions or structured data) on a computer-readable medium so as to enable or configure the computer-readable medium and/or one or more associated computing systems or devices to execute or otherwise use or provide the contents to perform at least some of the described techniques. Some or all of the system components and data structures may also be stored as data signals (e.g., by being encoded as part of a carrier wave or included as part of an analog or digital propagated signal) on a variety of computer-readable transmission mediums, which are then transmitted, including across wireless-based and wired/cable-based mediums, and may take a variety of forms (e.g., as part of a single or multiplexed analog signal, or as multiple discrete digital packets or frames). Such computer program products may also take other forms in other embodiments. Accordingly, embodiments of this disclosure may be practiced with other computer system configurations.
Example Process Flow Diagrams
FIGS. 4-7 illustrate example flowcharts of the operations performed by an apparatus, such as computing system 300 of FIG. 3, in accordance with example embodiments of the present invention. It will be understood that each block of the flowcharts, and combinations of blocks in the flowcharts, may be implemented by various means, such as hardware, firmware, one or more processors, circuitry and/or other devices associated with execution of software including one or more computer program instructions. For example, one or more of the procedures described above may be embodied by computer program instructions. In this regard, the computer program instructions which embody the procedures described above may be stored by a memory 301 of an apparatus employing an embodiment of the present invention and executed by a processor 303 in the apparatus. As will be appreciated, any such computer program instructions may be loaded onto a computer or other programmable apparatus (e.g., hardware) to produce a machine, such that the resulting computer or other programmable apparatus provides for implementation of the functions specified in the flowcharts' block(s). These computer program instructions may also be stored in a non-transitory computer-readable storage memory that may direct a computer or other programmable apparatus to function in a particular manner, such that the instructions stored in the computer-readable storage memory produce an article of manufacture, the execution of which implements the function specified in the flowcharts' block(s). The computer program instructions may also be loaded onto a computer or other programmable apparatus to cause a series of operations to be performed on the computer or other programmable apparatus to produce a computer-implemented process such that the instructions which execute on the computer or other programmable apparatus provide operations for implementing the functions specified in the flowcharts' block(s). As such, the operations of FIGS. 4-7, when executed, convert a computer or processing circuitry into a particular machine configured to perform an example embodiment of the present invention. Accordingly, the operations of FIGS. 4-7 define an algorithm for configuring a computer or processor, to perform an example embodiment. In some cases, a general purpose computer may be provided with an instance of the processor which performs the algorithm of FIGS. 4-7 to transform the general purpose computer into a particular machine configured to perform an example embodiment.
Accordingly, blocks of the flowchart support combinations of means for performing the specified functions and combinations of operations for performing the specified functions. It will also be understood that one or more blocks of the flowcharts′, and combinations of blocks in the flowchart, can be implemented by special purpose hardware-based computer systems which perform the specified functions, or combinations of special purpose hardware and computer instructions.
In some example embodiments, certain ones of the operations herein may be modified or further amplified as described below. Moreover, in some embodiments additional optional operations may also be included (some examples of which are shown in dashed lines in FIG. 4). It should be appreciated that each of the modifications, optional additions or amplifications described herein may be included with the operations herein either alone or in combination with any others among the features described herein.
FIG. 4 is a flow chart illustrating an example method for generating an interactive response using an exemplary interactive report generation system. As is shown in operation 402, an apparatus may include means, such as the interactive report generation system 102, the processor 303, or the like, for identifying one or more messages to be hyperlinked in an output report, wherein the one or more messages are data structures that are configured to linguistically describe at least a portion of raw input data. In some example embodiments one or more messages may be identified or otherwise be predefined to define or otherwise include information that indicates the one or more messages that are to be interactive (e.g., a flag, an indicator bit or the like) when realized. Those messages that are marked as interactive will be those messages that are hyperlinked in the output text, in some examples. Alternatively or additionally, the document planner may define one or more messages to be interactive messages.
As is shown in operation 404, an apparatus may include means, such as the interactive report generation system 102, the processor 303, or the like, for determining one or more interactive responses based on the one or more messages to be hyperlinked. In some examples, the messages may indicate an interactive response. In some examples, the document plan may further define the resultant action when one or more hyperlinks are selected. In other words, the document plan may define (e.g., messages to be included in the interactive response the arrangement thereof) the communicative goal of a particular message and therefore define an interactive response. Alternatively or additionally, the interactive response may be defined by a user, by a microplanner, may be defined in the domain model or the like.
As is shown in operation 406, an apparatus may include means, such as the interactive report generation system 102, the processor 303, or the like, for determining one or more words in a phrase specification that are related to the one or more messages to be hyperlinked. In some examples, the one or more words that are related to the one or more messages are determined by hyperlinking the entire sentence in an instance in which a single message is to be realized into a single sentence and/or hyperlinking at least one of a noun phrase, verb phrase or sentence constituent related to a message that is to be hyperlinked based on at least one of lexicalization rules, aggregation rules or a referring expression generator.
As is shown in operation 408, an apparatus may include means, such as the interactive report generation system 102, the processor 303, or the like, for generating the output report, wherein the one or more words are hyperlinked in the output report such that when selected at least one of the one or more interactive responses is performed. In some examples, once realized, the report may be shown a screen via a user interface. The user interface may provide for a hyperlink in the form of an underline, box or the like. The hyperlink may be selectable, in some example embodiments, and may generate the interactive response, such as another text graph or the like. Alternatively or additionally, the hyperlink may provide a menu of potential responses in response to a click, thus prompting the user to determine whether a graph or text is desired. In some examples, the interactive response is dynamically generated based on the user's selection, whereas in other examples it may be generated, but not displayed, at the same time as the initial report.
As is shown in operation 410, an apparatus may include means, such as the interactive report generation system 102, the processor 303, or the like, for generating an interactive response using an interactive report generation system in response to a selection of a hyperlink. In some examples, the determined interactive response is a graph. As such, the apparatus may include means, such as the interactive report generation system 102, the processor 303, or the like, for detecting one or more patterns in a data channel derived from raw input data; identifying one or more patterns in another data channel also derived from the raw input data; generating one or more phrases describing the one or more patterns in the data channel and the one or more patterns in the another data channel; and generating a graphical output based on the data channel, the another data channel and the one or more phrases, wherein the one or more phrases are interactively annotated on the graphical output of the data channel and the another data channel.
Alternatively or additionally, in an instance in which the determined interactive response is another report, the apparatus may include means, such as the interactive report generation system 102, the processor 303, or the like, for determining the document plan for the another report based on a document plan for the output report and the communicative goal of the sentence containing the hyperlink and generating the another output report using an interactive report generation system.
In some examples, the output report or another output report, an interactive response or the like is generated based on the current context or other context of the user, reader or the like. For example, one or more messages can be marked as viewed by a user and those messages transformed into phrase specifications that are realized and have been previously viewed will not be displayed in a future report. In other examples, certain data channels over certain periods may be marked as viewed. As such, in instances in which an interactive response or another report is dynamically generated, such an output may be given in context and may have a reduced amount of information when compared to the amount of information originally in a document plan for the interactive response or another output report.
FIG. 5 is a flow chart illustrating an example method for displaying an interactive response using an exemplary interactive report generation system. As is shown in operation 502, an apparatus may include means, such as the interactive report generation system 102, the processor 303, or the like, for displaying an output report having one or more hyperlinks surrounding one or more words, wherein the one or more hyperlinks provide an indication that an interactive response is available. As is shown in operation 504, an apparatus may include means, such as the interactive report generation system 102, the processor 303, or the like, for receiving an indication of a selection of a hyperlink of the one or more hyperlinks. As is shown in operation 506, an apparatus may include means, such as the interactive report generation system 102, the processor 303, or the like, for determining, using a processor, a communicative goal for a sentence having the hyperlink and a current context of the reader. As is shown in operation 508, an apparatus may include means, such as the interactive report generation system 102, the processor 303, or the like, for displaying an interactive response.
FIG. 6 is a flow chart illustrating an example method for generating the report using an exemplary interactive report generation system. As is shown in operation 602, an apparatus may include means, such as the interactive report generation system 102, the processor 303, or the like, for instantiating one or more messages. As is shown in operation 604, an apparatus may include means, such as interactive report generation system 102, the processor 303, or the like, for arranging one or more messages in a document plan in an order in which they are to be linguistically described in the output text. As is shown in operation 606, an apparatus may include means, such as interactive report generation system 102, the processor 303, or the like, for converting at least one of the one or more messages into a text specification that represents one or more data structures that are representative of a syntactic structure of a sentence As is shown in operation 608, an apparatus may include means, such as interactive report generation system 102, the processor 303, or the like, for applying a grammar to the text specification to generate the output text.
FIG. 7 is a flow chart illustrating an example method for generating graphical annotations, such as in the case a graph or annotations are to be generated as the output report or the interactive response (e.g., the another report). As is shown in operation 702, an apparatus may include means, such as the interactive report generation system 102, the processor 303, or the like, for receiving an indication of an alarm condition. In some example embodiments an alarm may cause the selection of a primary data channel and a determination of a time period in which the alarm was generated. Alternatively or additionally other means may be used to alert the apparatus to a primary data channel, such as, but not limited to, a user action, a selection of a hyperlink, a detected pattern in the raw input data or a data channel, a determined value in the raw input data or a data channel, and/or the like.
As is shown in operation 704, an apparatus may include means, such as the interactive report generation system 102, the processor 303, or the like, for determining one or more key patterns in a primary data channel. In some example embodiments the key patterns may be determined based on the time period of the alarm condition, however in other examples a larger or smaller time period may be selected.
As is shown in operation 706, an apparatus may include means, such as the interactive report generation system 102, the processor 303, or the like, for determining one or more significant patterns in one or more related data channels. In some example embodiments, the apparatus, may determine one or related channels based on one or more predefined relationships. In some examples, the predefined relationships may be defined by the domain model 114.
As is shown in operation 708, an apparatus may include means, such as interactive report generation system 102, the processor 303, or the like, for determining one or more contextual channels to be included in the graphical output. The one or more contextual channels may provide events or other context that may be indicative of the cause of the one or more key patterns and/or the one or more significant patterns. As is shown in operation 710, an apparatus may include means, such as interactive report generation system 102, the processor 303, or the like, for determining a time period to be represented by the graphical output. In some example embodiments, the time period chosen for the graph is the time period in which the one or more key patterns are displayed. As is shown in operation 712, an apparatus may include means, such as interactive report generation system 102, the processor 303, or the like, for generating a natural language annotation of at least one of the one or more key patterns or the one or more significant patterns.
As is shown in operation 714, an apparatus may include means, such as interactive report generation system 102, the processor 303, a user interface or the like, for generating a graphical output that is configured to be displayed in a user interface. In some example embodiments, the graph is configured to utilize the determined scale to display the primary data channel, one or more related channels having significant events, natural language annotations, a narrative, events and/or the like. In some example embodiments and in an instance in which a user clicks on a text annotation in the graph, a corresponding phrase in the situation analysis text may be highlighted and/or in an instance in which a user clicks on underlined phrase in the narrative or situation analysis text, a corresponding annotation may be highlighted on the graph.
In some example embodiments described herein, the apparatus, a graph may be generated (e.g., as an output report, output text, interactive report, another report or the like) having a scale (e.g. amplitude (y-axis) and/or time scale (x-axis)) that advantageously displays one or more data channels (e.g. a first or primary data channel, a secondary or related data channel and/or the like) that are derived from raw input data, one or more natural language text annotations and/or a narrative describing raw input data. As such, advantageously, a user viewing the graph, in a user interface or using other viewing means, may be provided with situational awareness with regard to the patterns shown on the graph as well as the events and or patterns that may have influenced the patterns shown on the graph.
In some examples, a first or primary data channel may be selected for inclusion in a graph based on a selection by a user, via a user interface, may be selected based on the happening of a condition such as, but not limited to, an alert, an alarm, an anomaly, a violation of a constraint, a warning, a predetermined condition, selection of a hyperlink, based on an indication that the primary data channel is related to the communicative goal and/or the like.
In some example embodiments, a secondary or related data channel may also be selected. In some cases, there may be a plurality of secondary or related data channels. The secondary or related data channel may be selected for inclusion in a graph based on the detection of anomalous, unexpected or otherwise flagged behavior in the second or related channel. In some examples, the second or related channel is compared to one or more patterns in the primary data channel over a similar time period. For example, a first data channel may indicate a rise in heart rate, whereas a second data channel may indicate a stable or even a decline in respiration rate. Generally respiration rate rises with heart rate, and, as such, a stable respiration rate is generally unexpected. In some examples, unexpected behavior may lead to a life threatening condition, be indicative of a dangerous condition or the like.
Relationships between data channels may be defined as anomalous behavior by a qualitative model such as a domain model. A domain model is a representation of information about the domain. For example a domain model may contain an ontology that specifies the kinds of objects and concepts and the like that may exist in the domain in concrete or abstract form, properties that may be predicated of the objects and concepts and the like, relationships that may hold between the objects concepts and the like, and representations of any specific knowledge that is required to function in the domain. In some example multiple domain models may be provided for a single domain. Example domains may include, but are not limited to, medical, oil and gas, industrial, weather, legal, financial and/or the like. Alternatively or additionally, a plurality of related channels may be included, for example pulse rate, oxygen levels, blood pressure and/or the like.
In some examples, patterns (e.g. a trend, spike, step or the like) may be detected or otherwise identified in the primary data channel and/or in the one or more secondary data channels. Once a pattern is detected in the primary data channel and/or the one or more secondary data channels, an importance level or importance is assigned to each of the patterns. In the primary data channel an importance level may be defined based on thresholds, constraints, predefined conditions or the like. In the secondary data channels an importance level may also be assigned based on thresholds, constraints, predefined conditions or the like, however an importance level may also be assigned based on the relationship between the secondary data channels and the primary data channels and/or the relationships between the patterns detected in the primary data channels and the patterns detected in the secondary data channels. A pattern in the primary channel may be defined as a key pattern in an instance in which the importance level of the pattern exceeds or otherwise satisfies a predefined importance level. Likewise, a significant pattern is a pattern in a secondary data channel that exceeds or otherwise satisfies a predefined importance level. In some examples, a pattern in the one or more secondary channels may also be classified as a significant pattern if it represents an anomaly or otherwise unexpected behavior when compared with the primary data channel.
In some example embodiments, a contextual channel may also be selected. A contextual channel is a data channel that provides a background or circumstance information that may have caused or otherwise influenced the one or more key patterns and/or the one or more significant patterns (e.g. proximate cause). For example, a contextual channel may indicate an event, such as a medical treatment that was applied at the time of or just prior to the rise of the heartbeat and/or the fall or steady state of the respiration rate. Alternatively or additionally, a plurality of data channels may also be selected for inclusion in a graph based on an anomaly or unexpected behavior.
Alternatively or additionally, one or more data channels may be selected for inclusion in a graph even though the one or more data channels are representative of expected behavior. For example, in the medical domain, a medical professional may expect to see both heart rate and respiration rate on a graph even if both are behaving in expected ways, since expected behavior may be indicative of an important result, namely a clean bill of health. As such, a selection of a hyperlink relating to heart rate, would provide a graph of both heart rate and respiration. In some cases, based on the current context (e.g., whether the professional has seen a graph of respiration already, the respiration rate may be omitted.
In yet further example embodiments, events may also be generated for display in the graph. An event may be described in a contextual channel, may be entered into an event log that is input with the raw input data or may be inferred. For example, caffeine administration may be entered as an explicit event in a patient record (e.g. in an event log), the caffeine could be detected by a change in one or data channels which record what medication is being administered through an IV line and/or the caffeine administration may be inferred based on a spike in heart rate. In instances in which an event is identified that satisfies an importance threshold, the event may be displayed as a visual annotation. In an example in which a graph is displayed, events may be displayed as a vertical line. Alternatively or additionally events may be generated as a horizontal line with indicators showing the multiple occurrences of an event and/or the like. In other visualizations, events may be displayed via text, indicator or other visual outputs.
In some example embodiments, a scale may be selected for the graph based on the primary data channel, the secondary data channel or the like. The scale may be determined based on a time period or duration in which a pattern that satisfies an importance threshold is identified, anomalous behavior occurs in a related data channel and/or the like. Alternatively or additionally the time period may be set by a user, may be a time period that is significant or specifically identified on the basis of properties of the domain, communicative goal, current context or the like. In some examples, if the user has already seen a graph of rate of a time period, a selection of an event may only result in a graph of a heart rate surrounding the time of the event.
In further example embodiments, textual annotations and/or a narrative may be included with the graph. The textual annotations and/or the narrative may be provided by a natural language generation system, such as interactive report generation system 102, that is configured to generate one or more textual annotations in the form of sentences or phrases that describe the patterns in the data channels, expected or unexpected behavior, an event, a contextual channel and/or the like. Additionally, in some examples, the sentences or phrases may take the form of stand-alone text that provides situational awareness and/or situational analysis of the graph. In some examples, situation analysis text may be configured to include pattern descriptions that contribute to narrative coherence, background information or the like. The textual annotations may be located on the graph, such as at the location where the anomalies and/or the patterns are represented in the graph. Alternatively or additionally, the narrative may be displayed on or near the graph in some examples. Whereas, in other examples, the narrative may be contained in a separate file, may be generated before/after or otherwise separately from the generation of the graph or may be a separate interactive response. In some examples, annotations may be shown as a preview. For example as a user is moving their cursor across the graph, an interactive response may include a text box that elaborates on a particular point on the graph. Alternatively or additionally, the textual annotations and/or narrative may be provided via speech or other available modalities.
Based on the one or more channels derived from the raw input data, the contextual channel and/or the annotations, the graph may be generated for display. The graph is configured to display a time scale that contains those identified sections (e.g. key patterns and/or significant patterns) in the one or more data channels, the textual annotations, additional available visual annotations and/or the like. In some example embodiments, user interaction with the narrative text may result in an annotation on the graphical output to be highlighted. Similarly selection of an annotation may highlight narrative text related to the annotation. Alternatively or additionally, the annotations may include a symbol or other reference numeral that is indicative of or otherwise related to the narrative. For example, the narrative may indicate that a first key pattern is indicated by an arrow, a circle, a box, a reference number or the like in the graph.
Many modifications and other embodiments of the inventions set forth herein will come to mind to one skilled in the art to which these inventions pertain having the benefit of the teachings presented in the foregoing descriptions and the associated drawings. Therefore, it is to be understood that the inventions are not to be limited to the specific embodiments disclosed and that modifications and other embodiments are intended to be included within the scope of the appended claims. Moreover, although the foregoing descriptions and the associated drawings describe example embodiments in the context of certain example combinations of elements and/or functions, it should be appreciated that different combinations of elements and/or functions may be provided by alternative embodiments without departing from the scope of the appended claims. In this regard, for example, different combinations of elements and/or functions than those explicitly described above are also contemplated as may be set forth in some of the appended claims. Although specific terms are employed herein, they are used in a generic and descriptive sense only and not for purposes of limitation.

## Claims

1. A method comprising:
identifying one or more messages to be hyperlinked in an output report, wherein the one or more messages are data structures that are configured to linguistically describe at least a portion of raw input data;
determining one or more interactive responses based on the one or more messages to be hyperlinked;
determining, using a processor, one or more words in a phrase specification that are related to the one or more messages to be hyperlinked;
generating the output report, wherein the one or more words are hyperlinked in the output report such that when selected at least one of the one or more interactive responses is performed; and
in response to a selection of a hyperlink, generating an interactive response using an interactive report generation system.

2. The method of claim 1 wherein the one or more words in the phrase specification that are related to the one or more messages to be hyperlinked are determined by:
hyperlinking the entire sentence in an instance in which a single message is to be realized into a single sentence; and
hyperlinking at least one of a noun phrase, verb phrase or sentence constituent related to a message that is to be hyperlinked based on at least one of lexicalization rules, aggregation rules or a referring expression generator.

3. The method of claim 1, further comprising:
determining that a selection of a hyperlink is to result in an annotated graph;
detecting one or more patterns in a data channel derived from raw input data, the data channel related to the hyperlink;
identifying one or more patterns in another data channel also derived from the raw input data;
generating one or more phrases describing the one or more patterns in the data channel and the one or more patterns in the another data channel; and
generating a graphical output based on the hyperlink, the data channel, the another data channel and the one or more phrases, wherein the one or more phrases are interactively annotated on the graphical output of the data channel and the another data channel.

4. The method of claim 1, further comprising:
determining that a selection of a hyperlink is to result in another output report in the form of a text;
determining the document plan for the another report based on a document plan for the output report and the communicative goal of the sentence containing the hyperlink; and
generating the another output report using an interactive report generation system.

5. The method of claim 4, further comprising:
modifying the another output report based on a current context of a reader.

6. The method of claim 1, further comprising:
generating the output report by performing language generation operations comprising:
arranging the one or more messages in a document plan in an order in which they are to be linguistically described in the output report;
converting at least one of the one or more messages into a text specification that represents one or more data structures that are representative of at least one syntactic constituent and syntactic feature of a sentence; and
applying a grammar to the text specification data structure to generate the output report that is displayable in a user interface.

7. A method comprising:
displaying an output report having one or more hyperlinks surrounding one or more words, wherein the one or more hyperlinks provide an indication that an interactive response is available;
receiving an indication of a selection of a hyperlink of the one or more hyperlinks;
determining, using a processor, a communicative goal for a sentence having the hyperlink and a current context of the reader;
generating an interactive response using an interactive report generation system based on the communicative goal; and
displaying the interactive response.

8. The method of claim 7, further comprising:
determining that the selection of the hyperlink is to result in an annotated graph;
detecting one or more patterns in a data channel derived from raw input data, the data channel related to the hyperlink;
identifying one or more patterns in another data channel also derived from the raw input data;
generating one or more phrases describing the one or more patterns in the data channel and the one or more patterns in the another data channel; and
generating a graphical output based on the data channel, the another data channel and the one or more phrases, wherein the one or more phrases are interactively annotated on the graphical output of the data channel and the another data channel.

9. The method of claim 7, further comprising:
determining that the selection of the hyperlink is to result in another output report in the form of a text;
identifying a document plan for the another report based on a document plan for the output report and the communicative goal of the sentence containing the hyperlink; and
generating the another output report using an interactive report generation system.

10. The method of claim 7, further comprising:
generating the output report by performing language generation operations comprising:
arranging the one or more messages in a document plan in an order in which they are to be linguistically described in the output report;
converting at least one of the one or more messages into a text specification that represents one or more data structures that are representative of at least one syntactic constituent and syntactic feature of a sentence; and
applying a grammar to the text specification data structure to generate the output report that is displayable in a user interface.

11. The method of claim 7, further comprising:
identifying one or more messages to be hyperlinked in an output report, wherein the one or more messages are data structures that are configured to linguistically describe at least a portion of raw input data;
determining one or more interactive responses based on the one or more messages to be hyperlinked;
determining one or more words in a phrase specification that are related to the one or more messages to be hyperlinked; and
generating the output report, wherein the one or more words are hyperlinked in the output report such that when selected at least one of the one or more interactive responses is performed.

12. The method of claim 7 wherein the one or more words in the phrase specification that are related to the one or more messages are determined by:
hyperlinking the entire sentence in an instance in which a single message is to be realized into a single sentence; and
hyperlinking at least one of a noun phrase, verb phrase or sentence constituent related to a message that is to be hyperlinked based on at least one of lexicalization rules, aggregation rules or a referring expression generator.

13. An apparatus comprising:
at least one processor; and
at least one memory including computer program code, the at least one memory and the computer program code configured to, with the at least one processor, cause the apparatus to at least:
identify one or more messages to be hyperlinked in an output report, wherein the one or more messages are data structures that are configured to linguistically describe at least a portion of raw input data;
determine one or more interactive responses based on the one or more messages to be hyperlinked;
determine one or more words in a phrase specification that are related to the one or more messages to be hyperlinked; and
generate the output report, wherein the one or more words are hyperlinked in the output report such that when selected at least one of the one or more interactive responses is performed; and
in response to a selection of a hyperlink, generate an interactive response using an interactive report generation system.

14. The apparatus of claim 13, wherein the one or more words in the phrase specification that are related to the one or more messages to be hyperlinked are determined by:
hyperlinking the entire sentence in an instance in which a single message is to be realized into a single sentence; and
hyperlinking at least one of a noun phrase, verb phrase or sentence constituent related to a message that is to be hyperlinked based on at least one of lexicalization rules, aggregation rules or a referring expression generator.

15. The apparatus of claim 13, wherein the at least one memory including the computer program code is further configured to, with the at least one processor, cause the apparatus to:
determine that a selection of a hyperlink is to result in an annotated graph;
detect one or more patterns in a data channel derived from raw input data, the data channel related to the hyperlink;
identify one or more patterns in another data channel also derived from the raw input data;
generate one or more phrases describing the one or more patterns in the data channel and the one or more patterns in the another data channel; and
generate a graphical output based on the hyperlink, the data channel, the another data channel and the one or more phrases, wherein the one or more phrases are interactively annotated on the graphical output of the data channel and the another data channel.

16. The apparatus of claim 13, wherein the at least one memory including the computer program code is further configured to, with the at least one processor, cause the apparatus to:
determine that a selection of a hyperlink is to result in another output report in the form of a text;
determine the document plan for the another report based on a document plan for the output report and the communicative goal of the sentence containing the hyperlink; and
generate the another output report using an interactive report generation system.

17. The apparatus of claim 16, wherein the at least one memory including the computer program code is further configured to, with the at least one processor, cause the apparatus to:
modify the another output report based on a current context of a reader.

18. The apparatus of claim 13, wherein the at least one memory including the computer program code is further configured to, with the at least one processor, cause the apparatus to:
generate the output report by performing language generation operations comprising:
arranging the one or more messages in a document plan in an order in which they are to be linguistically described in the output report;
converting at least one of the one or more messages into a text specification that represents one or more data structures that are representative of at least one syntactic constituent and syntactic feature of a sentence; and
applying a grammar to the text specification data structure to generate the output report that is displayable in a user interface.