Scene recognition method and device, mobile terminal, server and storage medium
By enabling the crowdsourcing acquisition function on the mobile terminal, using the positioning function to obtain location information and cell identification, and building a scene database to the server, solving the problem of high cost and difficulty of data acquisition in mobile terminal scene recognition, real-time update and accuracy of data are achieved.
Patent Information
- Application Number
- CN202510538833.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-04-27
- Publication Date
- 2025-08-01
AI Technical Summary
In the prior art, mobile terminal scene recognition requires manual collection and labeling of location information, resulting in high cost and difficulty in data acquisition, and data update is not real-time.
By enabling the crowdsourcing collection function on the mobile terminal, using the positioning function to obtain location information and cell identification, building a scene database from the server, and realizing data collection based on crowdsourcing.
It reduces the cost and difficulty of data acquisition, improves the accuracy and real-timeness of data, and ensures the comprehensiveness and coverage of data.
Smart Images

Figure CN120416759A_ABST
Abstract
Description
Technical Field
[0001] Embodiments of the present application relate to the field of communication technologies, and particularly to a method and apparatus for scene recognition, a mobile terminal, a server, and a storage medium. Background Art
[0002] With the development of the intelligence of mobile terminals, it is particularly important to accurately identify the current scene where the mobile terminal is located; for example, after identifying the current scene where the mobile terminal is located, the communication quality of the mobile terminal can be optimized based on the current scene where the mobile terminal is located.
[0003] In the related art, before determining the scene of the mobile terminal, it is necessary to manually collect and label the location information of multiple places; when the mobile terminal determines the current scene, the mobile terminal determines the current place where the mobile terminal is located based on the current location and the location information of multiple places, and then determines the current scene where the mobile terminal is located based on the current place where the mobile terminal is located. Summary of the Invention
[0004] Embodiments of the present application provide a method and apparatus for scene recognition, a mobile terminal, a server, and a storage medium. The technical solutions are as follows:
[0005] On the one hand, embodiments of the present application provide a method for scene recognition, which is applied to a mobile terminal and includes:
[0006] When using the positioning function, locate the current first location information of the mobile terminal based on the positioning function;
[0007] In the case where the mobile terminal enables the crowdsourcing collection function, obtain the cell identifier of the first cell, where the first cell is the cell covered by the first location information;
[0008] Send a reporting request to the server, where the reporting request carries the first location information and the cell identifier of the first cell, so that the server constructs a scene database based on the first location information and the cell identifier of the first cell, and the scene database is used to provide a scene recognition function.
[0009] On the other hand, embodiments of the present application provide a method for scene recognition, which is applied to a server and includes:
[0010] Receive a reporting request sent by at least one mobile terminal, where the reporting request sent by the mobile terminal carries the current first location information of the mobile terminal and the cell identifier of the first cell covered by the first location information, and the reporting request is sent in the case where the mobile terminal enables the crowdsourcing collection function, and the first location information is obtained when the mobile terminal uses the positioning function;
[0011] Based on the reporting requests sent by the at least one mobile terminal and the correspondence between the location information and venue information of multiple venues stored, a scenario database is constructed, and the scenario database is used to provide a scenario recognition function.
[0012] On the other hand, an embodiment of the present application provides a scenario recognition device, which is deployed in a mobile terminal, and the device includes:
[0013] A positioning module, configured to, when using the positioning function, locate the current first location information of the mobile terminal based on the positioning function;
[0014] A first acquisition module, configured to, when the mobile terminal enables the crowdsourcing collection function, acquire the cell identifier of the first cell, where the first cell is the cell covered by the first location information;
[0015] A first sending module, configured to send a reporting request to the server, where the reporting request carries the first location information and the cell identifier of the first cell, so that the server constructs a scenario database based on the first location information and the cell identifier of the first cell, and the scenario database is used to provide a scenario recognition function.
[0016] On the other hand, an embodiment of the present application provides a scenario recognition device, which is deployed in a server, and the device includes:
[0017] A third receiving module, configured to receive reporting requests sent by at least one mobile terminal, where the reporting requests sent by the mobile terminal carry the current first location information of the mobile terminal and the cell identifier of the first cell covered by the first location information, and the reporting requests are sent when the mobile terminal enables the crowdsourcing collection function, and the first location information is obtained when the mobile terminal uses the positioning function;
[0018] A construction module, configured to construct a scenario database based on the reporting requests sent by the at least one mobile terminal and the correspondence between the location information and venue information of multiple venues stored, and the scenario database is used to provide a scenario recognition function.
[0019] On the other hand, an embodiment of the present application provides a mobile terminal, which includes a processor and a memory, and at least one computer instruction is stored in the memory, and the at least one computer instruction is loaded and executed by the processor to implement the scenario recognition method as described in the above aspect.
[0020] On the other hand, an embodiment of the present application provides a server, which includes a processor and a memory. At least one computer instruction is stored in the memory, and the at least one computer instruction is loaded and executed by the processor to implement the scene recognition method as described in the above aspect.
[0021] On the other hand, an embodiment of the present application provides a computer-readable storage medium, which stores at least one computer instruction, and the at least one computer instruction is used to be executed by a processor to implement the scene recognition method as described in the above aspect.
[0022] On the other hand, an embodiment of the present application provides a computer program product, which includes computer instructions. The computer instructions are stored in a computer-readable storage medium; a processor reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions to implement the scene recognition method as described in the above aspect.
[0023] In an embodiment of the present application, when a mobile terminal uses a positioning function and the mobile terminal enables the crowdsourcing collection function, the mobile terminal reports the first location information obtained by positioning and the cell identifier of the first cell covered by the first location information to the server, so that the server obtains the data required by the scene database; since each mobile terminal that enables the crowdsourcing collection function will report the data required to build the scene database to the server through this solution; therefore, the embodiment of the present application can implement the collection of the data required by the scene database based on the crowdsourcing method, and reduces the data collection cost and difficulty compared with the process of manually collecting data. BRIEF DESCRIPTION OF THE DRAWINGS
[0024] Figure 1 is a schematic diagram of an implementation environment of a scene recognition method shown in an exemplary embodiment of the present application;
[0025] Figure 2 is a flowchart of a scene recognition method shown in an exemplary embodiment of the present application;
[0026] Figure 3 is a flowchart of a scene recognition method shown in an exemplary embodiment of the present application;
[0027] Figure 4 is a flowchart of a scene recognition method shown in an exemplary embodiment of the present application;
[0028] Figure 5 is a flowchart of a scene recognition method shown in an exemplary embodiment of the present application;
[0029] Figure 6 is a flowchart of a scene recognition method shown in an exemplary embodiment of the present application;
[0030] Figure 7 is a structural block diagram of a scene recognition device shown in an exemplary embodiment of the present application;
[0031] Figure 8 is a structural block diagram of a scene recognition device shown in an exemplary embodiment of the present application;
[0032] Figure 9 is a structural block diagram of a mobile terminal shown in an exemplary embodiment of the present application;
[0033] Figure 10 is a structural block diagram of a server shown in an exemplary embodiment of the present application. Detailed implementation manners
[0034] To make the objectives, technical solutions, and advantages of the present application clearer, the following will further describe the embodiments of the present application in detail with reference to the accompanying drawings.
[0035] As used herein, "a plurality of" means two or more. "And / or" describes the association relationship of associated objects, indicating that there can be three relationships. For example, A and / or B can represent: A exists alone, A and B exist simultaneously, and B exists alone. The character " / " generally represents an "or" relationship between the associated objects before and after.
[0036] It should be noted that the information (including but not limited to user device information, user personal information, etc.), data (including but not limited to data for analysis, stored data, displayed data, etc.), and signals involved in the present application are all authorized by the user or fully authorized by all parties, and the collection, use, and processing of relevant data need to comply with the relevant laws, regulations, and standards of relevant countries and regions. For example, the location information of the mobile terminal involved in the present application is obtained under full authorization.
[0037] Please refer to Figure 1 , which shows a schematic diagram of the implementation environment of the scene recognition method provided by an exemplary embodiment of the present application. The implementation environment includes: a server 101 and at least one mobile terminal 102. Each of the at least one mobile terminal 102 has a positioning function. After the mobile terminal 102 uses the positioning function to obtain the current first location information of the mobile terminal 102, it determines whether the crowdsourcing collection function of the mobile terminal 102 is enabled. When the crowdsourcing collection function of the mobile terminal 102 is enabled, the first location information and the cell identifier of the first cell are reported to the server 101. The first cell is the cell covered by the first location information, so that the server 101 can obtain the data required for constructing the scene database through the crowdsourcing method. The crowdsourcing collection function refers to the function that the mobile terminal 102 actively collects and reports data for the server 101.
[0038] At least one mobile terminal 102 is installed with a first application, and the first application is any application that can use the positioning function; for example, the first application can be a navigation application, a social application, a shopping application, etc. In the embodiment of the present application, when the first application accesses the positioning function of the mobile terminal 102, after the mobile terminal 102 provides the current first location information for the first application through the positioning function, it can also send the first location information and the cell identifier of the first cell to the server 101, and the server 101 constructs a scenario database based on the first location information and the cell identifier of the first cell, and then provides a scenario recognition function for the mobile terminal 102 through the scenario database.
[0039] In addition to sending the first location information and the cell identifier of the first cell to the server 101, the mobile terminal 102 can also send first scenario supplementary information to the server. The first scenario supplementary information is used to supplement and represent the scenario where the mobile terminal is currently located, so that the server 101 constructs a scenario database based on the first location information, the cell identifier of the first cell, and the first scenario supplementary information, and then provides a scenario recognition function for the mobile terminal 102 through the scenario database.
[0040] Among them, the scenario supplementary information is used to supplement and represent the scenario where the mobile terminal 102 is currently located. For example, the scenario supplementary information includes at least one of the wireless network information scanned by the mobile terminal 102 and the cell additional information of the first cell. The wireless network information scanned by the mobile terminal 102 includes at least one of the network information of at least one Wireless Fidelity (WiFi) network scanned by the mobile terminal 102 and the device information of at least one Bluetooth device scanned by the mobile terminal 102. The cell additional information of the first cell includes the network mode and quality parameter value of the first cell, and the quality parameter value is used to identify the signal quality of the first cell.
[0041] In the embodiments of the present application, since the number of mobile terminals 102 is one or more; in the case where the number of mobile terminals 102 is multiple, it is possible to construct a scenario database by using the first location information, the cell identifier of the first cell, and the first scenario supplementary information reported by the multiple mobile terminals 102, which is equivalent to collecting the data required for the scenario database through a crowdsourcing method; compared with the process of manual data collection, the data collection cost and difficulty are reduced. Moreover, since each time the first application of the mobile terminal 102 uses the positioning function, the mobile terminal 102 reports the first location information determined currently, the cell identifier of the first cell, and the first scenario supplementary information to the server 101, the data in the scenario database can be updated in real time, which can improve the accuracy and timeliness of the data obtained by the server 101. Additionally, since the mobile terminal 102 is mobile, the data reported by the multiple mobile terminals 102 may cover more places, ensuring the comprehensiveness of the data.
[0042] The mobile terminal 102 may be devices such as mobile phones, tablet computers, multimedia playback devices, laptop computers, wearable devices, VR (Virtual Reality) devices, AR (Augmented Reality) devices, MR (Mixed Reality) devices, etc. Moreover, the operating system of the mobile terminal 102 may be an Android operating system, an Apple operating system, or a ColorOS operating system, etc. In the embodiments of the present application, no specific limitations are imposed on the mobile terminal 1002 and the operating system of the mobile terminal 102. The server 101 may be a single server, a server cluster composed of multiple servers, or a cloud computing service center.
[0043] Please refer to Figure 2 , which shows a flowchart of a scenario recognition method provided by an exemplary embodiment of the present application. This method is applied to a mobile terminal, and the method may include the following steps:
[0044] Step 201: When using the positioning function, the mobile terminal locates the current first location information of the mobile terminal based on the positioning function.
[0045] A first application is installed in the mobile terminal. When the first application uses the positioning function, the mobile terminal locates the current first location information of the mobile terminal based on the positioning function and provides the first location information to the first application. The first application may be any application that can use the positioning function; for example, the first application may be a navigation application, a social application, or a shopping application; the shopping application may be a food delivery application or a group buying application, etc.
[0046] In a possible implementation, the first application is a navigation application; when the mobile terminal conducts navigation through the navigation application, the current first location information of the mobile terminal is located based on the positioning function, and the first location information is provided for the navigation application.
[0047] In another possible implementation, the first application is a social application; when the mobile terminal sends its location to a friend terminal through the social application, the current first location information of the mobile terminal is located based on the positioning function, and the first location information is provided for the social application.
[0048] In another possible implementation, the first application is a shopping application; when the mobile terminal searches for nearby items through the shopping application, the current first location information of the mobile terminal is located based on the positioning function, and the first location information is provided for the shopping application.
[0049] The above three applications are merely examples; the embodiments of the present application are applicable to any first application that accesses the positioning service. In the embodiments of the present application, when the first application accesses the positioning service, the mobile terminal obtains the current first location information of the mobile terminal based on the positioning service, and directly reports data by means of the first location information, thereby improving the utilization rate of the first location information; and, since there is no need to specifically locate the first location information, the power consumption of the mobile terminal is saved.
[0050] Step 202: When the crowdsourcing collection function of the mobile terminal is enabled, the mobile terminal obtains the cell identifier of the first cell, where the first cell is the cell covered by the first location information.
[0051] The crowdsourcing collection function refers to the function that the mobile terminal actively collects and reports data for the server. The first cell includes the cell to which the mobile terminal is currently connected, and may also include the neighboring cells of the cell to which the mobile terminal is currently connected; that is, the number of the first cells can be one or more.
[0052] In a possible implementation, the mobile terminal can enable or disable the crowdsourcing collection function in the settings interface. The process can be as follows: the mobile terminal displays the settings interface, and the settings interface includes a switch option for the crowdsourcing collection function; in response to the trigger of the switch option, the crowdsourcing collection function is enabled; in response to the trigger of the switch option again, the crowdsourcing collection function is disabled.
[0053] In another possible implementation, when the mobile terminal has the behavior of frequently entering a scenario, the mobile terminal is prompted to turn on the crowdsourcing collection function; correspondingly, this process can be: when the number of times the mobile terminal enters the target scenario exceeds a preset number of times (for the sake of distinction, this preset number of times can be referred to as the first preset number of times), a prompt message is displayed, and the prompt message is used to prompt the mobile terminal to turn on the crowdsourcing collection function, and the target scenario is the scenario recognized by the scenario database; in response to the confirmation instruction, the crowdsourcing collection function is turned on.
[0054] In the embodiment of the present application, when the mobile terminal has the behavior of frequently entering a scenario, it indicates that the quality of the data reported by the mobile terminal is relatively high. At this time, the mobile terminal is prompted to turn on the crowdsourcing collection function, so that the mobile terminal reports the data required by the scenario database to the server, thereby improving the assistance of data collection.
[0055] In addition to obtaining the cell identifier of the first cell, the mobile terminal can also obtain the current first scenario supplementary information of the mobile terminal, and the first scenario supplementary information is used to supplement and characterize the scenario where the mobile terminal is currently located. The scenario supplementary information includes at least one of the wireless network information scanned by the mobile terminal and the cell additional information of the first cell. Correspondingly, this step can be implemented by at least one of the following steps 2021 and step 2022, including:
[0056] Step 2021: The mobile terminal obtains the wireless network information scanned by the mobile terminal and determines the wireless network information as the first scenario supplementary information.
[0057] The wireless network information scanned by the mobile terminal includes at least one of the network information of at least one WiFi network scanned by the mobile terminal and the device information of at least one Bluetooth device scanned by the mobile terminal. Correspondingly, the step for the mobile terminal to obtain the wireless network information scanned by the mobile terminal can be: scanning through the wireless fidelity (WiFi) function of the mobile terminal to obtain the network information of at least one WiFi network scanned; and / or, the mobile terminal scans through the Bluetooth function of the mobile terminal to obtain the device information of at least one Bluetooth device scanned.
[0058] The network information of the WiFi network includes the WiFi name of the WiFi network, and can also include the password of the WiFi network, etc. The device identifier of the Bluetooth device can be the Bluetooth name of the Bluetooth device, and can also include the pairing password of the Bluetooth device, etc.
[0059] Step 2022: The mobile terminal obtains the cell additional information of the first cell, and the cell additional information is used to additionally describe the information of the first cell, and determines the cell additional information as the first scenario supplementary information.
[0060] The cell additional information of the first cell includes the network mode of the first cell and the quality parameter value of the first cell; correspondingly, step 2022 may be: the mobile terminal obtains the network mode of the first cell and determines the network mode of the first cell as the cell additional information; and / or, the mobile terminal obtains the quality parameter value of the first cell, where the quality parameter value is used to represent the signal quality of the first cell, and determines the quality parameter value of the first cell as the cell additional information.
[0061] The network mode of the first cell may be the 3rd Generation (3G), 4th Generation (4G), or 5th Generation (5G) mobile communication technology, etc. The quality parameter value may be the signal reception quality or signal reception strength of the mobile terminal, etc.
[0062] Step 203: The mobile terminal sends a reporting request to the server, and the reporting request carries the first location information and the cell identifier of the first cell, so that the server constructs a scenario database based on the first location information and the cell identifier of the first cell, and the scenario database is used to provide a scenario recognition function.
[0063] Before the mobile terminal sends a reporting request to the server, it needs to be fully authorized by the user. After being fully authorized by the user, the mobile terminal sends a reporting request to the server. In a possible implementation manner, before the mobile terminal sends a reporting request to the server, it displays the first authorization information, and the first authorization information is used to indicate whether to allow the mobile terminal to send a reporting request to the server; in the case of receiving the first confirmation message, the mobile terminal sends a reporting request to the server, and in the case of receiving the first negative message, the mobile terminal does not send a reporting request to the server. In another possible implementation manner, when the mobile terminal first uses the positioning function, the mobile terminal displays the second authorization information, and the second authorization information is used to indicate whether to allow the mobile terminal to use the first location information. In the case of receiving the second confirmation message, the mobile terminal may send a reporting request to the server according to the method provided in the embodiments of the present application; in the case of receiving the second negative message, the mobile terminal prohibits using the first location information.
[0064] In the case that the mobile terminal also obtains the first scenario supplementary information in step 202, this step may be: the mobile terminal sends a reporting request to the server, and the reporting request carries the first location information, the cell identifier of the first cell, and the first scenario supplementary information, so that the server constructs a scenario database based on the first location information, the cell identifier of the first cell, and the first scenario supplementary information.
[0065] In addition to carrying the first location information, the cell identifier of the first cell, and optionally the first scenario supplementary information, the reporting request may also carry the terminal identifier of the mobile terminal. The terminal identifier may be the anonymous terminal identifier of the mobile terminal, thus protecting the privacy of the user.
[0066] In the embodiment of the present application, after the mobile terminal obtains the first location information, the cell identifier of the first cell, and the first scenario supplementary information, it will automatically send a reporting request carrying the first location information, the cell identifier of the first cell, and the first scenario supplementary information to the server, so as to implement this solution as the system perception ability of the mobile terminal. Furthermore, after scene recognition based on the system perception ability of the mobile terminal, the communication quality is optimized based on the scene.
[0067] In the embodiment of the present application, when the mobile terminal uses the positioning function and the mobile terminal enables the crowdsourcing collection function, the mobile terminal reports the located first location information and the cell identifier of the first cell covered by the first location information to the server, so that the server obtains the data required for the scene database. Since each mobile terminal that enables the crowdsourcing collection function will report the data required to build the scene database to the server through this solution, the embodiment of the present application can implement the collection of the data required for the scene database based on the crowdsourcing method, reducing the data collection cost and difficulty compared with the process of manual data collection.
[0068] Please refer to Figure 3 , which shows a flowchart of a scene recognition method provided by an exemplary embodiment of the present application. This method is applied to the server and includes the following steps:
[0069] Step 301: The server receives reporting requests sent by at least one mobile terminal. The reporting requests sent by the mobile terminal carry the current first location information of the mobile terminal and the cell identifier of the first cell covered by the first location information, and the reporting requests are sent when the mobile terminal enables the crowdsourcing collection function. The first location information is obtained when the mobile terminal uses the positioning function.
[0070] In addition to carrying the first location information and the cell identifier of the first cell, the reporting request may also carry the first scenario supplementary information, which is used to supplement and characterize the current scenario of the mobile terminal.
[0071] In the embodiments of the present application, since the number of mobile terminals is one or more; in the case where the number of mobile terminals is multiple, it is possible to construct a scenario database by using the first location information reported by multiple mobile terminals, the cell identifier of the first cell, and the first scenario supplementary information (optional), which is equivalent to collecting the data required for the scenario database through crowdsourcing; compared with the process of manually collecting data, the data collection cost and difficulty are reduced; and since each time the mobile terminal uses the positioning function, the mobile terminal reports the first location information at the currently determined location, the cell identifier of the first cell, and the first scenario supplementary information (optional) to the server, therefore, the accuracy and timeliness of the data obtained by the server can be improved.
[0072] Step 302: The server constructs a scenario database based on the reporting requests sent by at least one mobile terminal and the corresponding relationship between the location information and the venue information of multiple venues stored, and the scenario database is used to provide a scenario recognition function.
[0073] The corresponding relationship between the location information and the venue information of multiple venues stored is obtained from a public dataset, and the location information of any venue includes the longitude information and the latitude information of the venue. And multiple venues can be public places with dense population; for example, multiple venues can be subway stations, high-speed railway stations, highway exits, or airports, etc. For example, if multiple venues are subway stations, the server obtains the location information of the subway stations by accessing the subway database and the official website of the subway.
[0074] In a possible implementation manner, the reporting request carries the first location information and the cell identifier of the first cell, and the scenario database is used to store the corresponding relationship between the venue information and the cell identifier; correspondingly, the step of the server constructing the scenario database based on the reporting requests sent by at least one mobile terminal and the corresponding relationship between the location information and the venue information of multiple venues stored can be:
[0075] For any mobile terminal, the server determines the venue information of the fifth venue that matches the first location information based on the first location information reported by the mobile terminal and the corresponding relationship between the location information and the venue information of multiple venues stored, and constructs the scenario database based on the venue information of the fifth venue and the cell identifier of the first cell. For example, the server stores the venue information of the fifth venue and the cell identifier of the first cell in the scenario database in an associated manner.
[0076] In another possible implementation, the reporting request carries the first location information, the cell identifier of the first cell, and the first scenario supplementary information, and the scenario database is used to store the correspondence between the venue information, the cell identifier, and the scenario supplementary information; the server can provide the venue information of the first venue corresponding to the cell identifier and the second scenario supplementary information of the second cell for the mobile terminal based on the cell identifier of the second cell and the second scenario supplementary information sent by the mobile terminal, so that the mobile terminal can determine the current scenario where the mobile terminal is located based on the venue information of the first venue.
[0077] Correspondingly, the steps of constructing the scenario database by the server based on the reporting requests sent by at least one mobile terminal and the correspondence between the location information and the venue information of multiple stored venues can be implemented through the following steps 3021-3022, including:
[0078] Step 3021: For any mobile terminal, the server determines the venue information of the third venue that matches the first location information based on the first location information reported by the mobile terminal and the correspondence between the location information and the venue information of multiple stored venues.
[0079] For the location information of any stored venue, the server determines the distance between the first location information and the location information of the venue. If the distance is less than the preset distance, the venue information corresponding to the location information of the venue is determined as the venue information of the third venue that matches the first location information.
[0080] Step 3022: The server constructs the scenario database based on the venue information of the third venue, the cell identifier of the first cell, and the first wireless network information of the mobile terminal.
[0081] The server searches for the venue information of the third venue in the scenario database; if the venue information of the third venue is not found, the venue information of the third venue, the cell identifier of the first cell, and the first wireless network information are associated and stored in the scenario database; if the venue information of the third venue is found, based on the cell identifier of the first cell and the first wireless network information, the cell identifier and the wireless network information corresponding to the venue information of the third venue in the scenario database are updated.
[0082] The step of the server updating the cell identifier and the wireless network information corresponding to the venue information of the third venue in the scenario database based on the cell identifier of the first cell and the first wireless network information can be: the server adds the cell identifier of the first cell to the cell identifier list corresponding to the venue information of the third venue, and adds the first wireless network information to the wireless network information list corresponding to the venue information of the third venue.
[0083] Before adding the cell identifier of the first cell to the list of cell identifiers corresponding to the venue information of the third venue, the server first determines whether the cell identifier of the first cell exists in the list of cell identifiers corresponding to the venue information of the third venue; if the cell identifier of the first cell does not exist in the list of cell identifiers corresponding to the venue information of the third venue, the server adds the cell identifier of the first cell to the list of cell identifiers corresponding to the venue information of the third venue; if the cell identifier of the first cell exists in the list of cell identifiers corresponding to the venue information of the third venue, the server does not perform the step of updating the list of cell identifiers corresponding to the venue information of the third venue.
[0084] Moreover, the server periodically determines the number of times each cell identifier in the list of cell identifiers corresponding to the venue information of the third venue is reported. If the number of reported times is less than the preset number of times, the server deletes the cell identifier of the cell from the list of cell identifiers, so as to update the list of cell identifiers in a timely manner according to the network environment.
[0085] Before adding the first wireless network information to the list of wireless network information corresponding to the venue information of the third venue, the server first determines whether the first wireless network information exists in the list of wireless network information corresponding to the venue information of the third venue; if the first wireless network information does not exist in the list of wireless network information corresponding to the venue information of the third venue, the server adds the first wireless network information to the list of wireless network information corresponding to the venue information of the third venue; if the first wireless network information exists in the list of wireless network information corresponding to the venue information of the third venue, the server does not perform the step of updating the wireless network information corresponding to the venue information of the third venue.
[0086] For example, please refer to Table 1. The scenario database constructed by the server is as shown in Table 1 below:
[0087] Table 1
[0088] Location Information Community Identification Scene Supplementary Information Subway Station 1 Community 1 WiFi1 and WiFi2 Subway Station 2 Community 2 WiFi3 and WiFi4 Subway Station 3 Community 3 WiFi5 and WiFi6 …… …… ……
[0089] For example, when the server performs scenario recognition for a mobile terminal, if the second cell currently accessed by the mobile terminal is Cell 2 and the mobile terminal scans WiFi3, it can be determined based on Table 1 that the mobile terminal is located at Subway Station 2. The mobile terminal then combines its movement state to determine the current scenario it is in, and then performs subsequent communication quality optimization operations.
[0090] In the embodiments of the present application, since the coverage range of a cell is relatively large, often about two kilometers; while the coverage range of wireless network information (WiFi network or Bluetooth network) is relatively small, often only a few hundred meters; therefore, in the embodiments of the present application, a scenario database is constructed by combining wireless network information, thereby improving the accuracy of scenario recognition based on the scenario database.
[0091] In another possible implementation, the reporting request carries the first location information, the cell identifier of the first cell, and the first scenario supplementary information, and the scenario database is used to store the correspondence between scenario information and cell identifiers; the server can provide the location information of the second place corresponding to the cell identifier of the second cell for the mobile terminal based on the cell identifier of the second cell sent by the mobile terminal, so that the mobile terminal can determine the current scenario where the mobile terminal is located based on the location information of the second place.
[0092] Correspondingly, the step of constructing the scenario database by the server based on the reporting requests sent by at least one mobile terminal and the correspondence between the location information and location information of multiple stored places can be implemented through the following steps 3023-3024, including:
[0093] Step 3023: For any mobile terminal, the server determines the location information of the fourth place that matches the first location information based on the first location information, the first scenario supplementary information reported by the mobile terminal, and the correspondence between the location information and location information of multiple stored places.
[0094] The server expands the first location information based on the first scenario supplementary information to obtain a first location range; based on the first location range, the server determines the location information of the fourth place located within the first location range from the correspondence between the location information and location information of multiple places.
[0095] The first scenario supplementary information may be the network mode of the first cell; correspondingly, the step of the server expanding the first location information based on the first scenario supplementary information to obtain a first location range may be: the server determines a first step length that matches the network mode, and determines a first location range centered on the first location information with the first step length as the radius. For example, the network mode of the first cell is 4G, and the step length corresponding to the 4G cell is 1 kilometer; another example is that the network mode of the first cell is 5G, and the step length corresponding to the 5G cell is 2 kilometers.
[0096] The supplementary information of the first scenario can be the quality parameter value of the first cell; correspondingly, the step of the server expanding the first location information based on the supplementary information of the first scenario to obtain the first location range can be: the server determines the second step length matching the quality parameter value, and determines the first location range centered on the first location information with the second step length as the radius. The second step length has a negative correlation with the quality parameter value, that is, the larger the quality parameter value of the first cell, the smaller the second step length; and the smaller the quality parameter value of the first cell, the larger the second step length. For example, if the quality parameter value of the first cell is small, the second step length matching the quality parameter value of the first cell is 2 kilometers; again, if the quality parameter value of the first cell is large, the second step length matching the quality parameter value of the first cell is 1 kilometer.
[0097] Since the larger the quality parameter value of the first cell, the better the communication quality of the first cell, that is, the distance between the mobile terminal and the network device of the first cell may be closer, and the first location information of the mobile terminal can accurately reflect the coverage range of the first cell; therefore, a smaller second step length can be used to expand the first location information. And the smaller the quality parameter value of the first cell, the worse the communication quality of the first cell, that is, the distance between the mobile terminal and the network device of the first cell may be farther, and the first location of the mobile terminal may not accurately reflect the coverage range of the first cell; therefore, a larger second step length can be used to expand the first location information.
[0098] Step 3024: The server constructs a scenario database based on the location information of the fourth location and the cell identifier of the first cell.
[0099] The server searches for the location information of the fourth location in the scenario database; in the case where the location information of the fourth location is not found, the location information of the fourth location and the cell identifier of the first cell are associated and stored in the scenario database; in the case where the location information of the fourth location is found, based on the cell identifier of the first cell, the cell identifier corresponding to the location information of the fourth location in the scenario database is updated.
[0100] For example, please refer to Table 2, the scenario database constructed by the server is as shown in Table 2 below:
[0101] Table 2
[0102] Location Information Community Identification Subway Station 1 Community 1 Subway Station 2 Community 2 Subway Station 3 Community 3 …… ……
[0103] For example, when the server performs scenario recognition for the mobile terminal, when the second cell currently accessed by the mobile terminal is Cell 3, it can be determined based on Table 2 that the mobile terminal is currently located at Subway Station 3. The mobile terminal then combines the movement state to determine the scenario where the mobile terminal is currently located, and then performs subsequent communication quality optimization operations.
[0104] In an embodiment of the present application, when the first application uses the positioning function, after the mobile terminal provides the first location information obtained by positioning to the first application, the mobile terminal reports the first location information, the cell identifier of the first cell to which the mobile terminal is currently connected, and the scene supplementary information of the mobile terminal to the server, so that the server can obtain the data required by the scene database; since each mobile terminal will report the data required to build the scene database to the server through this solution; therefore, the embodiment of the present application can realize collecting the data required by the scene database based on the crowdsourcing method, and compared with the process of manually collecting data, it reduces the cost and difficulty of data collection.
[0105] Please refer to Figure 4 , which shows a flowchart of a scene recognition method provided by an exemplary embodiment of the present application. The method includes the following steps:
[0106] Step 401: When using the positioning function, the mobile terminal locates the current first location information of the mobile terminal based on the positioning function.
[0107] In some embodiments, this step is the same as step 201 and will not be elaborated here.
[0108] Step 402: When the mobile terminal enables the crowdsourcing collection function, the mobile terminal obtains the cell identifier of the first cell, where the first cell is the cell covering the first location information.
[0109] In some embodiments, this step is the same as step 202 and will not be elaborated here.
[0110] Step 403: The mobile terminal sends a reporting request to the server, and the reporting request carries the first location information and the cell identifier of the first cell.
[0111] Step 404: The server receives the reporting request sent by the mobile terminal, and constructs a scene database based on the reporting request and the corresponding relationship between the location information and the place information of multiple stored places. The scene database is used to store the corresponding relationship between the place information, the cell identifier, and the wireless network information, and the scene database is used to provide a scene recognition function.
[0112] For any mobile terminal, the server determines the place information of the fifth place matching the first location information based on the first location information reported by the mobile terminal and the corresponding relationship between the location information and the place information of multiple stored places, and constructs a scene database based on the place information of the fifth place and the cell identifier of the first cell. For example, the server associates and stores the place information of the fifth place and the cell identifier of the first cell in the scene database.
[0113] Step 405: When the cell to which the mobile terminal is currently connected switches, the mobile terminal obtains the cell identifier of the switched second cell.
[0114] Step 406: The mobile terminal sends a third scenario recognition request to the server, and the third scenario recognition request carries the cell identifier of the second cell.
[0115] Step 407: The server receives the third scenario recognition request sent by the mobile terminal, and determines the location information of the sixth location corresponding to the cell identifier of the second cell from the scenario database based on the cell identifier of the second cell.
[0116] The scenario database is used to store the correspondence between location information and cell identifiers; correspondingly, the server determines the location information of the sixth location corresponding to the cell identifier of the second cell from the scenario database based on the cell identifier of the second cell.
[0117] Step 408: The server sends the location information of the sixth location to the mobile terminal.
[0118] The location information of the sixth location can be the name of the sixth location, etc.
[0119] Step 409: The mobile terminal receives the location information of the sixth location sent by the server, and determines the current scenario where the mobile terminal is located based on the location information of the sixth location.
[0120] In a possible implementation, the mobile terminal determines the current scenario where the mobile terminal is located by determining whether the sixth location belongs to the target location; correspondingly, the step of the mobile terminal determining the current scenario where the mobile terminal is located based on the location information of the sixth location can be: when the location information of the sixth location belongs to the location information of a crowded place, the mobile terminal determines that the current scenario is a crowded scenario, and the crowded scenario is the scenario corresponding to the place where the number of people flow exceeds the preset number of people flow.
[0121] The mobile terminal stores the location information of crowded places, and the location information of crowded places includes at least one of the location information of subway stations, the location information of high-speed railway stations, the location information of airports, and the location information of highway toll stations. For example, if the location information of the sixth location is the location information of an airport, it is determined that the current scenario where the mobile terminal is located is a crowded scenario.
[0122] In another possible implementation, the mobile terminal determines the current scene based on the location information of the sixth location and in combination with the movement state. Accordingly, the steps for the mobile terminal to determine the current scene based on the location information of the sixth location may be as follows: When the location information of the sixth location belongs to the location information of a crowded place, the mobile terminal obtains the movement state of the mobile terminal. When the movement state of the mobile terminal belongs to the riding state, it is determined that the current scene where the mobile terminal is located is a high-speed movement scene, and the high-speed movement scene refers to a scene where the movement speed of the mobile terminal exceeds a preset speed.
[0123] An inertial measurement unit (IMU) sensor is set in the mobile terminal, and the mobile terminal obtains the movement state of the mobile terminal through the IMU sensor. Among them, the IMU sensor includes an acceleration sensor and a gyroscope, and the movement state includes acceleration and angular velocity.
[0124] In a possible implementation, when the location information of the sixth location belongs to the location information of a crowded place, the mobile terminal periodically obtains the movement state of the mobile terminal and determines whether the movement state belongs to the riding state. The process may be as follows: The mobile terminal obtains the movement state and determines whether the movement state belongs to the riding state. When the movement state belongs to the riding state, it is determined that the current scene where the mobile terminal is located is a high-speed movement scene. When the movement state does not belong to the riding state, the mobile terminal obtains the movement state of the mobile terminal again in the next cycle, and then determines again whether the movement state obtained again belongs to the riding state, and so on, until it is determined that the current scene where the mobile terminal is located is a high-speed movement scene or the number of times of obtaining the movement state of the mobile terminal reaches a preset number of times (for the sake of distinction, the preset number of times here may be referred to as the second preset number of times).
[0125] When the mobile terminal obtains a movement state belonging to the riding state, it may directly determine that the current scene where the mobile terminal is located is a high-speed movement scene, or it may first, based on the time difference between the current time and the time of entering the crowded scene, determine that the current scene where the mobile terminal is located is a high-speed movement scene when the time difference is greater than the preset time difference.
[0126] For example, the mobile terminal determines whether it is near the high-speed railway station according to the second cell accessed by the mobile terminal. When the mobile terminal is near the high-speed railway station, it determines whether the mobile terminal is on the high-speed train according to the time difference between entering the station and boarding the train and the movement state identified by the IMU sensor. When the mobile terminal is on the high-speed train, it is determined that the current scene where the mobile terminal is located is a high-speed movement scene.
[0127] Step 410: The mobile terminal determines communication optimization information that matches the current scenario based on the current scenario it is in. The communication optimization information is used to optimize the communication quality of the mobile terminal.
[0128] When the communication scenario of the mobile terminal is a crowded scenario, the mobile terminal determines first communication optimization information that matches the communication scenario. The first communication optimization information is used to indicate increasing the transmission power. A crowded scenario means a scenario where the mobile terminal is in a place with a pedestrian flow exceeding a preset pedestrian flow. When the communication scenario of the mobile terminal is a high-speed moving scenario, the mobile terminal determines second communication optimization information that matches the communication scenario. The second communication optimization information is used to indicate reducing the cell reselection period. A high-speed moving scenario means a scenario where the moving speed of the mobile terminal exceeds a preset speed.
[0129] Step 411: The mobile terminal optimizes the communication quality of the mobile terminal based on the communication optimization information.
[0130] In a crowded scenario, the mobile terminal optimizes the communication quality of the mobile terminal based on the first communication optimization information. The first communication optimization information is used to indicate increasing the transmission power. Correspondingly, this step can be: when the mobile terminal sends communication data to the network device corresponding to the second cell, increase the current first transmission power of the mobile terminal to obtain a second transmission power; based on the second transmission power, send communication data to the network device.
[0131] In the embodiments of the present application, in a crowded scenario, the network signal of the mobile terminal is often poor; by increasing the transmission power, the communication quality of the mobile terminal can be improved.
[0132] In a high-speed moving scenario, the mobile terminal optimizes the communication quality of the mobile terminal based on the second communication optimization information. The second communication optimization information is used to indicate reducing the cell reselection period. Correspondingly, this step can be: the mobile terminal reduces the first reselection period for cell reselection to obtain a second reselection period; based on the second reselection period, perform a cell reselection operation on the second cell accessed by the mobile terminal.
[0133] In the embodiments of the present application, in a high-speed moving scenario, the mobile terminal may need to perform cell reselection operations frequently; therefore, by performing cell reselection with a smaller reselection period, the cell reselection operation can be performed in a timely manner, so that the mobile terminal can reselect to a cell with better communication quality, thereby improving the communication quality of the mobile terminal.
[0134] In the embodiments of the present application, the server provides a scenario recognition function for the mobile terminal based on the scenario database, so that the mobile terminal optimizes the communication quality of the mobile terminal based on the recognized current scenario, thereby improving the communication quality of the mobile terminal.
[0135] Please refer to Figure 5 , which shows a flowchart of a scene recognition method provided by an exemplary embodiment of the present application. In the embodiments of the present application, an example is given where the first scene supplementary information includes wireless network information. The method includes the following steps:
[0136] Step 501: When the positioning function is used, the mobile terminal locates the current first position information of the mobile terminal based on the positioning function.
[0137] In some embodiments, this step is the same as step 201 and will not be elaborated here.
[0138] Step 502: When the crowdsourcing collection function of the mobile terminal is enabled, the mobile terminal obtains the cell identifier of the first cell, and the first cell is the cell covered by the first position information.
[0139] In some embodiments, this step is the same as step 202 and will not be elaborated here.
[0140] [[ID=ID=17]]Step 503: The mobile terminal obtains the first wireless network information currently scanned by the mobile terminal, and the first wireless network information is used to supplement and characterize the scene where the mobile terminal is currently located.
[0141] The first wireless network information scanned by the mobile terminal includes at least one of the network information of at least one WiFi network scanned by the mobile terminal and the device information of at least one Bluetooth device scanned by the mobile terminal. Correspondingly, the step for the mobile terminal to obtain the first wireless network information scanned by the mobile terminal may be: scanning through the wireless fidelity (WiFi) function of the mobile terminal to obtain the network information of at least one scanned WiFi network; and / or, the mobile terminal scans through the Bluetooth function of the mobile terminal to obtain the device information of at least one scanned Bluetooth device.
[0142] The network information of the WiFi network includes the WiFi name of the WiFi network, and may also include the password of the WiFi network, etc. The device identifier of the Bluetooth device may be the Bluetooth name of the Bluetooth device, and may also include the pairing password of the Bluetooth device, etc.
[0143] Step 504: The mobile terminal sends a reporting request to the server, and the reporting request carries the first position information, the cell identifier of the first cell, and the first wireless network information, so that the server constructs a scene database based on the first position information, the cell identifier of the first cell, and the first wireless network information, and the scene database is used to provide a scene recognition function.
[0144] In some embodiments, this step is similar to step 203 and will not be elaborated here.
[0145] Step 505: The server receives the reporting request sent by the mobile terminal, and constructs a scenario database based on the correspondence between the reporting request of the mobile terminal and the venue information and location information of multiple venues stored. The scenario database is used to store the correspondence between venue information, cell identification, and wireless network information, and the scenario database is used to provide a scenario recognition function.
[0146] In some embodiments, this step can be implemented through the above steps 3021-3022, which will not be elaborated here.
[0147] Step 506: When the cell currently accessed by the mobile terminal undergoes a handover, the mobile terminal obtains the cell identification of the second cell after the handover.
[0148] Step 507: The mobile terminal obtains the second wireless network information of the mobile terminal currently.
[0149] The second wireless network information scanned by the mobile terminal includes at least one of the network information of at least one WiFi network scanned by the mobile terminal and the device information of at least one Bluetooth device scanned by the mobile terminal. Correspondingly, the step for the mobile terminal to obtain the second wireless network information scanned by the mobile terminal can be: scanning through the wireless fidelity (WiFi) function of the mobile terminal to obtain the network information of at least one WiFi network scanned; and / or, the mobile terminal scans through the Bluetooth function of the mobile terminal to obtain the device information of at least one Bluetooth device scanned.
[0150] Step 508: The mobile terminal sends a first scenario recognition request to the server, and the first scenario recognition request carries the cell identification of the second cell and the second wireless network information.
[0151] Step 509: The server receives the first scenario recognition request sent by the mobile terminal, and determines the venue information of the first venue corresponding to the cell identification of the second cell and the second wireless network information from the scenario database based on the cell identification of the second cell and the second wireless network information.
[0152] When the server does not have the venue information of the first venue corresponding to the cell identification of the second cell and the second wireless network information in the scenario database, the server searches in the scenario database for the venue information of the second venue corresponding to the cell identification of the second cell based on the cell identification of the second cell, and then sends the venue information of the second venue to the mobile terminal.
[0153] Step 510: The server sends the venue information of the first venue to the mobile terminal.
[0154] The venue information of the first venue can be the name of the first venue, etc.
[0155] Step 511: The mobile terminal receives the venue information of the first venue sent by the server, and determines the current scenario of the mobile terminal based on the venue information of the first venue.
[0156] In a possible implementation, the mobile terminal determines the current scenario of the mobile terminal by determining whether the first venue belongs to the target venue; correspondingly, the step of the mobile terminal determining the current scenario of the mobile terminal based on the venue information of the first venue can be: when the venue information of the first venue belongs to the venue information of a crowded place, the mobile terminal determines that the current scenario is a crowded scenario, and the crowded scenario is the scenario corresponding to the place where the pedestrian flow exceeds the preset pedestrian flow.
[0157] The mobile terminal stores the venue information of crowded places, and the venue information of crowded places includes the venue information of at least one of the venue information of subway stations, the venue information of high-speed railway stations, the venue information of airports, and the venue information of highway toll stations. For example, if the venue information of the first venue is the venue information of an airport, it is determined that the current scenario of the mobile terminal is a crowded scenario.
[0158] In another possible implementation, the mobile terminal determines the current scenario based on the venue information of the first venue and in combination with the movement state; correspondingly, the step of the mobile terminal determining the current scenario of the mobile terminal based on the venue information of the first venue can be: when the venue information of the first venue belongs to the venue information of a crowded place, the mobile terminal obtains the movement state of the mobile terminal, and when the movement state of the mobile terminal belongs to the riding state, it is determined that the current scenario of the mobile terminal is a high-speed movement scenario, and the high-speed movement scenario refers to the scenario where the movement speed of the mobile terminal exceeds the preset speed.
[0159] An IMU sensor is set in the mobile terminal, and the mobile terminal obtains the movement state of the mobile terminal through the IMU sensor; wherein, the IMU sensor includes an acceleration sensor and a gyroscope, and the movement state includes acceleration and angular velocity.
[0160] In a possible implementation, when the venue information of the first venue belongs to the venue information of a crowded venue, the mobile terminal periodically obtains the movement state of the mobile terminal and determines whether the movement state belongs to a riding state. The process can be as follows: The mobile terminal obtains the movement state and determines whether the movement state belongs to a riding state; when the movement state belongs to a riding state, it determines that the current scene where the mobile terminal is located is a high-speed movement scene; when the movement state does not belong to a riding state, it obtains the movement state of the mobile terminal again in the next cycle, and then determines again whether the movement state obtained again belongs to a riding state, and so on, until it is determined that the current scene where the mobile terminal is located is a high-speed movement scene or the number of times of obtaining the movement state of the mobile terminal reaches a preset number of times.
[0161] When the mobile terminal obtains a movement state belonging to a riding state, it can directly determine that the current scene where the mobile terminal is located is a high-speed movement scene, or it can first, based on the time difference between the current time and the time of entering the crowded scene, determine that the current scene where the mobile terminal is located is a high-speed movement scene when the time difference is greater than a preset time difference.
[0162] For example, the mobile terminal determines whether it is near a high-speed railway station according to the second cell accessed by the mobile terminal; when the mobile terminal is near a high-speed railway station, it determines whether the mobile terminal is on the high-speed railway according to the time difference from entering the station to boarding and the movement state of the mobile terminal recognized by the IMU sensor; when the mobile terminal is on the high-speed railway, it determines that the current scene where the mobile terminal is located is a high-speed movement scene.
[0163] Step 512: The mobile terminal determines communication optimization information matching the scene based on the current scene where it is located. The communication optimization information is used to optimize the communication quality of the mobile terminal.
[0164] In some embodiments, this step is the same as step 410 and will not be elaborated here.
[0165] Step 513: The mobile terminal optimizes the communication quality of the mobile terminal based on the communication optimization information.
[0166] In some embodiments, this step is the same as step 411 and will not be elaborated here.
[0167] In the embodiments of the present application, the server provides a scene recognition function for the mobile terminal based on the scene database, so that the mobile terminal optimizes the communication quality of the mobile terminal based on the recognized current scene, thereby improving the communication quality of the mobile terminal.
[0168] Please refer to Figure 6, which shows a flowchart of a scene recognition method provided by an exemplary embodiment of the present application. In the embodiments of the present application, the case where the first scene supplementary information includes the cell supplementary information of the first cell is taken as an example for illustration. The method includes the following steps:
[0169] Step 601: When the first application in the mobile terminal uses the positioning function, the mobile terminal provides the first position information of the mobile terminal at present for the first application based on the positioning function.
[0170] In some embodiments, this step is the same as step 201 and will not be elaborated here.
[0171] Step 602: When the crowdsourcing collection function of the mobile terminal is enabled, the mobile terminal obtains the cell identifier of the first cell, where the first cell is the cell covered by the first position information.
[0172] In some embodiments, this step is the same as step 202 and will not be elaborated here.
[0173] Step 603: The mobile terminal obtains the cell supplementary information of the first cell.
[0174] The cell supplementary information of the first cell includes at least one of the network mode and the quality parameter value of the first cell; correspondingly, this step may be: the mobile terminal obtains the network mode of the first cell and determines the network mode of the first cell as the cell supplementary information; and / or, the mobile terminal obtains the quality parameter value of the first cell, where the quality parameter value is used to represent the signal quality of the first cell, and determines the quality parameter value of the first cell as the cell supplementary information.
[0175] Step 604: The mobile terminal sends a reporting request to the server, and the reporting request carries the first position information, the cell identifier of the first cell, and the cell supplementary information of the first cell.
[0176] In some embodiments, this step is similar to step 203 and will not be elaborated here.
[0177] Step 605: The server receives the reporting request sent by the mobile terminal, and constructs a scene database based on the corresponding relationship between the reporting request of the mobile terminal and the place information and position information of multiple stored places. The scene database is used to store the corresponding relationship between the place information and the cell identifier, and the scene database is used to provide a scene recognition function.
[0178] In some embodiments, this step can be implemented through the above steps 3023 - 3024 and will not be elaborated here.
[0179] Step 606: When the cell currently accessed by the mobile terminal undergoes a handover, the mobile terminal obtains the cell identifier of the second cell after the handover.
[0180] Step 607: The mobile terminal sends a second scenario recognition request to the server, and the second scenario recognition request carries the cell identifier of the second cell.
[0181] Step 608: The server receives the second scenario recognition request sent by the mobile terminal, and based on the cell identifier of the second cell, determines the venue information of the second venue corresponding to the cell identifier of the second cell from the scenario database.
[0182] Step 609: The server sends the venue information of the second venue to the mobile terminal.
[0183] The venue information of the second venue can be the name of the second venue, etc.
[0184] Step 610: The mobile terminal receives the venue information of the second venue sent by the server, and based on the venue information of the second venue, determines the current scenario where the mobile terminal is located.
[0185] In some embodiments, the step in which the mobile terminal determines the current scenario where the mobile terminal is located based on the venue information of the second venue is similar to the step in which the mobile terminal determines the current scenario where the mobile terminal is located based on the venue information of the first venue in step 511, and will not be elaborated here.
[0186] Step 611: The mobile terminal determines communication optimization information matching the scenario based on the current scenario, and the communication optimization information is used to optimize the communication quality of the mobile terminal.
[0187] In some embodiments, this step is the same as step 410 and will not be elaborated here.
[0188] Step 612: The mobile terminal optimizes the communication quality of the mobile terminal based on the communication optimization information.
[0189] In some embodiments, this step is the same as step 411 and will not be elaborated here.
[0190] In the embodiments of the present application, the server provides a scenario recognition function for the mobile terminal based on the scenario database, so that the mobile terminal optimizes the communication quality of the mobile terminal based on the recognized current scenario, thereby improving the communication quality of the mobile terminal.
[0191] Please refer to Figure 7 , which shows a structural block diagram of a scenario recognition device provided by an exemplary embodiment of the present application. The device includes:
[0192] A positioning module 701, configured to, when using the positioning function, position the current first position information of the mobile terminal based on the positioning function;
[0193] A first acquisition module 702, configured to obtain a cell identifier of a first cell when the crowdsourcing collection function of the mobile terminal is enabled, where the first cell is the cell covering the first location information;
[0194] A first sending module 703, configured to send a reporting request to a server, where the reporting request carries the first location information and the cell identifier of the first cell, so that the server constructs a scenario database based on the first location information and the cell identifier of the first cell, and the scenario database is used to provide a scenario recognition function.
[0195] In a possible implementation manner, the device further includes:
[0196] A second acquisition module, configured to acquire first scenario supplementary information of the mobile terminal, where the scenario supplementary information is used to supplement and characterize the scenario where the mobile terminal is currently located;
[0197] A first sending module 603, configured to send a reporting request to the server, where the reporting request carries the first location information, the cell identifier of the first cell, and the first scenario supplementary information, so that the server constructs the scenario database based on the first location information, the cell identifier of the first cell, and the first scenario supplementary information.
[0198] In another possible implementation manner, the second acquisition module is configured to acquire wireless network information scanned by the mobile terminal and determine the wireless network information as the first scenario supplementary information;
[0199] The second acquisition module is configured to acquire cell additional information of the first cell, where the cell additional information is used to additionally describe the first cell, and determine the cell additional information as the first scenario supplementary information.
[0200] In another possible implementation manner, the second acquisition module is configured to perform a scan through the Wi-Fi function of the mobile terminal to acquire network information of at least one scanned Wi-Fi network;
[0201] The second acquisition module is configured to perform a scan through the Bluetooth function of the mobile terminal to acquire device information of at least one scanned Bluetooth device.
[0202] In another possible implementation manner, the second acquisition module is configured to acquire a network mode of the first cell and determine the network mode of the first cell as the cell additional information;
[0203] The second acquisition module is configured to acquire a quality parameter value of the first cell, where the quality parameter value is used to represent the signal quality of the first cell, and determine the quality parameter value of the first cell as the cell additional information.
[0204] In another possible implementation, the scenario database is used to store the correspondence between the venue information, the cell identifier, and the first scenario supplementary information;
[0205] The apparatus further includes:
[0206] A third acquisition module, configured to acquire a cell identifier of a second cell after the mobile terminal switches when the cell currently accessed by the mobile terminal undergoes a handover;
[0207] A fourth acquisition module, configured to acquire the second scenario supplementary information of the mobile terminal currently;
[0208] A second sending module, configured to send a first scenario recognition request to the server, where the first scenario recognition request carries the cell identifier of the second cell and the second scenario supplementary information, so that the server determines the venue information of the first venue corresponding to the cell identifier of the second cell and the second scenario supplementary information from the scenario database based on the cell identifier of the second cell and the second scenario supplementary information;
[0209] A first receiving module, configured to receive the venue information of the first venue sent by the server;
[0210] A first determination module, configured to determine the scenario where the mobile terminal is currently located based on the venue information of the first venue.
[0211] In another possible implementation, the first determination module is configured to determine that the scenario where the mobile terminal is currently located is a crowded scenario when the venue information of the first venue belongs to the venue information of a crowded venue, and the crowded scenario is a scenario corresponding to a venue where the number of people flow exceeds a preset number of people flow;
[0212] The first determination module is configured to, when the venue information of the first venue belongs to the venue information of a crowded venue, acquire the moving state of the mobile terminal, and determine that the scenario where the mobile terminal is currently located is a high-speed moving scenario when the moving state of the mobile terminal belongs to a riding state, and the high-speed moving scenario is a scenario where the moving speed of the mobile terminal exceeds a preset speed.
[0213] In another possible implementation, the scenario database is used to store the correspondence between the venue information and the cell identifier;
[0214] The apparatus further includes:
[0215] A fifth acquisition module, configured to acquire a cell identifier of a second cell after the mobile terminal switches, when the mobile terminal switches the currently accessed cell;
[0216] A third sending module, configured to send a second scenario recognition request to the server, where the second scenario recognition request carries the cell identifier of the second cell, so that the server determines, based on the cell identifier of the second cell, location information of a second location corresponding to the cell identifier of the second cell from the scenario database;
[0217] A second receiving module, configured to receive the location information of the second location sent by the server;
[0218] A second determination module, configured to determine a current scenario where the mobile terminal is located based on the location information of the second location and a moving state of the mobile terminal.
[0219] In another possible implementation manner, the apparatus further includes:
[0220] A third determination module, configured to determine communication optimization information matching the scenario based on the current scenario where the mobile terminal is located, where the communication optimization information is used to optimize communication quality of the mobile terminal;
[0221] An optimization module, configured to optimize the communication quality of the mobile terminal based on the communication optimization information.
[0222] In another possible implementation manner, the third determination module is configured to determine first communication optimization information matching the communication scenario when the communication scenario of the mobile terminal is a crowded scenario, where the first communication optimization information is used to indicate increasing transmission power, and the crowded scenario means a scenario where the mobile terminal is in a crowd flow exceeding a preset crowd flow;
[0223] The third determination module is configured to determine second communication optimization information matching the communication scenario when the communication scenario of the mobile terminal is a high-speed moving scenario, where the second communication optimization information is used to indicate reducing a cell reselection period, and the high-speed moving scenario means a scenario where the moving speed of the mobile terminal exceeds a preset speed.
[0224] In another possible implementation manner, the apparatus further includes:
[0225] A display module, configured to display a prompt message when the number of times the mobile terminal enters a target scenario exceeds a preset number of times, where the prompt message is used to prompt the mobile terminal to turn on the crowdsourcing collection function, and the target scenario is a scenario recognized by the scenario database;
[0226] An enabling module, configured to enable the crowdsourcing collection function in response to a confirmation instruction.
[0227] In an embodiment of the present application, when the mobile terminal uses the positioning function and the crowdsourcing collection function of the mobile terminal is enabled, the mobile terminal reports the first location information obtained by the positioning and the cell identifier of the first cell where the first location information is covered to the server, so that the server can obtain the data required for the scenario database; since each mobile terminal enabled with the crowdsourcing collection function will report the data required to build the scenario database to the server through this solution; therefore, the embodiment of the present application can realize the collection of the data required by the scenario database based on the crowdsourcing method, and compared with the process of manually collecting data, it reduces the cost and difficulty of data collection.
[0228] It should be noted that when the above-described scenario recognition device performs scenario recognition, only the above-described division of each functional module is used for illustration. In practical applications, the above functions can be allocated to different functional modules according to needs, that is, the internal structure of the mobile terminal is divided into different functional modules to complete all or part of the functions described above. In addition, the above-described scenario recognition device and the embodiment of the scenario recognition method belong to the same concept, and the specific implementation process is detailed in the method embodiment, which will not be repeated here.
[0229] Please refer to Figure 8 , which shows a structural block diagram of a scenario recognition device provided by an exemplary embodiment of the present application. The device includes:
[0230] A third receiving module 801, configured to receive a reporting request sent by at least one mobile terminal, where the reporting request sent by the mobile terminal carries the current first location information of the mobile terminal and the cell identifier of the first cell where the first location information is covered, and the reporting request is sent when the crowdsourcing collection function of the mobile terminal is enabled, and the first location information is obtained when the mobile terminal uses the positioning function;
[0231] A building module 802, configured to build a scenario database based on the reporting request sent by the at least one mobile terminal and the corresponding relationship between the location information and the location information of multiple stored places, where the scenario database is used to provide a scenario recognition function.
[0232] In a possible implementation manner, the reporting request further carries first scenario supplementary information of the mobile terminal, where the first scenario supplementary information is used to supplement and characterize the scenario where the mobile terminal is currently located; the scenario database is used to store the corresponding relationship between the location information, the cell identifier, and the scenario supplementary information;
[0233] The building module 802 is configured to, for any mobile terminal, determine the location information of a third venue that matches the first location information from the correspondence between the first location information reported by the mobile terminal and the location information and venue information of multiple venues stored; and build the scenario database based on the location information of the third venue, the cell identifier of the first cell, and the first scenario supplementary information of the mobile terminal.
[0234] In another possible implementation, the building module 802 is configured to search for the location information of the third venue in the scenario database; in the case where the location information of the third venue is not found, associate and store the location information of the third venue, the cell identifier of the first cell, and the first scenario supplementary information in the scenario database; in the case where the location information of the third venue is found, update the cell identifier and scenario supplementary information corresponding to the location information of the third venue in the scenario database based on the cell identifier of the first cell and the first scenario supplementary information.
[0235] In another possible implementation, the apparatus further includes:
[0236] A fourth receiving module, configured to receive a first scenario recognition request of the mobile terminal, where the first scenario recognition request carries the cell identifier of a second cell to which the mobile terminal is currently connected and second scenario supplementary information;
[0237] A fourth determining module, configured to determine the location information of a first venue corresponding to the cell identifier of the second cell and the second scenario supplementary information from the scenario recognition library based on the cell identifier of the second cell and the second scenario supplementary information;
[0238] A fourth sending module, configured to send the location information of the first venue to the mobile terminal.
[0239] In another possible implementation, the reporting request further carries first scenario supplementary information of the mobile terminal, where the first scenario supplementary information is used to supplement and characterize the scenario where the mobile terminal is currently located; the scenario database is used to store the correspondence between location information and cell identifiers;
[0240] The building module 802 is configured to, for any mobile terminal, determine the location information of a fourth venue that matches the first location information from the correspondence between the first location information, the first scenario supplementary information reported by the mobile terminal, and the location information and location information of multiple venues stored; and build the scenario database based on the location information of the fourth venue and the cell identifier of the first cell.
[0241] In another possible implementation, the building module 802 is configured to expand the first location information based on the first scenario supplementary information to obtain a first location range; and determine the location information of a fourth location located within the first location range from the correspondence between the location information and the location information of the multiple locations.
[0242] In another possible implementation, the apparatus further includes:
[0243] A fifth receiving module, configured to receive a second scenario recognition request of the mobile terminal, where the second scenario recognition request carries a cell identifier of a second cell to which the mobile terminal is currently connected;
[0244] A fifth determining module, configured to determine the location information of a second location corresponding to the cell identifier of the second cell from the scenario recognition library based on the cell identifier of the second cell;
[0245] A fifth sending module, configured to send the location information of the second location to the mobile terminal.
[0246] In the embodiments of the present application, when the mobile terminal uses the positioning function and the mobile terminal enables the crowdsourcing collection function, the mobile terminal reports the first location information obtained by positioning and the cell identifier of the first cell covered by the first location information to the server, so that the server obtains the data required by the scenario database; since each mobile terminal that enables the crowdsourcing collection function will report the data required to build the scenario database to the server through this solution; therefore, the embodiments of the present application can implement the collection of the data required by the scenario database based on the crowdsourcing method, and compared with the process of manually collecting data, the data collection cost and difficulty are reduced. 。
[0247] It should be noted that when the scenario recognition apparatus provided in the above embodiments performs scenario recognition, only the above-mentioned division of each functional module is used for illustration. In actual applications, the above functions can be allocated to different functional modules as needed, that is, the internal structure of the server is divided into different functional modules to complete all or part of the functions described above. In addition, the scenario recognition apparatus provided in the above embodiments and the embodiments of the scenario recognition method belong to the same concept, and the specific implementation process is detailed in the method embodiments, which will not be repeated here.
[0248] See Figure 9 , Figure 9 is a schematic structural diagram of a mobile terminal 900 provided by an exemplary embodiment of the present application. The mobile terminal 900 may further include one or more of the following components: a processor 910, a memory 920, and a display screen 930.
[0249] The processor 910 connects various parts within the entire mobile terminal 900 using various interfaces and circuits. By running or executing instructions, programs, code sets, or instruction sets stored in the memory 920, and by invoking the data stored in the memory 920, it performs various functions of the mobile terminal 900 and processes data. Optionally, the processor 910 can be implemented in at least one hardware form of digital signal processing (DSP), field-programmable gate array (FPGA), or programmable logic array (PLA). The processor 910 can integrate one or a combination of several of a central processing unit (CPU), a graphics processing unit (GPU), a neural-network processing unit (NPU), and a modem, etc. Among them, the CPU mainly processes the operating system, user interface, and application programs, etc.; the GPU is responsible for rendering and drawing the content to be displayed on the display screen 930; the NPU is used to implement artificial intelligence (AI) functions; the modem is used to process wireless communications. It can be understood that the above-mentioned modem may not be integrated into the processor 910 and can be implemented separately through a computer program product.
[0250] The memory 920 can include random access memory (RAM) and can also include read-only memory (ROM). Optionally, the memory 920 includes a non-transitory computer-readable storage medium. The memory 920 can be used to store instructions, programs, code, code sets, or instruction sets. The memory 920 can include a program storage area and a data storage area. Among them, the program storage area can store instructions for implementing the operating system, instructions for at least one function (such as touch function, sound playback function, image playback function, etc.), instructions for implementing the following various method embodiments, etc.; the data storage area can store data created according to the use of the mobile terminal 900 (such as audio data, phone book, etc.).
[0251] The display screen 930 is a display component for displaying a user interface. Optionally, the display screen 930 is a display screen with a touch function. Through the touch function, the user can perform touch operations on the display screen 930 using a finger, a stylus, or any suitable object.
[0252] The display screen 930 is usually disposed on the front panel of the mobile terminal 900. The display screen 930 can be designed as a full-screen, a curved screen, a special-shaped screen, a double-sided screen or a foldable screen. The display screen 930 can also be designed as a combination of a full-screen and a curved screen, a combination of a special-shaped screen and a curved screen, etc., which are not limited in this embodiment.
[0253] In addition, those skilled in the art can understand that the structure of the mobile terminal 900 shown in the above drawings does not constitute a limitation on the mobile terminal 900. The mobile terminal 900 may include more or fewer components than shown in the drawings, or combine certain components, or have different component arrangements. For example, the mobile terminal 900 further includes components such as a Wireless Fidelity (WiFi) module, an audio acquisition device, a speaker, a radio frequency circuit, an input unit, a sensor, an audio circuit, a Bluetooth module, a power supply, etc., which will not be elaborated here.
[0254] Please refer to Figure 10 , Figure 10 which shows a structural block diagram of a server 1000 provided by an exemplary embodiment of the present application. The server 1000 includes a processor (central processing units, CPU) 1001 and a memory 1002. Among them, at least one program code is stored in the memory 1002, and the at least one program code is loaded and executed by the processor 1001 to implement the analysis method of vehicle data provided by the above-mentioned various method embodiments. Of course, the server 1000 may also have components such as a wired or wireless network interface, a keyboard, and an input / output interface for input / output. The server 1000 may further include other components for implementing the functions of the device, which will not be elaborated here.
[0255] Those skilled in the art can understand that Figure 10 the structure shown in
[0256] does not constitute a limitation on the server 1000, and it may include more or fewer components than shown in the drawings, or combine certain components, or adopt different component arrangements.
[0257] On the other hand, the embodiments of the present application provide a computer-readable storage medium storing at least one computer instruction for being executed by a processor to implement the scene recognition method as described in the above embodiments.
[0257] On the other hand, the embodiments of the present application provide a computer program product including computer instructions stored in a computer-readable storage medium; the processor reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions to implement the scene recognition method as described in the above embodiments.
[0258] Those skilled in the art should be able to realize that in one or more of the above examples, the functions described in the embodiments of the present application can be implemented by hardware, software, firmware, or any combination thereof. When implemented using software, these functions can be stored in a computer-readable medium or transmitted as one or more instructions or codes on a computer-readable medium. The computer-readable medium includes computer storage media and communication media, where the communication media includes any medium that facilitates the transmission of a computer program from one place to another. The storage media can be any available medium accessible by a general-purpose or special-purpose computer.
[0259] The above are only alternative embodiments of the present application and are not intended to limit the present application. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of the present application shall be included within the protection scope of the present application.
Claims
1. A scene recognition method, characterized in that, The method is applied to a mobile terminal and includes: When using the positioning function, positioning the current first location information of the mobile terminal based on the positioning function; When the crowdsourcing collection function of the mobile terminal is enabled, obtaining the cell identifier of the first cell, where the first cell is the cell covering the first location information; Sending a reporting request to the server, where the reporting request carries the first location information and the cell identifier of the first cell, so that the server constructs a scene database based on the first location information and the cell identifier of the first cell, and the scene database is used to provide a scene recognition function.
2. The method according to claim 1, characterized in that, The method further includes: Obtaining first scene supplementary information of the mobile terminal, where the scene supplementary information is used to supplement and characterize the scene where the mobile terminal is currently located; The sending the reporting request to the server includes: Sending a reporting request to the server, where the reporting request carries the first location information, the cell identifier of the first cell, and the first scene supplementary information, so that the server constructs the scene database based on the first location information, the cell identifier of the first cell, and the first scene supplementary information.
3. The method according to claim 2, wherein The obtaining the current first scene supplementary information of the mobile terminal includes at least one of the following implementation manners, including: Obtaining the wireless network information scanned by the mobile terminal and determining the wireless network information as the first scene supplementary information; Obtaining the cell additional information of the first cell, where the cell additional information is used to additionally describe the first cell, and determining the cell additional information as the first scene supplementary information.
4. The method according to claim 3, characterized in that The obtaining the wireless network information scanned by the mobile terminal includes at least one of the following implementation manners: Scanning through the Wi-Fi function of the mobile terminal to obtain the network information of at least one scanned Wi-Fi network; Scanning through the Bluetooth function of the mobile terminal to obtain the device information of at least one scanned Bluetooth device.
5. The method according to claim 3, characterized in that, The obtaining the cell additional information of the first cell includes at least one of the following implementation manners: Obtaining the network mode of the first cell and determining the network mode of the first cell as the cell additional information; Obtaining the quality parameter value of the first cell, where the quality parameter value is used to represent the signal quality of the first cell, and determining the quality parameter value of the first cell as the cell additional information.
6. The method according to claim 1, characterized in that, The scene database is used to store the correspondence relationship between the venue information, the cell identifier, and the first scene supplementary information; The method further includes: When the cell currently accessed by the mobile terminal undergoes a handover, obtaining the cell identifier of the second cell after the handover of the mobile terminal; Obtaining the current second scene supplementary information of the mobile terminal; Send a first scenario recognition request to the server, where the first scenario recognition request carries the cell identifier of the second cell and the second scenario supplementary information, so that the server determines the location information of the first location corresponding to the cell identifier of the second cell and the second scenario supplementary information from the scenario database; Receive the location information of the first location sent by the server; Determine the current scenario where the mobile terminal is located based on the location information of the first location.
7. The method according to claim 6, wherein The determining the current scenario where the mobile terminal is located based on the location information of the first location includes at least one of the following implementation manners: When the location information of the first location belongs to the location information of a crowded place, determine that the current scenario where the mobile terminal is located is a crowded scenario, and the crowded scenario is a scenario corresponding to a place where the number of people flow exceeds a preset number of people flow; When the location information of the first location belongs to the location information of a crowded place, obtain the moving state of the mobile terminal. When the moving state of the mobile terminal belongs to the riding state, determine that the current scenario where the mobile terminal is located is a high-speed moving scenario, and the high-speed moving scenario refers to a scenario where the moving speed of the mobile terminal exceeds a preset speed.
8. The method according to claim 1, characterized in that, The scenario database is used to store the correspondence between location information and cell identifiers; The method further includes: When the mobile terminal switches the currently accessed cell, obtain the cell identifier of the second cell after the mobile terminal switches; Send a second scenario recognition request to the server, where the second scenario recognition request carries the cell identifier of the second cell, so that the server determines the location information of the second location corresponding to the cell identifier of the second cell from the scenario database; Receive the location information of the second location sent by the server; Determine the current scenario where the mobile terminal is located based on the location information of the second location and the moving state of the mobile terminal.
9. The method according to claim 6 or 8, characterized in that, The method further includes: Determine communication optimization information matching the scenario based on the current scenario where the mobile terminal is located, and the communication optimization information is used to optimize the communication quality of the mobile terminal; Optimize the communication quality of the mobile terminal based on the communication optimization information.
10. The method according to claim 9, characterized in that, The determining the communication optimization information matching the scenario based on the current scenario where the mobile terminal is located includes at least one of the following implementation manners: When the communication scenario of the mobile terminal is a crowded scenario, determine first communication optimization information matching the communication scenario, and the first communication optimization information is used to indicate increasing the transmission power, and the crowded scenario refers to a scenario where the mobile terminal is in a place where the number of people flow exceeds a preset number of people flow; When the communication scenario of the mobile terminal is a high-speed mobile scenario, determine second communication optimization information matching the communication scenario, where the second communication optimization information is used to indicate reducing the cell reselection period, and the high-speed mobile scenario refers to a scenario where the moving speed of the mobile terminal exceeds a preset speed.
11. The method according to any one of claims 1-8, characterized in that, The method further includes: When the number of times the mobile terminal enters a target scenario exceeds a preset number, display a prompt message, where the prompt message is used to prompt the mobile terminal to turn on the crowdsourcing collection function, and the target scenario is a scenario recognized by the scenario database; In response to a confirmation instruction, turn on the crowdsourcing collection function.
12. A scene recognition method, characterized in that, The method is applied to a server and includes: Receive a reporting request sent by at least one mobile terminal, where the reporting request sent by the mobile terminal carries the current first location information of the mobile terminal and the cell identifier of the first cell covered by the first location information, and the reporting request is sent when the mobile terminal turns on the crowdsourcing collection function, and the first location information is obtained when the mobile terminal uses the positioning function; Based on the reporting requests sent by the at least one mobile terminal and the corresponding relationship between the location information and venue information of multiple venues stored, construct a scenario database, where the scenario database is used to provide a scenario recognition function.
13. The method according to claim 12, wherein The reporting request further carries first scenario supplementary information of the mobile terminal, where the first scenario supplementary information is used to supplement and characterize the scenario where the mobile terminal is currently located; the scenario database is used to store the corresponding relationship between venue information, cell identifier, and scenario supplementary information; In the constructing of the scenario database based on the reporting requests sent by the at least one mobile terminal and the corresponding relationship between the location information and venue information of multiple venues stored, it includes: For any mobile terminal, based on the first location information reported by the mobile terminal and the corresponding relationship between the location information and venue information of multiple venues stored, determine the venue information of the third venue matching the first location information; Based on the venue information of the third venue, the cell identifier of the first cell, and the first scenario supplementary information of the mobile terminal, construct the scenario database.
14. The method according to claim 13, wherein In the constructing of the scenario database based on the venue information of the third venue, the cell identifier of the first cell, and the first scenario supplementary information of the mobile terminal, it includes: Search for the venue information of the third venue in the scenario database; In the case where the venue information of the third venue is not found, associate and store the venue information of the third venue, the cell identifier of the first cell, and the first scenario supplementary information in the scenario database; In the case where the venue information of the third venue is found, update the cell identifier and scenario supplementary information corresponding to the venue information of the third venue in the scenario database based on the cell identifier of the first cell and the first scenario supplementary information.
15. The method according to claim 13, wherein The method further includes: Receive a first scenario recognition request of the mobile terminal, where the first scenario recognition request carries a cell identifier of a second cell to which the mobile terminal is currently connected and second scenario supplementary information; Based on the cell identifier of the second cell and the second scenario supplementary information, determine location information of a first location corresponding to the cell identifier of the second cell and the second scenario supplementary information from the scenario recognition library; Send the location information of the first location to the mobile terminal.
16. The method according to claim 12, wherein The reporting request further carries first scenario supplementary information of the mobile terminal, where the first scenario supplementary information is used to supplement and characterize the scenario where the mobile terminal is currently located; the scenario database is used to store the correspondence between location information and cell identifiers; In the correspondence between the reporting requests sent by the at least one mobile terminal and the location information and location information of multiple stored locations, constructing a scenario recognition library includes: For any mobile terminal, based on the first location information reported by the mobile terminal, the first scenario supplementary information, and the correspondence between the location information and location information of multiple stored locations, determine the location information of a fourth location that matches the first location information; Based on the location information of the fourth location and the cell identifier of the first cell, construct the scenario database.
17. The method according to claim 16, wherein Determining the location information of a fourth location that matches the first location information based on the first location information reported by the mobile terminal, the first scenario supplementary information, and the correspondence between the location information and location information of multiple stored locations includes: Based on the first scenario supplementary information, expand the first location information to obtain a first location range; Based on the first location range, determine the location information of a fourth location located within the first location range from the correspondence between the location information and location information of the multiple locations.
18. The method according to claim 16, wherein The method further includes: Receive a second scenario recognition request of the mobile terminal, where the second scenario recognition request carries a cell identifier of a second cell to which the mobile terminal is currently connected; Based on the cell identifier of the second cell, determine the location information of a second location corresponding to the cell identifier of the second cell from the scenario recognition library; Send the location information of the second location to the mobile terminal.
19. A scene recognition device, characterized in that, The device is deployed in the mobile terminal, and the device includes: A positioning module, configured to, when using the positioning function, locate the current first location information of the mobile terminal based on the positioning function; A first acquisition module, configured to, when the mobile terminal enables the crowdsourcing collection function, acquire a cell identifier of a first cell, where the first cell is the cell covered by the first location information; A first sending module, configured to send a reporting request to the server, where the reporting request carries the first location information and the cell identifier of the first cell, so that the server constructs a scenario database based on the first location information and the cell identifier of the first cell, and the scenario database is used to provide a scenario recognition function.
20. A scene recognition device, characterized in that, The device is deployed in the server, and the device includes: A third receiving module, configured to receive a reporting request sent by at least one mobile terminal, where the reporting request sent by the mobile terminal carries the current first location information of the mobile terminal and the cell identifier of the first cell covered by the first location information, and the reporting request is sent when the mobile terminal enables the crowdsourcing collection function, and the first location information is obtained when the mobile terminal uses the positioning function; A building module, configured to build a scenario database based on the reporting requests sent by the at least one mobile terminal and the correspondence between the location information and the scenario information of multiple stored venues, where the scenario database is used to provide a scenario recognition function.
21. A mobile terminal, characterized in that, The mobile terminal includes a processor and a memory, and at least one computer instruction is stored in the memory, and the at least one computer instruction is loaded and executed by the processor to implement the scenario recognition method according to any one of claims 1 to 11.
22. A server, characterized in that, The server includes a processor and a memory, and at least one computer instruction is stored in the memory, and the at least one computer instruction is loaded and executed by the processor to implement the scenario recognition method according to any one of claims 12 to 18.
23. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores at least one computer instruction, and the at least one computer instruction is used to be executed by a processor to implement the scenario recognition method according to any one of claims 1 to 18.
24. A computer program product, characterized in that, The computer program product includes computer instructions, and the computer instructions are stored in a computer-readable storage medium; a processor reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions to implement the scenario recognition method according to any one of claims 1 to 18.