[go: up one dir, main page]

CN111832600A - Data processing method, apparatus, electronic device and computer-readable storage medium - Google Patents

Data processing method, apparatus, electronic device and computer-readable storage medium Download PDF

Info

Publication number
CN111832600A
CN111832600A CN201911408501.2A CN201911408501A CN111832600A CN 111832600 A CN111832600 A CN 111832600A CN 201911408501 A CN201911408501 A CN 201911408501A CN 111832600 A CN111832600 A CN 111832600A
Authority
CN
China
Prior art keywords
grid
information
demand
shared
supply
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201911408501.2A
Other languages
Chinese (zh)
Other versions
CN111832600B (en
Inventor
吴艳平
王毅星
周齐
兰红云
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Qisheng Technology Co Ltd
Original Assignee
Beijing Qisheng Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Qisheng Technology Co Ltd filed Critical Beijing Qisheng Technology Co Ltd
Priority to CN201911408501.2A priority Critical patent/CN111832600B/en
Publication of CN111832600A publication Critical patent/CN111832600A/en
Application granted granted Critical
Publication of CN111832600B publication Critical patent/CN111832600B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F18/00Pattern recognition
    • G06F18/20Analysing
    • G06F18/24Classification techniques
    • G06F18/243Classification techniques relating to the number of classes
    • G06F18/24323Tree-organised classifiers
    • GPHYSICS
    • G07CHECKING-DEVICES
    • G07FCOIN-FREED OR LIKE APPARATUS
    • G07F17/00Coin-freed apparatus for hiring articles; Coin-freed facilities or services
    • G07F17/0042Coin-freed apparatus for hiring articles; Coin-freed facilities or services for hiring of objects
    • GPHYSICS
    • G07CHECKING-DEVICES
    • G07FCOIN-FREED OR LIKE APPARATUS
    • G07F17/00Coin-freed apparatus for hiring articles; Coin-freed facilities or services
    • G07F17/0042Coin-freed apparatus for hiring articles; Coin-freed facilities or services for hiring of objects
    • G07F17/0057Coin-freed apparatus for hiring articles; Coin-freed facilities or services for hiring of objects for the hiring or rent of vehicles, e.g. cars, bicycles or wheelchairs

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Data Mining & Analysis (AREA)
  • Theoretical Computer Science (AREA)
  • Artificial Intelligence (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Evolutionary Biology (AREA)
  • Evolutionary Computation (AREA)
  • Bioinformatics & Computational Biology (AREA)
  • General Engineering & Computer Science (AREA)
  • Bioinformatics & Cheminformatics (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

本发明实施例公开了一种数据处理方法、装置、电子设备和计算机可读存储介质,通过将获取的各网格的特征数据输入至预先训练的需求预测模型以获得各网格的共享设备的需求信息,获取各网格的共享设备的供给信息,并根据各网格的共享设备的需求信息和供给信息确定下个时段在各网格中关联所述共享设备的资源消耗量,由此,可以提高共享设备的资源利用率。

Figure 201911408501

Embodiments of the present invention disclose a data processing method, apparatus, electronic device, and computer-readable storage medium. The acquired characteristic data of each grid is input into a pre-trained demand prediction model to obtain the shared equipment of each grid. Demand information, obtain the supply information of the shared equipment of each grid, and determine the resource consumption associated with the shared equipment in each grid in the next time period according to the demand information and supply information of the shared equipment of each grid, thus, The resource utilization of the shared device can be improved.

Figure 201911408501

Description

数据处理方法、装置、电子设备和计算机可读存储介质Data processing method, apparatus, electronic device and computer-readable storage medium

技术领域technical field

本发明涉及互联网领域,更具体地,涉及一种数据处理方法、装置、电子设备和计算机可读存储介质。The present invention relates to the field of the Internet, and more particularly, to a data processing method, apparatus, electronic device and computer-readable storage medium.

背景技术Background technique

随着共享经济与互联网的发展,共享单车、共享汽车、共享充电宝等共享设备逐渐被广大互联网用户所接受。这种整合线下的闲散物品,让它们以较低的价格提供产品或服务的方式,以其独有的优势在市场上占领了一席之地。由此,如何提高共享设备的资源利用率是一项重要的课题。With the development of the sharing economy and the Internet, shared devices such as shared bicycles, shared cars, and shared power banks are gradually accepted by the majority of Internet users. This way of integrating offline idle items, allowing them to offer products or services at lower prices, has occupied a place in the market with its unique advantages. Therefore, how to improve the resource utilization of shared equipment is an important issue.

发明内容SUMMARY OF THE INVENTION

有鉴于此,本发明实施例提供了一种数据处理方法、装置、电子设备和计算机可读存储介质,以提高共享设备的资源利用率。In view of this, embodiments of the present invention provide a data processing method, an apparatus, an electronic device, and a computer-readable storage medium, so as to improve resource utilization of a shared device.

第一方面,本发明实施例提供一种数据处理方法,所述方法包括:In a first aspect, an embodiment of the present invention provides a data processing method, the method comprising:

获取各网格的特征数据,所述特征数据包括网格信息、时段信息以及各网格在历史相同时段的共享设备的需求信息,所述网格信息包括对应网格的标识和环境信息,所述网格对应于预先划分的地理区域;Obtain feature data of each grid, the feature data includes grid information, time period information, and demand information of shared equipment of each grid in the same historical period, the grid information includes the identification and environmental information of the corresponding grid, so the grid corresponds to a pre-divided geographic area;

将所述各网格的特征数据输入至预先训练的需求预测模型,获得所述各网格的共享设备的需求信息;inputting the feature data of each grid into a pre-trained demand prediction model to obtain the demand information of the shared equipment of each grid;

获取各网格的共享设备的供给信息;Obtain the supply information of the shared equipment of each grid;

根据所述需求信息和所述供给信息确定下个时段在各网格中关联所述共享设备的资源消耗量。According to the demand information and the supply information, the resource consumption associated with the shared device in each grid in the next period is determined.

可选的,根据所述需求信息和所述供给信息确定下个时段在各网格中关联所述共享设备的资源消耗量包括:Optionally, determining, according to the demand information and the supply information, the resource consumption associated with the shared device in each grid in the next time period includes:

根据所述供给信息和所述需求信息确定供需比;determining a supply-demand ratio according to the supply information and the demand information;

根据所述供需比确定所述资源消耗量。The resource consumption is determined according to the supply and demand ratio.

可选的,根据所述供需比确定所述资源消耗量包括:Optionally, determining the resource consumption according to the supply-demand ratio includes:

根据所述供需比、预先确定的供需比分段以及各所述供需比分段对应的权重确定所述资源消耗量。The resource consumption is determined according to the supply and demand ratio, the predetermined supply and demand ratio segments, and the weights corresponding to each of the supply and demand ratio segments.

可选的于,获取各网格的共享设备的供给信息包括:Optionally, acquiring the supply information of the shared devices of each grid includes:

根据各共享设备的位置信息确定各网格的共享设备的供给信息。The supply information of the shared devices of each grid is determined according to the location information of each shared device.

可选的,所述共享设备的位置信息由任务完成时用户终端的上报信息确定,或者由运维终端的上报信息确定。Optionally, the location information of the shared device is determined by the report information of the user terminal when the task is completed, or is determined by the report information of the operation and maintenance terminal.

可选的,所述需求预测模型通过以下步骤训练:Optionally, the demand prediction model is trained by the following steps:

获取训练数据,所述训练数据包括各网格信息、各时段信息、以及历史需求信息;Obtaining training data, the training data includes each grid information, each time period information, and historical demand information;

根据所述训练数据训练获取所述需求预测模型;The demand forecasting model is obtained by training according to the training data;

其中,所述历史需求信息包括第一预定时间内的各网格在各时段的共享设备的需求均值和需求中值、第二预定时间内的各网格在各时段的共享设备的需求均值和需求中值、以及第三预定时间内的各网格在各时段的共享设备的需求均值和需求中值中的至少一项。Wherein, the historical demand information includes the average and median demand of the shared equipment of each grid in each time period in the first predetermined time, the average and The median demand value, and at least one of the mean demand value and the median demand value of the shared devices of each grid in each time period within the third predetermined time period.

可选的,所述各时段信息包括时段的标识以及所述时段所处日期。Optionally, the information on each time period includes an identifier of the time period and a date where the time period is located.

可选的,所述需求预测模型为XGBoost回归模型。Optionally, the demand forecasting model is an XGBoost regression model.

可选的,所述各网格根据GeoHash方法进行划分。Optionally, the grids are divided according to the GeoHash method.

第二方面,本发明实施例提供一种数据处理装置,所述装置包括:In a second aspect, an embodiment of the present invention provides a data processing apparatus, and the apparatus includes:

特征数据获取单元,被配置为获取各网格的特征数据,所述特征数据包括网格信息、时段信息以及各网格在历史相同时段的共享设备的需求信息,所述网格信息包括对应网格的标识和环境信息,所述网格对应于预先划分的地理区域;The characteristic data acquisition unit is configured to acquire characteristic data of each grid, the characteristic data includes grid information, time period information, and demand information of the shared equipment of each grid in the same historical period, and the grid information includes corresponding grid information identification and environmental information of a grid, the grid corresponding to a pre-divided geographic area;

需求信息获取单元,被配置为将所述各网格的特征数据输入至预先训练的需求预测模型,获得所述各网格的共享设备的需求信息;a demand information acquisition unit, configured to input the characteristic data of each grid into a pre-trained demand prediction model, and obtain the demand information of the shared equipment of each grid;

供给信息获取单元,被配置为获取各网格的共享设备的供给信息;a supply information acquisition unit, configured to acquire supply information of the shared equipment of each grid;

确定单元,被配置为根据所述需求信息和所述供给信息确定下个时段在各网格中关联所述共享设备的资源消耗量。A determining unit, configured to determine, according to the demand information and the supply information, the resource consumption associated with the shared device in each grid in the next period.

第三方面,本发明实施例提供一种电子设备,包括存储器和处理器,所述存储器用于存储一条或多条计算机程序指令,其中,所述一条或多条计算机程序指令被所述处理器执行以实现如上所述的方法。In a third aspect, an embodiment of the present invention provides an electronic device, including a memory and a processor, where the memory is configured to store one or more computer program instructions, wherein the one or more computer program instructions are executed by the processor Execute to implement the method as described above.

第四方面,本发明实施例提供一种计算机可读存储介质,其上存储计算机程序指令,所述计算机程序指令在被处理器执行时以实现如上所述的方法。In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium on which computer program instructions are stored, and when the computer program instructions are executed by a processor, implement the method as described above.

本发明实施例通过将获取的各网格的特征数据输入至预先训练的需求预测模型以获得各网格的共享设备的需求信息,获取各网格的共享设备的供给信息,并根据各网格的共享设备的需求信息和供给信息确定下个时段在各网格中关联所述共享设备的资源消耗量,由此,可以提高共享设备的资源利用率。In the embodiment of the present invention, the acquired characteristic data of each grid is input into a pre-trained demand prediction model to obtain the demand information of the shared equipment of each grid, and the supply information of the shared equipment of each grid is obtained, and according to each grid The demand information and supply information of the shared device determined by the corresponding grids determine the resource consumption of the shared device in the next time period, thereby improving the resource utilization rate of the shared device.

附图说明Description of drawings

通过以下参照附图对本发明实施例的描述,本发明的上述以及其它目的、特征和优点将更为清楚,在附图中:The above and other objects, features and advantages of the present invention will become more apparent from the following description of embodiments of the present invention with reference to the accompanying drawings, in which:

图1是本发明实施例的数据处理方法的流程图;1 is a flowchart of a data processing method according to an embodiment of the present invention;

图2是本发明实施例的需求预测模型的训练方法的示意图;2 is a schematic diagram of a training method of a demand prediction model according to an embodiment of the present invention;

图3是本发明实施例的数据处理方法的数据流向图;3 is a data flow diagram of a data processing method according to an embodiment of the present invention;

图4是本发明实施例的数据处理方法的应用场景示意图;4 is a schematic diagram of an application scenario of a data processing method according to an embodiment of the present invention;

图5是本发明实施例的数据处理装置的示意图;5 is a schematic diagram of a data processing apparatus according to an embodiment of the present invention;

图6是本发明实施例的电子设备的示意图。FIG. 6 is a schematic diagram of an electronic device according to an embodiment of the present invention.

具体实施方式Detailed ways

以下基于实施例对本发明进行描述,但是本发明并不仅仅限于这些实施例。在下文对本发明的细节描述中,详尽描述了一些特定的细节部分。对本领域技术人员来说没有这些细节部分的描述也可以完全理解本发明。为了避免混淆本发明的实质,公知的方法、过程、流程、元件和电路并没有详细叙述。The present invention is described below based on examples, but the present invention is not limited to these examples only. In the following detailed description of the invention, some specific details are described in detail. The present invention can be fully understood by those skilled in the art without the description of these detailed parts. Well-known methods, procedures, procedures, components and circuits have not been described in detail in order to avoid obscuring the essence of the present invention.

此外,本领域普通技术人员应当理解,在此提供的附图都是为了说明的目的,并且附图不一定是按比例绘制的。Furthermore, those of ordinary skill in the art will appreciate that the drawings provided herein are for illustrative purposes and are not necessarily drawn to scale.

除非上下文明确要求,否则在说明书的“包括”、“包含”等类似词语应当解释为包含的含义而不是排他或穷举的含义;也就是说,是“包括但不限于”的含义。Unless clearly required by the context, words such as "including", "comprising" and the like in the specification should be construed in an inclusive rather than an exclusive or exhaustive sense; that is, in the sense of "including but not limited to".

在本发明的描述中,需要理解的是,术语“第一”、“第二”等仅用于描述目的,而不能理解为指示或暗示相对重要性。此外,在本发明的描述中,除非另有说明,“多个”的含义是两个或两个以上。In the description of the present invention, it should be understood that the terms "first", "second" and the like are used for descriptive purposes only, and should not be construed as indicating or implying relative importance. Also, in the description of the present invention, unless otherwise specified, "plurality" means two or more.

共享设备在不同的地理区域和时段中具有不同的需求。例如,共享单车在上下班时段的需求量较大,共享充电宝在周末的商场或在下午时段的需求量较大等。在下面的描述中,本发明实施例主要以共享单车为例,但是,应理解,与共享单车有相同性质的共享设备均可应用本实施例的数据处理方法。Shared devices have different needs in different geographic areas and time periods. For example, the demand for shared bicycles is large during commuting hours, and the demand for shared charging treasures is large in shopping malls on weekends or in the afternoon. In the following description, the embodiment of the present invention mainly takes a shared bicycle as an example, but it should be understood that the data processing method of this embodiment can be applied to a shared device having the same nature as the shared bicycle.

城市交通存在明显的潮汐现象,也即,早高峰时段大部分人从小区转移到地铁站、公交车站、从地铁站转移到写字楼,晚高峰时段则相反。因此,在不同时间不同空间(地理空间)场景下,共享单车的供需关系具有显著差异,根据这种差异情况,本实施例提供一种数据处理方法,以提高共享设备的资源利用率。There is an obvious tidal phenomenon in urban traffic, that is, most people transfer from residential areas to subway stations, bus stations, and from subway stations to office buildings during the morning rush hour, and the opposite is true during the evening rush hour. Therefore, in different time and different space (geographical space) scenarios, the supply and demand relationship of shared bicycles is significantly different. According to this difference, this embodiment provides a data processing method to improve the resource utilization of shared equipment.

图1是本发明实施例的数据处理方法的流程图。如图1所示,本实施例的数据处理方法包括:FIG. 1 is a flowchart of a data processing method according to an embodiment of the present invention. As shown in Figure 1, the data processing method of this embodiment includes:

步骤S110,获取各网格的特征数据。其中,网格的特征数据包括网格信息、时段信息以及各网格在历史相同时段的共享设备的需求信息,网格信息包括对应网格的标识和环境信息,网格对应于预先划分的地理区域。其中,网格的环境信息可以包括该网格中的建筑信息,例如,该网格内是否包括住宅小区、地铁站、公交车站、医院、学校、写字楼、商场等建筑以及所包含的各建筑的数量。在本实施例中,将一天的时间等分为多个时段,每个时段具有唯一的标识。可选的,每个时段为15min。假设每个时段的时间长度为15min,需要预测的时段为今日下午18:00-18:15,则各网格在历史相同时段的共享设备的需求信息为各网格各历史每天18:00-18:15的共享设备的需求量。Step S110, acquiring characteristic data of each grid. Among them, the characteristic data of the grid includes grid information, time period information, and the demand information of the shared equipment of each grid in the same historical period. The grid information includes the identification and environmental information of the corresponding grid, and the grid corresponds to the pre-divided geographical location. area. Wherein, the environmental information of the grid may include building information in the grid, for example, whether the grid includes residential quarters, subway stations, bus stations, hospitals, schools, office buildings, shopping malls, and other buildings, as well as the included buildings quantity. In this embodiment, the time of the day is equally divided into a plurality of time periods, and each time period has a unique identifier. Optionally, each period is 15 minutes. Assuming that the time length of each time period is 15 minutes, and the time period to be predicted is from 18:00 to 18:15 pm today, then the demand information of the shared equipment of each grid in the same historical period is 18:00 to 18:00 of each historical day of each grid. 18:15 Demand for shared equipment.

在一种可选的实现方式中,本实施例根据GeoHash方法将一地区区域划分为多个网格。GeoHash是一种地址编码方法,其能够把二维的经纬度数据编码成一个字符串。也即,GeoHash用一个字符串表示经度和纬度两个坐标,用于表征一个区域,并且,字符串的长度用于表征该区域的范围,字符串长度越长,其表征的范围越精确,也即表征的范围越小,反之,字符串长度越短,其表征的范围越大。可选的,在本实施例中,采用GeoHash7的粒度将一地区区域划分为多个网格,也即用长度为7的字符串表示各网格的经度和纬度。In an optional implementation manner, this embodiment divides a region into multiple grids according to the GeoHash method. GeoHash is an address encoding method that can encode two-dimensional latitude and longitude data into a string. That is, GeoHash uses a string to represent two coordinates of longitude and latitude, which is used to characterize an area, and the length of the string is used to characterize the range of the area. That is, the smaller the range of representation, on the contrary, the shorter the length of the string, the larger the range of its representation. Optionally, in this embodiment, the granularity of GeoHash7 is used to divide a region into multiple grids, that is, a string with a length of 7 is used to represent the longitude and latitude of each grid.

步骤S120,将各网格的特征数据输入至预先训练的需求预测模型,获得各网格的共享设备的需求信息。In step S120, the characteristic data of each grid is input into the pre-trained demand prediction model, and the demand information of the shared equipment of each grid is obtained.

图2是本发明实施例的需求预测模型的训练方法的示意图。在一种可选的实现方式中,如图2所示,需求预测模型通过以下步骤进行训练:FIG. 2 is a schematic diagram of a training method of a demand prediction model according to an embodiment of the present invention. In an optional implementation, as shown in Figure 2, the demand forecasting model is trained through the following steps:

步骤S121,获取训练数据,训练数据包括各网格信息、各时段信息、以及历史需求信息。在本实施例中,在空间维度上,预先通过GeoHash方法按照预定的粒度将一地区区域划分为多个网格,并赋予每个网格唯一的标识。在时间维度上,将一天的时间等分为多个时段,并赋予每个时段唯一的标识。可选的,每个时段为15min,则每个网格在每天具有96个时段,假设共有N(N>1)个网格,则在空间和时间维度,每天具有96*N个网格时段切片。由此,在获取的训练数据中,网格信息包括对应网格的标识和环境信息。在实施例中,时段信息包括时段的标识、该时段所处日期(例如工作日、周末、节假日以及月份等)。Step S121 , acquiring training data, where the training data includes information about each grid, information about each time period, and historical demand information. In this embodiment, in the spatial dimension, a region is divided into a plurality of grids in advance by the GeoHash method according to a predetermined granularity, and each grid is given a unique identifier. In the time dimension, the time of the day is divided into multiple periods, and each period is given a unique identifier. Optionally, each time period is 15min, then each grid has 96 time periods per day. Assuming that there are N (N>1) grids in total, in space and time dimensions, there are 96*N grid time periods per day. slice. Thus, in the acquired training data, the grid information includes the identification and environment information of the corresponding grid. In an embodiment, the time period information includes an identification of the time period, and the date of the time period (eg, weekdays, weekends, holidays, months, etc.).

历史需求信息包括第一预定时间内的各网格时段的共享设备的需求均值和需求中值、第二预定时间内的各网格时段的共享设备的需求均值和需求中值、以及第三预定时间内的各网格时段的共享设备的需求均值和需求中值中的至少一项。可选的,第一预定时间为最近56天、第二预定时间为最近28天、第三预定时间为最近14天。例如,最近14天内网格1在时段18:00-18:15的共享设备的需求均值为:最近14天内每天的时段18:00-18:15的需求量的平均值。The historical demand information includes the mean value and median demand value of the shared devices in each grid period within the first predetermined period, the average demand value and the median demand value of the shared equipment in each grid period within the second predetermined period, and the third predetermined period. At least one of the mean value and the median value of the demand of the shared equipment for each grid period in time. Optionally, the first predetermined time is the last 56 days, the second predetermined time is the last 28 days, and the third predetermined time is the last 14 days. For example, the average demand of the shared equipment of grid 1 in the period of 18:00-18:15 in the last 14 days is: the average of the demand of each day in the last 14 days in the period of 18:00-18:15.

其中,对于每个网格时段,该网格时段的需求量为用户想要与共享设备关联的数量,例如扫描共享单车二维码的数量。可选的,同一个用户的多次扫码记为1次需求,并且只要扫码无论是否完成骑行均可记为1次需求。由此,可以相对准确地得到该网格时段的共享设备的需求量。Wherein, for each grid period, the demand in the grid period is the number that the user wants to associate with the shared device, such as the number of scanning the shared bicycle QR code. Optionally, multiple scans of the code by the same user are recorded as one demand, and as long as the scan code is completed or not, it can be recorded as one demand. In this way, the demand for the shared device in the grid period can be obtained relatively accurately.

步骤S122,根据训练数据训练获取需求预测模型。在一种可选的实现方式中,需求预测模型为XGBoost回归模型。XGBoost模型是一种监督模型,可以构建并优化目标函数,并且还可以自定义一些损失函数,由此,本实施例的需求预测模型采用XGBoost回归模型,可以较为准确地获取每个网格在下个时段的共享设备的需求量。Step S122, a demand prediction model is obtained by training according to the training data. In an optional implementation manner, the demand forecasting model is an XGBoost regression model. The XGBoost model is a supervised model, which can construct and optimize the objective function, and can also customize some loss functions. Therefore, the demand forecasting model in this embodiment adopts the XGBoost regression model, which can more accurately obtain the value of each grid in the next The demand for shared equipment during the time period.

步骤S130,获取各网格的共享设备的供给信息。其中,网格的共享设备的供给信息包括在该网格内功能正常、不在使用状态中的共享设备数量。可选的,根据各共享设备的位置信息确定各网格的共享设备的供给信息。In step S130, the supply information of the shared devices of each grid is acquired. Wherein, the supply information of the shared devices of the grid includes the number of shared devices that function normally and are not in use in the grid. Optionally, the supply information of the shared devices of each grid is determined according to the location information of each shared device.

在一种可选的实现方式中,共享设备的位置信息由任务完成时用户终端的上报信息确定。也就是说,在用户租用共享设备结束时,通过用户终端上报租用结束的消息,根据用户终端上报的租用结束的消息获取共享设备当前的位置信息(也即用户结束租用的位置)。并且,当运维人员的终端挪动共享设备后,会通过运维终端上报挪动共享设备的相关信息,因此,也可以根据运维终端的上报信息获取相关共享设备的位置信息。在另一种可选的实现方式中,可以通过控制共享设备周期性地上报自身的位置信息以获取各共享设备当前的位置信息。应理解,本实施例并不限于上述获取共享设备的位置信息的方法,其他能够实现上述功能的方法均可应用于本实施例中。In an optional implementation manner, the location information of the shared device is determined by the information reported by the user terminal when the task is completed. That is to say, when the user ends renting the shared device, the user terminal reports the lease end message, and obtains the current location information of the shared device (that is, the location where the user ends the lease) according to the lease end message reported by the user terminal. In addition, when the terminal of the operation and maintenance personnel moves the shared device, the relevant information of the mobile shared device will be reported through the operation and maintenance terminal. Therefore, the location information of the relevant shared device can also be obtained according to the information reported by the operation and maintenance terminal. In another optional implementation manner, the current location information of each sharing device may be acquired by controlling the sharing device to periodically report its own location information. It should be understood that this embodiment is not limited to the above-mentioned method for acquiring the location information of the shared device, and other methods capable of realizing the above-mentioned functions can be applied to this embodiment.

应理解,步骤S120和步骤S130没有先后的执行顺序,步骤S130可以在步骤S120之前执行,也可以在步骤S120之后执行,也可以与步骤S120同时执行,本实施例并不对此进行限制。It should be understood that step S120 and step S130 do not have a sequential execution order, and step S130 may be executed before step S120, may be executed after step S120, or may be executed simultaneously with step S120, which is not limited in this embodiment.

步骤S140,根据需求信息和供给信息确定下个时段在各网格中关联共享设备的资源消耗量。Step S140: Determine the resource consumption of the associated shared devices in each grid in the next time period according to the demand information and the supply information.

在一种可选的实现方式中,步骤S140可以包括:根据各网格的下个时段的供给信息和需求信息确定各网格在下个时段的供需比,根据所述供需比确定下个时段在各网格中关联共享设备的资源消耗量。可选的,在本实施例中,根据所述供需比、预先确定的供需比分段以及各所述供需比分段对应的权重确定所述资源消耗量。In an optional implementation manner, step S140 may include: determining the supply and demand ratio of each grid in the next time period according to the supply information and demand information of each grid in the next time period, and determining the next time period according to the supply and demand ratio. Resource consumption of associated shared devices in each grid. Optionally, in this embodiment, the resource consumption is determined according to the supply-demand ratio, a predetermined supply-demand ratio segment, and a weight corresponding to each supply-demand ratio segment.

举例来说,假设参考资源消耗量为x(x>0),各供需比分段与对应的权重对应表如表(1)所示,应理解,表(1)仅仅为示例性的,可以根据实际应用场景调整供需比分段、对应的权重以及供需比分段与对应的权重对应关系。For example, assuming that the reference resource consumption is x (x>0), the corresponding table of each supply-demand ratio segment and the corresponding weight is shown in table (1). It should be understood that table (1) is only exemplary, and can be Adjust the supply-demand ratio segment, the corresponding weight, and the corresponding relationship between the supply-demand ratio segment and the corresponding weight according to the actual application scenario.

供需比supply and demand ratio 权重Weights 调整后资源消耗量Adjusted resource consumption ≥1≥1 1.01.0 1.0*x1.0*x [0.75,1)[0.75,1) 1.251.25 1.25*x1.25*x [0.5,0.75)[0.5,0.75) 1.51.5 1.5*x1.5*x [0.25,0.5)[0.25,0.5) 2.02.0 2.0*x2.0*x [0,0.25)[0,0.25) 3.03.0 3.0*x3.0*x

由此,假设在网格1中的计算获取的供需比为0.55,则可以将下个时段在网格1中关联共享设备的资源消耗量调整为1.5*x。由此,可以有效提高共享设备的资源利用率。Therefore, assuming that the supply-demand ratio obtained by the calculation in the grid 1 is 0.55, the resource consumption of the associated shared device in the grid 1 in the next period can be adjusted to 1.5*x. Thereby, the resource utilization rate of the shared device can be effectively improved.

本发明实施例通过将获取的各网格的特征数据输入至预先训练的需求预测模型以获得各网格的共享设备的需求信息,获取各网格的共享设备的供给信息,并根据各网格的共享设备的需求信息和供给信息确定下个时段在各网格中关联所述共享设备的资源消耗量,由此,可以提高共享设备的资源利用率。In the embodiment of the present invention, the acquired characteristic data of each grid is input into a pre-trained demand prediction model to obtain the demand information of the shared equipment of each grid, and the supply information of the shared equipment of each grid is obtained, and according to each grid The demand information and supply information of the shared device determined by the corresponding grids determine the resource consumption of the shared device in the next time period, thereby improving the resource utilization rate of the shared device.

图3是本发明实施例的数据处理方法的数据流向图。如图3所示,将获取的各网格的特征数据输入至预先训练的需求预测模型31,获得各网格的共享设备的需求信息。其中,网格的特征数据包括网格信息、时段信息以及各网格在历史相同时段的共享设备的需求信息,网格信息包括对应网格的标识和环境信息,网格对应于预先划分的地理区域。其中,网格的环境信息可以包括该网格中的建筑信息,例如,该网格内是否包括住宅小区、地铁站、公交车站、医院、学校、写字楼、商场等建筑以及所包含的各建筑的数量。在本实施例中,将一天的时间等分为多个时段,可选的,每个时段为15min。假设每个时段的时间长度为15min,需要预测的时段为今日下午18:00-18:15,则各网格在历史相同时段的共享设备的需求信息为各网格各历史每天18:00-18:15的共享设备的需求量。FIG. 3 is a data flow diagram of a data processing method according to an embodiment of the present invention. As shown in FIG. 3 , the acquired characteristic data of each grid is input into the pre-trained demand prediction model 31 to obtain the demand information of the shared equipment of each grid. Among them, the characteristic data of the grid includes grid information, time period information, and the demand information of the shared equipment of each grid in the same historical period. The grid information includes the identification and environmental information of the corresponding grid, and the grid corresponds to the pre-divided geographical location. area. Wherein, the environmental information of the grid may include building information in the grid, for example, whether the grid includes residential quarters, subway stations, bus stations, hospitals, schools, office buildings, shopping malls, and other buildings, as well as the included buildings quantity. In this embodiment, the time of a day is equally divided into a plurality of time periods. Optionally, each time period is 15 minutes. Assuming that the time length of each time period is 15 minutes, and the time period to be predicted is from 18:00 to 18:15 pm today, then the demand information of the shared equipment of each grid in the same historical period is 18:00 to 18:00 of each historical day of each grid. 18:15 Demand for shared equipment.

可选的,需求预测模型通过获取的训练数据进行训练,训练数据包括各网格信息、各时段信息、以及历史需求信息。可选的,需求预测模型为XGBoost回归模型。其中,历史需求信息包括第一预定时间内的各网格在各时段的共享设备的需求均值和需求中值、第二预定时间内的各网格在各时段的共享设备的需求均值和需求中值、以及第三预定时间内的各网格在各时段的共享设备的需求均值和需求中值中的至少一项。可选的,第一预定时间为最近56天、第二预定时间为最近28天、第三预定时间为最近14天。例如,最近14天内网格1在时段18:00-18:15的共享设备的需求均值为:最近14天内每天的时段18:00-18:15的需求量的平均值。其中,对于每个网格时段,该网格时段的需求量为用户想要与共享设备关联的数量,例如扫描共享单车二维码的数量。可选的,同一个用户的多次扫码记为1次需求,并且只要扫码无论是否完成骑行均可记为1次需求。由此,可以相对准确地得到该网格时段的共享设备的需求量。应理解,由于城市交通中,工作日和休息日(周末和节假日)的共享设备需求量不同,因此,在进行模型训练时,可以引入时段所在日期信息(例如日期、工作日标识、休息日标识等),以进一步提高需求预测的准确度。Optionally, the demand prediction model is trained by the acquired training data, and the training data includes information of each grid, information of each period, and historical demand information. Optionally, the demand forecasting model is an XGBoost regression model. Wherein, the historical demand information includes the average and median demand of the shared equipment of each grid in each time period in the first predetermined time, and the average and demand of the shared equipment of each grid in each time period in the second predetermined time. value, and at least one of a demand mean value and a demand median value of the shared equipment of each grid in each time period within the third predetermined time. Optionally, the first predetermined time is the last 56 days, the second predetermined time is the last 28 days, and the third predetermined time is the last 14 days. For example, the average demand of the shared equipment of grid 1 in the period of 18:00-18:15 in the last 14 days is: the average of the demand of each day in the last 14 days in the period of 18:00-18:15. Wherein, for each grid period, the demand in the grid period is the number that the user wants to associate with the shared device, such as the number of scanning the shared bicycle QR code. Optionally, multiple scans of the code by the same user are recorded as one demand, and as long as the scan code is completed or not, it can be recorded as one demand. In this way, the demand for the shared device in the grid period can be obtained relatively accurately. It should be understood that in urban traffic, the demand for shared equipment on working days and rest days (weekends and holidays) is different, therefore, when performing model training, the date information of the time period (such as date, working day identifier, rest day identifier) can be introduced. etc.) to further improve the accuracy of demand forecasting.

在本实施例中,根据供给信息获取单元32获取各网格在下个时段的共享设备的供给信息。其中,网格的共享设备的供给信息包括在该网格内功能正常、不在使用状态中的共享设备数量。可选的,根据各共享设备的位置信息确定各网格的共享设备的供给信息。In this embodiment, the supply information of the shared equipment of each grid in the next period is acquired according to the supply information acquisition unit 32 . Wherein, the supply information of the shared devices of the grid includes the number of shared devices that function normally and are not in use in the grid. Optionally, the supply information of the shared devices of each grid is determined according to the location information of each shared device.

在一种可选的实现方式中,共享设备的位置信息由任务完成时用户终端的上报信息确定。也就是说,在用户租用共享设备结束时,通过用户终端上报租用结束的消息,根据用户终端上报的租用结束的消息获取共享设备当前的位置信息(也即用户结束租用的位置)。并且,当运维人员的终端挪动共享设备后,会通过运维终端上报挪动共享设备的相关信息,因此,也可以根据运动终端的上报信息获取相关共享设备的位置信息。在另一种可选的实现方式中,可以通过控制共享设备周期性地上报自身的位置信息以获取各共享设备当前的位置信息。应理解,本实施例并不限于上述获取共享设备的位置信息的方法,其他能够实现上述功能的方法均可应用于本实施例中。In an optional implementation manner, the location information of the shared device is determined by the information reported by the user terminal when the task is completed. That is to say, when the user ends renting the shared device, the user terminal reports the lease end message, and obtains the current location information of the shared device (that is, the location where the user ends the lease) according to the lease end message reported by the user terminal. Moreover, after the terminal of the operation and maintenance personnel moves the shared device, the relevant information of the mobile shared device will be reported through the operation and maintenance terminal. Therefore, the location information of the relevant shared device can also be obtained according to the report information of the exercise terminal. In another optional implementation manner, the current location information of each sharing device may be acquired by controlling the sharing device to periodically report its own location information. It should be understood that this embodiment is not limited to the above-mentioned method for acquiring the location information of the shared device, and other methods capable of realizing the above-mentioned functions can be applied to this embodiment.

确定单元33根据获取的需求信息和供给信息确定下个时段在各网格中关联共享设备的资源消耗量。可选的:根据各网格的下个时段的供给信息和需求信息确定各网格在下个时段的供需比,根据所述供需比确定下个时段在各网格中关联共享设备的资源消耗量。可选的,在本实施例中,根据所述供需比、预先确定的供需比分段以及各所述供需比分段对应的权重确定所述资源消耗量。The determining unit 33 determines, according to the acquired demand information and supply information, the resource consumption of the associated shared devices in each grid in the next time period. Optional: determine the supply and demand ratio of each grid in the next period according to the supply information and demand information of each grid in the next period, and determine the resource consumption of the associated shared equipment in each grid in the next period according to the supply and demand ratio . Optionally, in this embodiment, the resource consumption is determined according to the supply-demand ratio, a predetermined supply-demand ratio segment, and a weight corresponding to each supply-demand ratio segment.

本发明实施例通过将获取的各网格的特征数据输入至预先训练的需求预测模型以获得各网格的共享设备的需求信息,获取各网格的共享设备的供给信息,并根据各网格的共享设备的需求信息和供给信息确定下个时段在各网格中关联所述共享设备的资源消耗量,由此,可以提高共享设备的资源利用率。In the embodiment of the present invention, the acquired characteristic data of each grid is input into a pre-trained demand prediction model to obtain the demand information of the shared equipment of each grid, and the supply information of the shared equipment of each grid is obtained, and according to each grid The demand information and supply information of the shared device determined by the corresponding grids determine the resource consumption of the shared device in the next time period, thereby improving the resource utilization rate of the shared device.

图4是本发明实施例的数据处理方法的场景示意图。如图4所示,地区区域4被预先根据GeoHash方法划分为多个网格。其中,网格41中包括小区A,网格42中包括地铁B。假设当前时间为早上07:59,若要通过本实施例的数据处理方法来确定网格41和网格42在下个时段(也即早上08:00-08:15)对应的资源消耗量,则将获取的网格41和网格42的网格信息、时段信息以及历史相同时段的共享单车的需求信息输入至预先训练的需求预测模型中,以预测网格41和网格42在下个时段的需求信息,并基于用户终端和运维终端上报的信息确定网格41和网格42中的共享单车的供给信息,并基于预先确定的供需比分段、各所述供需比分段对应的权重以及计算获取的供需比,确定网格41和网格42在下个时段的资源消耗量。以参考资源消耗量为1元,表(1)中的供需比分段及对应的权重为例,假设网格41对应的供需比为0.3,网格42对应的供需比为2.0,则在下个时段,网格41对应的资源消耗量为2元,网格42对应的资源消耗量为1元。也即,若用户在网格41的小区A处租用共享单车的起步资源消耗量为2元,在网格42的地铁B处租用共享单车的起步资源消耗量为1元。由此,可以根据共享单车的供需比确定对应的资源消耗量,提高了共享设备的资源利用率。FIG. 4 is a schematic diagram of a scene of a data processing method according to an embodiment of the present invention. As shown in FIG. 4, the regional area 4 is divided into a plurality of grids in advance according to the GeoHash method. The grid 41 includes cell A, and the grid 42 includes subway B. Assuming that the current time is 07:59 in the morning, if the resource consumption corresponding to the grid 41 and the grid 42 in the next time period (that is, 08:00-08:15 in the morning) is to be determined by the data processing method of this embodiment, then Input the obtained grid information, time period information of grid 41 and grid 42 and the demand information of shared bicycles in the same historical period into the pre-trained demand prediction model to predict grid 41 and grid 42 in the next time period. Demand information, and determine the supply information of shared bicycles in grid 41 and grid 42 based on the information reported by the user terminal and the operation and maintenance terminal, and based on the pre-determined supply and demand ratio segments, the corresponding weights of the supply and demand ratio segments and calculating the obtained supply-demand ratio to determine the resource consumption of the grid 41 and the grid 42 in the next period. Taking the reference resource consumption as 1 yuan, the supply-demand ratio segments and corresponding weights in Table (1) as an example, assuming that the supply-demand ratio corresponding to grid 41 is 0.3, and the supply-demand ratio corresponding to grid 42 is 2.0, then in the next During the period, the resource consumption corresponding to the grid 41 is 2 yuan, and the resource consumption corresponding to the grid 42 is 1 yuan. That is, if the initial resource consumption for renting a shared bicycle in cell A of grid 41 is 2 yuan, the initial resource consumption for renting a shared bicycle in subway B in grid 42 is 1 yuan. Therefore, the corresponding resource consumption can be determined according to the supply and demand ratio of the shared bicycles, which improves the resource utilization rate of the shared equipment.

本实施例以共享单车为例进行说明,应理解,其他共享设备,例如共享汽车、共享充电宝等均可应用本实施例的数据处理方法。This embodiment is described by taking a shared bicycle as an example, and it should be understood that the data processing method of this embodiment can be applied to other shared devices, such as a shared car, a shared power bank, and the like.

本发明实施例通过将获取的各网格的特征数据输入至预先训练的需求预测模型以获得各网格的共享设备的需求信息,获取各网格的共享设备的供给信息,并根据各网格的共享设备的需求信息和供给信息确定下个时段在各网格中关联所述共享设备的资源消耗量,由此,可以提高共享设备的资源利用率。In the embodiment of the present invention, the acquired characteristic data of each grid is input into a pre-trained demand prediction model to obtain the demand information of the shared equipment of each grid, and the supply information of the shared equipment of each grid is obtained, and according to each grid The demand information and supply information of the shared device determined by the corresponding grids determine the resource consumption of the shared device in the next time period, thereby improving the resource utilization rate of the shared device.

图5是发明实施例的数据处理装置的示意图。如图5所示,本实施例的数据处理装置包括特征数据获取单元51、需求信息获取单元52、供给信息获取单元53和确定单元54。FIG. 5 is a schematic diagram of a data processing apparatus according to an embodiment of the invention. As shown in FIG. 5 , the data processing apparatus of this embodiment includes a characteristic data acquisition unit 51 , a demand information acquisition unit 52 , a supply information acquisition unit 53 and a determination unit 54 .

特征数据获取单元51被配置为获取各网格的特征数据,所述特征数据包括网格信息、时段信息以及各网格在历史相同时段的共享设备的需求信息,所述网格信息包括对应网格的标识和环境信息,所述网格对应于预先划分的地理区域。可选的,各网格根据GeoHash方法进行划分。The characteristic data acquisition unit 51 is configured to acquire characteristic data of each grid, the characteristic data includes grid information, time period information, and demand information of the shared equipment of each grid in the same historical period, and the grid information includes the corresponding grid information. identification and environmental information of a grid corresponding to a pre-divided geographic area. Optionally, each grid is divided according to the GeoHash method.

需求信息获取单元52被配置为将所述各网格的特征数据输入至预先训练的需求预测模型,获得所述各网格的共享设备的需求信息。可选的,需求预测模型为XGBoost回归模型。The demand information obtaining unit 52 is configured to input the characteristic data of each grid into the pre-trained demand prediction model, and obtain the demand information of the shared equipment of each grid. Optionally, the demand forecasting model is an XGBoost regression model.

供给信息获取单元53被配置为获取各网格在下个时段的共享设备的供给信息。可选的,给信息获取单元53进一步被配置为根据各共享设备的位置信息确定各网格的共享设备的供给信息。可选的,所述共享设备的位置信息由任务完成时用户终端的上报信息确定,或者由运维终端的上报信息确定。The supply information acquisition unit 53 is configured to acquire supply information of the shared devices of each grid in the next period. Optionally, the information acquisition unit 53 is further configured to determine the supply information of the shared devices of each grid according to the location information of each shared device. Optionally, the location information of the shared device is determined by the report information of the user terminal when the task is completed, or is determined by the report information of the operation and maintenance terminal.

确定单元54被配置为根据所述需求信息和所述供给信息确定下个时段在各网格中关联所述共享设备的资源消耗量。在一种可选的实现方式中,确定单元54进一步被配置为根据所述供给信息和所述需求信息确定供需比,并根据所述供需比确定所述资源消耗量。可选的,确定单元54进一步根据所述供需比、预先确定的供需比分段以及各所述供需比分段对应的权重确定所述资源消耗量。The determining unit 54 is configured to determine, according to the demand information and the supply information, the resource consumption amount associated with the shared device in each grid in the next period. In an optional implementation manner, the determining unit 54 is further configured to determine a supply-demand ratio according to the supply information and the demand information, and determine the resource consumption amount according to the supply-demand ratio. Optionally, the determining unit 54 further determines the resource consumption according to the supply-demand ratio, a predetermined supply-demand ratio segment, and a weight corresponding to each supply-demand ratio segment.

本发明实施例通过将获取的各网格的特征数据输入至预先训练的需求预测模型以获得各网格的共享设备的需求信息,获取各网格的共享设备的供给信息,并根据各网格的共享设备的需求信息和供给信息确定下个时段在各网格中关联所述共享设备的资源消耗量,由此,可以提高共享设备的资源利用率。In the embodiment of the present invention, the acquired characteristic data of each grid is input into a pre-trained demand prediction model to obtain the demand information of the shared equipment of each grid, and the supply information of the shared equipment of each grid is obtained, and according to each grid The demand information and supply information of the shared device determined by the corresponding grids determine the resource consumption of the shared device in the next time period, thereby improving the resource utilization rate of the shared device.

图6是本发明实施例的电子设备的示意图。如图6所示,图6所示的电子设备为通用数据处理装置,其包括通用的计算机硬件结构,其至少包括处理器61和存储器62。处理器61和存储器62通过总线63连接。存储器62适于存储处理器61可执行的指令或程序。处理器61可以是独立的微处理器,也可以是一个或者多个微处理器集合。由此,处理器61通过执行存储器62所存储的指令,从而执行如上所述的本发明实施例的方法流程实现对于数据的处理和对于其它装置的控制。总线63将上述多个组件连接在一起,同时将上述组件连接到显示控制器64和显示装置以及输入/输出(I/O)装置65。输入/输出(I/O)装置65可以是鼠标、键盘、调制解调器、网络接口、触控输入装置、体感输入装置、打印机以及本领域公知的其他装置。典型地,输入/输出装置65通过输入/输出(I/O)控制器66与系统相连。FIG. 6 is a schematic diagram of an electronic device according to an embodiment of the present invention. As shown in FIG. 6 , the electronic device shown in FIG. 6 is a general-purpose data processing apparatus, which includes a general-purpose computer hardware structure, which at least includes a processor 61 and a memory 62 . The processor 61 and the memory 62 are connected by a bus 63 . The memory 62 is adapted to store instructions or programs executable by the processor 61 . The processor 61 may be an independent microprocessor, or may be a set of one or more microprocessors. Thus, the processor 61 executes the instructions stored in the memory 62 to execute the above-described method flow of the embodiments of the present invention to process data and control other devices. The bus 63 connects the above-mentioned various components together, while connecting the above-mentioned components to the display controller 64 and the display device and the input/output (I/O) device 65 . The input/output (I/O) device 65 may be a mouse, keyboard, modem, network interface, touch input device, somatosensory input device, printer, and other devices known in the art. Typically, input/output devices 65 are connected to the system through input/output (I/O) controllers 66 .

本领域的技术人员应明白,本申请的实施例可提供为方法、装置(设备)或计算机程序产品。因此,本申请可采用完全硬件实施例、完全软件实施例或结合软件和硬件方面的实施例的形式。而且,本申请可采用在一个或多个其中包含有计算机可用程序代码的计算机可读存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序产品。It should be understood by those skilled in the art that the embodiments of the present application may be provided as a method, an apparatus (apparatus) or a computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present application may employ a computer program product embodied on one or more computer-readable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, etc.) having computer-usable program code embodied therein.

本申请是参照根据本申请实施例的方法、装置(设备)和计算机程序产品的流程图来描述的。应理解可由计算机程序指令实现流程图中的每一流程。The present application is described with reference to flowchart illustrations of methods, apparatus (apparatus) and computer program products according to embodiments of the present application. It will be understood that each process in the flowchart can be implemented by computer program instructions.

这些计算机程序指令可以存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现流程图一个流程或多个流程中指定的功能。These computer program instructions may be stored in a computer readable memory capable of directing a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer readable memory result in an article of manufacture comprising instruction means, the instruction means Implements the function specified in a flow chart or flows.

也可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程中指定的功能的装置。These computer program instructions may also be provided to the processor of a general purpose computer, special purpose computer, embedded processor or other programmable data processing device to produce a machine such that the instructions executed by the processor of the computer or other programmable data processing device produce Means for implementing the functions specified in a flow or flows of a flowchart.

本发明的另一实施例涉及一种非易失性存储介质,用于存储计算机可读程序,所述计算机可读程序用于供计算机执行上述部分或全部的方法实施例。Another embodiment of the present invention relates to a non-volatile storage medium for storing a computer-readable program, the computer-readable program being used for a computer to execute some or all of the above method embodiments.

即,本领域技术人员可以理解,实现上述实施例方法中的全部或部分步骤是可以通过程序来指令相关的硬件来完成,该程序存储在一个存储介质中,包括若干指令用以使得一个设备(可以是单片机,芯片等)或处理器(processor)执行本申请各实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(ROM,Read-OnlyMemory)、随机存取存储器(RAM,Random Access Memory)、磁碟或者光盘等各种可以存储程序代码的介质。That is, those skilled in the art can understand that all or part of the steps in the method for implementing the above embodiments can be completed by instructing the relevant hardware through a program, and the program is stored in a storage medium and includes several instructions to make a device ( It may be a single chip microcomputer, a chip, etc.) or a processor (processor) to execute all or part of the steps of the methods described in the embodiments of the present application. The aforementioned storage medium includes: U disk, removable hard disk, Read-Only Memory (ROM, Read-Only Memory), Random Access Memory (RAM, Random Access Memory), magnetic disk or optical disk and other media that can store program codes.

以上所述仅为本发明的优选实施例,并不用于限制本发明,对于本领域技术人员而言,本发明可以有各种改动和变化。凡在本发明的精神和原理之内所作的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。The above descriptions are only preferred embodiments of the present invention, and are not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and changes. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included within the protection scope of the present invention.

Claims (12)

1.一种数据处理方法,其特征在于,所述方法包括:1. a data processing method, is characterized in that, described method comprises: 获取各网格的特征数据,所述特征数据包括网格信息、时段信息以及各网格在历史相同时段的共享设备的需求信息,所述网格信息包括对应网格的标识和环境信息,所述网格对应于预先划分的地理区域;Obtain feature data of each grid, the feature data includes grid information, time period information, and demand information of shared equipment of each grid in the same historical period, the grid information includes the identification and environmental information of the corresponding grid, so the grid corresponds to a pre-divided geographic area; 将所述各网格的特征数据输入至预先训练的需求预测模型,获得所述各网格的共享设备的需求信息;inputting the feature data of each grid into a pre-trained demand prediction model to obtain the demand information of the shared equipment of each grid; 获取各网格的共享设备的供给信息;Obtain the supply information of the shared equipment of each grid; 根据所述需求信息和所述供给信息确定下个时段在各网格中关联所述共享设备的资源消耗量。According to the demand information and the supply information, the resource consumption associated with the shared device in each grid in the next period is determined. 2.根据权利要求1所述的方法,其特征在于,根据所述需求信息和所述供给信息确定下个时段在各网格中关联所述共享设备的资源消耗量包括:2 . The method according to claim 1 , wherein determining, according to the demand information and the supply information, the resource consumption associated with the shared devices in each grid in the next time period comprises: 2 . 根据所述供给信息和所述需求信息确定供需比;determining a supply-demand ratio according to the supply information and the demand information; 根据所述供需比确定所述资源消耗量。The resource consumption is determined according to the supply and demand ratio. 3.根据权利要求2所述的方法,其特征在于,根据所述供需比确定所述资源消耗量包括:3. The method according to claim 2, wherein determining the resource consumption according to the supply-demand ratio comprises: 根据所述供需比、预先确定的供需比分段以及各所述供需比分段对应的权重确定所述资源消耗量。The resource consumption is determined according to the supply and demand ratio, the predetermined supply and demand ratio segments, and the weights corresponding to each of the supply and demand ratio segments. 4.根据权利要求1所述的方法,其特征在于,获取各网格的共享设备的供给信息包括:4. The method according to claim 1, wherein acquiring the supply information of the shared devices of each grid comprises: 根据各共享设备的位置信息确定各网格的共享设备的供给信息。The supply information of the shared devices of each grid is determined according to the location information of each shared device. 5.根据权利要求4所述的方法,其特征在于,所述共享设备的位置信息由任务完成时用户终端的上报信息确定,或者由运维终端的上报信息确定。5 . The method according to claim 4 , wherein the location information of the shared device is determined by the report information of the user terminal when the task is completed, or by the report information of the operation and maintenance terminal. 6 . 6.根据权利要求1所述的方法,其特征在于,所述需求预测模型通过以下步骤训练:6. The method according to claim 1, wherein the demand forecasting model is trained by the following steps: 获取训练数据,所述训练数据包括各网格信息、各时段信息、以及历史需求信息;Obtaining training data, the training data includes each grid information, each time period information, and historical demand information; 根据所述训练数据训练获取所述需求预测模型;The demand forecasting model is obtained by training according to the training data; 其中,所述历史需求信息包括第一预定时间内的各网格在各时段的共享设备的需求均值和需求中值、第二预定时间内的各网格在各时段的共享设备的需求均值和需求中值、以及第三预定时间内的各网格在各时段的共享设备的需求均值和需求中值中的至少一项。Wherein, the historical demand information includes the average and median demand of the shared equipment of each grid in each time period in the first predetermined time, the average and The median demand value, and at least one of the mean demand value and the median demand value of the shared devices of each grid in each time period within the third predetermined time period. 7.根据权利要求6所述的方法,其特征在于,所述各时段信息包括时段的标识以及所述时段所处日期。7 . The method according to claim 6 , wherein the information of each time period includes an identifier of the time period and a date of the time period. 8 . 8.根据权利要求1所述的方法,其特征在于,所述需求预测模型为XGBoost回归模型。8. The method according to claim 1, wherein the demand prediction model is an XGBoost regression model. 9.根据权利要求1所述的方法,其特征在于,所述各网格根据GeoHash方法进行划分。9 . The method according to claim 1 , wherein the grids are divided according to the GeoHash method. 10 . 10.一种数据处理装置,其特征在于,所述装置包括:10. A data processing device, characterized in that the device comprises: 特征数据获取单元,被配置为获取各网格的特征数据,所述特征数据包括网格信息、时段信息以及各网格在历史相同时段的共享设备的需求信息,所述网格信息包括对应网格的标识和环境信息,所述网格对应于预先划分的地理区域;The characteristic data acquisition unit is configured to acquire characteristic data of each grid, the characteristic data includes grid information, time period information, and demand information of the shared equipment of each grid in the same historical period, and the grid information includes corresponding grid information identification and environmental information of a grid, the grid corresponding to a pre-divided geographic area; 需求信息获取单元,被配置为将所述各网格的特征数据输入至预先训练的需求预测模型,获得所述各网格的共享设备的需求信息;a demand information acquisition unit, configured to input the characteristic data of each grid into a pre-trained demand prediction model, and obtain the demand information of the shared equipment of each grid; 供给信息获取单元,被配置为获取各网格的共享设备的供给信息;a supply information acquisition unit, configured to acquire supply information of the shared equipment of each grid; 确定单元,被配置为根据所述需求信息和所述供给信息确定下个时段在各网格中关联所述共享设备的资源消耗量。A determining unit, configured to determine, according to the demand information and the supply information, the resource consumption associated with the shared device in each grid in the next period. 11.一种电子设备,包括存储器和处理器,其特征在于,所述存储器用于存储一条或多条计算机程序指令,其中,所述一条或多条计算机程序指令被所述处理器执行以实现如权利要求1-9中任一项所述的方法。11. An electronic device comprising a memory and a processor, wherein the memory is used to store one or more computer program instructions, wherein the one or more computer program instructions are executed by the processor to achieve The method of any one of claims 1-9. 12.一种计算机可读存储介质,其上存储计算机程序指令,其特征在于,所述计算机程序指令在被处理器执行时以实现如权利要求1-9中任一项所述的方法。12. A computer-readable storage medium having computer program instructions stored thereon, wherein the computer program instructions, when executed by a processor, implement the method of any one of claims 1-9.
CN201911408501.2A 2019-12-31 2019-12-31 Data processing method, device, electronic device and computer readable storage medium Active CN111832600B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911408501.2A CN111832600B (en) 2019-12-31 2019-12-31 Data processing method, device, electronic device and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911408501.2A CN111832600B (en) 2019-12-31 2019-12-31 Data processing method, device, electronic device and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN111832600A true CN111832600A (en) 2020-10-27
CN111832600B CN111832600B (en) 2025-01-10

Family

ID=72912357

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911408501.2A Active CN111832600B (en) 2019-12-31 2019-12-31 Data processing method, device, electronic device and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN111832600B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112668394A (en) * 2020-11-30 2021-04-16 山东大学 On-line prediction method and system for agricultural greenhouse production
CN112700053A (en) * 2021-01-05 2021-04-23 上海钧正网络科技有限公司 Battery distribution method, device and equipment
CN114331622A (en) * 2021-12-29 2022-04-12 珠海格力电器股份有限公司 Control method, device and shared service platform for shared equipment
CN115687829A (en) * 2022-12-29 2023-02-03 四川绿源集科技有限公司 Page jump method and device, computer readable storage medium and electronic equipment

Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100088205A1 (en) * 2008-10-02 2010-04-08 Verizon Business Network Services Inc. Methods, Systems and Computer Program Products for a Cloud Computing Spot Market Platform
KR20110108007A (en) * 2010-03-26 2011-10-05 에스케이 텔레콤주식회사 Integrated utility delivery system and integrated utility delivery method
CN107038503A (en) * 2017-04-18 2017-08-11 广东工业大学 A kind of Demand Forecast method and system of shared equipment
CN107194722A (en) * 2017-05-15 2017-09-22 马上游科技股份有限公司 A kind of Dynamic Pricing algorithm based on data mining under shared economy
CN107767659A (en) * 2017-10-13 2018-03-06 东南大学 Shared bicycle traffic attraction and prediction of emergence size method based on ARIMA models
CN108062601A (en) * 2017-12-20 2018-05-22 青岛海信网络科技股份有限公司 A kind of parking lot Dynamic Pricing method and apparatus
CN108717656A (en) * 2018-06-11 2018-10-30 上海云会贸易有限公司 A kind of taxi management system
CN108876056A (en) * 2018-07-20 2018-11-23 广东工业大学 A kind of shared bicycle Demand Forecast method, apparatus, equipment and storage medium
CN108960476A (en) * 2018-03-30 2018-12-07 山东师范大学 Shared bicycle method for predicting and device based on AP-TI cluster
CN109272664A (en) * 2018-08-27 2019-01-25 北京环丁环保大数据研究院 A kind of Detection of Air Quality method, server and shared bicycle
CN109543909A (en) * 2018-11-27 2019-03-29 平安科技(深圳)有限公司 Prediction technique, device and the computer equipment of vehicle caseload
CN109543922A (en) * 2018-12-20 2019-03-29 西安电子科技大学 Prediction technique is also measured for there is stake to share borrowing at times for bicycle website group
CN109583491A (en) * 2018-11-23 2019-04-05 温州职业技术学院 A kind of shared bicycle intelligent dispatching method

Patent Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100088205A1 (en) * 2008-10-02 2010-04-08 Verizon Business Network Services Inc. Methods, Systems and Computer Program Products for a Cloud Computing Spot Market Platform
KR20110108007A (en) * 2010-03-26 2011-10-05 에스케이 텔레콤주식회사 Integrated utility delivery system and integrated utility delivery method
CN107038503A (en) * 2017-04-18 2017-08-11 广东工业大学 A kind of Demand Forecast method and system of shared equipment
CN107194722A (en) * 2017-05-15 2017-09-22 马上游科技股份有限公司 A kind of Dynamic Pricing algorithm based on data mining under shared economy
CN107767659A (en) * 2017-10-13 2018-03-06 东南大学 Shared bicycle traffic attraction and prediction of emergence size method based on ARIMA models
CN108062601A (en) * 2017-12-20 2018-05-22 青岛海信网络科技股份有限公司 A kind of parking lot Dynamic Pricing method and apparatus
CN108960476A (en) * 2018-03-30 2018-12-07 山东师范大学 Shared bicycle method for predicting and device based on AP-TI cluster
CN108717656A (en) * 2018-06-11 2018-10-30 上海云会贸易有限公司 A kind of taxi management system
CN108876056A (en) * 2018-07-20 2018-11-23 广东工业大学 A kind of shared bicycle Demand Forecast method, apparatus, equipment and storage medium
CN109272664A (en) * 2018-08-27 2019-01-25 北京环丁环保大数据研究院 A kind of Detection of Air Quality method, server and shared bicycle
CN109583491A (en) * 2018-11-23 2019-04-05 温州职业技术学院 A kind of shared bicycle intelligent dispatching method
CN109543909A (en) * 2018-11-27 2019-03-29 平安科技(深圳)有限公司 Prediction technique, device and the computer equipment of vehicle caseload
CN109543922A (en) * 2018-12-20 2019-03-29 西安电子科技大学 Prediction technique is also measured for there is stake to share borrowing at times for bicycle website group

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112668394A (en) * 2020-11-30 2021-04-16 山东大学 On-line prediction method and system for agricultural greenhouse production
CN112668394B (en) * 2020-11-30 2023-10-31 山东大学 On-line prediction method and system for agricultural greenhouse production
CN112700053A (en) * 2021-01-05 2021-04-23 上海钧正网络科技有限公司 Battery distribution method, device and equipment
CN114331622A (en) * 2021-12-29 2022-04-12 珠海格力电器股份有限公司 Control method, device and shared service platform for shared equipment
CN115687829A (en) * 2022-12-29 2023-02-03 四川绿源集科技有限公司 Page jump method and device, computer readable storage medium and electronic equipment

Also Published As

Publication number Publication date
CN111832600B (en) 2025-01-10

Similar Documents

Publication Publication Date Title
CN111832600A (en) Data processing method, apparatus, electronic device and computer-readable storage medium
Ortlepp et al. Materials in Germany’s domestic building stock: calculation model and uncertainties
Nouvel et al. Combining GIS-based statistical and engineering urban heat consumption models: Towards a new framework for multi-scale policy support
Meng et al. Degree-day based non-domestic building energy analytics and modelling should use building and type specific base temperatures
Polebitski et al. Seasonal residential water demand forecasting for census tracts
JP2015138547A (en) Demand response event assessment method and program
JP6498976B2 (en) Estimation apparatus, estimation method, and computer program
CN110245782A (en) Prediction model training method, device and equipment
CN108154252A (en) Method and apparatus for estimating the flow deadline
CN102915481B (en) A kind of method, device and equipment for user account is managed
Gallardo et al. Dynamic-MFA examination of Chilean housing stock: long-term changes and earthquake damage
CN116050947A (en) Evaluation method, device, computer equipment and storage medium of vehicle dispatching effect
CN103685347A (en) Method and device for allocating network resources
CN114489846A (en) Resource estimation method, device, electronic device and storage medium for cloud platform
CN113902160A (en) Water regulation method applied to hydro-junction engineering
CN108322915B (en) Information processing method and device for base station planning
CN103679289A (en) Power load prediction method based on multiple regression extrapolation method
Zhang et al. Nondeterministic-mobility-based incentive mechanism for efficient data collection in crowdsensing
CN112287503B (en) Dynamic space network construction method for traffic demand prediction
CN108764553B (en) User scale prediction method and device and computer equipment
Wilke et al. Model of occupants’ activities based on time use survey data
CN105488595A (en) Leading index construction method for monthly power consumption prediction model
JP6943436B2 (en) Visitor regional characteristic analysis system and its program
US20180374166A1 (en) Information processing apparatus, information processing method thereof, and program
CN116911414A (en) Electricity consumption prediction method, device, equipment and computer storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant