Weather early warning method and device, electronic equipment, storage medium and program product

By judging the match between the user's planned travel time and location and the weather warning, combined with the maximum entropy Markov model to predict travel probability and hierarchical warnings, the problem of users receiving irrelevant push notifications under extreme weather is solved, and the accuracy and resources of warnings are improved. Utilization rate ensures travel safety.

CN118840825APending Publication Date: 2024-10-25TENCENT TECHNOLOGY (SHENZHEN) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310472280.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-04-24
Publication Date
2024-10-25

AI Technical Summary

Technical Problem

With the existing technology, when extreme weather occurs frequently, users' travel safety is threatened, and users frequently receive irrelevant weather push messages, resulting in a waste of resources and poor user experience.

Method used

By judging whether the user's planned travel time and location match the weather warning time and location range, weather warning information is output in a targeted manner, and the maximum entropy Markov model is used to predict travel probability and hierarchical warnings to improve accuracy and resource utilization.

Benefits of technology

It effectively reduces irrelevant weather warning push, improves user experience and resource utilization, improves the accuracy of warnings for people traveling under extreme weather, and ensures travel safety.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118840825A_ABST
    Figure CN118840825A_ABST
Patent Text Reader

Abstract

The invention provides a weather early warning method and device, electronic equipment, a computer readable storage medium and a computer program product. The method comprises the following steps: when a planned travel moment of a target object is matched with an early warning time range of target weather and a planned travel position of the target object is matched with an early warning position range corresponding to the early warning time range, outputting early warning information of the target weather through a terminal of the target object; wherein the early warning information comprises an early warning time range and an early warning position range of the target weather. According to the invention, weather early warning can be performed on the target object in a targeted manner.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to human-computer interaction technology, and in particular to a weather warning method, device, electronic device, computer-readable storage medium, and computer program product. Background Art

[0002] Nowadays, extreme weather occurs frequently, and urban flooding caused by heavy rain is common, which poses a great threat to people's travel safety. In related technologies, weather changes in cities or regions will be collected in a timely manner and pushed to users in the area. The processing of such information is also based on the user's location to determine whether the current user is in the audience range of this weather change, so as to decide whether to send this message to the user's client.

[0003] However, the push method in the related technology will cause users who are within the audience range of the current weather change but will not travel to frequently receive related weather push messages, thereby resulting in a waste of push resources and a poor user experience. Summary of the invention

[0004] The embodiments of the present application provide a weather warning method, device, electronic device, computer-readable storage medium, and computer program product, which can provide targeted weather warnings to target objects.

[0005] The technical solution of the embodiment of the present application is implemented as follows:

[0006] The present application provides a weather warning method, including:

[0007] When the planned travel time of the target object matches the warning time range of the target weather, and the planned travel location of the target object matches the warning location range corresponding to the warning time range, the warning information of the target weather is output through the terminal of the target object;

[0008] The warning information includes the warning time range and warning location range of the target weather.

[0009] The present application provides a weather warning device, including:

[0010] An early warning module is used to output the early warning information of the target weather through the terminal of the target object when the planned travel time of the target object matches the early warning time range of the target weather, and the planned travel location of the target object matches the early warning location range corresponding to the early warning time range; wherein the early warning information includes the early warning time range and the early warning location range of the target weather.

[0011] In some embodiments, the acquisition module is also used to: generate predicted travel information of the target object based on the predicted travel time of the target object and the predicted travel location of the target object; when the predicted probability of the predicted travel information is greater than a first probability threshold, determine the predicted travel time as the planned travel time, and determine the predicted travel location as the planned travel location.

[0012] In some embodiments, the early warning module is also used to: when the predicted probability corresponding to the predicted travel information is greater than the first probability threshold and not greater than the second probability threshold, output a client message through the terminal, wherein the client message includes the early warning information; when the predicted probability corresponding to the travel information is greater than the second probability threshold and not greater than the third probability threshold, output a text message and the client message through the terminal, wherein the text message and the client message include the early warning information; when the predicted probability corresponding to the travel information is greater than the third probability threshold, output the text message, the client message and the voice call through the terminal, wherein the text message, the client message and the voice call include the early warning information; wherein the second probability threshold is greater than the first probability threshold and less than the third probability threshold.

[0013] In some embodiments, the planned travel time includes at least one of the following: the planned departure time of the target object, the planned arrival time of the target object, and the planned journey time of the target object; the planned travel location includes at least one of the following: the planned starting location of the target object, the planned end location of the target object, and the planned route location of the target object.

[0014] In some embodiments, the planned travel time includes a planned departure time, and the planned travel location includes a planned starting location; the acquisition module is also used to: when the predicted probability of the target object traveling from the predicted starting location at the predicted departure time is greater than a first probability threshold, determine the predicted departure time as the planned departure time, and determine the predicted starting location as the planned starting location.

[0015] In some embodiments, the predicted departure time is the current time, the predicted starting position of the target object is the current position, and the acquisition module is further used to: obtain the object type of the target object, the current time of the target object, and the current position of the target object; vectorize the object type, the current time, and the current position to obtain an object type vector, a current time vector, and a current position vector; perform logistic regression processing on the object type vector, the current time vector, and the current position vector to obtain the predicted probability of the target object traveling from the current position at the current time.

[0016] In some embodiments, the acquisition module is also used to: acquire the number of trips of the target object in a unit time and the historical destination of the target object in the unit time from the historical travel data of the target object; when the number of trips is not greater than the first number threshold, and the historical destination of any trip is a commercial area, the entertainment type is determined as the object type of the target object; when the number of trips is not greater than the first number threshold, and the historical destination of each trip is not a commercial area, the residential type is determined as the object type of the target object; when the number of trips is not greater than the first number threshold, and the historical destination of at least two trips is an education area, the education type is determined as the object type of the target object; when the number of trips is greater than the first number threshold, and the historical destination of at least two trips is an office area, the office type is determined as the object type of the target object; when the number of trips is greater than the first number threshold, and the historical destination of at most one trip is an office area, the education type is determined as the object type of the target object.

[0017] In some embodiments, the planned travel time includes a planned departure time, a planned arrival time and a planned journey time, and the planned travel location includes a planned starting location, a planned end location and a planned route location; the acquisition module is also used to: when the target object departs from the predicted starting location at the predicted departure time and the predicted probability of arriving at the predicted end location at the predicted arrival time is greater than a first probability threshold, the predicted departure time is determined as the planned departure time, the predicted arrival time is determined as the planned arrival time, the predicted starting location is determined as the planned starting location, and the predicted end location is determined as the planned end location; wherein, for any planned travel time that matches the warning time range, the planned travel location of the target object at any of the planned travel times matches the warning location range corresponding to the warning time range.

[0018] In some embodiments, the predicted departure time is pre-set, and the acquisition module 4551 is also used to: obtain the conditional probability between the predicted departure time of the target object and each candidate endpoint; obtain the prior probability of each candidate endpoint; determine the posterior probability of each candidate endpoint based on the prior probability of each candidate endpoint and the conditional probability of each candidate endpoint; take the candidate endpoint with the largest posterior probability as the predicted endpoint position, and take the posterior probability corresponding to the predicted endpoint position as the predicted probability.

[0019] In some embodiments, the acquisition module is also used to: obtain the historical travel records of the target object from the training data set, and obtain a second number of the historical travel records; for each of the candidate destinations, determine the first number of historical travel records including the candidate destination, and use the ratio of the first number to the second number as the prior probability of the candidate destination.

[0020] In some embodiments, the predicted departure time is the current time, and the acquisition module 4551 is further used to: perform the following processing for each of the candidate destinations: obtain historical travel records including the candidate destinations from the training data set to form a first travel record set; count the target travel records including the current time in the first travel record set; and use the ratio of the number of the target travel records to the historical travel records in the first travel record set as the conditional probability that the current time corresponds to the candidate destination.

[0021] An embodiment of the present application provides an electronic device, including:

[0022] A memory for storing computer executable instructions;

[0023] The processor is used to implement the weather warning method provided in the embodiment of the present application when executing the computer executable instructions stored in the memory.

[0024] An embodiment of the present application provides a computer-readable storage medium storing computer-executable instructions for causing a processor to execute and implement the weather warning method provided in the embodiment of the present application.

[0025] An embodiment of the present application provides a computer program product, including computer executable instructions, which, when executed by a processor, implement the weather warning method provided in the embodiment of the present application.

[0026] The embodiments of the present application have the following beneficial effects:

[0027] The embodiment of the present application determines whether the user's planned travel time and planned travel location match the weather warning time range and warning location range, thereby determining whether the user's travel will be affected by the target weather. If the match indicates that the user's travel will be affected by the target weather, the warning information of the target weather is output on the user's terminal, thereby implementing weather warnings in a targeted manner, improving the utilization rate of push resources and not disturbing other users. BRIEF DESCRIPTION OF THE DRAWINGS

[0028] Figure 1 is a structural diagram of a weather warning system provided in an embodiment of the present application;

[0029] Figure 2is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application;

[0030] Figure 3A-3D It is a flowchart of a weather warning method provided in an embodiment of the present application;

[0031] Figure 4 is a flow chart of attribute determination of the weather warning method provided in an embodiment of the present application;

[0032] Figure 5 It is a schematic diagram of the interface of the weather warning method provided in the embodiment of the present application. DETAILED DESCRIPTION

[0033] In order to make the purpose, technical solutions and advantages of the present application clearer, the present application will be further described in detail below in conjunction with the accompanying drawings. The described embodiments should not be regarded as limiting the present application. All other embodiments obtained by ordinary technicians in the field without making creative work are within the scope of protection of this application.

[0034] In the following description, reference is made to “some embodiments”, which describe a subset of all possible embodiments, but it can be understood that “some embodiments” may be the same subset or different subsets of all possible embodiments and may be combined with each other without conflict.

[0035] In the following description, the terms "first\second\third" involved are merely used to distinguish similar objects and do not represent a specific ordering of the objects. It can be understood that "first\second\third" can be interchanged with a specific order or sequence where permitted, so that the embodiments of the present application described here can be implemented in an order other than that illustrated or described here.

[0036] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art to which this application belongs. The terms used herein are only for the purpose of describing the embodiments of this application and are not intended to limit this application.

[0037] Before further describing the embodiments of the present application in detail, the nouns and terms involved in the embodiments of the present application are explained. The nouns and terms involved in the embodiments of the present application are subject to the following interpretations.

[0038] 1) Targeted warning: Targeted warning refers to stratified warnings of different intensities for people with medium or high probability of being affected by heavy rain.

[0039] 2) Maximum Entropy Markov Model: The Maximum Entropy Markov Model is a production model that combines the advantages of the Maximum Entropy Model and the Markov Model.

[0040] 3) Point of Interest (POI): In a geographic information system, a POI can be a specific landmark such as a house, a shop, a mailbox, a bus stop, etc.

[0041] At present, domestic map software will collect information on weather changes in cities or regions in a timely manner and send it to users in the region. The processing of such information is also to determine whether the current user is in the scope of influence of this meteorological change through the user's current and historical affiliation to decide whether to send this message to the user's client. In today's frequent extreme weather, it is common for rainstorms to cause urban waterlogging, which poses a great hidden danger to people's travel safety. However, at present, users have not yet established an association between the user's travel probability and extreme weather, nor have they associated the dynamic information of points of interest with regional precipitation under rainstorm weather. How to accurately hit the crowd that will travel in rainstorm weather and send warnings in time, so as to minimize the accidental damage that rainstorm disasters may cause to the public traveling, is a topic worthy of study in the map industry, and in order to improve the accuracy of the targeted warning model, the maximum entropy Markov model (MEMM) can be used in the embodiment of the present application. The advantages of the maximum entropy model and the Markov model are combined into a unified production model. This model allows the state transition probability to depend on the non-independent features of the sequence, thereby introducing context information into the learning and recognition process of the model, achieving the effect of improving the accuracy of recognition.

[0042] The embodiments of the present application provide a weather warning method, device, electronic device, computer-readable storage medium, and computer program product, which can provide targeted weather warnings to target objects.

[0043] The following describes exemplary applications of the electronic device provided in the embodiments of the present application. The electronic device provided in the embodiments of the present application may be a terminal (including a smart phone, a tablet computer, a vehicle-mounted terminal) or a server. The following describes exemplary applications when the electronic device is implemented as a terminal.

[0044] See also Figure 1 , Figure 1It is a structural diagram of the weather warning system provided by the embodiment of the present application. To realize the support map APP, the terminal 400 is connected to the application server 200 through the network. The network can be a wide area network or a local area network, or a combination of the two. When the server 200 receives the rainstorm warning information, the rainstorm warning information includes the warning time range of the rainstorm (for example, 8 o'clock-10 o'clock) and the warning location range (for example, the main urban area of ​​Wuhan City), and the server 200 obtains the planned travel time and planned travel location of the target object using the terminal 400. For example, the planned travel time here can be the planned departure time, and the planned travel location can be the planned starting point location. The acquisition method here can be to obtain the planned departure time and the planned starting point location directly input by the user from the terminal (or obtain it by prediction). The planned departure time and the planned starting point location here can also be defaulted to the future adjacent time and current location of the current time of the target object. When the server 200 determines that the planned travel time matches the warning time range of the target weather, and the planned travel location matches the warning location range of the corresponding warning time range, the server 200 sends the rainstorm warning information to the terminal 400 for display.

[0045] In some embodiments, the weather warning method provided in the embodiments of the present application can be executed only by the terminal. When the terminal 400 receives the heavy rain warning information, the heavy rain warning information includes the warning time range of the heavy rain (for example, 8:00-10:00) and the warning location range (for example, the main urban area of ​​Wuhan City). The terminal 400 estimates the planned travel time and planned travel location of the target object. For example, the planned travel time here can be the planned departure time, and the planned travel location can be the planned starting point location. The acquisition method here can be to obtain the planned departure time and the planned starting point location directly input by the user from the terminal (or obtain it through prediction). The planned departure time and the planned starting point location here can also default to the current time and current location of the target object. When the terminal 400 determines that the planned travel time matches the warning time range of the target weather, and the planned travel location matches the warning location range corresponding to the warning time range, the terminal 400 displays the heavy rain warning information.

[0046] In some embodiments, the embodiments of the present application can also be applied to vehicle driving scenarios. When the on-board terminal receives heavy rain warning information, the heavy rain warning information includes the warning time range of the heavy rain (for example, 8:00-10:00) and the warning location range (for example, the main urban area of ​​Wuhan City). The on-board terminal estimates the planned travel time and planned travel location of the target object. For example, the planned travel time here can be the time from the current time to the planned arrival time, and the planned travel location can be the location from the current location to the planned end location. The acquisition method here can be to obtain the planned departure time and the planned starting location directly input by the user from the terminal, or to obtain them through prediction. When the on-board terminal determines that the planned travel time matches the warning time range of the target weather, and the planned travel location matches the warning location range corresponding to the warning time range, the on-board terminal displays the heavy rain warning information, which can help the vehicle stop driving in time before being affected by the heavy rain.

[0047] In some embodiments, the terminal can implement the weather warning method provided in the embodiments of the present application by running a computer program. For example, the computer program can be a native program or software module in the operating system; it can be a native application (APP, Application), that is, a program that needs to be installed in the operating system to run, such as a social APP (i.e., the above-mentioned client); it can also be a small program, that is, a program that can be run only by downloading it to a browser environment; it can also be a game applet that can be embedded in any APP. In short, the above-mentioned computer program can be an application, module or plug-in in any form.

[0048] The embodiments of the present application can be implemented with the help of cloud technology. Cloud technology refers to a hosting technology that unifies a series of resources such as hardware, software, and network within a wide area network or a local area network to achieve data calculation, storage, processing, and sharing.

[0049] Cloud technology is a general term for network technology, information technology, integration technology, management platform technology, and application technology based on the cloud computing business model. It can form a resource pool that can be used on demand and is flexible and convenient. Cloud computing technology will become an important support. The background services of the technical network system require a large amount of computing and storage resources.

[0050] As an example, the server 200 can be an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, CDN, and big data and artificial intelligence platforms. The terminal can be a smart phone, a tablet computer, a laptop computer, a desktop computer, a smart speaker, a car terminal, and a smart watch, etc., but is not limited to this. The terminal and the server 200 can be directly or indirectly connected by wired or wireless communication, which is not limited in the embodiments of the present application.

[0051] See also Figure 2 , Figure 2 1 is a schematic diagram of the structure of an electronic device for applying a weather warning method provided in an embodiment of the present application, and is described by taking the electronic device as a terminal as an example. Figure 2 The terminal 400-1 shown includes: at least one processor 410, a memory 450, at least one network interface 420 and a user interface 430. The various components in the terminal are coupled together through a bus system 440. It is understood that the bus system 440 is used to achieve connection and communication between these components. In addition to the data bus, the bus system 440 also includes a power bus, a control bus and a status signal bus. However, for the sake of clarity, the bus system 440 is not shown in FIG. Figure 2 Various buses are labeled as bus system 440 .

[0052] Processor 410 can be an integrated circuit chip with signal processing capabilities, such as a general-purpose processor, a digital signal processor (DSP), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc., where the general-purpose processor can be a microprocessor or any conventional processor, etc.

[0053] The user interface 430 includes one or more output devices 431 that enable presentation of media content, including one or more speakers and / or one or more visual display screens. The user interface 430 also includes one or more input devices 432, including user interface components that facilitate user input, such as a keyboard, mouse, microphone, touch screen display, camera, other input buttons and controls.

[0054] The memory 450 may be removable, non-removable, or a combination thereof. Exemplary hardware devices include solid-state memory, hard disk drives, optical disk drives, etc. The memory 450 may optionally include one or more storage devices that are physically remote from the processor 410.

[0055] The memory 450 includes a volatile memory or a non-volatile memory, and may also include both volatile and non-volatile memories. The non-volatile memory may be a read-only memory (ROM), and the volatile memory may be a random access memory (RAM). The memory 450 described in the embodiments of the present application is intended to include any suitable type of memory.

[0056] In some embodiments, memory 450 can store data to support various operations, examples of which include programs, modules, and data structures, or a subset or superset thereof, as exemplarily described below.

[0057] Operating system 451, including system programs for processing various basic system services and performing hardware-related tasks, such as a framework layer, a core library layer, a driver layer, etc., for implementing various basic services and processing hardware-based tasks;

[0058] A network communication module 452, used to reach other electronic devices via one or more (wired or wireless) network interfaces 420, exemplary network interfaces 420 include: Bluetooth, Wireless Compatibility Certification (WiFi), and Universal Serial Bus (USB), etc.;

[0059] a presentation module 453 for enabling presentation of information via one or more output devices 431 (e.g., display screen, speaker, etc.) associated with the user interface 430 (e.g., a user interface for operating peripherals and displaying content and information);

[0060] The input processing module 454 is used to detect one or more user inputs or interactions from one of the one or more input devices 432 and translate the detected inputs or interactions.

[0061] In some embodiments, the weather warning device provided in the embodiments of the present application can be implemented in a software manner. Figure 2 A weather warning device 455 stored in a memory 450 is shown, which may be software in the form of a program or plug-in, including the following software modules: an acquisition module 4551 and a warning module 4552. These modules are logical, and therefore may be arbitrarily combined or further split according to the functions implemented. The functions of each module will be described below.

[0062] The weather warning method provided in the embodiment of the present application will be explained in combination with the exemplary application and implementation of the terminal provided in the embodiment of the present application.

[0063] See also Figure 3A , Figure 3Ais a flow chart of the weather warning method provided in the embodiment of the present application, which will be combined with Figure 3A Step 101 is shown for explanation.

[0064] In step 101, when the planned travel time of the target object matches the warning time range of the target weather, and the planned travel location of the target object matches the warning location range corresponding to the warning time range, the warning information of the target weather is output through the terminal of the target object.

[0065] As an example, the planned travel location is the location corresponding to the planned travel time, and the warning information includes the warning time range and the warning location range of the target weather. The planned travel time here matches the warning time range of the target weather, and the planned travel location matches the warning location range corresponding to the warning time range, indicating that the planned travel time is within the warning time range and the planned travel location is within the warning location range. For example, the warning time range is from 8 am to 10 am, and the warning location range is the main urban area of ​​Wuhan, indicating that the target weather will appear in the main urban area of ​​Wuhan from 8 am to 10 am. If the predicted planned travel time is 9 am, and the predicted planned travel location is Jianghan District, since Jianghan District is within the main urban area of ​​Wuhan, 9 am is also within the warning time range, indicating that the planned travel time of the target object matches the warning time range of the target weather, and the planned travel location matches the warning location range corresponding to the warning time range. If the weather forecast is accurate, the target weather, such as heavy rain, will be encountered, so the warning information of the target weather can be output through the terminal of the target object.

[0066] As an example, the warning time range is an objective time range, that is, a certain period of time in a certain year, month and day. When judging whether the planned travel time matches the warning time range, the complete travel time is actually used for matching, that is, a certain time in a certain year, month and day.

[0067] As an example, the warning location range can be the range of the travel target weather (the geographical range where heavy rain occurs within the corresponding warning time range), or the range of subsequent impact events of the target weather (the geographical range where flooding events occur within the corresponding warning time range).

[0068] In some embodiments, see Figure 3B In step 101, the target weather warning information is output through the terminal of the target object, which can be obtained by Figure 3B Steps 1011 to 1013 are implemented as shown.

[0069] In step 1011, when the predicted probability corresponding to the predicted travel information is greater than the first probability threshold and not greater than the second probability threshold, a client message is output through the terminal, wherein the client message includes warning information.

[0070] In step 1012, when the predicted probability corresponding to the travel information is greater than the second probability threshold and not greater than the third probability threshold, a text message and a client message are output through the terminal, wherein the text message and the client message include warning information.

[0071] In step 1013, when the predicted probability corresponding to the travel information is greater than the third probability threshold, a text message, a client message and a voice call are output through the terminal, wherein the text message, the client message and the voice call include warning information.

[0072] As an example, the second probability threshold is greater than the first probability threshold and less than the third probability threshold.

[0073] As an example, when a rainstorm is about to occur, when a short-term heavy rainfall message is received, the server will infer that users who have travel intentions and whose travel routes are within the range of heavy rainfall among users who have installed the map client will not need to warn people who do not travel, and will issue a third-level warning (software push) to people who may travel, a second-level warning (software push + SMS reach) to people with a high probability of traveling, and a first-level warning (software push + SMS reach + phone reminder) to people who must travel. That is, under the premise that the warning time range and warning location range have been determined, when the target object's planned travel time matches the warning time range of the target weather, and the target object's When the planned travel location matches the warning location range of the corresponding warning time range, it can be determined that the target object will be affected by the target weather. However, it is difficult to guarantee complete accuracy for the prediction of the planned travel time and the planned travel location. Therefore, a graded warning will be performed based on the predicted probability. When the predicted probability is higher than the third probability threshold, the target object is characterized as a group of people who must travel, so a strong warning is required through multiple channels. When the predicted probability is higher than the first probability threshold and not greater than the second probability threshold, the target object is characterized as a group of people who may travel, so a weak warning is required through a single channel. Overall, the number of warning channels is positively correlated with the predicted probability. The embodiment of the present application provides a graded warning to improve the accuracy of the warning.

[0074] In some embodiments, before executing step 101, the travel time input by the target object is used as the planned travel time of the target object, and the travel location input by the target object is used as the planned travel location of the target object.

[0075] As an example, the planned travel time here may also be the time entered by the user during navigation. For example, if the navigation is for a route from Wuhan to Chengdu at 10 am tomorrow, then 10 am tomorrow is the planned travel time.

[0076] See also Figure 3CBefore executing step 101, step 102 may also be executed.

[0077] In step 102, the planned travel time and the planned travel location of the target object at the planned travel time are estimated.

[0078] As an example, the planned travel time includes at least one of the following: the planned departure time of the target object, the planned arrival time of the target object, and the planned journey time of the target object; the planned travel location includes at least one of the following: the planned starting location of the target object, the planned end location of the target object, and the planned route location of the target object.

[0079] As an example, the planned travel time is the time corresponding to the 24 hours in a day. Usually, one time slot is used to represent all specific times within one hour. The travel time is obtained, that is, the time slot used to represent the travel time is obtained. For example, time slot 7 represents the time 7.30, and for two travel records, time slot 7 of the previous day and time slot 7 of the next day will be regarded as the same time.

[0080] In some application scenarios, when the navigation function of the map APP has been activated, it indicates that the user needs to use the map APP for navigation. In response to receiving the starting point and the end point input by the user into the map APP, the starting point and the end point are used as the planned starting point and the planned end point respectively, and the time when the navigation starts is used as the planned departure time. The planned arrival time can be obtained by calculation according to the navigation route, so that based on the planned departure time and the planned arrival time, the planned journey time can be obtained, and based on the planned starting point and the planned end point, the planned route location can be obtained.

[0081] When the navigation function of the map APP is not activated, the user may also have a travel plan, so it is necessary to use prediction to determine the user's planned travel time and planned travel location.

[0082] In some embodiments, see Figure 3D In step 102, the estimated travel time and the planned travel location of the target object at the planned travel time can be obtained by Figure 3D Steps 1021 to 1022 are implemented as shown.

[0083] In step 1021 , predicted travel information of the target object is generated based on the predicted travel time of the target object and the predicted travel position of the target object.

[0084] As an example, the predicted travel time here can be the starting time of the warning time range, or the future adjacent time of the current time.

[0085] In step 1022, when the predicted probability of the predicted travel information is greater than the first probability threshold, the predicted travel time is determined as the planned travel time, and the predicted travel location is determined as the planned travel location.

[0086] As an example, the predicted travel information of the target object can be generated based on the predicted travel time and the predicted travel location. For example, the predicted travel time is the predicted departure time, the predicted departure time is 8 o'clock, the predicted travel location is the predicted starting point location, and the predicted starting point location is the current location. Then the predicted travel information is starting from the current location at 8 o'clock, and the predicted probability of the predicted travel information is the travel probability starting from the current location at 8 o'clock. When the predicted probability is higher than the first probability threshold, it represents that the target object is at least likely to depart from the current location at 8 o'clock. Therefore, the predicted starting point location is used as the planned travel location, and the predicted departure time is determined as the planned departure time.

[0087] As an example, for the above navigation route from Wuhan to Chengdu at 10 am tomorrow, since these data are all input by the user, the probability of the navigation being successful can be judged by the credibility of the user's historical operations.

[0088] The embodiments of the present application can improve the situation of lacking object data and estimate travel plans through prediction, thereby improving the intelligence level of early warning.

[0089] The following introduces the travel prediction solution under application scenario A.

[0090] In some embodiments, the planned travel time includes the planned departure time, and the planned travel location includes the planned starting location; step 102 can be implemented by the following technical solution: when the predicted probability of the target object traveling from the predicted starting location at the predicted departure time is greater than a first probability threshold, the predicted departure time is determined as the planned departure time, and the predicted starting location is determined as the planned starting location. The embodiments of the present application can cover the daily use scenarios of users, and the prediction dimensions are simplified, thereby improving the prediction efficiency.

[0091] As an example, 24 hours a day is usually divided into 24 time slots, and time slots are used to represent the time. For example, 7.30 corresponds to time slot 7, and 8.10 corresponds to time slot 8. The complexity of data processing is reduced by dividing the time slots. In application scenario A, the current location is defaulted to the predicted departure location, that is, it is defaulted that if the user has the possibility of traveling, he will also depart from the current location. Therefore, only the predicted departure time of the target object is predicted. For example, the predicted departure time is 8 o'clock (represented by time slot 8), then the predicted probability of the predicted departure time being 8 o'clock is equivalent to the predicted probability of traveling from the predicted starting point location at the predicted departure time. When the predicted probability is greater than the first probability threshold, it represents that the target object is likely to travel from the predicted starting point location at the predicted departure time. Therefore, the predicted departure time obtained by prediction can be used as the planned departure time, and the predicted departure time can be used as the planned starting point location. If the predicted probability is not greater than the first probability threshold, it represents that the target object will not travel from the predicted starting point location at the predicted departure time. Therefore, the predicted starting point location cannot become the planned starting point location, and the predicted departure time will not be regarded as the planned departure time.

[0092] In some embodiments, the predicted departure time is a future adjacent time of the current time, the predicted starting position of the target object is the current position, the object type of the target object, the future adjacent time of the target object, and the current position of the target object are obtained; the object type, the future adjacent time, and the current position are vectorized to obtain the object type vector, the future adjacent time vector, and the current position vector; the object type vector, the future adjacent time vector, and the current position vector are subjected to logistic regression processing to obtain the predicted probability of the target object traveling from the current position at the future adjacent time. Through the embodiments of the present application, intelligent travel prediction can be performed, and the departure probability at a certain predicted departure time can be effectively judged, thereby improving the accuracy of early warning.

[0093] As an example, in application scenario A, the current location is set as the predicted departure location by default, that is, if the user has the possibility of traveling, he will also depart from the current location. Assuming that the current time is 8 o'clock in the morning (represented by time slot 8), the future adjacent time slot of time slot 8 is time slot 9, then the future adjacent time of the current time can be represented by time slot 9, that is, the prediction task only needs to judge the probability of the user departing from the current location at the future adjacent time of the current time.

[0094] As an example, the above processing process can be executed by the MEMM model, so that the predicted probability of the user starting from the current position at an adjacent time in the future can be predicted, and the predicted destination can also be output at the same time as the predicted probability. However, in application scenario A, there is no need to predict the destination. The prediction code of the MEMM model is explained below.

[0095]

[0096] The following is an explanation of the training process of the MEMM model. For any travel record in the training set, the travel record includes the departure time, starting point, user type and destination. If there is a travel record representing the actual departure, the travel record is marked as 1. In addition, a non-travel record can be constructed. For example, if the user does not depart at 7 o'clock, the non-travel record includes the non-travel time, starting point and user type. The time, starting point and user type in the travel record (or non-travel record) are used as the input of the model, and forward propagation processing is performed to output the predicted probability of departure and the predicted destination. The parameters of the model are updated using the difference between the predicted probability and the predicted destination and the true value, thereby obtaining the trained model.

[0097] In some embodiments, the number of trips of the target object in a unit time and the historical destination of the target object in a unit time are obtained from the historical travel data of the target object; when the number of trips is not greater than the first number threshold, and the historical destination of any trip is a commercial area, the entertainment type is determined as the object type of the target object; when the number of trips is not greater than the first number threshold, and the historical destination of each trip is not a commercial area, the resident type is determined as the object type of the target object; when the number of trips is not greater than the first number threshold, and the historical destination of at least two trips is an education area, the education type is determined as the object type of the target object; when the number of trips is greater than the first number threshold, and the historical destination of at least two trips is an office area, the office type is determined as the object type of the target object; when the number of trips is greater than the first number threshold, and the historical destination of at most one trip is an office area, the education type is determined as the object type of the target object. Through the embodiments of the present application, users can be effectively classified, thereby improving data processing efficiency and learning common characteristics of user groups.

[0098] As an example, based on the user's travel frequency, the user's travel attributes can be preliminarily determined. For example, users with a high travel frequency may be office workers or students, and users with a low travel frequency may be residents, etc. Figure 4 , according to the travel frequency, the object attribute judgment process is obtained. When the user travels less than 3 times a week and none of the destinations are in the commercial area, the user is considered a residential user; if the travel frequency is less than 3 times but one of the destinations is in the commercial area, the user is considered an entertainment user; if the user travels 3 times or more a week and 2 of the destinations are in the office area, the user is considered an office worker, that is, an office user; if the user travels 3 times or more a week and 2 of the destinations are in the education area, the user is considered a parent or an education practitioner or a student, that is, an education user. After analyzing the travel information of all users, the results show that office users account for about 65%, education users account for 23%, entertainment users account for 9%, and residential users account for 3%.

[0099] In some embodiments, the planned travel time includes the planned departure time, the planned arrival time and the planned route time, and the planned travel location includes the planned starting location, the planned end location and the planned route location; step 101 can be implemented by the following technical solution: when the target object departs from the predicted starting location at the predicted departure time, and the predicted probability of arriving at the predicted end location at the predicted arrival time is greater than the first probability threshold, the predicted departure time is determined as the planned departure time, the predicted arrival time is determined as the planned arrival time, the predicted starting location is determined as the planned starting location, and the predicted end location is determined as the planned end location.

[0100] As an example, for any planned travel time that matches the warning time range, the planned travel position of the target object at any planned travel time matches the warning position range of the corresponding warning time range. For example, for planned travel time A, A is within the warning time range of 7 to 9 o'clock, and the planned travel position of the target object at planned travel time A is within the warning position range corresponding to the warning time range of 7 to 9 o'clock; the warning position range is the position range where the target weather appears within the warning time range, or the warning position range is the position range of subsequent impact events of the target weather appearing within the warning time range. The warning range here can be the range where the target weather appears in real time, or it can be the range where subsequent impact events will occur, such as flooding, road icing, etc.

[0101] As an example, in application scenario B, it is not only necessary to determine whether to travel, but also to distinguish the planned destination location, that is, it is necessary to obtain a more specific predicted probability, that is, the predicted probability corresponding to a specific travel event. Usually, 1 day and 24 hours are divided into 24 time slots, and time slots are used to represent the time. For example, 7.30 corresponds to time slot 7, and 8.10 corresponds to time slot 8. The complexity of data processing is reduced by dividing the time slots. In application scenario B, the current location is set as the predicted departure location by default, that is, if the user has the possibility of traveling, it is assumed that the user will also start from the current location. Therefore, the focus needs to be on obtaining the predicted departure time and predicted destination location of the target object. For example, if you want to determine whether the user will travel at 8 o'clock The predicted departure time is 8 o'clock (characterized by time slot 8), and the predicted alternative candidate destination locations are schools and other locations. The predicted probability of departing from the current location at 8 o'clock to arrive at each candidate destination at the predicted arrival time is predicted. The predicted arrival time here can be estimated by the route, and the candidate destination (school) corresponding to the maximum predicted probability is used as the predicted destination location. When the predicted probability is greater than the first probability threshold, it represents that the target object may leave for school at 8 o'clock, then the predicted departure time is determined as the planned departure time, the predicted starting point location is determined as the planned starting point location, and the predicted destination location (school) can be used as the planned destination location, thereby also determining the predicted arrival time as the planned arrival time.

[0102] In some embodiments, the predicted departure time is pre-set. Usually, the predicted departure time is the time when the user is expected to travel. In specific implementation, the starting time of the warning time range is used as the predicted departure time, or the future adjacent time of the current time is used as the predicted departure time, and the conditional probability between the predicted departure time of the target object and each candidate terminal is obtained; the prior probability of each candidate terminal is obtained; based on the prior probability of each candidate terminal and the conditional probability of each candidate terminal, the posterior probability of each candidate terminal is determined; the candidate terminal with the largest posterior probability is used as the predicted terminal position, and the posterior probability corresponding to the predicted terminal position is used as the predicted probability. Through the embodiments of the present application, intelligent travel prediction can be performed, and the travel probability of departing and arriving at a certain terminal at a certain predicted departure time can be effectively determined, thereby improving the accuracy of warning.

[0103] As an example, the conditional probability between the departure time slot (representing the predicted departure time) and the destination (candidate destination) is calculated. For example, for the predicted departure time slot of 8, the conditional probabilities of the destination being a residential area, the destination being an educational area, the destination being an office area, the destination being a commercial area, and the destination being other can be calculated. Then, based on the data in the training set, the prior probability of each destination is calculated. The proportion of the destination being a residential area, the proportion of the destination being an educational area, the proportion of the destination being an office area, and the proportion of the destination being a commercial area in all travel records can be calculated. Then, based on the conditional probability and the prior probability, the posterior probability of each destination corresponding to the departure time slot is calculated using the Bayesian formula.

[0104] In some embodiments, the above-mentioned acquisition of the prior probability of each candidate endpoint can be achieved through the following technical solution: obtaining the historical travel records of the target object from the training data set, and obtaining a second number of historical travel records; for each candidate endpoint, determining the first number of historical travel records including the candidate endpoint, and using the ratio of the first number to the second number as the prior probability of the candidate endpoint.

[0105] As an example, based on the data in the training set, the prior probability of each destination is calculated, and the proportion of all travel records with the destination in residential areas, the proportion of the destination in educational areas, the proportion of the destination in office areas, and the proportion of the destination in commercial areas can be calculated.

[0106] In some embodiments, the predicted departure time is a future adjacent time of the current time. The above-mentioned conditional probability between the predicted departure time of the target object and each candidate destination can be achieved by the following technical solution: the following processing is performed for each candidate destination: historical travel records including the candidate destination are obtained from the training data set to form a first travel record set; the target travel records of future adjacent times included in the first travel record set are counted; the ratio of the number of target travel records to the historical travel records in the first travel record set is used as the conditional probability of the future adjacent time corresponding to the candidate destination.

[0107] As an example, the travel records in the training set need to be classified according to the destination to obtain a set of travel records for each destination. For each set of travel records for the destination, the conditional probability between the departure time slot and the destination needs to be calculated. The travel records with 8 adjacent moments in the future are obtained from the training set, and the conditional probabilities of the destination being the residential area, the destination being the educational area, the destination being the office area, the destination being the commercial area, and the destination being other can be calculated. The specific calculation method can be found in the following code:

[0108] For each destination, calculate the conditional probability between the departure time slot and the destination

[0109]

[0110]

[0111] Through the embodiments of the present application, the user's planned travel time and planned travel location are obtained, so that it can be determined whether the user's planned travel time and planned travel location match the weather warning time range and warning location range, and thus whether the user's travel will be affected by the target weather. If it matches, it means that the user's travel will be affected by the target weather. Therefore, the warning information of the target weather is output on the user's terminal, thereby realizing weather warnings in a targeted manner, improving the utilization rate of push resources and not disturbing other users.

[0112] The following is an explanation of an exemplary application of the embodiments of the present application in a practical application scenario.

[0113] When the server receives the rainstorm warning information, the rainstorm warning information includes the warning time range of the rainstorm (for example, 8:00-10:00) and the warning location range (for example, the main urban area of ​​Wuhan City). The server obtains the planned travel time and the planned travel location of the target object using the terminal. For example, the planned travel time here can be the planned departure time, and the planned travel location can be the planned starting point location. The acquisition method here can be to obtain the planned departure time and the planned starting point location directly input by the user from the terminal (or obtain them by prediction). The planned departure time and the planned starting point location here can also default to the current time and current location of the target object. When the server determines that the planned travel time matches the warning time range of the target weather, and the planned travel location matches the warning location range of the corresponding warning time range, refer to Figure 5 , the server sends the rainstorm warning information to the terminal for display.

[0114] The embodiment of the present application proposes a method for predicting the probability of crowd travel based on the maximum entropy Markov model, which combines the rainstorm warning of the mobile phone map with the travel prediction of the high-probability travel crowd, and establishes a targeted warning model for the travel crowds with different probabilities by classifying and simulating the characteristics of the high-probability travel crowd, effectively improving the accuracy of the crowd in the rainstorm warning, thereby helping to improve the safety of the public. The establishment of this model can help the government to more accurately warn the travel crowds with different probabilities, so that in the case of heavy rain, the government can better control the population flow and avoid casualties. At the same time, it can also provide valuable reference for the establishment of future travel prediction models, which helps to better meet the travel needs of the public.

[0115] At present, map software will collect information about weather changes in cities or regions in a timely manner and send it to users in the area through push notifications. The processing of this type of information is also based on the user's current and historical locations to determine whether the current user is within the audience range of this weather change, and to decide whether to send this message to the user's client. Although related technologies have basic predictions for the user's travel probability at different times, they have not yet established a correlation between the user's travel probability and extreme weather and conducted targeted warnings.

[0116] With the frequent occurrence of extreme weather today, urban flooding caused by heavy rain is not uncommon, posing a great threat to people’s travel safety. However, the current travel use of users has not yet established an association between the user’s travel probability and extreme weather, nor has the dynamic information of points of interest been associated with regional precipitation in heavy rain weather. How to accurately hit the crowds that will travel in heavy rain weather and send warnings in time, so as to minimize the accidental damage that heavy rain disasters may cause to the traveling public, is a topic worthy of study in the map industry. In order to improve the accuracy of the targeted warning model, the maximum entropy Markov model (MEMM) will be used in the embodiment of the present application to predict the travel probability. This model allows the state transition probability to depend on non-independent features in the sequence, thereby introducing contextual information into the learning and recognition process of the model, thereby improving the recognition accuracy.

[0117] The embodiments of the present application can effectively improve the accuracy of the population in the rainstorm warning, thereby helping to improve the safety of the public. The establishment of a targeted warning model can help the government to more accurately warn people with different probabilities of traveling, so that in the case of heavy rain, the government can better control population mobility and avoid casualties. In addition, it can also provide valuable references for the establishment of future travel prediction models, which helps to better meet the travel needs of the public.

[0118] When heavy rain is about to occur, when the map client receives information about short-term heavy rainfall, the server will infer that users who have installed the map client have travel intentions and whose travel routes are within the range of heavy rainfall. There is no need for warning for people who are not traveling, but a third-level warning (software push) is given to people who may travel, a second-level warning (software push + SMS reach) is given to people with a high probability of traveling, and a first-level warning (software push + SMS reach + phone reminder) is given to people who must travel.

[0119] The following describes the implementation process of the above warning.

[0120] User travel data includes the user's starting point, end point, time and other information. According to the user's navigation end point data, the end point is divided into five categories: residential area, educational area, office area, commercial area, and others. The data is then divided into training sets and test sets. The 4 weeks of original travel data are divided into 4 groups by week. Each time, 3 weeks of data are used as training sets to train the model, and the remaining 1 week of data is used as a test set to evaluate the model's prediction accuracy.

[0121] For each training set, each sample data in the training set includes the user's travel time, starting point and destination. The feature function is designed according to the data characteristics, and these feature functions are used to convert the data into feature vectors, and the MEMM model is established. For each test set, the MEMM model is used to predict travel and obtain the travel probability P. The accuracy index is mainly used to evaluate the performance of the model. The cross-prediction travel is performed 10 times to determine the accuracy of the model.

[0122] When P is less than 40%, it is considered that this type of people will not travel, people with P between 40%-60% are considered to be people who may travel, people with P between 60%-80% are considered to be people with a high probability of travel, and people with P exceeding 80% are considered to be people who must travel.

[0123] The following is the data preprocessing process.

[0124] After desensitizing the travel data, the data is formatted, mainly including user-related attributes, route planning and actual navigation related data. User-related attributes include whether to set common locations such as home and company, favorite POIs and routes, etc.; route planning data mainly includes the information of the starting and end POIs, the time of initiating route planning, the duration of route planning, etc.; actual navigation related data mainly includes the time of initiating navigation, the way of using navigation (walking, cycling, bus subway, driving and taxi), the actual arrival time, and dynamic factors in the trip.

[0125] The object attribute classification process is introduced below.

[0126] Based on the user's travel frequency, the user's travel attributes can be preliminarily determined. For example, users with a high travel frequency may be office workers or students, and users with a low travel frequency may be residents, etc. Figure 4 , according to the travel frequency, the object attribute judgment process is obtained. When the user travels less than 3 times a week and none of the destinations are in the commercial area, the user is considered a residential user; if the travel frequency is less than 3 times but one of the destinations is in the commercial area, the user is considered an entertainment user; if the user travels 3 times or more a week and 2 of the destinations are in the office area, the user is considered an office worker, that is, an office user; if the user travels 3 times or more a week and 2 of the destinations are in the education area, the user is considered a parent or an education practitioner or a student, that is, an education user. After analyzing the travel information of all users, the results show that office users account for about 65%, education users account for 23%, entertainment users account for 9%, and residential users account for 3%.

[0127] The following is the process of establishing a MEMM model: 1) Data preprocessing: Clean and convert the data of the user's travel time, starting point, and end point, divide the travel time into time slots, and classify the starting point and end point into five categories: residential area, education area, office area, commercial area, and others. According to the user travel data, the users are divided into office users, education users, entertainment users, and residential users. 2) Feature extraction: Extract features related to the prediction target from the data, such as the departure time slot, the category of the starting point and end point, the user type, etc. in the historical travel records. 3) Model training: Use the labeled data set to train the MEMM model to learn the relationship between the features and the prediction target. 4) Model prediction: Use the trained MEMM model to predict the new user data to obtain the probability of the user's departure in the next time slot and the destination.

[0128] The following is a sample code of the Python-based MEMM model, which is used to predict the departure probability and destination of the user's next time slot.

[0129] Data preprocessing:

[0130]

[0131]

[0132] Feature extraction:

[0133]

[0134] Model training:

[0135]

[0136]

[0137] Model predictions:

[0138]

[0139] In another embodiment, the end point may be calculated by means of probability distribution.

[0140] First, the departure time and end time of each user's travel record are converted into time slots. A day is divided into 24 time slots. The travel record with a departure time of 8:30 and an end time of 10:15 can be converted into a time slot sequence [8,9,10]. Based on the data in the training set, the transition probability between each time slot and each end point is calculated. For example, for a travel record with a departure time slot of 8, the probability that its end point is a residential area can be calculated. For example, the probability that a user in a residential area departs at time slot 1 can be calculated. For example, the probability that a travel record ending at time slot 3 ends at an education area can be calculated.

[0141] It is necessary to classify the travel records in the training set according to the destination to obtain the travel record set for each destination. For the travel record set of each destination, it is necessary to calculate the conditional probability between the departure time slot and the destination. For each departure time slot, it is necessary to count the number of travel records with the destination as the destination in this time slot, and then divide it by the total number of travel records for this destination to obtain the probability of the destination as the destination in this time slot. For each destination, its prior probability needs to be calculated. Specifically, it is necessary to count the number of travel records for the destination, and then divide it by the total number of all travel records to obtain the prior probability of the destination.

[0142] For each travel record in the test set, the conditional probability between its departure time slot and the destination is calculated. For example, for a travel record with a departure time slot of 8, the probability of its destination being a residential area, an educational area, an office area, a commercial area, and other destinations can be calculated. Then, based on the data in the training set, the prior probability of each destination is calculated. The proportion of all travel records with residential destinations, educational destinations, office districts, and commercial districts can be calculated. For each travel record in the test set, the conditional probability between its departure time slot and each destination needs to be calculated, and then the posterior probability of the travel record belonging to each destination is calculated based on the Bayesian formula.

[0143] Finally, the most likely destination of the travel record can be obtained based on the posterior probability.

[0144] The following is an example of the prediction code for the endpoint:

[0145]

[0146]

[0147] Although each type of user has similar trips, the trips between individuals vary greatly, so a trip model is trained for each user separately.

[0148] When P is less than 40%, it is considered that this type of people will not travel, people with P between 40%-60% are considered to be likely to travel, people with P between 60%-80% are considered to be high probability to travel, and people with P over 80% are considered to be bound to travel. When heavy rain is about to occur, there is no need for early warning for people who will not travel, but a third-level early warning (software push) will be given to people who may travel, a second-level early warning (software push + SMS reach) will be given to people who are likely to travel, and a first-level early warning (software push + SMS reach + phone reminder) will be given to people who must travel.

[0149] The embodiment of the present application proposes a crowd travel probability prediction method based on the maximum entropy Markov model, which combines the rainstorm warning of the mobile phone map with the travel prediction of the high probability travel crowd, and establishes a targeted warning model for the travel crowds with different probabilities by classifying and simulating the characteristics of the high probability travel crowd, effectively improving the accuracy of the crowd in the rainstorm warning, thereby helping to improve the safety of the public. The establishment of this model can help the government to more accurately warn the travel crowds with different probabilities, so that in the case of heavy rain, the government can better control the population flow and avoid casualties. At the same time, it can also provide valuable reference for the establishment of future travel prediction models, which helps to better meet the travel needs of the public.

[0150] It is understandable that in the embodiments of the present application, related data such as user information is involved. When the embodiments of the present application are applied to specific products or technologies, user permission or consent is required, and the collection, use and processing of relevant data need to comply with relevant laws, regulations and standards of relevant countries and regions.

[0151] The following is a description of an exemplary structure of the weather warning device 455 provided in the embodiment of the present application implemented as a software module. In some embodiments, Figure 2 As shown, the software modules stored in the weather warning device 455 of the memory 450 may include: a warning module 4551, which is used to output the warning information of the target weather through the terminal of the target object when the planned travel time of the target object matches the warning time range of the target weather, and the planned travel location of the target object matches the warning location range corresponding to the warning time range; wherein the warning information includes the warning time range and the warning location range of the target weather.

[0152] In some embodiments, the device also includes an acquisition module 4552, which is used to: generate predicted travel information of the target object based on the predicted travel time of the target object and the predicted travel location of the target object; when the predicted probability of the predicted travel information is greater than a first probability threshold, determine the predicted travel time as the planned travel time, and determine the predicted travel location as the planned travel location.

[0153] In some embodiments, the early warning module 4551 is also used to: when the predicted probability corresponding to the predicted travel information is greater than the first probability threshold and not greater than the second probability threshold, output a client message through the terminal, wherein the client message includes the early warning information; when the predicted probability corresponding to the travel information is greater than the second probability threshold and not greater than the third probability threshold, output a text message and the client message through the terminal, wherein the text message and the client message include the early warning information; when the predicted probability corresponding to the travel information is greater than the third probability threshold, output the text message, the client message and the voice call through the terminal, wherein the text message, the client message and the voice call include the early warning information; wherein the second probability threshold is greater than the first probability threshold and less than the third probability threshold.

[0154] In some embodiments, the planned travel time includes at least one of the following: the planned departure time of the target object, the planned arrival time of the target object, and the planned journey time of the target object; the planned travel location includes at least one of the following: the planned starting location of the target object, the planned end location of the target object, and the planned route location of the target object.

[0155] In some embodiments, the planned travel time includes a planned departure time, and the planned travel location includes a planned starting location; the acquisition module 4552 is also used to: when the predicted probability of the target object traveling from the predicted starting location at the predicted departure time is greater than a first probability threshold, determine the predicted departure time as the planned departure time, and determine the predicted starting location as the planned starting location.

[0156] In some embodiments, the predicted departure time is the current time, the predicted starting position of the target object is the current position, and the acquisition module 4552 is further used to: obtain the object type of the target object, the current time of the target object, and the current position of the target object; vectorize the object type, the current time, and the current position to obtain an object type vector, a current time vector, and a current position vector; perform logistic regression processing on the object type vector, the current time vector, and the current position vector to obtain the predicted probability of the target object traveling from the current position at the current time.

[0157] In some embodiments, the acquisition module 4552 is also used to: acquire the number of trips of the target object in a unit time and the historical destination of the target object in the unit time from the historical travel data of the target object; when the number of trips is not greater than the first number threshold, and the historical destination of any trip is a commercial area, the entertainment type is determined as the object type of the target object; when the number of trips is not greater than the first number threshold, and the historical destination of each trip is not a commercial area, the residential type is determined as the object type of the target object; when the number of trips is not greater than the first number threshold, and the historical destination of at least two trips is an education area, the education type is determined as the object type of the target object; when the number of trips is greater than the first number threshold, and the historical destination of at least two trips is an office area, the office type is determined as the object type of the target object; when the number of trips is greater than the first number threshold, and the historical destination of at most one trip is an office area, the education type is determined as the object type of the target object.

[0158] In some embodiments, the planned travel time includes a planned departure time, a planned arrival time and a planned journey time, and the planned travel position includes a planned starting position, a planned end position and a planned route position; the acquisition module 4552 is also used for: when the target object departs from the predicted starting position at the predicted departure time and the predicted probability of arriving at the predicted end position at the predicted arrival time is greater than a first probability threshold, the predicted departure time is determined as the planned departure time, the predicted arrival time is determined as the planned arrival time, the predicted starting position is determined as the planned starting position, and the predicted end position is determined as the planned end position; wherein, for any planned travel time that matches the warning time range, the planned travel position of the target object at any of the planned travel times matches the warning position range corresponding to the warning time range.

[0159] In some embodiments, the predicted departure time is pre-set, and the acquisition module 4552 is also used to: obtain the conditional probability between the predicted departure time of the target object and each candidate endpoint; obtain the prior probability of each candidate endpoint; determine the posterior probability of each candidate endpoint based on the prior probability of each candidate endpoint and the conditional probability of each candidate endpoint; take the candidate endpoint with the largest posterior probability as the predicted endpoint position, and take the posterior probability corresponding to the predicted endpoint position as the predicted probability.

[0160] In some embodiments, the acquisition module 4552 is also used to: obtain the historical travel records of the target object from the training data set, and obtain a second number of the historical travel records; for each of the candidate destinations, determine the first number of historical travel records including the candidate destination, and use the ratio of the first number to the second number as the prior probability of the candidate destination.

[0161] In some embodiments, the predicted departure time is the current time, and the acquisition module 4552 is further used to: perform the following processing for each of the candidate destinations: obtain historical travel records including the candidate destinations from the training data set to form a first travel record set; count the target travel records including the current time in the first travel record set; and use the ratio of the number of the target travel records to the historical travel records in the first travel record set as the conditional probability that the current time corresponds to the candidate destination.

[0162] The embodiment of the present application provides a computer program product, which includes computer executable instructions, and the computer executable instructions are stored in a computer readable storage medium. The processor of the electronic device reads the computer executable instructions from the computer readable storage medium, and the processor executes the computer executable instructions, so that the electronic device executes the weather warning method described in the embodiment of the present application.

[0163] The present application embodiment provides a computer-readable storage medium storing computer-executable instructions, wherein the computer-executable instructions are stored. When the computer-executable instructions are executed by a processor, the processor will be caused to execute the weather warning method provided by the present application embodiment, for example, Figure 3A-3D The weather warning method is shown.

[0164] In some embodiments, the computer-readable storage medium may be a memory such as FRAM, ROM, PROM, EPROM, EEPROM, flash memory, magnetic surface storage, optical disk, or CD-ROM; or it may be various devices including one or any combination of the above memories.

[0165] In some embodiments, computer executable instructions may be in the form of a program, software, software module, script or code, written in any form of programming language (including compiled or interpreted languages, or declarative or procedural languages), and may be deployed in any form, including as a stand-alone program or as a module, component, subroutine or other unit suitable for use in a computing environment.

[0166] As an example, computer-executable instructions may, but need not, correspond to a file in a file system, may be stored as part of a file storing other programs or data, such as in one or more scripts in a HyperText Markup Language (HTML) document, in a single file dedicated to the program in question, or in multiple coordinated files (e.g., files storing one or more modules, subroutines, or code portions).

[0167] As an example, computer executable instructions may be deployed to be executed on one electronic device, or on multiple electronic devices located at one site, or on multiple electronic devices distributed at multiple sites and interconnected by a communication network.

[0168] To summarize, through the embodiments of the present application, the user's planned travel time and planned travel location are obtained, so that it can be determined whether the user's planned travel time and planned travel location match the weather warning time range and warning location range, and thus whether the user's travel will be affected by the target weather. If the match indicates that the user's travel will be affected by the target weather, the warning information of the target weather is output on the user's terminal, thereby implementing weather warnings in a targeted manner, improving the utilization rate of push resources and not disturbing other users.

[0169] The above is only an embodiment of the present application and is not intended to limit the protection scope of the present application. Any modifications, equivalent substitutions and improvements made within the spirit and scope of the present application are included in the protection scope of the present application.

Claims

1. A weather warning method, characterized in that: The method comprises: When the planned travel time of the target object matches the warning time range of the target weather, and the planned travel location of the target object matches the warning location range corresponding to the warning time range, the warning information of the target weather is output through the terminal of the target object; The planned travel location is a location corresponding to the planned travel time, and the warning information includes a warning time range and a warning location range of the target weather.

2. The method according to claim 1, characterized in that Before outputting the warning information of the target weather through the terminal of the target object, the method further includes: Using the travel time input by the target object as the planned travel time of the target object, and using the travel location input by the target object as the planned travel location of the target object; or The planned travel time and the planned travel location of the target object at the planned travel time are estimated.

3. The method according to claim 2, characterized in that The estimating the planned travel time of the target object and the planned travel location at the planned travel time includes: Generate predicted travel information of the target object based on the predicted travel time of the target object and the predicted travel location of the target object; When the predicted probability of the predicted travel information is greater than a first probability threshold, the predicted travel time is determined as the planned travel time, and the predicted travel location is determined as the planned travel location.

4. The method according to claim 3, characterized in that The terminal of the target object outputs the warning information of the target weather, including: When the predicted probability corresponding to the predicted travel information is greater than the first probability threshold and not greater than the second probability threshold, outputting a client message through the terminal, wherein the client message includes the warning information; When the predicted probability corresponding to the travel information is greater than the second probability threshold and not greater than the third probability threshold, outputting a text message and the client message through the terminal, wherein the text message and the client message include the warning information; When the predicted probability corresponding to the travel information is greater than the third probability threshold, outputting the text message, the client message and the voice call through the terminal, wherein the text message, the client message and the voice call include the warning information; The second probability threshold is greater than the first probability threshold and less than the third probability threshold.

5. The method according to claim 2, characterized in that: The planned travel time includes the planned departure time, and the planned travel location includes the planned starting point location; The estimating the planned travel time of the target object and the planned travel location at the planned travel time includes: When the predicted probability of the target object traveling from the predicted starting point at the predicted departure time is greater than a first probability threshold, the predicted departure time is determined as the planned departure time, and the predicted starting point is determined as the planned starting point.

6. The method according to claim 5, characterized in that The predicted departure time is a future adjacent time of the current time, the predicted starting position of the target object is the current position, and the method further includes: Acquire the object type of the target object, the future adjacent time of the target object, and the current position of the target object; Performing vector processing on the object type, the future adjacent time, and the current position to obtain an object type vector, a current time vector, and a current position vector; Logistic regression processing is performed on the object type vector, the future adjacent time vector, and the current position vector to obtain a predicted probability of the target object traveling from the current position at the future adjacent time.

7. The method according to claim 6, characterized in that The method further comprises: Acquire the number of trips of the target object within a unit time and the historical destination of the target object within the unit time from the historical travel data of the target object; When the number of trips is not greater than the first number threshold, and the historical destination of any trip is a commercial area, entertainment type is determined as the object type of the target object; When the number of trips is not greater than the first number threshold, and the historical destination of each trip is not a commercial area, the resident type is determined as the object type of the target object; When the number of trips is not greater than the first number threshold, and the historical destinations of at least two trips are education areas, determining the education type as the object type of the target object; When the number of trips is greater than the first number threshold, and the historical destinations of at least two trips are office areas, office type is determined as the object type of the target object; When the number of trips is greater than the first number threshold, and the historical destination of at most one trip is the office area, the education type is determined as the object type of the target object.

8. The method according to claim 2, characterized in that: The planned travel time includes the time between the planned departure time and the planned arrival time, and the planned travel location includes the location between the planned starting location and the planned end location; The estimating the planned travel time of the target object and the planned travel location at the planned travel time includes: When the predicted probability that the target object departs from the predicted starting point position at the predicted departure time and arrives at the predicted end point position at the predicted arrival time is greater than a first probability threshold, the predicted departure time is determined as the planned departure time, the predicted arrival time is determined as the planned arrival time, the predicted starting point position is determined as the planned starting point position, and the predicted end point position is determined as the planned end point position.

9. The method according to claim 8, characterized in that For any planned travel time that matches the warning time range, the planned travel location of the target object at any of the planned travel time matches the warning location range corresponding to the warning time range; Among them, the warning location range is the location range where the target weather occurs within the warning time range, or the warning location range is the location range of subsequent impact events of the target weather occurring within the warning time range.

10. The method according to claim 8, characterized in that The method further comprises: Obtaining the conditional probability between the predicted departure time of the target object and each candidate destination; Obtaining a priori probability of each of the candidate endpoints; Determining the posterior probability of each of the candidate endpoints based on the prior probability of each of the candidate endpoints and the conditional probability of each of the candidate endpoints; The candidate endpoint with the largest posterior probability is used as the predicted endpoint position, and the posterior probability corresponding to the predicted endpoint position is used as the predicted probability.

11. The method according to claim 10, characterized in that The obtaining of the prior probability of each candidate endpoint includes: Acquire historical travel records of the target object from the training data set, and acquire a second number of the historical travel records; For each of the candidate endpoints, a first number of historical travel records including the candidate endpoint is determined, and a ratio of the first number to the second number is used as a priori probability of the candidate endpoint.

12. The method according to claim 10, characterized in that The predicted departure time is a future adjacent time of the current time, and obtaining the conditional probability between the predicted departure time of the target object and each candidate destination includes: The following processing is performed for each candidate endpoint: Acquire historical travel records including the candidate destination from the training data set to form a first travel record set; Counting the target travel record at the current moment included in the first travel record set; The ratio of the number of the target travel records to the historical travel records in the first travel record set is used as the conditional probability that the current moment corresponds to the candidate destination.

13. The method according to claim 1, characterized in that The planned travel time includes at least one of the following: The planned departure time of the target object, the planned arrival time of the target object, and the planned en route time of the target object; The planned travel location includes at least one of the following: The planned starting point position of the target object, the planned end point position of the target object, and the planned path position of the target object.

14. A weather warning device, characterized in that: The device comprises: An early warning module, configured to output early warning information of the target weather through a terminal of the target object when the planned travel time of the target object matches the early warning time range of the target weather and the planned travel location of the target object matches the early warning location range corresponding to the early warning time range; The warning information includes the warning time range and warning location range of the target weather.

15. An electronic device, characterized in that: The electronic device comprises: A memory for storing computer executable instructions; A processor, used to implement the weather warning method described in any one of claims 1 to 13 when executing the computer executable instructions stored in the memory.

16. A computer-readable storage medium storing computer-executable instructions, characterized in that: When the computer executable instructions are executed by a processor, the weather warning method according to any one of claims 1 to 13 is implemented.

17. A computer program product comprising computer executable instructions, characterized in that: When the computer executable instructions are executed by a processor, the weather warning method according to any one of claims 1 to 13 is implemented.