Floor positioning method and device, electronic equipment and storage medium
By calculating the elevator running speed and inputting the preset floor correction model, the problem that the average floor height cannot reflect the true height is solved, and the accuracy of floor positioning is improved.
Patent Information
- Application Number
- CN202410616917.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-17
- Publication Date
- 2024-08-23
AI Technical Summary
For floor positioning in a building, the average floor height cannot reflect the true height, resulting in inaccurate calculation of floor changes, which in turn affects positioning accuracy.
By obtaining the terminal's residence time in the elevator, the number of broadband registered floors and the building height, the elevator's running speed is calculated, and these data are input into the preset floor correction model to obtain the terminal's floor positioning information.
It improves the accuracy of elevator running speed, thereby improving the accuracy of floor changes and floor positioning.
Smart Images

Figure CN118540787A
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of data processing technology, and in particular to a method and device for floor positioning, an electronic device and a storage medium. Background Art
[0002] Outdoors, satellite positioning can accurately locate the terminal's position, but the satellite signal is weak when it reaches the ground and cannot penetrate buildings. Satellite positioning cannot be used inside buildings. Since buildings have different floors, in order to locate the terminal inside the building, it is necessary to locate the floor where the terminal is located.
[0003] In the related technologies of floor positioning, the floor where the terminal is located after leaving the elevator is usually determined based on the floor where the terminal is located before taking the elevator and the floor change amount of the terminal.
[0004] The floor change is calculated based on the ratio of the terminal's displacement data in the elevator and the average height of the floor. Since the average height of the building floors cannot reflect the actual height of the floors, the floor change calculation is inaccurate, which in turn leads to inaccurate floor positioning. Summary of the invention
[0005] The present disclosure provides a method and device for floor positioning, an electronic device and a storage medium, the main purpose of which is to solve the problem that the average height of the floor cannot reflect the real height of the floor, resulting in inaccurate calculation of the floor change, and thus inaccurate floor positioning.
[0006] According to a first aspect of the present disclosure, a method for floor positioning is provided, comprising:
[0007] Obtaining the dwelling time of the terminal in the elevator of the target building, obtaining the broadband registration floor number corresponding to the broadband through which the terminal is connected to the target building, and obtaining the building height of the target building;
[0008] Calculating the dwell time and the number of broadband registered floors to obtain a target operating speed of the elevator;
[0009] The building height, the dwell time, the number of broadband registered floors and the target running speed are input into a preset floor correction model to obtain the floor positioning information of the terminal.
[0010] Optionally, obtaining the dwelling time of the terminal in the elevator of the target building includes:
[0011] Acquire a connection time when the terminal is connected to the broadband, and acquire a base station connection signal strength of the terminal within a first preset period before the connection time;
[0012] If it is determined that the decrease in the base station connection signal strength within the second preset period is greater than a preset threshold, obtaining a start time of decrease in the decrease;
[0013] If it is determined that the increase in the base station connection signal strength within the third preset period is greater than the preset threshold, then obtaining the start time of the increase in the increase; the third preset period is a period within the first preset period that is different from the second preset period;
[0014] The start time of decrease and the start time of increase are calculated to obtain the residence time.
[0015] Optionally, obtaining the dwelling time of the terminal in the elevator of the target building further includes:
[0016] Acquire base station switching information of the terminal within the first preset period before the connection moment; the base station switching information includes first switching information of switching from a building base station to an elevator base station and second switching information of switching from the elevator base station to the building base station;
[0017] If it is determined that the first switching information exists in the base station switching information, obtaining a first switching time of the first switching information;
[0018] If it is determined that the second switching information exists in the base station switching information, obtaining a second switching time of the second switching information;
[0019] The first switching moment and the second switching moment are calculated to obtain the dwell time.
[0020] Optionally, obtaining the dwelling time of the terminal in the elevator of the target building further includes:
[0021] Obtaining a disconnection time at which the terminal disconnects the broadband, and obtaining a base station connection signal strength of the terminal within a first preset period after the disconnection time;
[0022] If it is determined that the decrease in the base station connection signal strength within the second preset period is greater than a preset threshold, obtaining a start time of decrease in the decrease;
[0023] If it is determined that the increase in the base station connection signal strength within the third preset period is greater than the preset threshold, then obtaining the start time of the increase in the increase; the third preset period is a period within the first preset period that is different from the second preset period;
[0024] The start time of decrease and the start time of increase are calculated to obtain the residence time.
[0025] Optionally, obtaining the dwelling time of the terminal in the elevator of the target building further includes:
[0026] Acquire base station switching information of the terminal within the first preset period after the disconnection moment; the base station switching information includes first switching information from a building base station to an elevator base station and second switching information from the elevator base station to the building base station;
[0027] If it is determined that the first switching information exists in the base station switching information, obtaining a first switching time of the first switching information;
[0028] If it is determined that the second switching information exists in the base station switching information, obtaining a second switching time of the second switching information;
[0029] The first switching moment and the second switching moment are calculated to obtain the dwell time.
[0030] Optionally, before inputting the building height, the dwell time, the number of broadband registered floors and the target running speed into a preset floor correction model to obtain the floor positioning information of the terminal, the method further includes:
[0031] Obtain training building height, training dwell time, training broadband registered floor number and training target running speed;
[0032] The initial floor correction model is trained using the training building height, the training dwell time, the training broadband registered floor number and the training target running speed to obtain the preset floor correction model.
[0033] Optionally, the using the training building height, the training dwell time, the training broadband registered floor number and the training target running speed to train the initial floor correction model to obtain the preset floor correction model includes:
[0034] The training building height, the training dwell time, the training broadband registered floor number and the training target running speed are input into the initial floor correction model to obtain the preset floor correction model; wherein the training process is:
[0035] The training building height, the training dwell time, the training broadband registered floor number and the training target running speed are learned to obtain a loss function; wherein the loss function includes the weight parameters of the initial floor correction model;
[0036] The weight parameters are adjusted in such a way that the loss function approaches a minimum value.
[0037] Optionally, before inputting the building height, the dwell time, the number of broadband registered floors and the target running speed into a preset floor correction model to obtain the floor positioning information of the terminal, the method further includes:
[0038] Obtaining the target floor number of the target building;
[0039] According to a pre-established mapping relationship between the floor number and the running speed of the elevator, the target running speed corresponding to the target floor number is searched.
[0040] According to a second aspect of the present disclosure, a floor positioning device is provided, comprising:
[0041] A first acquisition unit is used to acquire the residence time of the terminal in the elevator of the target building, acquire the broadband registration floor number corresponding to the broadband of the terminal connected to the target building, and acquire the building height of the target building;
[0042] A calculation unit, used to calculate the dwell time and the number of broadband registered floors to obtain a target running speed of the elevator;
[0043] The input unit is used to input the building height, the dwell time, the number of broadband registered floors and the target running speed into a preset floor correction model to obtain the floor positioning information of the terminal.
[0044] Optionally, the first acquiring unit includes:
[0045] An acquisition module, used to acquire a connection time when the terminal is connected to the broadband, and acquire a base station connection signal strength of the terminal within a first preset period before the connection time;
[0046] The acquisition module is further configured to, when it is determined that the amount of decrease in the base station connection signal strength within the second preset period is greater than a preset threshold, acquire the start time of decrease in the amount of decrease;
[0047] The acquisition module is further configured to, when it is determined that the increase in the base station connection signal strength within a third preset period is greater than the preset threshold, acquire the start time of increase in the increase; the third preset period is a period within the first preset period that is different from the second preset period;
[0048] A calculation module is used to calculate the start time of decrease and the start time of increase to obtain the residence time.
[0049] Optionally, the first acquiring unit further includes:
[0050] The acquisition module is further used to acquire base station switching information of the terminal within the first preset period before the connection moment; the base station switching information includes first switching information of switching from a building base station to an elevator base station and second switching information of switching from the elevator base station to the building base station;
[0051] The acquisition module is further configured to, when it is determined that the base station switching information contains the first switching information, acquire a first switching time of the first switching information;
[0052] The acquisition module is further configured to, when it is determined that the second switching information exists in the base station switching information, acquire a second switching time of the second switching information;
[0053] The calculation module is further used to calculate the first switching moment and the second switching moment to obtain the residence time.
[0054] Optionally, the first acquiring unit further includes:
[0055] The acquisition module is further used to acquire the disconnection time when the terminal disconnects the broadband, and acquire the base station connection signal strength of the terminal within a first preset period after the disconnection time;
[0056] The acquisition module is further configured to, when it is determined that the amount of decrease in the base station connection signal strength within the second preset period is greater than a preset threshold, acquire the start time of decrease in the amount of decrease;
[0057] The acquisition module is further configured to, when it is determined that the increase in the base station connection signal strength within a third preset period is greater than the preset threshold, acquire the start time of increase in the increase; the third preset period is a period within the first preset period that is different from the second preset period;
[0058] The calculation module is further used to calculate the start time of decrease and the start time of increase to obtain the residence time.
[0059] Optionally, the first acquiring unit further includes:
[0060] The acquisition module is further used to acquire the base station switching information of the terminal within the first preset period after the disconnection moment; the base station switching information includes first switching information from the building base station to the elevator base station and second switching information from the elevator base station to the building base station;
[0061] The acquisition module is further configured to, when it is determined that the base station switching information contains the first switching information, acquire a first switching time of the first switching information;
[0062] The acquisition module is further configured to, when it is determined that the second switching information exists in the base station switching information, acquire a second switching time of the second switching information;
[0063] The calculation module is further used to calculate the first switching moment and the second switching moment to obtain the residence time.
[0064] Optionally, the device further comprises:
[0065] A second acquisition unit is used to acquire a training building height, a training dwell time, a training broadband registered floor number and a training target running speed before inputting the building height, the dwell time, the broadband registered floor number and the target running speed into a preset floor correction model to obtain the floor positioning information of the terminal;
[0066] The training unit is used to train the initial floor correction model using the training building height, the training dwell time, the training broadband registered floor number and the training target running speed to obtain the preset floor correction model.
[0067] Optionally, the training unit includes:
[0068] An input module is used to input the training building height, the training dwell time, the training broadband registered floor number and the training target running speed into the initial floor correction model to obtain the preset floor correction model; wherein the training process is,
[0069] A learning module, used to learn the training building height, the training dwell time, the training broadband registered floor number and the training target running speed to obtain a loss function; wherein the loss function includes a weight parameter of the initial floor correction model;
[0070] An adjustment module is used to adjust the weight parameter in a manner that makes the loss function approach a minimum value.
[0071] Optionally, the device further comprises:
[0072] The first acquisition unit is further used to acquire the target floor number of the target building before inputting the building height, the dwell time, the broadband registered floor number and the target running speed into a preset floor correction model to obtain the floor positioning information of the terminal;
[0073] The search unit is used to search for the target running speed corresponding to the target floor number according to a pre-established mapping relationship between the floor number and the running speed of the elevator.
[0074] According to a third aspect of the present disclosure, there is provided an electronic device, including:
[0075] at least one processor; and
[0076] a memory communicatively connected to the at least one processor; wherein,
[0077] The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the method described in the first aspect.
[0078] According to a fourth aspect of the present disclosure, a non-transitory computer-readable storage medium storing computer instructions is provided, wherein the computer instructions are used to enable the computer to execute the method described in the first aspect.
[0079] According to a fifth aspect of the present disclosure, a computer program product is provided, comprising a computer program, wherein when the computer program is executed by a processor, the computer program implements the method as described in the first aspect above.
[0080] The method and device, electronic device and storage medium for floor positioning provided by the present disclosure obtain the residence time of the terminal in the elevator of the target building, obtain the broadband registration floor number corresponding to the broadband of the terminal connected to the target building, and obtain the building height of the target building; calculate the residence time and the broadband registration floor number to obtain the target running speed of the elevator; input the building height, the residence time, the broadband registration floor number and the target running speed into a preset floor correction model to obtain the floor positioning information of the terminal. Compared with the related art, the embodiment of the present disclosure calculates the target running speed of the elevator by using the residence time of the terminal in the elevator of the target building and the broadband registration floor number corresponding to the broadband of the terminal connected to the target building, and inputs the building height, residence time, broadband registration floor number and target running speed of the target building into a preset floor correction model to obtain the floor positioning information of the terminal, thereby improving the accuracy of the target running speed of the elevator, thereby improving the accuracy of the terminal floor change amount, and improving the accuracy of floor positioning.
[0081] It should be understood that the content described in this section is not intended to identify the key or important features of the embodiments of the present application, nor is it intended to limit the scope of the present application. Other features of the present application will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0082] The accompanying drawings are used to better understand the present solution and do not constitute a limitation of the present disclosure.
[0083] Figure 1A schematic diagram of a flow chart of a floor positioning method provided by an embodiment of the present disclosure;
[0084] Figure 2 A schematic flow chart of a method for obtaining the dwell time in an elevator provided in an embodiment of the present disclosure;
[0085] Figure 3 A schematic diagram of a method for obtaining a dwell time value provided by an embodiment of the present disclosure;
[0086] Figure 4 A schematic diagram of a training process of a preset floor correction model provided in an embodiment of the present disclosure;
[0087] Figure 5 A schematic diagram of the structure of a floor positioning device provided by an embodiment of the present disclosure;
[0088] Figure 6 A schematic diagram of the structure of another floor positioning device provided by an embodiment of the present disclosure;
[0089] Figure 7 A schematic block diagram of an exemplary electronic device provided for an embodiment of the present disclosure. DETAILED DESCRIPTION
[0090] The following is a description of exemplary embodiments of the present disclosure in conjunction with the accompanying drawings, including various details of the embodiments of the present disclosure to facilitate understanding, which should be considered as merely exemplary. Therefore, it should be recognized by those of ordinary skill in the art that various changes and modifications may be made to the embodiments described herein without departing from the scope and spirit of the present disclosure. Similarly, for the sake of clarity and conciseness, descriptions of well-known functions and structures are omitted in the following description.
[0091] The following describes the floor positioning method and device, electronic device and storage medium according to the embodiments of the present disclosure with reference to the accompanying drawings.
[0092] Figure 1 A flowchart of a floor positioning method provided in an embodiment of the present disclosure.
[0093] like Figure 1 As shown, the method is applied in a server, and the method comprises the following steps:
[0094] Step 101, obtaining the dwelling time of the terminal in the elevator of the target building, obtaining the broadband registration floor number corresponding to the broadband through which the terminal is connected to the target building, and obtaining the building height of the target building.
[0095] The terminal is a device that can connect to the Internet and conduct data communications, such as a smart phone, tablet computer, or laptop computer; the target building is the building where the terminal is currently located, and the target building has a multi-story structure, such as an office building, apartment building, or shopping mall; the dwell time is the time the terminal takes in the elevator from one floor to another; the number of floors registered for broadband is the specific number of floors of the broadband account opening location filled in and uploaded when the broadband account is opened; the building height is the total number of floors or the total height of the target building.
[0096] When the terminal enters or exits the elevator, the connection signal strength between the terminal and the base station will change. When the terminal enters the elevator, the connection signal strength between the terminal and the base station will decay sharply. When the terminal leaves the elevator, the connection signal strength between the terminal and the base station will improve sharply. The residence time is obtained by obtaining the first moment when the connection signal strength decays sharply and the second moment when the connection signal improves sharply, and calculating the difference between the first moment and the second moment. However, it should be clear that this statement is not intended to limit the method for obtaining the residence time to only the above method, but may also be other methods.
[0097] To facilitate understanding, an example is provided. It is assumed that the terminal enters the elevator at 8:50:10. When the elevator door closes, the connection signal strength between the terminal and the base station decays sharply. The elevator door closes at 8:50:13. After the elevator runs for a while, the elevator door opens again, and the connection signal strength between the terminal and the base station improves sharply. The elevator door opens at 8:50:23. The difference between 8:50:23 and 8:50:13 is calculated, and the dwell time is 10 seconds.
[0098] A Media Access Control (MAC) address corresponds to a broadband registration floor number, where the MAC address is the unique identification information of the broadband in the network. A mapping relationship is established between the MAC address and the corresponding broadband registration floor number and stored in the server. When the terminal is connected to the broadband, the MAC address of the broadband will be obtained, and then the corresponding broadband registration floor number will be found through the MAC address.
[0099] The broadband account opening location information filled in and uploaded when opening a broadband account includes the building height. By establishing a mapping relationship between the MAC address and the corresponding building height and storing it in the server, the corresponding building height can be found by the MAC address.
[0100] By obtaining the time the terminal stays in the elevator of the target building, you can understand the time the elevator stays on different floors, optimize the elevator operation plan, reduce waiting time and improve efficiency. By obtaining the number of broadband registered floors corresponding to the broadband of the terminal connected to the target building, you can understand the number of broadband registered floors, which can help optimize the deployment of network equipment, ensure network coverage and quality, and provide better network services. By obtaining the building height of the target building, it is helpful for building management, such as maintenance and safety assessment.
[0101] Step 102, calculating the dwell time and the number of broadband registered floors to obtain a target operating speed of the elevator.
[0102] There is a correlation between the elevator's running speed, dwelling time and number of broadband registered floors. For example, the time an elevator stays at a certain floor may be related to the activity density on that floor, while the number of broadband registered floors may reflect the network usage in the building. By calculating the dwelling time and the number of broadband registered floors and combining them to obtain the elevator's target running speed, the elevator's running time between different floors can be estimated more accurately, thereby more accurately determining the floor location of the terminal device.
[0103] For ease of understanding, an example is provided. Assuming that the dwell time is 5 seconds and the number of broadband registered floors is 15, the target running speed is 15 / 5=3.
[0104] By utilizing the target running speed, the accuracy and reliability of floor positioning can be improved to meet specific positioning needs, such as indoor navigation and positioning services.
[0105] Step 103: Input the building height, the dwell time, the number of broadband registered floors and the target running speed into a preset floor correction model to obtain the floor positioning information of the terminal.
[0106] Since the broadband registration floor number is the floor number filled in and uploaded when the broadband account is opened, the broadband registration floor number may be filled in incorrectly. Therefore, the broadband registration floor number cannot truly reflect the actual floor where the terminal is located when the terminal is connected to the broadband. It is necessary to use the preset floor correction model to correct the broadband registration floor number.
[0107] Among them, the preset floor correction model is a model built based on a neural network, which is used to more accurately estimate or correct the floor position of the terminal based on multiple input parameters (such as building height, residence time, number of broadband registered floors and target running speed).
[0108] In floor positioning, there may be some factors that affect the accuracy of positioning, such as fluctuations in elevator running speed, uneven distribution of floor heights, network data delays, etc. In order to compensate for the errors caused by these factors, the preset floor correction model is used to correct the floor positioning based on the input information such as building height, dwell time, number of broadband registered floors and target running speed to obtain more accurate floor positioning results.
[0109] The floor positioning method provided by the present disclosure obtains the residence time of the terminal in the elevator of the target building, obtains the broadband registration floor number corresponding to the broadband of the terminal connected to the target building, and obtains the building height of the target building; calculates the residence time and the broadband registration floor number to obtain the target running speed of the elevator; inputs the building height, the residence time, the broadband registration floor number and the target running speed into a preset floor correction model to obtain the floor positioning information of the terminal. Compared with the related art, the embodiment of the present disclosure calculates the target running speed of the elevator by using the residence time of the terminal in the elevator of the target building and the broadband registration floor number corresponding to the broadband of the terminal connected to the target building, and inputs the building height, residence time, broadband registration floor number and target running speed of the target building into a preset floor correction model to obtain the floor positioning information of the terminal, thereby improving the accuracy of the target running speed of the elevator, thereby improving the accuracy of the terminal floor change amount, and improving the accuracy of floor positioning.
[0110] As a refinement of step 101, when executing the acquisition of the dwelling time of the terminal in the elevator of the target building, it can be implemented in the following manners but not limited to: Figure 2 As shown, Figure 2 A flow chart of a method for obtaining the dwell time in an elevator provided in an embodiment of the present disclosure includes:
[0111] Step 201: Acquire the connection time when the terminal is connected to the broadband, and acquire the base station connection signal strength of the terminal within a first preset period before the connection time.
[0112] The connection time is the time point when the terminal is connected to the broadband network, and the base station connection signal strength is the signal strength between the terminal and the base station. The first preset period can be any period, for example, 1 minute, but it should be clear that this statement is not intended to limit the first preset period to only 1 minute, and can also be other periods, which is not limited in the embodiments of the present disclosure.
[0113] By obtaining the connection time when the terminal connects to the broadband and the base station connection signal strength, it can help determine the location of the terminal at a specific time. The base station connection signal strength varies with the distance from the base station, so this feature can be used to infer the approximate location of the terminal.
[0114] Step 202: If it is determined that the amount of decrease in the base station connection signal strength within the second preset period is greater than a preset threshold, then the time when the amount of decrease starts to decrease is obtained.
[0115] When the decrease in the station connection signal strength within the second preset period is greater than the preset period, it means that the terminal has entered the elevator. By obtaining the start time of the decrease, the starting time point of the terminal entering the elevator can be determined; wherein, the second preset period can be any value, for example, 2 seconds, and the preset threshold can be 20dBm, but it should be clear that this statement is not intended to limit the second preset period to only 2 seconds and the preset threshold to only 20dBm, and it can also be other periods and thresholds.
[0116] When a terminal enters a closed environment such as an elevator from an area with good signal (such as a floor corridor or outdoors), the metal structure and closed nature of the elevator will shield and attenuate the wireless communication signal of the mobile device, resulting in a significant decrease in the base station connection signal strength. By monitoring the change in the base station connection signal strength and setting a preset threshold to determine whether the signal strength reduction reaches a certain level, it can be indirectly inferred whether the mobile device has entered an elevator or other similar area with poor signal.
[0117] Once it is determined that the decrease in signal strength exceeds a preset threshold and the time when the decrease begins to decrease is obtained, this information can be further used to estimate the time the mobile device stays in areas such as elevators. This is because when the mobile device leaves the elevator, the base station connection signal strength will increase again. By recording the time when the signal strength starts to increase and comparing it with the previously recorded time when it starts to decrease, the time the mobile device stays in the elevator can be calculated.
[0118] For ease of understanding, an example is provided. Assume that within 2 seconds, the base station connection signal strength drops from -85dBm to -107dBm, with a difference of 22dBm, and the preset threshold is 20dBm, then it is determined that the terminal has entered the elevator.
[0119] Step 203: If it is determined that the increase in the base station connection signal strength within the third preset period is greater than the preset threshold, the start time of the increase in the increase is obtained; the third preset period is a period within the first preset period that is different from the second preset period.
[0120] When it is determined that the increase in the base station connection signal strength within the third preset period is greater than the preset threshold, and the time when the increase starts is obtained, it means that the terminal has left the area with weak signals before (such as inside an elevator), and the starting time point of leaving the area is determined.
[0121] The third preset period is a period within the first preset period but different from the second preset period, and is used to ensure that the system can capture changes in signal strength and accurately determine the moment when the terminal leaves the area with weak signals.
[0122] For ease of understanding, an example is provided. Assume that within 3 seconds, the base station connection signal strength improves from -107dBm to -85dBm, with a difference of 22dBm, and the preset threshold is 20dBm, then it is determined that the terminal has left the elevator.
[0123] Step 204, calculating the start time of decrease and the start time of increase to obtain the residence time.
[0124] By monitoring the changes in the base station connection signal strength and determining the start time of decrease and the start time of increase, the residence time of the mobile device in a closed space such as an elevator can be calculated.
[0125] For ease of understanding, an example is provided. Assuming that the start time of decrease is 9:50:10 and the start time of increase is 9:50:20, the stay time is 10 seconds.
[0126] As a refinement of step 101, when executing the acquisition of the residence time of the terminal in the elevator of the target building, it can also be implemented in the following manner but not limited to: the base station switching information of the terminal within the first preset period before the connection moment is acquired; the base station switching information includes the first switching information of the building base station switching to the elevator base station and the second switching information of the elevator base station switching to the building base station; if it is determined that the first switching information exists in the base station switching information, the first switching moment of the first switching information is acquired; if it is determined that the second switching information exists in the base station switching information, the second switching moment of the second switching information is acquired; the first switching moment and the second switching moment are calculated to obtain the residence time. By recording the precise moment when the terminal switches from the building base station to the elevator base station and from the elevator base station back to the building base station, the residence time of the terminal in the elevator can be accurately calculated.
[0127] For ease of understanding, an example is provided. Assuming that the first switching time is 9:50:30 and the second switching time is 9:50:55, the dwell time is 25 seconds.
[0128] As a refinement of step 101, when executing the acquisition of the residence time of the terminal in the elevator of the target building, it can also be implemented in the following manner but not limited to: the disconnection time of the terminal disconnecting from the broadband, and the base station connection signal strength of the terminal in the first preset period after the disconnection time; if it is determined that the decrease in the base station connection signal strength in the second preset period is greater than the preset threshold, the start time of the decrease is obtained; if it is determined that the increase in the base station connection signal strength in the third preset period is greater than the preset threshold, the start time of the increase is obtained; the third preset period is a period within the first preset period that is different from the second preset period; the start time of decrease and the start time of increase are calculated to obtain the residence time. By monitoring and analyzing the changes in the base station connection signal strength, the residence time of the terminal in a specific area can be automatically and accurately estimated, thereby providing better services for the terminal or performing data analysis.
[0129] For ease of understanding, an example is provided. Assuming that the start time of decrease is 10:10:10, and the start time of increase is 10:10:30, the stay time is 20 seconds.
[0130] In practical applications, when executing the acquisition of the residence time of the terminal in the elevator of the target building, it can also be implemented in the following manner but not limited to: acquiring the base station switching information of the terminal within the first preset period after the disconnection moment; the base station switching information includes the first switching information of the building base station switching to the elevator base station and the second switching information of the elevator base station switching to the building base station; if it is determined that the first switching information exists in the base station switching information, the first switching moment of the first switching information is acquired; if it is determined that the second switching information exists in the base station switching information, the second switching moment of the second switching information is acquired; the first switching moment and the second switching moment are calculated to obtain the residence time. By analyzing the base station switching information, the system can more accurately track the position change of the terminal in the building. In particular, when the terminal moves from the building area to the elevator area (or vice versa), the base station switching information provides a clear time point, indicating that the terminal has entered or left the elevator; by recording the precise time when the terminal switches from the building base station to the elevator base station (first switching moment) and switches from the elevator base station back to the building base station (second switching moment), the system can accurately calculate the residence time of the terminal in the elevator. This method is more accurate and reliable than relying solely on signal strength changes to estimate time.
[0131] For ease of understanding, an example is provided. Assuming that the first switching time is 9:50:55 and the second switching time is 9:50:30, the dwell time is 25 seconds.
[0132] In practical applications, before the building height, the dwell time, the number of broadband registered floors, and the target running speed are input into the preset floor correction model to obtain the floor positioning information of the terminal, the initial floor correction model needs to be trained to obtain the preset floor correction model, which can be achieved by but not limited to the following methods: obtaining the training building height, the training dwell time, the training broadband registered floors, and the training target running speed; using the training building height, the training dwell time, the training broadband registered floors, and the training target running speed to train the initial floor correction model to obtain the preset floor correction model. The training building height, dwell time, broadband registered floors, and target running speed may be the input features of the training model, and the output of the training model may be a correction of the initial floor information. Through the training model, these features can be used to predict the floor information of the terminal, and corrections can be made according to the actual situation to improve the accuracy and precision of positioning.
[0133] As a refinement of the above embodiment, when executing the training of the initial floor correction model using the training building height, the training dwell time, the training broadband registered floor number and the training target running speed to obtain the preset floor correction model, it can be implemented in the following manner but not limited to: input the training building height, the training dwell time, the training broadband registered floor number and the training target running speed into the initial floor correction model to obtain the preset floor correction model; wherein the training process is to learn the training building height, the training dwell time, the training broadband registered floor number and the training target running speed to obtain a loss function; wherein the loss function includes the weight parameters of the initial floor correction model; and the weight parameters are adjusted in a manner that makes the loss function approach the minimum value. By adjusting the weight parameters of the initial floor correction model, the loss function is made to approach the minimum value, thereby improving the model's prediction ability for floor information. In this way, the accuracy of floor positioning can be improved in practical applications, and more reliable data support can be provided for applications such as indoor navigation and base station optimization.
[0134] In actual applications, before the building height, the dwell time, the broadband registered floor number and the target running speed are input into the preset floor correction model to obtain the floor positioning information of the terminal, there is a mapping relationship between the floor number and the running speed of the elevator. Through the mapping relationship, the target running speed of the elevator can be obtained. This can be achieved in the following ways, but not limited to: obtaining the target floor number of the target building; searching for the target running speed corresponding to the target floor number according to the pre-established mapping relationship between the floor number and the running speed of the elevator. Different buildings may have different numbers of floors, so the running speeds of elevators in buildings with different numbers of floors may be different. By searching for the target running speed corresponding to the target floor number, it can help determine the running speed of the elevator when reaching the target floor.
[0135] In one implementable method of the disclosed embodiment, an initial building floor correction model of its own broadband is established based on a neural network, and the initial floor correction model is trained based on the training building height, training dwell time, training number of broadband registered floors and training target running speed to obtain a preset floor correction model. The building height, dwell time, number of broadband registered floors and target running speed to be calculated are input into the preset floor correction model, and the floor positioning information is output.
[0136] Calculate the time to go upstairs TA and the time to go downstairs TB. According to the sampling points of the terminal's measurement report (MR), the user's call / transaction detail record (XDR) data, and the Over The Top (OTT) data, extract the six time nodes after each terminal enters and exits the building. When the terminal enters the room from the outdoors, the signal attenuates sharply at TA1, the signal improves sharply at TA2, and the WIFI access time TA3; or the outdoor cell switches to the elevator cell at TA1, the elevator cell switches to the flat coverage cell / outdoor cell at TA2, and the WIFI access time TA3, that is, the broadband connection time; then the time to go upstairs TA = TA2-TA1, that is, the terminal's stay time in the elevator of the target building.
[0137] When the terminal moves from indoors to outdoors, it leaves the WIFI at time TB1, that is, the broadband is disconnected; the signal attenuates sharply at time TB2, and improves sharply at time TB3, or leaves the WIFI at time TB1, the outdoor cell switches to the elevator cell at time TB2, and the elevator cell switches to the flat coverage cell / outdoor cell at time TB3; then the going downstairs time TB = TB3-TB2, that is, the terminal's stay time in the elevator of the target building.
[0138] Among them, the time point TA1 of rapid signal attenuation and the time point TB2 of switching into the elevator cell represent the time point when the terminal enters a closed space such as an elevator; the threshold of rapid signal attenuation is defined as the signal strength reduction degree greater than -20dBm to disconnection within a certain time period. For example, within 5 seconds, the terminal signal strength drops from -85dBm to -107dBm, with a difference of -22dBm, which is determined as rapid signal attenuation, and the time point TA1 of rapid signal attenuation is recorded; switching into the elevator cell is defined as switching from an outdoor cell to a covered elevator cell, which is determined as entering the elevator, and the time point TB2 of switching into the elevator cell is recorded; there is no limit on the time period threshold and the strength reduction threshold.
[0139] The time point TA2 when the signal improves sharply and the time point TB3 when switching out of the elevator cell represent the time point when the terminal comes out of a closed space such as an elevator; the threshold for sharp improvement of the signal is defined as the increase in signal strength greater than -20dBm within a certain time period. For example, within 5 seconds, the terminal signal strength improves from -107dBm to -85dBm, with a difference of -22dBm, which is determined as a sharp improvement in the signal, and the time point TA2 when the signal improves sharply is recorded; switching out of the elevator cell is defined as switching from the covered elevator cell to the outdoor cell / floor covered cell, which is determined as coming out of the elevator, and the time point TB3 when switching out of the elevator cell is recorded; there is no limit on the time period threshold and the strength reduction threshold; there is no limit on this threshold.
[0140] When accessing WiFi at time point TA3, the terminal will actively initiate a request to release the protocol data unit session. After confirmation, the network will issue a release protocol data unit command. After the terminal enters the protocol data unit state, there is no de-registration process. It is determined that the terminal's traffic data service is switched to the WiFi network, and then the time when the switch occurs is confirmed as the access WiFi time point TA3.
[0141] A judgment criterion is added to the time for going upstairs TA. After determining the time point TA3 for accessing WiFi, a certain time threshold is searched backward. For example, within 1 minute, whether there is a time point TA2 when the signal improves sharply or a time point TB3 when switching out of the elevator cell is found. If so, the time point TA2 when the signal improves sharply or the time point TB3 when switching out of the elevator cell can be finally determined.
[0142] After leaving WiFi time point TB1, you can search one minute forward from the time point TB2 when the signal sharply attenuates to associate the terminal sampling point information, and verify whether there is a sampling point within this period when the UE re-initiates the radio resource control connection and the terminal enters the radio resource control state. If so, the time when the terminal re-initiates the radio resource control connection is the time point TB1 when leaving WiFi.
[0143] Add a judgment criterion for the downstairs time TB. After determining the WiFi departure time point TB1, retrieve a certain time threshold forward, such as whether there is a signal sharp attenuation time point TB2 or a time point TB3 for switching into the elevator cell within 1 minute. If it exists, the signal sharp improvement time point TA2 or the time point TB3 for switching into the elevator cell can be finally determined.
[0144] Calculate the target running speed S of the building elevator: Screen the network addresses of WiFi in the whole network OTT data as the self-owned broadband terminals, the terminal sampling point information, the associated building information for 30 consecutive days, and the N up and down time TA, TB of these terminals.
[0145] When going up and down the building, there will be interference situations such as traveling in the elevator with others, resulting in an extended time, and it is impossible to accurately know the time of the elevator running without interference. Calculate the running speed S of the building elevator through the following method.
[0146] For the residence time TA, TB of N terminals of a certain building of a single terminal in the elevator of the target building, by using the box plot function, extract the lower quartile and the lower limit numerical set of these times. This set represents the part with extremely short time in the residence time TA, TB of the terminal in the elevator of the target building. This part of the time can represent the time point when the terminal takes the elevator alone. Take the average value of this set as the actual time TA-up / TB-down for the terminal to go up and down the building.
[0147] Through the calculated actual time TA-up / TB-down for the terminal to go up and down the building in a certain building, combined with the theoretical floor F of the terminal, the running speed S of the elevator in this building can be calculated. The terminal upstairs speed S-up = F / TA-up, or the terminal downstairs speed S-down = F / TB-down. For better understanding of the value taking of the residence time of the terminal in the elevator of the target building, as Figure 3 shown Figure 3 is a schematic diagram of a method for taking the residence time provided by the embodiment of the present disclosure. Assume that the residence time is divided into 4 values, namely a, b, c, d, where a < b < c < d, then the value taken for the residence time is a.
[0148] According to the building information in the first step, obtain the building height information, and according to the relevant regulations of the national standard for the elevator running speed standard as follows, divide the building into 5 types, and directly obtain the running speed S of the elevator in the building where the self-owned broadband is located, S-up == S-down.
[0149] Type 1 is a 1-9 story residence: an ordinary passenger elevator with a machine room, a load capacity of 900 kg, and a speed of 1.0 m / S;
[0150] Category 2 is 10-18-storey residential buildings: ordinary passenger elevators with machine rooms, load capacity of 900kg, speed of 1.5m / s;
[0151] Category 3 is 19-34-storey residential buildings: ordinary passenger elevators with machine rooms, load capacity of 900kg, speed of 1.75m / s;
[0152] Category 4 is a 35-45-story super-high-rise residential building: with an ordinary passenger elevator in the machine room, a load capacity of 1050kg, and a speed of 2.5m / s;
[0153] Category 5 is a 45-60-story super-high-rise residential building: with an ordinary passenger elevator in the machine room, a load capacity of 1050kg, and a speed of 3.0m / s;
[0154] Based on the neural network algorithm, an initial floor correction model is established. The initial floor correction model is trained based on the training building height, training residence time, training broadband registered floor number and training target running speed. The training building height, training residence time, training broadband registered floor number and training target running speed are input into the initial floor correction model as input features, and the actual floor is the output feature. The initial floor correction model is trained using the above data, wherein the ratio of the training set and the validation set is divided into 7:3 or 6:4, which is not limited here. The corrected actual floor can be obtained through the preset floor correction model.
[0155] In order to better understand the training process of the preset floor correction model, Figure 4 As shown, Figure 4 A schematic diagram of a training process of a preset floor correction model provided in an embodiment of the present disclosure,
[0156] Initialize the weights and bias terms of the elevator running floors and the time taken, as well as the learning rate η, which are recorded as:
[0157]
[0158]
[0159]
[0160]
[0161]
[0162] η=.5
[0163]
[0164] Where: x is the minimum and maximum time difference (in minutes) between the theoretical time it takes for a direct elevator to reach a certain floor and the actual running time, ω ()is the weight value from the input layer to the hidden layer, b1 () is the bias from the input layer to the hidden layer, v () is the weight value from the input layer to the hidden layer, b2 () is the bias from the input layer to the hidden layer, η is the learning rate of the activation function, y is the best expected result based on the time difference of x, 0 means no error, and 1 means one minute error.
[0165] Activate forward propagation to obtain the expected value of each layer output and loss function.
[0166] The model net1 from the input layer to the hidden layer is:
[0167]
[0168]
[0169] Where: x is the minimum and maximum time difference (in minutes) between the theoretical time it takes for a direct elevator to reach a certain floor and the actual operating time, w^() is the transposed matrix of the weight of x, b1 is the bias of the hidden layer, and sigmoid is the activation function;
[0170] The model net2 from hidden layer to output layer is:
[0171]
[0172] Where: x is the output of the hidden layer, v T is the transposed matrix of the weight of x, and b2 is the bias of the output.
[0173] The preset floor correction model is:
[0174]
[0175] Among them: sigmoid is the activation function.
[0176] Therefore, the time error for the elevator to arrive at a certain floor is between [0.6575, 0.6639] minutes.
[0177] The expected value of the loss function can be calculated:
[0178]
[0179] Where: θ represents the parameter set, Y i Indicates the true value of the minimum and maximum time difference between the theoretical time it takes for a direct elevator to reach a certain floor and the actual running time. Indicates the predicted value of the minimum and maximum time difference between the theoretical time it takes for a direct elevator to reach a certain floor and the actual running time.
[0180] Therefore, in general, the error value is divided by the number of output unit dimensions to be averaged; in the preset floor correction model setting, the output value is a 2-dimensional column data, so the error value is divided by 2.
[0181] Calculate the error term of the output unit and convert Y, 2, bring it in and get the gradient error δ that needs to be updated:
[0182]
[0183] Among them, Y represents the actual value of the minimum and maximum time difference between the theoretical time it takes for a direct elevator to reach a certain floor and the actual running time. Indicates the predicted value of the minimum and maximum time difference between the theoretical time it takes for a direct elevator to reach a certain floor and the actual running time.
[0184] If we take the partial derivative of each element in v (the weight from the hidden layer to the output layer), we have:
[0185]
[0186] The error term of the hidden unit, δ () ,et1,h,v,x are brought in to get the gradient error ω (the weight from the output layer to the hidden layer) to be updated:
[0187]
[0188] Taking partial derivatives for each element in ω, we have:
[0189]
[0190] Taking the partial derivative of each element in v, the results are consistent.
[0191] Update the weights in the neural network (i.e., the weights from the previous inverse hidden layer to the input layer and output layer respectively).
[0192]
[0193]
[0194] Thus, the first updated parameter value ω,v is obtained. The preset floor correction model is trained iteratively until the loss value E(θ) reaches the preset threshold or the number of iterations is exhausted, and the final weight is obtained. At this point, the floor positioning model of the self-owned broadband in the building can be confirmed.
[0195] In summary, the embodiments of the present disclosure can achieve the following effects:
[0196] The disclosed embodiment calculates the target running speed of the elevator by utilizing the residence time of the terminal in the elevator of the target building and the number of broadband registered floors corresponding to the broadband of the terminal connected to the target building, and inputs the building height, residence time, number of broadband registered floors and target running speed of the target building into a preset floor correction model to obtain the floor positioning information of the terminal, thereby improving the accuracy of the target running speed of the elevator, thereby improving the accuracy of the terminal floor change, and improving the accuracy of floor positioning.
[0197] Corresponding to the above-mentioned floor positioning method, the present invention also provides a floor positioning device. Since the device embodiment of the present invention corresponds to the above-mentioned method embodiment, the details not disclosed in the device embodiment can be referred to the above-mentioned method embodiment, and will not be repeated in the present invention.
[0198] Figure 5 A schematic diagram of the structure of a floor positioning device provided by an embodiment of the present disclosure, wherein the device is applied to a server, such as Figure 5 As shown, including:
[0199] The first acquisition unit 31 is used to acquire the residence time of the terminal in the elevator of the target building, acquire the broadband registration floor number corresponding to the broadband of the terminal connected to the target building, and acquire the building height of the target building;
[0200] A calculation unit 32 is used to calculate the dwell time and the number of broadband registered floors to obtain a target running speed of the elevator;
[0201] The input unit 33 is used to input the building height, the dwell time, the number of broadband registered floors and the target running speed into a preset floor correction model to obtain the floor positioning information of the terminal.
[0202] The floor positioning device provided by the present disclosure obtains the residence time of the terminal in the elevator of the target building, obtains the broadband registration floor number corresponding to the broadband of the terminal connected to the target building, and obtains the building height of the target building; calculates the residence time and the broadband registration floor number to obtain the target running speed of the elevator; inputs the building height, the residence time, the broadband registration floor number and the target running speed into a preset floor correction model to obtain the floor positioning information of the terminal. Compared with the related art, the embodiment of the present disclosure calculates the target running speed of the elevator by using the residence time of the terminal in the elevator of the target building and the broadband registration floor number corresponding to the broadband of the terminal connected to the target building, and inputs the building height, residence time, broadband registration floor number and target running speed of the target building into a preset floor correction model to obtain the floor positioning information of the terminal, thereby improving the accuracy of the target running speed of the elevator, thereby improving the accuracy of the terminal floor change amount, and improving the accuracy of floor positioning.
[0203] Furthermore, in a possible implementation of the embodiment of the present disclosure, as Figure 6 As shown, the first acquisition unit 31 includes:
[0204] An acquisition module 311 is used to acquire a connection time when the terminal is connected to the broadband, and acquire a base station connection signal strength of the terminal within a first preset period before the connection time;
[0205] The acquisition module 311 is further configured to, when it is determined that the decrease in the base station connection signal strength within the second preset period is greater than a preset threshold, acquire the start time of decrease in the decrease;
[0206] The acquisition module 311 is further configured to, when it is determined that the increase in the base station connection signal strength within a third preset period is greater than the preset threshold, acquire the start time of increase in the increase; the third preset period is a period within the first preset period that is different from the second preset period;
[0207] The calculation module 312 is used to calculate the start time of decrease and the start time of increase to obtain the residence time.
[0208] Furthermore, in a possible implementation of the embodiment of the present disclosure, as Figure 6 As shown, the first acquisition unit 31 also includes:
[0209] The acquisition module 311 is further used to acquire the base station switching information of the terminal within the first preset period before the connection moment; the base station switching information includes first switching information from the building base station to the elevator base station and second switching information from the elevator base station to the building base station;
[0210] The acquisition module 311 is further configured to, when it is determined that the base station switching information contains the first switching information, acquire a first switching time of the first switching information;
[0211] The acquisition module 311 is further configured to, when it is determined that the second switching information exists in the base station switching information, acquire a second switching time of the second switching information;
[0212] The calculation module 312 is further configured to calculate the first switching moment and the second switching moment to obtain the dwell time.
[0213] Furthermore, in a possible implementation of the embodiment of the present disclosure, as Figure 6 As shown, the first acquisition unit 31 also includes:
[0214] The acquisition module 311 is also used to acquire the disconnection time when the terminal disconnects the broadband, and acquire the base station connection signal strength of the terminal within a first preset period after the disconnection time;
[0215] The acquisition module 311 is further configured to, when it is determined that the decrease in the base station connection signal strength within the second preset period is greater than a preset threshold, acquire the start time of decrease in the decrease;
[0216] The acquisition module 311 is further configured to, when it is determined that the increase in the base station connection signal strength within a third preset period is greater than the preset threshold, acquire the start time of increase in the increase; the third preset period is a period within the first preset period that is different from the second preset period;
[0217] The calculation module 312 is further used to calculate the start time of decrease and the start time of increase to obtain the residence time.
[0218] Furthermore, in a possible implementation of the embodiment of the present disclosure, as Figure 6 As shown, the first acquisition unit 31 also includes:
[0219] The acquisition module 311 is further used to acquire the base station switching information of the terminal within the first preset period after the disconnection moment; the base station switching information includes first switching information from the building base station to the elevator base station and second switching information from the elevator base station to the building base station;
[0220] The acquisition module 311 is further configured to, when it is determined that the base station switching information contains the first switching information, acquire a first switching time of the first switching information;
[0221] The acquisition module 311 is further configured to, when it is determined that the second switching information exists in the base station switching information, acquire a second switching time of the second switching information;
[0222] The calculation module 312 is further configured to calculate the first switching moment and the second switching moment to obtain the dwell time.
[0223] Furthermore, in a possible implementation of the embodiment of the present disclosure, as Figure 6 As shown, the device also includes:
[0224] The second acquisition unit 34 is used to acquire a training building height, a training dwell time, a training broadband registered floor number and a training target running speed before inputting the building height, the dwell time, the broadband registered floor number and the target running speed into a preset floor correction model to obtain the floor positioning information of the terminal;
[0225] The training unit 35 is used to train the initial floor correction model using the training building height, the training dwell time, the training broadband registered floor number and the training target running speed to obtain the preset floor correction model.
[0226] Furthermore, in a possible implementation of the embodiment of the present disclosure, as Figure 6 As shown, the training unit 35 includes:
[0227] The input module 351 is used to input the training building height, the training dwell time, the training broadband registered floor number and the training target running speed into the initial floor correction model to obtain the preset floor correction model; wherein the training process is:
[0228] The learning module 352 is used to learn the training building height, the training dwell time, the training broadband registered floor number and the training target running speed to obtain a loss function; wherein the loss function includes the weight parameters of the initial floor correction model;
[0229] The adjustment module 353 is used to adjust the weight parameter in a manner that makes the loss function approach a minimum value.
[0230] Furthermore, in a possible implementation of the embodiment of the present disclosure, as Figure 6 As shown, the device also includes:
[0231] The first acquisition unit 31 is further used to obtain the target floor number of the target building before inputting the building height, the dwell time, the broadband registered floor number and the target running speed into a preset floor correction model to obtain the floor positioning information of the terminal;
[0232] The search unit 36 is used to search for the target running speed corresponding to the target floor number according to a pre-established mapping relationship between the floor number and the running speed of the elevator.
[0233] It should be noted that the above explanation of the method embodiment is also applicable to the device of the embodiment of the present disclosure, and the principle is the same, which is no longer limited in the embodiment of the present disclosure.
[0234] According to an embodiment of the present disclosure, the present disclosure also provides an electronic device, a readable storage medium and a computer program product.
[0235] Figure 7 A schematic block diagram of an example electronic device 400 that can be used to implement an embodiment of the present disclosure is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present disclosure described and / or required herein.
[0236] like Figure 7 As shown, the device 400 includes a computing unit 401, which can perform various appropriate actions and processes according to a computer program stored in a ROM (Read-Only Memory) 402 or a computer program loaded from a storage unit 408 to a RAM (Random Access Memory) 403. In the RAM 403, various programs and data required for the operation of the device 400 can also be stored. The computing unit 401, the ROM 402, and the RAM 403 are connected to each other via a bus 404. An I / O (Input / Output) interface 405 is also connected to the bus 404.
[0237] A number of components in the device 400 are connected to the I / O interface 405, including: an input unit 406, such as a keyboard, a mouse, etc.; an output unit 407, such as various types of displays, speakers, etc.; a storage unit 408, such as a disk, an optical disk, etc.; and a communication unit 409, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 409 allows the device 400 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.
[0238] The computing unit 401 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the computing unit 401 include, but are not limited to, a CPU (Central Processing Unit), a GPU (Graphic Processing Units), various dedicated AI (Artificial Intelligence) computing chips, various computing units running machine learning model algorithms, a DSP (Digital Signal Processor), and any appropriate processor, controller, microcontroller, etc. The computing unit 401 performs the various methods and processes described above, such as the method for floor positioning. For example, in some embodiments, the method for floor positioning may be implemented as a computer software program, which is tangibly contained in a machine-readable medium, such as a storage unit 408. In some embodiments, part or all of the computer program may be loaded and / or installed on the device 400 via the ROM 402 and / or the communication unit 409. When the computer program is loaded into the RAM 403 and executed by the computing unit 401, one or more steps of the method described above may be performed. Alternatively, in other embodiments, the computing unit 401 may be configured to execute the aforementioned floor positioning method in any other appropriate manner (for example, by means of firmware).
[0239] Various embodiments of the systems and techniques described above herein may be implemented in digital electronic circuit systems, integrated circuit systems, FPGAs (Field Programmable Gate Arrays), ASICs (Application-Specific Integrated Circuits), ASSPs (Application Specific Standard Products), SOCs (System On Chips), CPLDs (Complex Programmable Logic Devices), computer hardware, firmware, software, and / or combinations thereof. These various embodiments may include: being implemented in one or more computer programs that may be executed and / or interpreted on a programmable system including at least one programmable processor that may be a dedicated or general-purpose programmable processor that may receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.
[0240] The program code for implementing the method of the present disclosure may be written in any combination of one or more programming languages. These program codes may be provided to a processor or controller of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that the program code, when executed by the processor or controller, enables the functions / operations specified in the flow chart and / or block diagram to be implemented. The program code may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.
[0241] In the context of the present disclosure, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or device, or any suitable combination of the foregoing. More specific examples of machine-readable storage media may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a RAM, a ROM, an EPROM (Electrically Programmable Read-Only-Memory) or a flash memory, an optical fiber, a CD-ROM (Compact Dis sc Read-Only Memory), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0242] To provide interaction with a user, the systems and techniques described herein can be implemented on a computer having: a display device (e.g., a CRT (Cathode-Ray Tube) or LCD (Liquid Crystal Display) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user can provide input to the computer. Other types of devices can also be used to provide interaction with the user; for example, the feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including acoustic input, voice input, or tactile input).
[0243] The systems and techniques described herein may be implemented in a computing system that includes backend components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes frontend components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such backend components, middleware components, or frontend components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: LAN (Local Area Network), WAN (Wide Area Network), the Internet, and blockchain networks.
[0244] A computer system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The relationship between the client and the server is generated by computer programs running on the corresponding computers and having a client-server relationship with each other. The server may be a cloud server, also known as a cloud computing server or cloud host, which is a host product in the cloud computing service system to solve the defects of difficult management and weak business scalability in traditional physical hosts and VPS services ("Virtual Private Server", or "VPS" for short). The server may also be a server of a distributed system, or a server combined with a blockchain.
[0245] It should be noted that artificial intelligence is a discipline that studies how computers can simulate certain human thought processes and intelligent behaviors (such as learning, reasoning, thinking, planning, etc.), and includes both hardware-level and software-level technologies. Artificial intelligence hardware technologies generally include technologies such as sensors, dedicated artificial intelligence chips, cloud computing, distributed storage, and big data processing; artificial intelligence software technologies mainly include computer vision technology, speech recognition technology, natural language processing technology, as well as machine learning / deep learning, big data processing technology, knowledge graph technology, and other major directions.
[0246] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps recorded in this disclosure can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solutions disclosed in this disclosure can be achieved, and this document does not limit this.
[0247] The above specific implementations do not constitute a limitation on the protection scope of the present disclosure. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present disclosure shall be included in the protection scope of the present disclosure.
Claims
1. A method for floor positioning, characterized in that: include: Obtaining the dwelling time of the terminal in the elevator of the target building, obtaining the broadband registration floor number corresponding to the broadband through which the terminal is connected to the target building, and obtaining the building height of the target building; Calculating the dwell time and the number of broadband registered floors to obtain a target operating speed of the elevator; The building height, the dwell time, the number of broadband registered floors and the target running speed are input into a preset floor correction model to obtain the floor positioning information of the terminal.
2. The method according to claim 1, characterized in that The acquisition of the dwelling time of the terminal in the elevator of the target building includes: Acquire a connection time when the terminal is connected to the broadband, and acquire a base station connection signal strength of the terminal within a first preset period before the connection time; If it is determined that the decrease in the base station connection signal strength within the second preset period is greater than a preset threshold, obtaining a start time of decrease in the decrease; If it is determined that the increase in the base station connection signal strength within the third preset period is greater than the preset threshold, then obtaining the start time of the increase in the increase; the third preset period is a period within the first preset period that is different from the second preset period; The start time of decrease and the start time of increase are calculated to obtain the residence time.
3. The method according to claim 2, characterized in that The acquisition of the dwelling time of the terminal in the elevator of the target building also includes: Acquire base station switching information of the terminal within the first preset period before the connection moment; the base station switching information includes first switching information of switching from a building base station to an elevator base station and second switching information of switching from the elevator base station to the building base station; If it is determined that the first switching information exists in the base station switching information, obtaining a first switching time of the first switching information; If it is determined that the second switching information exists in the base station switching information, obtaining a second switching time of the second switching information; The first switching moment and the second switching moment are calculated to obtain the dwell time.
4. The method according to claim 1, characterized in that: The acquisition of the dwelling time of the terminal in the elevator of the target building also includes: Obtaining a disconnection time at which the terminal disconnects the broadband, and obtaining a base station connection signal strength of the terminal within a first preset period after the disconnection time; If it is determined that the decrease in the base station connection signal strength within the second preset period is greater than a preset threshold, obtaining a start time of decrease in the decrease; If it is determined that the increase in the base station connection signal strength within the third preset period is greater than the preset threshold, then obtaining the start time of the increase in the increase; the third preset period is a period within the first preset period that is different from the second preset period; The start time of decrease and the start time of increase are calculated to obtain the residence time.
5. The method according to claim 4, characterized in that The acquisition of the dwelling time of the terminal in the elevator of the target building also includes: Acquire base station switching information of the terminal within the first preset period after the disconnection moment; the base station switching information includes first switching information from a building base station to an elevator base station and second switching information from the elevator base station to the building base station; If it is determined that the first switching information exists in the base station switching information, obtaining a first switching time of the first switching information; If it is determined that the second switching information exists in the base station switching information, obtaining a second switching time of the second switching information; The first switching moment and the second switching moment are calculated to obtain the dwell time.
6. The method according to claim 1, characterized in that Before inputting the building height, the dwell time, the number of broadband registered floors and the target running speed into a preset floor correction model to obtain the floor positioning information of the terminal, the method further includes: Obtain training building height, training dwell time, training broadband registered floor number and training target running speed; The initial floor correction model is trained using the training building height, the training dwell time, the training broadband registered floor number and the training target running speed to obtain the preset floor correction model.
7. The method according to claim 6, characterized in that The training of the initial floor correction model using the training building height, the training dwell time, the training broadband registered floor number and the training target running speed to obtain the preset floor correction model includes: The training building height, the training dwell time, the training broadband registered floor number and the training target running speed are input into the initial floor correction model to obtain the preset floor correction model; wherein the training process is: The training building height, the training dwell time, the training broadband registered floor number and the training target running speed are learned to obtain a loss function; wherein the loss function includes the weight parameters of the initial floor correction model; The weight parameters are adjusted in such a way that the loss function approaches a minimum value.
8. The method according to claim 1, characterized in that Before inputting the building height, the dwell time, the number of broadband registered floors and the target running speed into a preset floor correction model to obtain the floor positioning information of the terminal, the method further includes: Obtaining the target floor number of the target building; According to a pre-established mapping relationship between the floor number and the running speed of the elevator, the target running speed corresponding to the target floor number is searched.
9. A floor positioning device, characterized in that: include: A first acquisition unit is used to acquire the residence time of the terminal in the elevator of the target building, acquire the broadband registration floor number corresponding to the broadband of the terminal connected to the target building, and acquire the building height of the target building; A calculation unit, used to calculate the dwell time and the number of broadband registered floors to obtain a target running speed of the elevator; The input unit is used to input the building height, the dwell time, the number of broadband registered floors and the target running speed into a preset floor correction model to obtain the floor positioning information of the terminal.
10. An electronic device, characterized in that: include: at least one processor; as well as a memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the method according to any one of claims 1 to 8.
11. A non-transitory computer-readable storage medium storing computer instructions, characterized in that: The computer instructions are used to cause the computer to execute the method according to any one of claims 1-8.
12. A computer program product, characterized in that The invention comprises a computer program which, when executed by a processor, implements the method according to any one of claims 1 to 8.
