Smart city data processing method and system based on big data platform
Through the data comparison and merging technology based on the big data platform in the smart transportation system, the problem of high data storage cost is solved, and palm vein recognition is used to replace face recognition, which improves the convenience and safety of data collection and meets the needs of Smart planning needs for public transportation.
Patent Information
- Application Number
- CN202310996450.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-08-08
- Publication Date
- 2024-10-15
- Estimated Expiration
- 2043-08-08
AI Technical Summary
The existing smart transportation system cannot effectively meet the intelligent planning needs of public transportation, resulting in excessive data storage and high processing costs. Facial recognition collection in public transportation is inconvenient and there is a risk of personal information leakage.
Using a method based on a big data platform, the user's current bus travel data is collected through the terminal and compared with historical data, and similar data is merged to reduce storage volume and storage costs. At the same time, palm vein recognition is used instead of face recognition to improve the convenience of collection. and enhance security.
It achieves effective restoration and storage of bus travel data, reduces the amount and cost of data storage, solves the problems of inconvenient collection and information leakage, and improves user experience and data security.
Smart Images

Figure CN117035232B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of smart city processing, and in particular to a smart city data processing method and system based on a big data platform. Background Art
[0002] Smart city originated from the field of media. It refers to the application of intelligent computing technologies such as the Internet of Things, cloud computing, big data, and spatial geographic information integration in the fields of urban planning, design, construction, management, and operation. The key infrastructure components and services of cities such as urban management, education, medical care, real estate, transportation, public utilities, and public safety are made more interconnected, efficient, and intelligent, thereby providing citizens with better living and working services, creating a more favorable business development environment for enterprises, and enabling more efficient operation and management mechanisms for the government.
[0003] Smart transportation is a very important part of smart cities, especially the intelligent planning of public transportation is more important to users, but the existing smart transportation cannot meet the needs of users. Summary of the invention
[0004] The embodiments of the present invention provide a smart city data processing method and system based on a big data platform, which can realize intelligent planning of public transportation, better match user needs, and improve user experience.
[0005] In a first aspect, an embodiment of the present invention provides a smart city data processing method based on a big data platform.
[0006] The terminal collects the current public transportation travel data of user A, and the current public transportation travel data includes: the bus track and the track time period;
[0007] The bus track specifically includes: bus number, boarding station and alighting station; the track time period includes: boarding time and alighting time;
[0008] The terminal compares the current public transportation travel data with the historical public transportation travel data of user A to determine whether they have similar public transportation travel data;
[0009] If there are similar bus travel data, the terminal will merge the two similar bus travel data into one to obtain the merged bus travel data and then store it.
[0010] Secondly, a smart city data processing system based on a big data platform is provided.
[0011] A collection unit, used to collect the current public transportation travel data of user A, the current public transportation travel data including: a bus track and a track time period;
[0012] The bus track specifically includes: bus number, boarding station and alighting station; the track time period includes: boarding time and alighting time;
[0013] The processing unit is used to compare the current bus travel data with the historical bus travel data of user A to determine whether there are similar bus travel data; if there are similar bus travel data, the two similar bus travel data are merged into one to obtain the merged bus travel data and then stored.
[0014] According to a third aspect, a computer-readable storage medium is provided, which stores a program for electronic data exchange, wherein the program enables a terminal to execute the method provided in the first aspect.
[0015] The implementation of the embodiments of the present invention has the following beneficial effects:
[0016] It can be seen that the technical solution terminal provided by the present application collects the current bus travel data of user A, and the current bus travel data includes: bus track and track time period. The terminal compares the current bus travel data with the historical bus travel data of user A to determine whether there is similar bus travel data. If there is similar bus travel data, the terminal merges the two similar bus travel data into one to obtain the merged bus travel data and then stores it. The technical solution of the present application merges the data of the bus track and then stores it, so that the bus travel data can be effectively restored, and the storage amount of data can be reduced, and the storage cost of data can be reduced. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the accompanying drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings in the following description are some embodiments of the present invention. For ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without paying creative work.
[0018] Figure 1 A schematic diagram of the structure of a terminal
[0019] Figure 2 It is a flow chart of a smart city data processing method based on a big data platform;
[0020] Figure 3 It is a schematic diagram of the distribution of the circumference sites provided by this application;
[0021] Figure 4 It is a structural diagram of a smart city data processing system based on a big data platform;
[0022] Figure 5A Perform preliminary processing on the palm vein image to obtain an image schematic diagram;
[0023] Figure 5B Schematic diagram of the picture projected at m angle values. DETAILED DESCRIPTION
[0024] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0025] The terms "first", "second", "third" and "fourth" etc. in the specification and claims of the present invention and the drawings are used to distinguish different objects, rather than to describe a specific order. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device that includes a series of steps or units is not limited to the listed steps or units, but may optionally include steps or units that are not listed, or may optionally include other steps or units that are inherent to these processes, methods, products or devices.
[0026] Reference to "embodiments" herein means that a particular feature, result, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present invention. The appearance of the phrase in various locations in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.
[0027] See also Figure 1 , Figure 1 A terminal is provided, which can be a terminal of an IOS, Android or other system, or a terminal of other systems, such as Hongmeng, etc. This application does not limit the above specific systems. Figure 1 As shown, the above-mentioned terminal device may specifically include: a processor, a memory, a display screen, a communication circuit, an audio component (optional) and a camera (optional). The above-mentioned components may be connected via a bus or in other ways. This application does not limit the specific method of the above-mentioned connection.
[0028] Subways, buses, and taxis are all public transportation. As the requirements for carbon emissions become increasingly stringent, green travel is becoming more and more mainstream. As the big data platform processes bus data, smart city bus data can be effectively processed. However, the existing smart city bus data volume is too large, which leads to excessive storage of smart city bus data and increases data processing costs.
[0029] See also Figure 2 , Figure 2 A smart city data processing method based on a big data platform is provided. Figure 2 As shown, this method can be used in Figure 1 The terminal shown is completed, and the terminal can specifically be a computer device, a smart phone, etc. The above method includes the following steps:
[0030] Step S201: The terminal collects the current public transportation travel data of user A, and the current public transportation travel data includes: a bus track and a track time period;
[0031] For example, the bus track may include: bus number, boarding station and alighting station; the track time period includes: boarding time and alighting time. For example, the bus number may include: bus number of ground bus, or line number of rail transit. This application does not limit the specific form of the bus number, as long as it belongs to public transportation.
[0032] Step S202: The terminal compares the current public transportation travel data with the historical public transportation travel data of user A to determine whether they have similar public transportation travel data;
[0033] For example, the implementation method of the above step S202 may specifically include:
[0034] The terminal compares the first bus track in the current bus travel data with the bus track of the historical bus travel data for consistency. If the historical bus travel data contains a second bus track that is completely consistent with the bus number, boarding station, and alighting station of the first bus track, the terminal obtains a second track time period of the second bus track. If the second track time period has an overlapping time period with the first track time period corresponding to the first bus track and the first bus track is completely consistent with the second bus track, it is determined that the current bus travel data is similar to the second bus travel data corresponding to the second bus track; otherwise, it is determined that they are not similar.
[0035] Step S203: If there are similar bus travel data, the terminal merges the two similar bus travel data into one to obtain the merged bus travel data and then stores it.
[0036] For example, the implementation method of the above step S203 may specifically include:
[0037] The two bus trajectories of two similar bus travel data are merged into one to obtain a merged bus trajectory. If the two trajectory time periods are exactly the same, the two exactly the same trajectory time periods are merged into one to obtain a merged trajectory time period, and the merged bus trajectory and the merged trajectory time period are determined as the merged bus travel data. If the two trajectory time periods are not exactly the same, the merged bus trajectory and the two trajectory time periods are determined as the merged bus travel data.
[0038] The technical solution provided by the present application is that the terminal collects the current bus travel data of user A, and the current bus travel data includes: bus track and track time period. The terminal compares the current bus travel data with the historical bus travel data of user A to determine whether there is similar bus travel data. If there is similar bus travel data, the terminal merges the two similar bus travel data into one to obtain the merged bus travel data and then stores it. The technical solution of the present application merges the data of the bus track and then stores it, so that the bus travel data can be effectively restored, and the storage amount of data can be reduced, and the storage cost of data can be reduced.
[0039] For bus travel data, especially for user A, most of its bus travel data should be similar. For example, user A goes from home to the company. Since the home address and the company address are fixed for a long period of time, the bus travel data from user A from home to the company should be similar, that is, taking the same bus number and the travel time period is also similar. Although there are deviations, there must be overlapping time periods (that is, the same time period, such as 8 to 9 in the morning, 6 to 7 in the afternoon, etc.). Based on the collection of such data, the bus travel data can be merged, thereby reducing the amount of data storage and reducing storage costs.
[0040] For example, the terminal may combine two similar bus travel data into one to obtain combined bus travel data and then store the combined bus travel data, which may specifically include:
[0041] The bus tracks in the merged bus travel data are converted into vehicle numbers, starting stations and terminal stations, and the track time period, vehicle number, starting station and terminal station are stored together.
[0042] By way of example, the above method may also include: after the terminal receives an extraction command for the merged bus travel data sent by the external device, extracting the stored trajectory time period, vehicle number, starting station and terminal station, extracting the line trajectory of the vehicle number during the trajectory time period, intercepting a portion of the trajectory between the starting point and the terminal point from the line trajectory as the bus trajectory in the restored merged bus travel data, adding the bus trajectory and trajectory time period in the restored merged bus travel data to the extraction response and returning it to the external device.
[0043] The above-mentioned external device can be a third-party computer, mobile phone, etc., and the specific form of the above-mentioned third party is not limited in this application.
[0044] For the operation trajectory of the public transportation system, its operation trajectory is fixed within a certain period of time. Taking the bus as an example, the subway is similar. When the starting station, the terminal station, the car number and the time period are determined, the operation trajectory is actually determined. Therefore, there is no need to use the conventional trajectory storage method, such as storing through link groups or coordinate groups, which can reduce the storage space. Correspondingly, when extracting, the operation trajectory can be completely restored through the above-mentioned starting station, terminal station, car number and time period. This can reduce the storage amount without affecting the storage accuracy of the operation trajectory, thereby further reducing the cost of data processing.
[0045] For example, the above-mentioned storing the track time period, vehicle number, starting station and terminal station together may specifically include:
[0046] Directly storing the trajectory time period, and storing the vehicle number, the starting station and the terminal station according to a preset storage rule to obtain the first data, can specifically include: configuring a 32-bit data, and storing the city, vehicle number, the starting station and the terminal station in the 32-bit data according to a preset storage rule, wherein the first 5 bits of the 32 bits represent the city identifier, such as Beijing 00001, Shanghai 00010, etc., the 6th to 8th bits represent the category of public transportation, such as fast (M), slow (K), interval, peak, subway (may also include urban rail or other types of rail transit), loop line, etc., the 9th to 18th bits represent the vehicle number, such as 999, 555, 1, etc., and the above-mentioned 19th to 32nd bits represent the starting station (occupying 7 bits) and the terminal station (occupying 7 bits).
[0047] For the above preset storage rules, here we take the domestic example, mainly taking the municipalities and some cities with busy traffic as examples, here we take 32 cities as the maximum capacity, and the subsequent 3 digits represent the category of public transportation, for example, 001 represents non-circular subway, 010 represents circular subway, 011 represents express line, 100 represents slow line, 101 represents interval, 110 represents peak, and 111 represents circular line. The 9th to 18th bits represent the car number, that is, 10 bits represent the car number, 0-1024, the bus number is three digits, and the subway number is generally two digits, so 10 bits represent the car number is completely sufficient, and every 7 bits behind represent the station, totaling 128 stations. Through the above preset storage rules, it is possible to accurately record cities, car numbers, starting stations and terminal stations, and save storage space.
[0048] The longest domestic bus route has 86 stops, so 7 bits are enough. For the subway, there are not even 128 stops, but generally between 20 and 50 stops, so 7 bits are used to represent the stops.
[0049] For ordinary lines, that is, non-loop lines, no special processing is required after the above decoding. However, for loop lines, some processing is required during decoding to know the direction of the loop line. Take Beijing Line 10 as an example. It is a loop line. For example, user A goes from Zhichun Road to Sanyuan Bridge. In theory, user A can take the outer ring line from Zhichun Road to Sanyuan Bridge (10 stations) or the inner ring line from Zhichun Road to Sanyuan Bridge (36 stations). However, in reality, user A will only choose the outer ring line. Therefore, a way is needed to distinguish the direction of the loop line. For buses, the principle is the same, which will not be repeated here.
[0050] The above method may also include: decoding the first data to obtain the first city, type, vehicle number, first starting station and first terminal station, and when determining that the type is a loop line, extracting all station names of the loop line of the first city, constructing a circular graph, evenly distributing all station names on the circumference of the circular graph, and constructing a direction arrow on the circumference with the first starting station as the starting point and the first terminal station as the terminal, if the direction arrow is clockwise, the loop line is determined to be an inner loop (it can also be an outer loop, whichever loop line it is shall be based on the actual direction of the loop line of the line); if the direction arrow is counterclockwise, the loop line is determined to be an outer loop.
[0051] For the sake of convenience, here we take 8 sites as an example (in practice, the number may be much larger than 8, such as 50 or 40 sites). Figure 3 As shown, assuming that from site A to site C (such as Figure 3 ), the direction arrow is determined to be clockwise, and the loop is determined to be an inner loop. Conversely, if from site A to site G (as shown by the solid arrow Figure 3 ), the direction arrow is determined to be counterclockwise, and the loop is determined to be an outer loop. It should be noted that Figure 3 It is just for the convenience of choosing the direction. The long line of each station on the circumference is for the convenience of determining the direction, and does not represent the distance value between each station.
[0052] For the identification of user A, it is divided into two categories. The first category is contact identification, such as fingerprint identification, which requires the user to press (i.e., touch) to achieve identification. The second category is non-contact identification, such as face recognition, which requires the user to take a photo to achieve identification. However, for the identification of user A, face recognition has the following disadvantages. First, face recognition requires the user to take a photo of the face. For public transportation, the height of the personnel is relatively complex. For example, the height of elementary school students is about 1.3 meters, and for adults, the height may be about 1.8 meters. With such a large height difference and the relatively fixed height of the collection equipment, face recognition is not convenient to use on the public transportation system. Second, the face can directly display the user's personal information. If the information is leaked, the face picture can directly lead to the leakage of personal information. Based on this shortcoming, the identity identification of the present application adopts palm vein recognition, that is, identification is performed through the palm vein picture. For the user, whether it is a child (1.3 meters in height) or an adult (1.8 meters in height), the hand movement space is large and the hand movement is very convenient, unlike the head height adjustment which is very troublesome, thus solving the problem of inconvenient collection; in addition, for the palm vein picture, other people (including oneself) cannot identify its corresponding identity by naked eyes, so it will not lead to the leakage of personal information, thus increasing security.
[0053] For the vein image recognition of the public transportation system, rapid recognition is required and it needs to be completely insensitive to the acquisition angle, so a new vein image recognition method is needed. Specifically, the above method may further include the following before step S201:
[0054] The terminal collects a palm vein image of the target object, performs preliminary processing on the palm vein image to obtain a first image (such as Figure 5A ), extracting vein pixels in the first image to obtain a second image, the second image including a plurality of feature points (i.e., vein pixels), connecting the continuous feature points in the second image to obtain n line segments, calculating the angle values between the intersecting line segments in the n line segments to obtain m angle values, projecting the m angle values to the intersection points (intersection points between two line segments) corresponding to the angle values in the second image to obtain a third image (as shown in FIG. Figure 5Bas shown); extract x preset pictures with m angle values from multiple preset pictures, extract the first preset picture from the x preset pictures, arbitrarily select the first value and the second value from the m angle values from the middle area of the third picture (i.e., the preset range of the midpoint of the third picture, such as a circular range of 1,000 or 10,000 pixels around the midpoint), construct a clock diagram with the first value as the center of the circle (the direction from the first value to the second value is determined as the 12 o'clock direction of the clock diagram), determine the position values of the m-1 values in the clock diagram to obtain m-1 position values, and combine the m-1 position values and the corresponding m-1 angle values into m-1 A value group (each value group includes a position value and an angle value corresponding to the position value) is arranged clockwise or counterclockwise to obtain a first vector. Similarly, the first preset image is processed to obtain a second vector. The difference between the first vector and the second vector is calculated. If the difference is less than a threshold, the identity of the target object is determined to be user A corresponding to the first preset image. If the difference is greater than the threshold, the remaining images in the x preset images are processed until the difference i between the first vector and the i-th vector (the vector corresponding to the i-th preset image) is less than the threshold, and the identity of the target object is determined to be the user corresponding to the i-th preset image.
[0055] The above-mentioned recognition principles may specifically include: the vein recognition here is through a fast recognition method, the principle is to identify and distinguish through the angle value and the angle value distribution map to form a vector, the above-mentioned preliminary processing can adopt a general processing method, such as binarization, filtering processing, etc., which will not be repeated here, the above-mentioned feature extraction method can also adopt an existing processing method, which is not limited by the present application, and the size of the above-mentioned m and n is not limited, m and n can also be the same, because n line segments correspond to n veins, which may not intersect, or one vein may intersect with multiple veins to form multiple intersections, the above-mentioned m angle values can be calculated by existing methods, such as inverse trigonometric functions or image measurement methods; in order to avoid the influence of the acquisition angle on the recognition, the construction of the vector here needs to remove the influence of the angle. For two pictures collected from the same person, due to different collection conditions (such as angle, range), the collected vein pictures may also be different, but the two pictures The veins in the film are unchanged, the angles of the veins are also unchanged, and the directions between the angles are also unchanged. Therefore, the direction is determined by a clock diagram, that is, 360° is set to 12 directions, where the position value can be the maximum or minimum value of the time interval (the position value of the preset image here is obtained in the same way as the third image of the target object). For example, the angle value is 30°, and it is located in the time interval between 1 o'clock and 2 o'clock. The position value of 30° can be 1 or 2, and the corresponding value group can be 30, 1; here it is assumed that m=3 (actually greater than 3), then the two angle values are 30° and 155° respectively, the position value corresponding to 30° is 1, and the position value corresponding to 155° is 6, then the first vector constructed in clockwise order can be 30, 1, 155, 6; if the first vector is constructed counterclockwise, it can be 55, 6, 30, 1, so that it can be compared with the template image (i.e., the preset image) to quickly identify the user's identity. The first value is a unique value within a preset range, that is, there is no value identical to the first value in the middle area of the third image. The accuracy of the angle value may be 1 decimal place or may be accurate to 1°.
[0056] See also Figure 4 , Figure 4 A smart city data processing system based on a big data platform is provided.
[0057] The collecting unit 401 is used to collect the current public transportation travel data of user A, and the current public transportation travel data includes: a public transportation track and a track time period;
[0058] The bus track specifically includes: bus number, boarding station and alighting station; the track time period includes: boarding time and alighting time;
[0059] The processing unit 402 is used to compare the current bus travel data with the historical bus travel data of user A to determine whether there are similar bus travel data; if there are similar bus travel data, merge the two similar bus travel data into one to obtain the merged bus travel data and then store it.
[0060] For example,
[0061] The processing unit 402 is specifically used to compare the first bus track in the current bus travel data with the bus track in the historical bus travel data for consistency. If the historical bus travel data has a second bus track that is completely consistent with the first bus track in terms of the bus number, the boarding station, and the alighting station, a second track time period of the second bus track is obtained. If the second track time period has an overlapping time period with the first track time period corresponding to the first bus track and the first bus track is completely consistent with the second bus track, it is determined that the current bus travel data is similar to the second bus travel data corresponding to the second bus track; otherwise, it is determined that they are not similar.
[0062] For example,
[0063] The processing unit 402 is specifically configured to merge two bus tracks of two similar bus travel data into one to obtain a merged bus track. If the two track time periods are exactly the same, the two exactly the same track time periods are merged into one to obtain a merged track time period, and the merged bus track and the merged track time period are determined as the merged bus travel data. If the two track time periods are not exactly the same, the merged bus track and the two track time periods are determined as the merged bus travel data.
[0064] Merging two similar bus travel data into one to obtain the merged bus travel data and then storing it includes:
[0065] The bus tracks in the merged bus travel data are converted into vehicle numbers, starting stations and terminal stations, and the track time period, vehicle number, starting station and terminal station are stored together.
[0066] For example,
[0067] The processing unit 402 is specifically used to extract the stored trajectory time period, vehicle number, starting station and terminal station after receiving the extraction command of the merged bus travel data sent by the external device, extract the line trajectory of the vehicle number during the trajectory time period, intercept a part of the trajectory between the starting point and the terminal point from the line trajectory as the bus trajectory in the restored merged bus travel data, add the bus trajectory in the restored merged bus travel data and the trajectory time period to the extraction response and return it to the external device.
[0068] An embodiment of the present invention also provides a computer storage medium, wherein the computer storage medium stores a computer program for electronic data exchange, and the computer program enables a computer to execute part or all of the steps of any one of the smart city data processing methods based on a big data platform as recorded in the above method embodiments.
[0069] An embodiment of the present invention also provides a computer program product, which includes a non-transitory computer-readable storage medium storing a computer program, and the computer program is operable to enable a computer to execute part or all of the steps of any smart city data processing method based on a big data platform as recorded in the above method embodiments.
[0070] It should be noted that, for the above-mentioned method embodiments, for the sake of simplicity, they are all described as a series of action combinations, but those skilled in the art should know that the present invention is not limited by the described order of actions, because according to the present invention, certain steps can be received in other orders or performed simultaneously. Secondly, those skilled in the art should also know that the embodiments described in the specification are all optional embodiments, and the actions and modules involved are not necessarily required by the present invention.
[0071] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0072] In the several embodiments provided in the present application, it should be understood that the disclosed device can be implemented in other ways. For example, the device embodiments described above are only schematic, such as the division of the units, which is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, and the indirect coupling or communication connection of the device or unit can be electrical or other forms.
[0073] A person skilled in the art can understand that all or part of the steps in the various methods of the above embodiments can be completed by instructing related hardware through a program, and the program can be stored in a computer-readable memory, and the memory can include: a flash drive, a read-only memory (English: Read-Only Memory, abbreviated as: ROM), a random access memory (English: Random Access Memory, abbreviated as: RAM), a magnetic disk or an optical disk, etc.
[0074] The embodiments of the present invention are described in detail above. Specific examples are used herein to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea. At the same time, for those skilled in the art, according to the idea of the present invention, there will be changes in the specific implementation methods and application scope. In summary, the content of this specification should not be understood as limiting the present invention.
Claims
1. A smart city data processing method based on big data platform, It is characterized in that The terminal collects the current public transportation travel data of user A, and the current public transportation travel data includes: the bus track and the track time period; The bus track specifically includes: bus number, boarding station and alighting station; the track time period includes: boarding time and alighting time; The terminal compares the current public transportation travel data with the historical public transportation travel data of user A to determine whether they have similar public transportation travel data; If there are similar bus travel data, the terminal merges the two similar bus travel data into one to obtain the merged bus travel data and stores it; the terminal compares the current bus travel data with the historical bus travel data of user A to determine whether there are similar bus travel data, specifically including: The terminal compares the first bus track in the current bus travel data with the bus track of the historical bus travel data for consistency. If the historical bus travel data has a second bus track with the same bus number, boarding station and alighting station as the first bus track, the terminal obtains the second track time period of the second bus track. If the second track time period has an overlapping time period with the first track time period corresponding to the first bus track and the first bus track is completely consistent with the second bus track, the terminal determines that the current bus travel data is similar to the second bus travel data corresponding to the second bus track, otherwise, the terminal determines that the current bus travel data is not similar to the second bus travel data corresponding to the second bus track. Merge two bus trajectories of two similar bus travel data into one to obtain a merged bus trajectory. If the two trajectory time periods are exactly the same, merge the two exactly the same trajectory time periods into one to obtain a merged trajectory time period, and determine the merged bus trajectory and the merged trajectory time period as the merged bus travel data. If the two trajectory time periods are not exactly the same, determine the merged bus trajectory and the two trajectory time periods as the merged bus travel data. The terminal combines two similar bus travel data into one to obtain the combined bus travel data and then stores the combined bus travel data, which specifically includes: The bus track in the merged bus travel data is converted into a vehicle number, a starting station and a terminal station, and the track time period, the vehicle number, the starting station and the terminal station are stored together; specifically including: directly storing the track time period, storing the vehicle number, the starting station and the terminal station according to a preset storage rule to obtain the first data, specifically including: configuring a 32-bit data, storing the city, the vehicle number, the starting station and the terminal station in the 32-bit data according to a preset storage rule, wherein the first 5 bits of the 32 bits represent the city identification, the 6th to 8th bits represent the category of public transportation, the 9th to 18th bits represent the vehicle number, and the 19th to 32nd bits represent the starting station and the terminal station.
2. According to the smart city data processing method based on the big data platform according to claim 1, It is characterized in that After the terminal receives the extraction command of the merged bus travel data sent by the external device, it extracts the stored trajectory time period, vehicle number, starting station and terminal station, extracts the line trajectory of the vehicle number during the trajectory time period, intercepts part of the trajectory between the starting point and the terminal point from the line trajectory as the bus trajectory in the restored merged bus travel data, adds the bus trajectory in the restored merged bus travel data and the trajectory time period to the extraction response and returns it to the external device.
3. A smart city data processing system based on big data platform, It is characterized in that A collection unit, used to collect the current public transportation travel data of user A, the current public transportation travel data including: a bus track and a track time period; The bus track specifically includes: bus number, boarding station and alighting station; the track time period includes: boarding time and alighting time; A processing unit is used to compare the current bus travel data with the historical bus travel data of user A to determine whether there are similar bus travel data; if there are similar bus travel data, merge the two similar bus travel data into one to obtain the merged bus travel data and then store it; The processing unit is specifically used to compare the first bus track in the current bus travel data with the bus track of the historical bus travel data for consistency, and if the historical bus travel data has a second bus track with a bus number, a boarding station, and a disembarking station that are completely consistent with the first bus track, obtain a second track time period of the second bus track, and if the second track time period has an overlapping time period with the first track time period corresponding to the first bus track and the first bus track is completely consistent with the second bus track, determine that the current bus travel data is similar to the second bus travel data corresponding to the second bus track, otherwise determine that they are not similar; The processing unit is specifically used to merge two bus tracks of two similar bus travel data into one to obtain a merged bus track. If the two track time periods are exactly the same, the two exactly the same track time periods are merged into one to obtain a merged track time period, and the merged bus track and the merged track time period are determined as the merged bus travel data. If the two track time periods are not exactly the same, the merged bus track and the two track time periods are determined as the merged bus travel data; Merging two similar bus travel data into one to obtain the merged bus travel data and then storing it includes: The bus tracks in the merged bus travel data are converted into vehicle numbers, starting stations and terminal stations, and the track time period, vehicle number, starting station and terminal station are stored together; specifically including: The bus track in the merged bus travel data is converted into a vehicle number, a starting station and a terminal station, and the track time period, the vehicle number, the starting station and the terminal station are stored together; specifically including: directly storing the track time period, storing the vehicle number, the starting station and the terminal station according to a preset storage rule to obtain the first data, specifically including: configuring a 32-bit data, storing the city, the vehicle number, the starting station and the terminal station in the 32-bit data according to a preset storage rule, wherein the first 5 bits of the 32 bits represent the city identification, the 6th to 8th bits represent the category of public transportation, the 9th to 18th bits represent the vehicle number, and the 19th to 32nd bits represent the starting station and the terminal station.
4. According to the smart city data processing system based on the big data platform of claim 3, It is characterized in that The processing unit is specifically used to extract the stored trajectory time period, vehicle number, starting station and terminal station after receiving the extraction command of the merged bus travel data sent by the external device, extract the line trajectory of the vehicle number during the trajectory time period, intercept a part of the trajectory between the starting point and the terminal point from the line trajectory as the bus trajectory in the restored merged bus travel data, add the bus trajectory in the restored merged bus travel data and the trajectory time period to the extraction response and return it to the external device.
