Mapping-related service providers (e.g., map data providers, navigation service providers, etc.) face significant technical challenges when making future traffic predictions for a given road network. Historically, such traffic predictions generally rely on historical traffic data that are tagged with detailed knowledge of significant events that might be impacting traffic states (or patterns) on a road link of interest. One type of representation of traffic data (and/or any other type of data) is a token-based representation. Of particular interest among mapping-related service providers is predicting as accurately as possible the next token or tokens in a time series (of a semi-periodic signal), by looking at the recent history. However, in some applications, it may not be known a priori that the next token or tokens is the best choice based on one static snapshot of the recent history.
Therefore, there is a need for an approach for providing a next token prediction using a dynamic or variable number of previously observed tokens.
According to one embodiment, a computer implemented method for next token prediction comprises receiving an observed time series of tokens. Each of the tokens represents an observed data pattern. The method also comprises adding a most recent token from the observed time series of tokens into a variable token set. The method further comprises processing a historical token set to determine a historical token sequence comprising the variable token set followed by a next token. The method further comprises recursively adding a next most recent token from the observed time series of tokens into the variable token set for processing until the next token following the variable token set in the determined historical token sequence is unique or meets a target number of possible predictions. The method further comprises presenting the next token as a predicted next token of the observed time series of tokens.
According to another embodiment, an apparatus for next token prediction comprises at least one processor, and at least one memory including computer program code for one or more computer programs, the at least one memory and the computer program code configured to, with the at least one processor, cause, at least in part, the apparatus to receive an observed time series of tokens. Each of the tokens represents an observed data pattern. The apparatus is further caused to add a most recent token from the observed time series of tokens into a variable token set. The apparatus if further caused to process a historical token set to determine a historical token sequence comprising the variable token set followed by a next token. The apparatus is caused to recursively add a next most recent token from the observed time series of tokens into the variable token set for processing until the next token following the variable token set in the determined historical token sequence is unique or meets a target number of possible predictions. The apparatus is further caused to present the next token as a predicted next token of the observed time series of tokens.
According to another embodiment, a computer-readable storage medium for next token prediction carries one or more sequences of one or more instructions which, when executed by one or more processors, cause, at least in part, an apparatus to receive an observed time series of tokens, wherein each of the tokens represents an observed data pattern. Each of the tokens represents an observed data pattern. The apparatus is further caused to add a most recent token from the observed time series of tokens into a variable token set. The apparatus if further caused to process a historical token set to determine a historical token sequence comprising the variable token set followed by a next token. The apparatus is caused to recursively add a next most recent token from the observed time series of tokens into the variable token set for processing until the next token following the variable token set in the determined historical token sequence is unique or meets a target number of possible predictions. The apparatus is further caused to present the next token as a predicted next token of the observed time series of tokens.
According to another embodiment, an apparatus for next token prediction comprises means for receiving an observed time series of tokens, wherein each of the tokens represents an observed data pattern. Each of the tokens represents an observed data pattern. The apparatus also comprises means for adding a most recent token from the observed time series of tokens into a variable token set. The apparatus further comprises a means for processing a historical token set to determine a historical token sequence comprising the variable token set followed by a next token. The apparatus further comprises a means for recursively adding a next most recent token from the observed time series of tokens into the variable token set for processing until the next token following the variable token set in the determined historical token sequence is unique or meets a target number of possible predictions. The apparatus also comprises a means for presenting the next token as a predicted next token of the observed time series of tokens.
In addition, for various example embodiments of the invention, the following is applicable: a method comprising facilitating a processing of and/or processing (1) data and/or (2) information and/or (3) at least one signal, the (1) data and/or (2) information and/or (3) at least one signal based, at least in part, on (or derived at least in part from) any one or any combination of methods (or processes) disclosed in this application as relevant to any embodiment of the invention.
For various example embodiments of the invention, the following is also applicable: a method comprising facilitating access to at least one interface configured to allow access to at least one service, the at least one service configured to perform any one or any combination of network or service provider methods (or processes) disclosed in this application.
For various example embodiments of the invention, the following is also applicable: a method comprising facilitating creating and/or facilitating modifying (1) at least one device user interface element and/or (2) at least one device user interface functionality, the (1) at least one device user interface element and/or (2) at least one device user interface functionality based, at least in part, on data and/or information resulting from one or any combination of methods or processes disclosed in this application as relevant to any embodiment of the invention, and/or at least one signal resulting from one or any combination of methods (or processes) disclosed in this application as relevant to any embodiment of the invention.
For various example embodiments of the invention, the following is also applicable: a method comprising creating and/or modifying (1) at least one device user interface element and/or (2) at least one device user interface functionality, the (1) at least one device user interface element and/or (2) at least one device user interface functionality based at least in part on data and/or information resulting from one or any combination of methods (or processes) disclosed in this application as relevant to any embodiment of the invention, and/or at least one signal resulting from one or any combination of methods (or processes) disclosed in this application as relevant to any embodiment of the invention.
In various example embodiments, the methods (or processes) can be accomplished on the service provider side or on the mobile device side or in any shared way between service provider and mobile device with actions being performed on both sides.
For various example embodiments, the following is applicable: An apparatus comprising means for performing a method of any of the claims.
Still other aspects, features, and advantages of the invention are readily apparent from the following detailed description, simply by illustrating a number of particular embodiments and implementations, including the best mode contemplated for carrying out the invention. The invention is also capable of other and different embodiments, and its several details can be modified in various obvious respects, all without departing from the spirit and scope of the invention. Accordingly, the drawings and description are to be regarded as illustrative in nature, and not as restrictive.
The embodiments of the invention are illustrated by way of example, and not by way of limitation, in the figures of the accompanying drawings:
Examples of a method, apparatus, and computer program for providing next token prediction based on previously observed tokens are disclosed. In the following description, for the purposes of explanation, numerous specific details are set forth in order to provide a thorough understanding of the embodiments of the invention. It is apparent, however, to one skilled in the art that the embodiments of the invention may be practiced without these specific details or with an equivalent arrangement. In other instances, well-known structures and devices are shown in block diagram form in order to avoid unnecessarily obscuring the embodiments of the invention.
However, the disadvantage of this prediction method is that it may not be known a priori what the best choice of n is, or a single of n may not be optimal in all instances. For example, there may be some cases where knowing just one previous token already determines the next token, and other cases where it is necessary to look at a longer sequence of history in order to make the best prediction. It is possible that more than one token has the same likelihood to follow the observed sequence.
To address this problem, a system 100
In one embodiment, the system 100 receives an observed time series of tokens. In one embodiment, the series of tokens represents a sequence of tokens at a certain time (i.e., a time series). For example, the tokens may represent sequences of traffic conditions (or patterns) associated with fixed periods of time on a given link (e.g., a highway). More specifically, in this example, the tokens may represent the movement of vehicles (global position system (GPS) probe data) throughout a study area (e.g., a series of roadways) (the “traffic”). It is noted that although the various embodiments are discussed with respect to tokens that represent traffic patterns, it is contemplated that the tokens may be used to represent any pattern, condition, state, etc. that can be predicted based on a variable number of past observations (e.g., weather patterns). In other words, the series of tokens may also represent any situation wherein tokens within a time series have the property that the next token may be determined by the token or tokens that have proceeded it. In one embodiment, the system 100 assumes that the existence of certain sequences in the past makes it likely that similar sequences will also appear in the future.
In one embodiment, the system 100 adds a most recent token from the observed time series of tokens into a variable token set. A variable token set refers, for instance, to a token set that can have a variable number of tokens (e.g., variable with respect to token size or length). In one embodiment, the system 100 adds the most recent token from the observed time series of tokens to the variable token set in an n-tuple number of tokens. As discussed above, a disadvantage of NLP is that a fixed number of tokens are typically used to build the probability distribution of common sequences and then to predict the token that is most likely to follow an observed sequence. However, it may not be known a priori what the best choice of n is, or a single choice of n may not be optimal for all instances. Therefore, in one embodiment, the system 100 advantageously uses a variable length of the history, namely variable n observed tokens to uniquely determine the next token. In one embodiment, the system enforces a minimum density for the historical token sequences against which the variable token set. For example, the system 100 can process historical tokens sequences to build up a dictionary of historical or previously observed n-tuples of tokens. These n-tuples of tokens (e.g. historical token sequences) should have a minimum density or minimum number of tokens (e.g., at least two). In this way, the historical token sequence in the dictionary will have a minimum of at least one token to match against the variable token set being analyzed and a next token that has been observed to follow the matched token or token sequence.
In one embodiment, the system 100 processes the historical token set to determine a historical token sequence comprising the variable token set (e.g., Tn−1, Tn) followed by a next token (e.g., token “X”). In one embodiment, the historical token set comprises at least the observed time series of tokens, tokenized data collected over a period of time, or a combination thereof. In one embodiment, the system 100 processes the historical token set by comparing or attempting to match the variable token set (e.g., Tn−1, Tn) and the next token (e.g., token “X”) among the historical token set. In one embodiment, the historical token sequence comprises the variable token set followed by the next token (e.g., Tn−1, Tn, X).
In one embodiment, after processing the historical token set, the system 100 determines that the determined historical token sequence is unique or meets a target number of possible predictions. In one embodiment, the system 100 determines that the next token is unique if it determines that there is only one historical token sequence that includes the variable token set followed by the next token. More specifically, the “only one” may comprise just one instance or it may comprise a number of instances. In one embodiment, if the system 100 determines that the historical token sequence is not unique or does not meet a target number of possible predictions (as discussed more fully below), then the system 100 recursively adds a next most recent token from the observed time series of tokens into the variable token set until the historical token sequence is unique or meets a target number of possible predictions. For example, if the first variable token set is Tn−1 and Tn, then the system 100 can add the most recent token from the observed time series of tokens (e.g., Tn−2) into the variable token set (Tn−2, Tn−1, Tn) and then process the historical set as described above. In one embodiment, this process continues until the system 100 determines that the historical token sequence is unique or meets a target number of possible predictions or the system 100 runs out of observed time series of tokens to add to the variable token set.
In one embodiment, wherein the system 100 determines that the next token of the historical token sequence (e.g., Tn−1, Tn, X) is unique, the system 100 presents the token “X” as the predicted next token of the observed time series of tokens. As used herein, a time series of tokens is a sequence of times arranged chronologically by the time (e.g., forward or backwards in time) at which the pattern or condition represented by the token is observed. In an embodiment where in the time series increases chronologically, the next token prediction can represent a prediction of a future pattern. Conversely, in an embodiment where the time series decreases chronologically, the next token prediction can represent a prediction of a past prediction (e.g., predicting an unknown past traffic pattern based on known observations). By way of example, the tokens Tn−1 and Tn may represent a steady of stream of increasing traffic for a particular day and time on a particular link (e.g., a highway) and the system 100 may determine that the historical token sequence comprising the variable token set (Tn−1 and Tn) and the next token “X” (e.g., representing more traffic than Tn) are unique. Consequently, the system 100 will present the token “X” as the predicted next token of the observed time series (i.e., predicting increased traffic relative to Tn−1 and Tn).
In one embodiment, the system 100 can determine that the next token meets a target number of possible predictions rather than determining that the next token is unique by first determining a count of the historical token sequences that include the variable token set and next tokens. In other words, the system 100 can be configured to output any number of possible next token predictions as opposed to just one unique token or token set. In this way, the system 100 can be configured to use an n number of previously observed tokens that will result in producing the target number of possible predictions. For example, in a use case where the target number of possible predictions is two (e.g., instead of one which is the case with a unique prediction is desired), the system 100 increase the size of the variable token until there are only two next possible next token predictions (e.g., the system 100 finds one historical token sequence includes the variable token set followed by the token “X”, an another historical token sequence includes the variable token set followed by the token “Y”, with no other possibilities).
In one embodiment, the system 100 is initially unable to determine that the next token and/or the historical token sequence is unique. This may occur, for instance, for various possible reasons. First, the system 100 may determine that the most recent token (e.g., Tn) does not “look” like any piece or segment of the historical token set. Second, the system 100 may have added all of the next tokens from the observed time series of tokens to the variable token set without being able to determine that the next token and/or the historical token sequence is unique or meets a target number of possible predictions. Third, the system 100 may determine that one or more historical token sequences appear among the historical token set with the same frequency (e.g., Tn−1, Tn, X versus Tn−1, Tn, Y).
In one embodiment, when no next most token remains in the observed time series of tokens to add to the variable token set and the next token in the historical token sequence is not unique or does not meet the target number of possible predictions (e.g., the first scenario), the system 100 can remove the last added token (e.g., Tn) from the variable token set and then select the predicted next token as described above based on the variable token set without the last token (e.g., Tn−2, Tn−1). By way of example, the first scenario may be caused by the system 100 registering a pattern anomaly, or a change, in the data. In one instance, the length of the forecast may affect the system 100's processing speed. In one embodiment, the system 100 may also flag the observed time series of tokens as a possible token sequence to update the historical token set (i.e., update the model).
In one embodiment, if there are no more next most recent tokens in the observed time series of token to add to the variable token set and the system 100 cannot determine whether the next token in the historical token sequence is unique or meets the target number of possible predictions, the system 100 can determine respective occurrence frequencies of the next tokens and respective historical token sequences. In one embodiment, the system 100 selects the predicted next token from the next tokens and respective historical token sequences based on the respective frequencies. By way of example, the system 100 can determine whether the variable token set (Tn−1, Tn) is followed more often by the next token “X” or by the next token “Y” and then present the next token that occurs more frequently as the prediction. In one embodiment, wherein the system 100 determines that the next tokens and respective historical token sequences appear with equal frequency, the system 100 determines the predicted next token by breaking the tie in some other way (e.g., choosing the token that is most common overall in the historical data set).
In one embodiment, rather than presenting a single prediction for the next token, the system 100 presents more than one next token as possible predicted next tokens of the observed time series (e.g., by setting the target number of possible predictions to more than one unique next token/token set as described above). For example, in some applications, it may be advantageous to have multiple next token predictions. In one embodiment, the system 100 generates multiple next token predictions by avoiding recursively adding a next most recent token or looking backwards to an earlier point. For example, if three possible predictions were desired, the system 100 could simply look back until possibilities for the next token prediction were narrowed down to a set of at most three and then present those three token predictions. In one embodiment, the system 100 can calculate respective probabilities of each of the possible next token predictions and present the respective probabilities along with the next token predictions (e.g., token “X”=85%; token “Y”=10%; and token “Z”=5%).
One example of the next token prediction process described above is schematically illustrated in
In one embodiment, the system 100 adds the most recent token (e.g., token “H”) from the observed time series of tokens 201 into a variable token set 207. In one embodiment, the system 100 enforces a minimum density of tokens in the historical token data such that the tokens “C” and “H” are included in a resulting historical token sequence of a token dictionary and not just token “H”. As described above, the system 100 enforces the minimum density due to the fact that in some applications it may not be known a priori what the best choice of n tokens is for the variable token set 207 or a single choice of n (e.g., token “H”) may not be optimal in all instances.
In one embodiment, the system 100 processes the historical token set 209 (e.g., stored in the geographic database 109), which includes at least the observed time series of tokens 201 to determine a historical token sequence comprising the variable token set 207 followed by a next token. In this instance, the system 100 can determine the historical sequence 211 comprised of the variable token set 207 and the next token “U”. In one embodiment, the system 100 recursively adds a next most recent token from the observed time series of tokens 201 into the variable token set 207 for processing until the next token following the variable token set 207 (e.g., token “U”) in the determined historical token sequence is determined to be unique or meet a target number of possible predictions. In this instance, the system 100 determines that the historical token sequence 211 is unique (i.e., in each instance that the variable token set 207 appears it is followed by the token “U”). In one embodiment, based on this determination, the system 100 presents the token “U” as the predicted next token of the observed time series of tokens 209, which is confirmed by the token 213 within the future token sequence 205. If this were not the case, the system 100 would add the token 215 to the variable token set 207 and start processing the historical token set again.
Returning to
In one embodiment, a probe point can include attributes such as: (1) probe ID, (2) longitude, (3) latitude, (4) heading, (5) speed, and (6) time. The list of attributes is provided by way of illustration and not limitation. Accordingly, it is contemplated that any combination of these attributes or other attributes may be recorded as a probe point. For example, attributes such as altitude (e.g., for flight capable vehicles or for tracking non-flight vehicles in the altitude domain), tilt, steering angle, wiper activation, etc. can be included and reported for a probe point. In one embodiment, the vehicles 101 may include sensors for reporting measuring and/or reporting attributes. The attributes can also be any attribute normally collected by an on-board diagnostic (OBD) system of the vehicle, and available through an interface to the OBD system (e.g., OBD II interface or other similar interface). In one embodiment, this data allows the system 100 to calculate the speed of a vehicle 101 over a stretch of road, and then aggregate up to an estimation of the general population of vehicle 101 speeds.
The probe points can be reported from the vehicles 101 and/or UEs 103 in real-time, in batches, continuously, or at any other frequency requested by the system 100 over, for instance, the communication network 105 for processing by a token platform 107. The probe points also can be mapped to specific road links stored in the geographic database 109. In one embodiment, the system 100 (e.g., via the token platform 107) can generate probe traces from the probe points for an individual probe so that the probe traces represent a travel trajectory of the probe through the road network. In one embodiment, the travel trajectory can then be used to determine patterns of traffic speeds associated with fixed periods of time on a given link as discussed with respect to the various embodiments described herein.
In one embodiment, the patterns of traffic speed data can be provided by one or more speed sensors operating in the road network. For example, the road network may be equipped with sensors including, but not limited to, fixed inductive loop sensors, cameras, radar, and/or other remoting sensing devices capable of determining travel speeds of vehicles, devices, etc. traveling in the road network. In one embodiment, the sensors can be part of a road monitoring infrastructure that reports travel-speed and other telemetry data (e.g., location, heading, vehicle type, vehicle ID, etc.) to the token platform 107 or other monitoring centers, in real-time, continuously, in batches, on demand, according to a schedule, etc.
In one embodiment, the token platform 107 performs the processes for providing next token prediction as discussed with respect to the various embodiments described herein. In one embodiment, the token platform 107 can be a standalone server or a component of another device with connectivity to the communication network 105. For example, the component can be part of an edge computing network where remote computing devices (not shown) are installed along or within proximity of a road network to provide next token prediction from travel-speed data collected locally or within a local area served by the remote or edge computing device.
In one embodiment, the token platform 107 has connectivity or access to a geographic database 109 that includes mapping data about a road network (additional description of the geographic database 109 is provided below with respect to
In one embodiment, the vehicles 101 and/or UEs 103 may execute an application 111 to present or use the tokenized traffic pattern data generated by the token platform 107. For example, if the application 111 is a navigation application, then the next token prediction can be used to determine routing information, provide updated estimated times of arrival (ETAs), provide notifications of predicted traffic phenomena or events, provide notifications of potentially problematic areas/intersections/interchanges, and the like.
By way of example, the UE 103 is any type of embedded system, mobile terminal, fixed terminal, or portable terminal including a built-in navigation system, a personal navigation device, mobile handset, station, unit, device, multimedia computer, multimedia tablet, Internet node, communicator, desktop computer, laptop computer, notebook computer, netbook computer, tablet computer, personal communication system (PCS) device, personal digital assistants (PDAs), audio/video player, digital camera/camcorder, positioning device, fitness device, television receiver, radio broadcast receiver, electronic book device, game device, or any combination thereof, including the accessories and peripherals of these devices, or any combination thereof. It is also contemplated that the UE 103 can support any type of interface to the user (such as “wearable” circuitry, etc.). In one embodiment, the UE 103 may be associated with a vehicle 101 (e.g., a car), a component part of the vehicle 101, a mobile device (e.g., a phone), and/or a combination of thereof. Similarly, the vehicle 101 may include computing components that can be perform all or a portion of the functions of the UE 103.
By way of example, the application 111 may be any type of application that is executable at the vehicle 101 and/or the UE 103, such as mapping application, location-based service applications, navigation applications, content provisioning services, camera/imaging application, media player applications, social networking applications, calendar applications, and the like. In one embodiment, the application 111 may act as a client for the token platform 107 and perform one or more functions of the token platform 107 alone or in combination with the token platform 107.
In one embodiment, the vehicles 101 and/or the UEs 103 are configured with various sensors for generating probe data. By way of example, the sensors may include a global positioning sensor for gathering location data (e.g., GPS), a network detection sensor for detecting wireless signals or receivers for different short-range communications (e.g., Bluetooth, Wi-Fi, Li-Fi, near field communication (NFC) etc.), temporal information sensors, a camera/imaging sensor for gathering image data (e.g., the camera sensors may automatically capture obstruction for analysis and documentation purposes), an audio recorder for gathering audio data, velocity sensors mounted on steering wheels of the vehicles, switch sensors for determining whether one or more vehicle switches are engaged, and the like.
In another embodiment, the sensors of the vehicles 101 and/or UEs 103 may include light sensors, orientation sensors augmented with height sensors and acceleration sensor (e.g., an accelerometer can measure acceleration and can be used to determine orientation of the vehicle), tilt sensors to detect the degree of incline or decline of the vehicle along a path of travel, moisture sensors, pressure sensors, etc. In a further example embodiment, sensors about the perimeter of the vehicle may detect the relative distance of the vehicle from lane or roadways, the presence of other vehicles, pedestrians, traffic lights, potholes and any other objects, or a combination thereof. In one scenario, the sensors may detect weather data, traffic information, or a combination thereof. In one example embodiment, the vehicles 101 and/or UEs 103 may include GPS receivers to obtain geographic coordinates from satellites 113 for determining current location and time associated with the vehicle 101 and/or UE 103 for generating probe data. Further, the location can be determined by a triangulation system such as A-GPS, Cell of Origin, or other location extrapolation technologies.
The communication network 105 of system 100 includes one or more networks such as a data network, a wireless network, a telephony network, or any combination thereof. It is contemplated that the data network may be any local area network (LAN), metropolitan area network (MAN), wide area network (WAN), a public data network (e.g., the Internet), short range wireless network, or any other suitable packet-switched network, such as a commercially owned, proprietary packet-switched network, e.g., a proprietary cable or fiber-optic network, and the like, or any combination thereof. In addition, the wireless network may be, for example, a cellular network and may employ various technologies including enhanced data rates for global evolution (EDGE), general packet radio service (GPRS), global system for mobile communications (GSM), Internet protocol multimedia subsystem (IMS), universal mobile telecommunications system (UMTS), etc., as well as any other suitable wireless medium, e.g., worldwide interoperability for microwave access (WiMAX), Long Term Evolution (LTE) networks, code division multiple access (CDMA), wideband code division multiple access (WCDMA), wireless fidelity (Wi-Fi), wireless LAN (WLAN), Bluetooth®, Internet Protocol (IP) data casting, satellite, mobile ad-hoc network (MANET), and the like, or any combination thereof.
In one embodiment, the token platform 107 may be a platform with multiple interconnected components. The token platform 107 may include multiple servers, intelligent networking devices, computing devices, components and corresponding software for providing trajectory bundles for map data analysis. In addition, it is noted that the token platform 107 may be a separate entity of the system 100, a part of the one or more services 115a-115m (collectively referred to as services 115) of the services platform 117, or included within the UE 103 (e.g., as part of the applications 111).
The services platform 117 may include any type of service 115. By way of example, the services 115 may include mapping services, navigation services, travel planning services, notification services, social networking services, content (e.g., audio, video, images, etc.) provisioning services, application services, storage services, contextual information determination services, location-based services, information-based services (e.g., weather, news, etc.), etc. In one embodiment, the services platform 117 may interact with the token platform 107, the UE 103, and/or the content provider 119 to provide the services 115.
In one embodiment, the content providers 119a-119k (collectively referred to as content providers 119) may provide content or data to the vehicles 101 and/or UEs 103, the token platform 107, and/or the services 115. The content provided may be any type of content, such as textual content, audio content, video content, image content, etc. In one embodiment, the content providers 119 may provide content that may aid in making next token prediction using a dynamic number of previously observed tokens. In one embodiment, the content providers 119 may also store content associated with the vehicles 101, the UE 103, the token platform 107, and/or the services 115. In another embodiment, the content providers 119 may manage access to a central repository of data, and offer a consistent, standard interface to data, such as a repository of probe data, speed limit for one or more road links, speed information for at least one vehicle, traffic jam threshold for at least one road link, other traffic information, etc. Any known or still developing methods, techniques or processes for retrieving and/or accessing features for road links from one or more sources may be employed by the token platform 107.
By way of example, the vehicles 101, the UEs 103, the token platform 107, the services platform 117, and the content providers 119 communicate with each other and other components of the system 100 using well known, new or still developing protocols. In this context, a protocol includes a set of rules defining how the network nodes within the communication network 105 interact with each other based on information sent over the communication links. The protocols are effective at different layers of operation within each node, from generating and receiving physical signals of various types, to selecting a link for transferring those signals, to the format of information indicated by those signals, to identifying which software application executing on a computer system sends or receives the information. The conceptually different layers of protocols for exchanging information over a network are described in the Open Systems Interconnection (OSI) Reference Model.
Communications between the network nodes are typically effected by exchanging discrete packets of data. Each packet typically comprises (1) header information associated with a particular protocol, and (2) payload information that follows the header information and contains information that may be processed independently of that particular protocol. In some protocols, the packet includes (3) trailer information following the payload and indicating the end of the payload information. The header includes information such as the source of the packet, its destination, the length of the payload, and other properties used by the protocol. Often, the data in the payload for the particular protocol includes a header and payload for a different protocol associated with a different, higher layer of the OSI Reference Model. The header for a particular protocol typically indicates a type for the next protocol contained in its payload. The higher layer protocol is said to be encapsulated in the lower layer protocol. The headers included in a packet traversing multiple heterogeneous networks, such as the Internet, typically include a physical (layer 1) header, a data-link (layer 2) header, an internetwork (layer 3) header and a transport (layer 4) header, and various application (layer 5, layer 6 and layer 7) headers as defined by the OSI Reference Model.
In one embodiment, the node data records 303 and the road link data records 305 represent a road network, such as used by vehicles, cars, and/or other entities. In other words, the nodes and links of the data records 303 and 305 comprise a system for representing the geospatial characteristics of a transportation in which the nodes represent various location points (e.g., latitude and longitude) of the network and the links represent an extent of a road or path between the nodes. Generally, the nodes are located at intersections points of the road network to minimize the number of nodes needed to represent a transportation network. However, in some embodiments, a node can also fall at a non-intersection point. In this case, the node at the non-intersection can be a shape node which can be used to indicate or more closely follow a road or path with a more complex shape. Alternatively, the geographic database 301 can contain path segment and node data records or other data that represent pedestrian paths or areas in addition to or instead of the vehicle road record data, for example.
The road link and nodes can be associated with attributes, such as a functional class, a road density or link length, a speed attribute (e.g., speed limit along a link, a free-flow speed of traffic along a link, and/or any other indication of an expected speed of travel along the link), parking availability information, geographic coordinates, street names, address ranges, turn restrictions at intersections, and other navigation related attributes, as well as POIs, such as traffic controls (e.g., stoplights, stop signs, crossings, etc.), gasoline stations, hotels, restaurants, museums, stadiums, offices, automobile dealerships, auto repair shops, buildings, stores, parks, etc. As indicated above, the geographic database 109 can include data about the POIs and their respective locations in the POI data records 307. The geographic database 109 can also include data about places, such as cities, towns, or other communities, and other geographic features, such as bodies of water, mountain ranges, etc. Such place or feature data can be part of the POI data or can be associated with POIs or POI data records 307 (such as a data point used for displaying or representing a position of a city).
In one embodiment, the geographic database 109 also includes token data records 309 for storing information about the tokenized representation of patterns of traffic speed collected with respect to the links or road segments stored in the geographic database 109. For example, the token data records 309 may store one or more dictionaries of tokens representing travel-speed patterns or templates determined from travel-speed data collected from probes traversing the road network or from road speed sensors operating in the road network represented in the geographic database 109. In one embodiment, it contemplated that a token dictionary (e.g., of observed n-tuples of tokens for all n up to some point) can be generated for and/or applicable to all links stored in the geographic database 109, a subset of the links, or individual links. In other words, the dictionary can be generated at different levels of granularity within a road network. In one embodiment, the granularity can be based on the attributes of links (e.g., a functional class, etc.). For example, a dictionary can be generated to represent travel-speed patterns or templates observed in a particular functional class (e.g., arterial roadways). The resulting dictionary can then be used for representing and predicting traffic conditions for that particular functional class. Similarly, dictionaries can be specific to an individual link so that different links can have different applicable dictionaries. In yet another embodiment, the token data records 309 also store historical sequences of observed tokens and/or related travel-speed data streams matched to specific links, areas, regions, etc. of the road network represented in the geographic database 109. The system 100 can then query for this historical data to provide a next token prediction.
In one embodiment, the other data records 311 include cartographic (“carto”) data records, routing data, and maneuver data, which can facilitate generating routing and/or navigation information for end user devices. In one embodiment, the indexes 313 may improve the speed of data retrieval operations in the geographic database 301. For example, the indexes 313 may be used to quickly locate data without having to search every row in the geographic database 301 every time it is accessed.
The geographic database 109 can be maintained by the content provider 119 in association with the services platform 117 (e.g., a map developer). The map developer can collect geographic data to generate and enhance the geographic database 109. There can be different ways used by the map developer to collect data. These ways can include obtaining data from other sources, such as municipalities or respective geographic authorities. In addition, the map developer can employ field personnel to travel by vehicle along roads throughout the geographic region to observe features and/or record information about them, for example. Also, remote sensing, such as aerial or satellite photography, can be used.
The geographic database 109 can be a master geographic database stored in a format that facilitates updating, maintenance, and development. For example, the master geographic database 109 or data in the master geographic database 109 can be in an Oracle spatial format or other spatial format, such as for development or production purposes. The Oracle spatial format or development/production database can be compiled into a delivery format, such as a geographic data files (GDF) format. The data in the production and/or delivery formats can be compiled or further compiled to form geographic database products or databases, which can be used in end user navigation devices or systems.
For example, geographic data is compiled (such as into a platform specification format (PSF) format) to organize and/or configure the data for performing navigation-related functions and/or services, such as route calculation, route guidance, map display, speed calculation, distance and travel time functions, and other functions, by a navigation device, such as by a UE 103, for example. The navigation-related functions can correspond to vehicle navigation, pedestrian navigation, or other types of navigation. The compilation to produce the end user databases can be performed by a party or entity separate from the map developer. For example, a customer of the map developer, such as a navigation device developer or other end user device developer, can perform compilation on a received geographic database in a delivery format to produce one or more compiled navigation databases.
As mentioned above, the geographic database 109 can be a master geographic database, but in alternate embodiments, the geographic database 109 can represent a compiled navigation database that can be used in or with end user devices (e.g., vehicle 101, UE 103, etc.) to provide navigation-related functions. For example, the geographic database 109 can be used with the end user device to provide an end user with navigation features. In such a case, the geographic database 109 can be downloaded or stored on the end user device (e.g., vehicle 101, UE 103, etc.), such as in application 111, or the end user device can access the geographic database 109 through a wireless or wired connection (such as via a server and/or the communication network 105), for example.
In one embodiment, the end user device can be an in-vehicle navigation system, a personal navigation device (PND), a portable navigation device, a cellular telephone, a mobile phone, a personal digital assistant (PDA), a watch, a camera, a computer, and/or other device that can perform navigation-related functions, such as digital routing and map display. In one embodiment, the navigation device (e.g., UE 103) can be a cellular telephone. An end user can use the device navigation functions such as guidance and map display, for example, and for determination of route information to at least one identified point of interest, according to exemplary embodiments.
In step 501, the data processing module 401 receives an observed time series of tokens from the tokenization module 407. In one embodiment, the series of tokens represents a sequence of tokens at a certain time. For example, the tokens may represent sequences of traffic conditions (or patterns) associated with a fixed period of time on a given link. In particular, the tokens may represent the movement of vehicles (GPS probe data) throughout a study area (e.g., a series of roadways) (the “traffic”). In one instance, the series of tokens may also represent any situation wherein tokens of a time series have the property that the next token may be determined by the token or tokens that have proceeded it.
In step 503, the clustering module 405 adds a most recent token from the observed time series of tokens into a variable token set. By way of example, each variable token set can include any n-tuple number of tokens (e.g., with n>1). In one embodiment, the clustering module 405 clusters a variable length of history, namely variable n observed tokens. In one embodiment, the clustering module 405 enforces a minimum density for the variable token set. For example, if the most recent token observed is Tn, the clustering module 405 will add Tn and Tn−1 to form the variable token set (Tn−1, Tn). In one embodiment, the clustering module 405 builds up a dictionary of observed n-tuples of tokens for all n up to some point (e.g., the observed time series of tokens).
In step 505, the data processing module 401 in connection with the pattern extraction module 403 processes a historical token set to determine a historical token sequence comprising the variable token set followed by a next token. In one embodiment, the historical token set comprises at least the observed time series of tokens, tokenized data collected over a time period, or a combination thereof. In one embodiment, data processing module 401 processes the historical data set by comparing or attempting to match the variable token set (e.g., Tn−1, Tn) and the next token (e.g., token “X”) among the historical token set. In one embodiment, the historical token sequence comprises the variable token set followed by the next token (e.g., Tn−1, Tn, X).
In step 507, the clustering module 405 in connection with the pattern extraction module 403 recursively adds a next most recent token from the observed time series of tokens into the variable token set for processing until the next token following the variable token set in the determined historical token set is determined to be unique or meets a target number of possible predictions. In one embodiment, the pattern extraction module 403 determines that the next token is unique if it determines that there is only one historical token sequence that includes the variable token set followed by the next token. In one embodiment, the “only one” historical token sequence may comprise just one instance or it may comprise a number of instances. In one embodiment, if the pattern extraction module 403 determines that the historical token sequence is not unique or does not meet a target number of possible predictions, the clustering module 405 recursively adds a next most recent token form the observed token time series of tokens into the variable token set until the pattern extraction module 403 determines that the next token is unique or meets a target number of possible predictions. By way of example, if the first variable token set is Tn−1 and Tn, then the clustering module 405 can add the most recent token from the observed time series of tokens (e.g., Tn−2) into the variable token set (e.g., Tn−2, Tn−1, Tn) and then the pattern extraction module 403 can process the historical set as described. In one embodiment, this adding process continues until the pattern extraction module 403 determines that the historical token sequence is unique or meets a target number of possible predictions or the clustering module 405 runs out observed time series of tokens to add to the variable token set.
In step 509, once the pattern extraction module 403 determines that the next token is unique or meets a target number of possible predictions, the prediction module 411 presents the next token as a predicted next token of the observed time series of tokens. For example, the prediction module 411 may present token “X” as the next token (e.g., Tn+1) of the observed time series of tokens.
In step 601, the pattern extraction module 403 determines whether the next token meets a target number of possible predictions by determining a count of the historical token sequence and at least one other historical token sequence that include the variable token set followed by the next token or another next token. In other words, the pattern extraction module 403 identifies and counts all possible historical token sequences in the historical token set that include the variable token set and any other next token. By way of example, the pattern extraction module 403 may determine that there is one historical token sequence that includes the variable token set followed by the next token “X”, and another historical token sequence that includes the variable token set followed by the next token “Y”. In this example, the count of the number of possible predictions would be equal to two.
In step 603, the data processing module 401 determines whether the count meets the target number of possible predictions. For example, when the target number of possible predictions is equal to one, the data processing module 401 is effectively searching for a single unique prediction. However, when the target number of possible predictions is greater than one, the data processing module 401 is searching for more than one unique prediction. In other words, the data processing module 401 can in the process of adding additional tokens into the variable token set when the number of possible predictions is reduced to target number. Continuing with the example, if the target number of possible predictions is two and the pattern extraction module 403 determines that the current size of the variable token set results in a count of two possible next token predictions (e.g., two tokens X and Y are observed following the variable token set in two respective historical token sequences), the data processing module 401 can end the process of adding additional tokens from the observed time series of tokens into the variable token set and output the resulting possible next token predictions for further processing by the system 100.
In step 605, the clustering module 405 determines respective occurrence frequencies of the next token and/or another next token in the historical token sequence and the at least one other historical token sequence. In one embodiment, wherein there are no longer any more next most recent tokens for the clustering module 405 to add to the variable token set and the pattern extraction module 403 cannot determine whether the next token in the historical token sequence is unique or meets the target number of possible predictions, the clustering module 405 can determine respective occurrence frequencies. For example, the clustering module 405 can determine whether the variable token set (Tn−1, Tn) is followed more often by the next token “X” or by the next token “Y” in the historical token set.
In step 607, the prediction module 411 selects the predicted next token from among the next token and/or another next token based on the respective occurrence frequencies. For example, wherein the clustering module 405 determines that the variable token set (Tn−1, Tn) is followed more often by the next token “X”, the prediction module 411 can select the next token “X” as the predicted next token. However, in the third possible scenario described above, the two or more sequences appear with the same frequency. Therefore, in one embodiment, the prediction module 411 must break the tie in some other way, for example, by choosing the next token that is most common overall among the historical data set.
In step 609, the prediction module 411 presents the next token and/or another token as possible predicted next tokens of the observed time series of tokens. In one embodiment, rather than presenting a single prediction, it may be advantageous to present multiple next token predictions (e.g., based on an application requirement). In one embodiment, the prediction module 411 generates multiple next token predictions by preventing the clustering module 405 from recursively adding a next most recent token or looking backwards to an earlier point. By way of example, if three possible predictions were desired, the pattern extraction module 403 could simply look back until possibilities for the next token prediction were narrowed down to a set of at most three predictions and then present those three predictions.
In step 611, the clustering module 405 calculates respective probabilities of the next token and another next token as possible next tokens of the observed time series of tokens. By way of example, the clustering module 405 may assign an 85% probability to the next token “X”, a 10% probability to the next token “Y”, and a 5% probability to the next token “Z”. Then, in step 613, the prediction module 411 can present the respective probabilities along with the presenting of the next tokens as the predicted next tokens.
In step 701, wherein no next most recent token remains in the observed time series of tokens to add to the variable token set and the next token in the historical token sequence is not unique or does not meet the target number of possible predictions, the clustering module 405 removes the last added token (e.g., Tn) from the variable token set (e.g., Tn−1, Tn). One possible reason that the clustering module 405 may add all of the most recent tokens from the observed time series of tokens and the pattern extraction module 403 may still not be able to determine that the next token is unique or meets the target number of possible prediction is because the last added token does not match with any of the tokens within the historical token set. For example, this may occur as a result of a pattern anomaly, or a change, in the data.
In step 703, the prediction module 411 selects the predicted next token based on the variable token set with the last added token removed. In one embodiment, the prediction module 411 would follow the steps described above with respect to steps 605 through 609 to select the predicted next token since removing the last added token would result in either of the second or the third possible scenarios described above wherein the pattern extraction module 403 is unable to determine a next token or and/or historical token sequence that is unique or meets a target number of possible predictions.
In step 705, the dictionary module 409 flags the observed time series of tokens as a possible token sequence to update the historical token set. By way of example, at run time, the dictionary module 409 could flag the timestamp where the change occurred and update the historical token set accordingly.
In step 833, the system 100 outputs the clustered Traffic states (or patterns), which is illustrated in
In one instance, the system 100 determined that the most extreme traffic state showed Traffic speeds dropping to as low as 55% of speed limit (e.g., a state that can be represented by a unique token), which can be assumed to occur during the most adverse weather conditions, as depicted in the chart 835 of
Returning to
Again referring to
In one embodiment, the system 100 then uses a machine learning approach (e.g., Random Forest) to determine a predicted pattern or predicted token sequences according to the embodiments described herein.
Returning to
The processes described herein for providing next token prediction may be advantageously implemented via software, hardware (e.g., general processor, Digital Signal Processing (DSP) chip, an Application Specific Integrated Circuit (ASIC), Field Programmable Gate Arrays (FPGAs), etc.), firmware or a combination thereof. Such exemplary hardware for performing the described functions is detailed below.
A bus 910 includes one or more parallel conductors of information so that information is transferred quickly among devices coupled to the bus 910. One or more processors 902 for processing information are coupled with the bus 910.
A processor 902 performs a set of operations on information as specified by computer program code related to providing next token prediction. The computer program code is a set of instructions or statements providing instructions for the operation of the processor and/or the computer system to perform specified functions. The code, for example, may be written in a computer programming language that is compiled into a native instruction set of the processor. The code may also be written directly using the native instruction set (e.g., machine language). The set of operations include bringing information in from the bus 910 and placing information on the bus 910. The set of operations also typically include comparing two or more units of information, shifting positions of units of information, and combining two or more units of information, such as by addition or multiplication or logical operations like OR, exclusive OR (XOR), and AND. Each operation of the set of operations that can be performed by the processor is represented to the processor by information called instructions, such as an operation code of one or more digits. A sequence of operations to be executed by the processor 902, such as a sequence of operation codes, constitute processor instructions, also called computer system instructions or, simply, computer instructions. Processors may be implemented as mechanical, electrical, magnetic, optical, chemical or quantum components, among others, alone or in combination.
Computer system 900 also includes a memory 904 coupled to bus 910. The memory 904, such as a random access memory (RAM) or other dynamic storage device, stores information including processor instructions for providing next token prediction. Dynamic memory allows information stored therein to be changed by the computer system 900. RAM allows a unit of information stored at a location called a memory address to be stored and retrieved independently of information at neighboring addresses. The memory 904 is also used by the processor 902 to store temporary values during execution of processor instructions. The computer system 900 also includes a read only memory (ROM) 906 or other static storage device coupled to the bus 910 for storing static information, including instructions, that is not changed by the computer system 900. Some memory is composed of volatile storage that loses the information stored thereon when power is lost. Also coupled to bus 910 is a non-volatile (persistent) storage device 908, such as a magnetic disk, optical disk or flash card, for storing information, including instructions, that persists even when the computer system 900 is turned off or otherwise loses power.
Information, including instructions for providing next token prediction, is provided to the bus 910 for use by the processor from an external input device 912, such as a keyboard containing alphanumeric keys operated by a human user, or a sensor. A sensor detects conditions in its vicinity and transforms those detections into physical expression compatible with the measurable phenomenon used to represent information in computer system 900. Other external devices coupled to bus 910, used primarily for interacting with humans, include a display device 914, such as a cathode ray tube (CRT) or a liquid crystal display (LCD), or plasma screen or printer for presenting text or images, and a pointing device 916, such as a mouse or a trackball or cursor direction keys, or motion sensor, for controlling a position of a small cursor image presented on the display 914 and issuing commands associated with graphical elements presented on the display 914. In some embodiments, for example, in embodiments in which the computer system 900 performs all functions automatically without human input, one or more of external input device 912, display device 914 and pointing device 916 is omitted.
In the illustrated embodiment, special purpose hardware, such as an application specific integrated circuit (ASIC) 920, is coupled to bus 910. The special purpose hardware is configured to perform operations not performed by processor 902 quickly enough for special purposes. Examples of application specific ICs include graphics accelerator cards for generating images for display 914, cryptographic boards for encrypting and decrypting messages sent over a network, speech recognition, and interfaces to special external devices, such as robotic arms and medical scanning equipment that repeatedly perform some complex sequence of operations that are more efficiently implemented in hardware.
Computer system 900 also includes one or more instances of a communications interface 970 coupled to bus 910. Communication interface 970 provides a one-way or two-way communication coupling to a variety of external devices that operate with their own processors, such as printers, scanners and external disks. In general the coupling is with a network link 978 that is connected to a local network 980 to which a variety of external devices with their own processors are connected. For example, communication interface 970 may be a parallel port or a serial port or a universal serial bus (USB) port on a personal computer. In some embodiments, communications interface 970 is an integrated services digital network (ISDN) card or a digital subscriber line (DSL) card or a telephone modem that provides an information communication connection to a corresponding type of telephone line. In some embodiments, a communication interface 970 is a cable modem that converts signals on bus 910 into signals for a communication connection over a coaxial cable or into optical signals for a communication connection over a fiber optic cable. As another example, communications interface 970 may be a local area network (LAN) card to provide a data communication connection to a compatible LAN, such as Ethernet. Wireless links may also be implemented. For wireless links, the communications interface 970 sends or receives or both sends and receives electrical, acoustic or electromagnetic signals, including infrared and optical signals, that carry information streams, such as digital data. For example, in wireless handheld devices, such as mobile telephones like cell phones, the communications interface 970 includes a radio band electromagnetic transmitter and receiver called a radio transceiver. In certain embodiments, the communications interface 970 enables connection to the communication network 105 for providing next token prediction.
The term computer-readable medium is used herein to refer to any medium that participates in providing information to processor 902, including instructions for execution. Such a medium may take many forms, including, but not limited to, non-volatile media, volatile media and transmission media. Non-volatile media include, for example, optical or magnetic disks, such as storage device 908. Volatile media include, for example, dynamic memory 904. Transmission media include, for example, coaxial cables, copper wire, fiber optic cables, and carrier waves that travel through space without wires or cables, such as acoustic waves and electromagnetic waves, including radio, optical and infrared waves. Signals include man-made transient variations in amplitude, frequency, phase, polarization or other physical properties transmitted through the transmission media. Common forms of computer-readable media include, for example, a floppy disk, a flexible disk, hard disk, magnetic tape, any other magnetic medium, a CD-ROM, CDRW, DVD, any other optical medium, punch cards, paper tape, optical mark sheets, any other physical medium with patterns of holes or other optically recognizable indicia, a RAM, a PROM, an EPROM, a FLASH-EPROM, any other memory chip or cartridge, a carrier wave, or any other medium from which a computer can read.
In one embodiment, the chip set 1000 includes a communication mechanism such as a bus 1001 for passing information among the components of the chip set 1000. A processor 1003 has connectivity to the bus 1001 to execute instructions and process information stored in, for example, a memory 1005. The processor 1003 may include one or more processing cores with each core configured to perform independently. A multi-core processor enables multiprocessing within a single physical package. Examples of a multi-core processor include two, four, eight, or greater numbers of processing cores. Alternatively or in addition, the processor 1003 may include one or more microprocessors configured in tandem via the bus 1001 to enable independent execution of instructions, pipelining, and multithreading. The processor 1003 may also be accompanied with one or more specialized components to perform certain processing functions and tasks such as one or more digital signal processors (DSP) 1007, or one or more application-specific integrated circuits (ASIC) 1009. A DSP 1007 typically is configured to process real-world signals (e.g., sound) in real time independently of the processor 1003. Similarly, an ASIC 1009 can be configured to performed specialized functions not easily performed by a general purposed processor. Other specialized components to aid in performing the inventive functions described herein include one or more field programmable gate arrays (FPGA) (not shown), one or more controllers (not shown), or one or more other special-purpose computer chips.
The processor 1003 and accompanying components have connectivity to the memory 1005 via the bus 1001. The memory 1005 includes both dynamic memory (e.g., RAM, magnetic disk, writable optical disk, etc.) and static memory (e.g., ROM, CD-ROM, etc.) for storing executable instructions that when executed perform the inventive steps described herein to provide next token prediction. The memory 1005 also stores the data associated with or generated by the execution of the inventive steps.
A radio section 1115 amplifies power and converts frequency in order to communicate with a base station, which is included in a mobile communication system, via antenna 1117. The power amplifier (PA) 1119 and the transmitter/modulation circuitry are operationally responsive to the MCU 1103, with an output from the PA 1119 coupled to the duplexer 1121 or circulator or antenna switch, as known in the art. The PA 1119 also couples to a battery interface and power control unit 1120.
In use, a user of mobile station 1101 speaks into the microphone 1111 and his or her voice along with any detected background noise is converted into an analog voltage. The analog voltage is then converted into a digital signal through the Analog to Digital Converter (ADC) 1123. The control unit 1103 routes the digital signal into the DSP 1105 for processing therein, such as speech encoding, channel encoding, encrypting, and interleaving. In one embodiment, the processed voice signals are encoded, by units not separately shown, using a cellular transmission protocol such as global evolution (EDGE), general packet radio service (GPRS), global system for mobile communications (GSM), Internet protocol multimedia subsystem (IMS), universal mobile telecommunications system (UMTS), etc., as well as any other suitable wireless medium, e.g., microwave access (WiMAX), Long Term Evolution (LTE) networks, code division multiple access (CDMA), wireless fidelity (WiFi), satellite, and the like.
The encoded signals are then routed to an equalizer 1125 for compensation of any frequency-dependent impairments that occur during transmission though the air such as phase and amplitude distortion. After equalizing the bit stream, the modulator 1127 combines the signal with a RF signal generated in the RF interface 1129. The modulator 1127 generates a sine wave by way of frequency or phase modulation. In order to prepare the signal for transmission, an up-converter 1131 combines the sine wave output from the modulator 1127 with another sine wave generated by a synthesizer 1133 to achieve the desired frequency of transmission. The signal is then sent through a PA 1119 to increase the signal to an appropriate power level. In practical systems, the PA 1119 acts as a variable gain amplifier whose gain is controlled by the DSP 1105 from information received from a network base station. The signal is then filtered within the duplexer 1121 and optionally sent to an antenna coupler 1135 to match impedances to provide maximum power transfer. Finally, the signal is transmitted via antenna 1117 to a local base station. An automatic gain control (AGC) can be supplied to control the gain of the final stages of the receiver. The signals may be forwarded from there to a remote telephone which may be another cellular telephone, other mobile phone or a land-line connected to a Public Switched Telephone Network (PSTN), or other telephony networks.
Voice signals transmitted to the mobile station 1101 are received via antenna 1117 and immediately amplified by a low noise amplifier (LNA) 1137. A down-converter 1139 lowers the carrier frequency while the demodulator 1141 strips away the RF leaving only a digital bit stream. The signal then goes through the equalizer 1125 and is processed by the DSP 1105. A Digital to Analog Converter (DAC) 1143 converts the signal and the resulting output is transmitted to the user through the speaker 1145, all under control of a Main Control Unit (MCU) 1103—which can be implemented as a Central Processing Unit (CPU) (not shown).
The MCU 1103 receives various signals including input signals from the keyboard 1147. The keyboard 1147 and/or the MCU 1103 in combination with other user input components (e.g., the microphone 1111) comprise a user interface circuitry for managing user input. The MCU 1103 runs a user interface software to facilitate user control of at least some functions of the mobile station 1101 to provide next token prediction. The MCU 1103 also delivers a display command and a switch command to the display 1107 and to the speech output switching controller, respectively. Further, the MCU 1103 exchanges information with the DSP 1105 and can access an optionally incorporated SIM card 1149 and a memory 1151. In addition, the MCU 1103 executes various control functions required of the station. The DSP 1105 may, depending upon the implementation, perform any of a variety of conventional digital processing functions on the voice signals. Additionally, DSP 1105 determines the background noise level of the local environment from the signals detected by microphone 1111 and sets the gain of microphone 1111 to a level selected to compensate for the natural tendency of the user of the mobile station 1101.
The CODEC 1113 includes the ADC 1123 and DAC 1143. The memory 1151 stores various data including call incoming tone data and is capable of storing other data including music data received via, e.g., the global Internet. The software module could reside in RAM memory, flash memory, registers, or any other form of writable computer-readable storage medium known in the art including non-transitory computer-readable storage medium. For example, the memory device 1151 may be, but not limited to, a single memory, CD, DVD, ROM, RAM, EEPROM, optical storage, or any other non-volatile or non-transitory storage medium capable of storing digital data.
An optionally incorporated SIM card 1149 carries, for instance, important information, such as the cellular phone number, the carrier supplying service, subscription details, and security information. The SIM card 1149 serves primarily to identify the mobile station 1101 on a radio network. The card 1149 also contains a memory for storing a personal telephone number registry, text messages, and user specific mobile station settings.
While the invention has been described in connection with a number of embodiments and implementations, the invention is not so limited but covers various obvious modifications and equivalent arrangements, which fall within the purview of the appended claims. Although features of the invention are expressed in certain combinations among the claims, it is contemplated that these features can be arranged in any combination and order.
This application claims priority from U.S. Provisional Application Ser. No. 62/513,232, entitled “METHOD AND APPARATUS FOR NEXT TOKEN PREDICTION BASED ON PREVIOUSLY OBSERVED TOKENS,” and filed May 31, 2017, the contents of which are hereby incorporated herein in their entirety by this reference.
Number | Date | Country | |
---|---|---|---|
62513232 | May 2017 | US |