Data processing method and system applied to AFC reader-writer

By compressing frequent and sparse sequences of AFC reader and writer data and dynamic window adjustment of the streaming processing framework, the problem of insufficient data processing efficiency and adaptability of the AFC reader and writer is solved, achieving more efficient and reliable data processing and operations management.

CN118656769AActive Publication Date: 2024-09-17DALIAN METRO TECH CO LTD
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202411147330.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-21
Publication Date
2024-09-17
Estimated Expiration
2044-08-21

AI Technical Summary

Technical Problem

The existing AFC reader/writer has poor data processing efficiency and adaptability, and cannot meet the needs of modern operation management.

Method used

By collecting data and converting it into data time series, marking frequent and sparse sequence parts, defining compression indicators according to data attributes, using bitmaps and lossless compression algorithms or de-redundant compression algorithms for data compression, and transmitting it to the streaming processing framework , dynamically adjust the window, and combine normal and abnormal data for multi-directional evaluation and optimization.

Benefits of technology

It improves the adaptability and efficiency of data transmission and processing, ensures the real-time and reliability of data processing, and enhances the operational management plasticity, security and stability of the AFC reader.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118656769A
    Figure CN118656769A
Patent Text Reader

Abstract

The invention discloses a data processing method and system applied to an AFC reader-writer, and relates to the technical field of AFC reader-writer data processing.The method comprises the steps that whether data compression needs to be conducted or not is judged according to a data compression index; performing data compression of a first compression strategy on the frequent sequence part, and performing data compression of a second compression strategy on the sparse sequence part; transmitting the data to a streaming processing framework, dividing the data into a plurality of data streams according to data types, setting a basic window according to the condition of each data stream, and monitoring the continuous inflow fluctuation of each data stream to expand the basic window; and the normal data, the abnormal data and the verification data are combined to determine a multi-direction evaluation index. And the adaptability and efficiency of data transmission and processing are improved. And the window condition is dynamically adjusted, so that the real-time performance of data processing is ensured, and the reliability of data processing is improved. And safe and stable operation of the reader-writer is ensured.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of AFC reader / writer data processing, and in particular to a data processing method and system applied to an AFC reader / writer. Background Art

[0002] AFC readers are a crucial component of the Automatic Fare Collection (AFC) system. They are used within rail transit equipment to exchange data for rail transit tickets, bus cards, and other types of cards. They utilize radio frequency identification (RFID) technology to read and write contactless IC cards. Their primary functions include ticket reading and writing, transaction verification code generation, mutual key authentication, ticket verification, and ticket application selection. These functions collectively support rail transit ticketing services, providing passengers with a convenient entry and exit experience and providing accurate data support for operational management.

[0003] In the existing technology, because the amount of data generated by the AFC reader is large and real-time, it leads to low data processing efficiency, poor adaptability, and low real-time performance, which cannot meet the needs of modern operation and management.

[0004] Therefore, how to improve the efficiency and adaptability of AFC reader data processing is a technical problem that needs to be solved. Summary of the Invention

[0005] The present invention aims to solve the problem of poor efficiency and adaptability of AFC reader data processing in the prior art, and proposes a data processing method for AFC reader, the method comprising: Collect the data generated by the AFC reader and convert it into a data time series. Mark the frequent sequence part and the sparse sequence part on the data time series. Define the data compression index based on the attributes of the data time series and determine whether data compression is needed based on the data compression index. When the data time series needs data compression, the first compression strategy is used to compress the frequent sequence part, and the second compression strategy is used to compress the sparse sequence part, thereby compressing the data time series; The compressed data is transferred to the stream processing framework, decompressed, and divided into multiple data streams according to data type. A basic window is set based on the situation of each data stream. The basic window is expanded by monitoring the continuous inflow fluctuations of each data stream. The data is processed within the basic window, and multiple basic windows are managed simultaneously. The stream processing framework outputs data, analyzes the normal data, abnormal data, and verification data, and combines these data to determine multi-directional evaluation indicators. This multi-directional evaluation indicator is then used to optimize the application of the AFC reader / writer. Among them, the first compression strategy is a combination of a bitmap compression algorithm and a lossless compression algorithm, and the second compression strategy is a combination of a bitmap compression algorithm and a de-redundancy compression algorithm. The data flow conditions include data flow rate, data block size, data fluctuation value and real-time requirements. The size of a basic window is set according to the data flow rate, data block size, data fluctuation value and real-time requirements.

[0006] In some embodiments of the present application, marking the frequent sequence part and the sparse sequence part in the data time series includes: Obtain the application scenario and usage time node of the AFC reader / writer, determine the working period and non-working period according to the application scenario of the AFC reader / writer, and record the usage time node as a working usage time node and a non-working usage time node according to the location of the usage time node. The working usage time node is the usage time node located in the working period, and the non-working usage time node is the usage time node located in the non-working period. Calculate the distances between adjacent working time nodes within a preset range at both ends of the working period, and convert all working time nodes within the range from the peripheral working time nodes whose distances exceed the distance threshold to the end points of the working period into non-working time nodes, and redefine the working period and non-working period based on the non-working time nodes, wherein the peripheral working time nodes are the working time nodes that are closer to the end points of the working period between the two adjacent working time nodes; The re-determined working period and non-working period are represented in the data time series according to the timestamps, and the frequent sequence part is marked in the working period and the sparse sequence part is marked in the non-working period.

[0007] In some embodiments of the present application, marking the frequent sequence portion during the working period and marking the sparse sequence portion during the non-working period includes: The frequent sequence part includes a first frequent sequence part and a second frequent sequence part, and the sparse sequence part includes a first sparse sequence part and a second sparse sequence part; Define the data time series corresponding to a single working time node where the AFC reader / writer successfully verifies as the standard sequence. Split the data time series during the working period into multiple subsequences by time period. Calculate the support of the standard sequence in each subsequence. Mark the subsequences whose support exceeds the support threshold as the first frequent sequence part, and mark the subsequences whose support does not exceed the support threshold as the second frequent sequence part. The data time series of the non-working period is split into multiple subsequences according to the time period, the sparsity of each subsequence is calculated, the subsequences whose sparsity exceeds the sparsity threshold are marked as the first sparse sequence part, and the subsequences whose sparsity does not exceed the sparsity threshold are marked as the second sparse sequence part.

[0008] In some embodiments of the present application, data compression indicators are defined by attributes of the data time series, including: The attributes of the data time series include the support, data volume, and data change rate of the first frequent sequence part and the second frequent sequence part, and the sparsity, data volume, and data change rate of the first sparse sequence part and the second sparse sequence part; Perform weighted summation on the support, data volume, and data change rate of the first frequent sequence part and the second frequent sequence part, respectively, to obtain a composite index of the first frequent sequence part and the second frequent sequence part; perform weighted summation on the sparsity, data volume, and data change rate of the first sparse sequence part and the second sparse sequence part, respectively, to obtain a composite index of the first sparse sequence part and the second sparse sequence part; determine the data compression index of the overall data time series based on the composite indexes of the first frequent sequence part and the second frequent sequence part and the first sparse sequence part and the second sparse sequence part; ; in, is the data compression index, 、 、 、 are the weights corresponding to the first frequent sequence part, the second frequent sequence part, the first sparse sequence part, and the second sparse sequence part, respectively. 、 、 、 They are the composite indices corresponding to the first frequent sequence part, the second frequent sequence part, the first sparse sequence part, and the second sparse sequence part, respectively. 、 are the conversion coefficients of frequent sequences and sparse sequences respectively.

[0009] In some embodiments of the present application, data compression using a first compression strategy is performed on a frequent sequence portion, and data compression using a second compression strategy is performed on a sparse sequence portion, including: Determine the range of each type of data in the frequent sequence part and the sparse sequence part, and divide the data into finite range type data and infinite range type data according to the size range of the range. Use a bitmap compression algorithm to compress the finite range type data, a lossless compression algorithm to compress the infinite range type data in the frequent sequence part, and a de-redundancy compression algorithm to compress the infinite range type data in the sparse sequence part. Data compression is performed on the finite-valued-range type data and the infinite-valued-range type data of the frequent sequence part by using the first compression strategy; The finite-valued-range type data and the infinite-valued-range type data of the sparse sequence part are compressed by the second compression strategy.

[0010] In some embodiments of the present application, a basic window is set based on the situation of each data flow, and the continuous inflow fluctuation of each data flow is monitored to expand the basic window, including: The size of the base window is the median of the standard interval of base window sizes; ; in, is the standard interval of basic window size, is the weight of the data flow rate, is the data flow rate, is the weight of the data block size, is the data block size, is the data fluctuation value, is a preset constant, is the first time interval, It represents the first time interval obtained by mapping the influence amount determined by the data flow rate, data block size, and data fluctuation value. For real-time requirements, is the second time interval, A second time interval obtained by mapping the real-time requirement; The continuous inflow fluctuation of the data stream is the data fluctuation value change rate within a period of time. When the data fluctuation value change rate exceeds the data fluctuation value change rate threshold, an expansion coefficient is determined based on the difference between the data fluctuation value change rate and the data fluctuation value change rate threshold, and the basic window is expanded by the expansion coefficient.

[0011] In some embodiments of the present application, processing data through a basic window includes: Perform data aggregation, data filtering, and data conversion on the basic window.

[0012] In some embodiments of the present application, normal data, abnormal data, and verification data are combined to determine multi-directional evaluation indicators, including: Multi-directional evaluation indicators include early warning evaluation indicators and non-early warning evaluation indicators; Normal data, abnormal data and verification data are input into the Markov chain model to obtain the warning direction evaluation index; Normal data, abnormal data and verification data are input into the evaluation model to obtain non-warning evaluation indicators.

[0013] Correspondingly, the present application also provides a data processing system applied to an AFC reader / writer, comprising: The first module is used to collect data generated by the AFC reader and convert the data into a data time series. The frequent sequence part and the sparse sequence part are marked on the data time series. The data compression index is defined based on the attributes of the data time series. The data compression index is used to determine whether data compression is needed. The second module is used for, when the data time series needs data compression, performing data compression using a first compression strategy on the frequent sequence part and performing data compression using a second compression strategy on the sparse sequence part, thereby compressing the data time series; The third module transfers the compressed data to the stream processing framework, decompresses the compressed data, and divides it into multiple data streams according to data type. A basic window is set based on the status of each data stream. The basic window is expanded by monitoring the continuous inflow fluctuations of each data stream. Data is processed within the basic window, and multiple basic windows are managed simultaneously. The fourth module is used to process the data output by the streaming framework, analyze the normal data, abnormal data, and verification data, and combine the normal data, abnormal data, and verification data to determine multi-directional evaluation indicators. The multi-directional evaluation indicators are used to optimize the application of the AFC reader. Among them, the first compression strategy is a combination of a bitmap compression algorithm and a lossless compression algorithm, and the second compression strategy is a combination of a bitmap compression algorithm and a de-redundancy compression algorithm. The data flow conditions include data flow rate, data block size, data fluctuation value and real-time requirements. The size of a basic window is set according to the data flow rate, data block size, data fluctuation value and real-time requirements.

[0014] By applying the above technical solution, data generated by the AFC reader is collected and converted into a data time series. Frequent and sparse sequence portions are marked on the data time series. Data compression indicators are defined based on the attributes of the data time series, and whether data compression is required is determined based on the data compression indicators. When data compression is required, data compression is performed using a first compression strategy for the frequent sequence portion and a second compression strategy for the sparse sequence portion, thereby compressing the data time series. The compressed data is transmitted to a streaming processing framework and decompressed. The compressed data is divided into multiple data streams according to data type. A basic window is set based on the situation of each data stream. The basic window is expanded by monitoring the continuous inflow fluctuations of each data stream. Data is processed using the basic window, and multiple basic windows are managed simultaneously. The streaming processing framework outputs the data, analyzes the normal data, abnormal data, and verification data in the data, and combines the normal data, abnormal data, and verification data to determine multi-directional evaluation indicators. The application of the AFC reader is optimized using the multi-directional evaluation indicators. This application identifies frequent and sparse sequences, determines the need for data compression based on data compression metrics, and comprehensively determines the need for data compression by combining the two types of data sequences. Different compression methods are used for different types of data sequences, improving the adaptability and efficiency of data transmission and processing. Data is transmitted to a streaming processing framework, and the window is dynamically adjusted to ensure real-time data processing and improve data processing reliability. The application of AFC readers is optimized through multi-directional evaluation metrics, improving the flexibility of subsequent operational management of AFC readers and ensuring their safe and stable operation. BRIEF DESCRIPTION OF THE DRAWINGS

[0015] Figure 1 A flowchart of a data processing method for an AFC reader / writer proposed by the present invention; Figure 2 This is a structural diagram of a data processing system applied to an AFC reader / writer proposed by the present invention. DETAILED DESCRIPTION

[0016] The technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, rather than all the embodiments.

[0017] Reference Figure 1 , a data processing method applied to an AFC reader / writer, comprising the following steps: Step S101: collect the data generated by the AFC reader and convert the data into a data time series. Mark the frequent sequence part and the sparse sequence part on the data time series. Define the data compression index based on the attributes of the data time series, and determine whether data compression is needed based on the data compression index.

[0018] In this embodiment, the data generated by the AFC reader / writer includes ticketing transaction data, device status data, and parameter configuration data. The ticketing transaction data data type includes data generated during transactions such as ticket purchase, recharge, entry, and exit. The device status data data type includes information such as the reader's operating status, fault alarms, and component status. The parameter configuration data data type includes data generated when the system configures the reader's parameters, such as fare tables and ticket control parameters. Based on the specific scenarios in which the AFC reader / writer is used, the operating hours are defined to divide the frequent sequence portion and the sparse sequence portion. The data compression index is set based on the characteristics of both the frequent sequence portion and the sparse sequence portion. The data compression index describes the degree to which data compression is necessary. If the data compression index exceeds the corresponding threshold, data compression is required; otherwise, it is not required.

[0019] In some embodiments of the present application, marking the frequent sequence part and the sparse sequence part in the data time series includes: Obtain the application scenario and usage time node of the AFC reader / writer, determine the working period and non-working period according to the application scenario of the AFC reader / writer, and record the usage time node as a working usage time node and a non-working usage time node according to the location of the usage time node. The working usage time node is the usage time node located in the working period, and the non-working usage time node is the usage time node located in the non-working period. Calculate the distances between adjacent working time nodes within a preset range at both ends of the working period, and convert all working time nodes within the range from the peripheral working time nodes whose distances exceed the distance threshold to the end points of the working period into non-working time nodes, and redefine the working period and non-working period based on the non-working time nodes, wherein the peripheral working time nodes are the working time nodes that are closer to the end points of the working period between the two adjacent working time nodes; The re-determined working period and non-working period are represented in the data time series according to the timestamps, and the frequent sequence part is marked in the working period and the sparse sequence part is marked in the non-working period.

[0020] In this embodiment, the AFC reader / writer has different application scenarios, corresponding to different working and non-working hours. Non-working hours here do not mean that the reader / writer is not used, but rather that the reader / writer is used less frequently. A usage time node is the time node when a user holds a magnetic card against the AFC reader / writer. Each usage time node indicates that a user has read or written to the reader / writer. When determining working and non-working hours, it is generally assumed that working hours have more usage time nodes than non-working hours.

[0021] In this embodiment, in order to accurately identify non-working time nodes, working time nodes with too large distances between adjacent working time nodes within a preset range at both ends of the working period are classified as non-working time nodes. The distance here refers to the length of time. If the distance is too large, it means that the time interval between the working time nodes is long. The distance threshold here is set relatively large.

[0022] In some embodiments of the present application, marking the frequent sequence portion during the working period and marking the sparse sequence portion during the non-working period includes: The frequent sequence part includes a first frequent sequence part and a second frequent sequence part, and the sparse sequence part includes a first sparse sequence part and a second sparse sequence part; Define the data time series corresponding to a single working time node where the AFC reader / writer successfully verifies as the standard sequence. Split the data time series during the working period into multiple subsequences by time period. Calculate the support of the standard sequence in each subsequence. Mark the subsequences whose support exceeds the support threshold as the first frequent sequence part, and mark the subsequences whose support does not exceed the support threshold as the second frequent sequence part. The data time series of the non-working period is split into multiple subsequences according to the time period, the sparsity of each subsequence is calculated, the subsequences whose sparsity exceeds the sparsity threshold are marked as the first sparse sequence part, and the subsequences whose sparsity does not exceed the sparsity threshold are marked as the second sparse sequence part.

[0023] In this embodiment, each operational time node has either a successful or failed AFC reader verification result. The vast majority of verifications are successful, so the successful verification subsequence is used as the standard sequence (the operational time node is the point at which data generation begins, and there is a data generation process). The support of a standard sequence is the number or proportion of sequences similar to the standard sequence that appear in each subsequence. The first frequent sequence portion represents a relatively large number of successful verification data, while the second frequent sequence portion represents a relatively large number of failed verification data.

[0024] In this embodiment, the sparsity is a non-zero value or a ratio of valid data. The first sparse sequence portion indicates that the data is very sparse, and the second sparse sequence portion indicates that the data is relatively sparse, which is relatively denser and more than the first sparse sequence.

[0025] In some embodiments of the present application, data compression indicators are defined by attributes of the data time series, including: The attributes of the data time series include the support, data volume, and data change rate of the first frequent sequence part and the second frequent sequence part, and the sparsity, data volume, and data change rate of the first sparse sequence part and the second sparse sequence part; Perform weighted summation on the support, data volume, and data change rate of the first frequent sequence part and the second frequent sequence part, respectively, to obtain a composite index of the first frequent sequence part and the second frequent sequence part; perform weighted summation on the sparsity, data volume, and data change rate of the first sparse sequence part and the second sparse sequence part, respectively, to obtain a composite index of the first sparse sequence part and the second sparse sequence part; determine the data compression index of the overall data time series based on the composite indexes of the first frequent sequence part and the second frequent sequence part and the first sparse sequence part and the second sparse sequence part; ; in, is the data compression index, 、 、 、 are the weights corresponding to the first frequent sequence part, the second frequent sequence part, the first sparse sequence part, and the second sparse sequence part, respectively. 、 、 、 They are the composite indices corresponding to the first frequent sequence part, the second frequent sequence part, the first sparse sequence part, and the second sparse sequence part, respectively. 、 are the conversion coefficients of frequent sequences and sparse sequences respectively.

[0026] In this embodiment, support, sparsity, data volume, and data change rate all affect the compression judgment. Here, these factors are combined to obtain a composite index combining multiple parameters, and then the data compression index is determined.

[0027] Step S102 : When the data time series requires data compression, a first compression strategy is applied to the frequent sequence portion, and a second compression strategy is applied to the sparse sequence portion, thereby compressing the data time series.

[0028] Among them, the first compression strategy is a combination of a bitmap compression algorithm and a lossless compression algorithm, and the second compression strategy is a combination of a bitmap compression algorithm and a de-redundancy compression algorithm. The data flow conditions include data flow rate, data block size, data fluctuation value and real-time requirements. The size of a basic window is set according to the data flow rate, data block size, data fluctuation value and real-time requirements.

[0029] In this embodiment, compression is performed based on the characteristics of the frequent sequence part and the sparse sequence part.

[0030] In some embodiments of the present application, data compression using a first compression strategy is performed on a frequent sequence portion, and data compression using a second compression strategy is performed on a sparse sequence portion, including: Determine the range of each type of data in the frequent sequence part and the sparse sequence part, and divide the data into finite range type data and infinite range type data according to the size range of the range. Use a bitmap compression algorithm to compress the finite range type data, a lossless compression algorithm to compress the infinite range type data in the frequent sequence part, and a de-redundancy compression algorithm to compress the infinite range type data in the sparse sequence part. Data compression is performed on the finite-valued-range type data and the infinite-valued-range type data of the frequent sequence part by using the first compression strategy; The finite-valued-range type data and the infinite-valued-range type data of the sparse sequence part are compressed by the second compression strategy.

[0031] In this embodiment, for frequent sequences, since the data contains a large number of repetitive or similar patterns and contains a large amount of key data, a compression method that is targeted at large amounts of repetitive data and can achieve lossless data compression is used. Lossless data is not completely lossless, but rather the loss is within a reasonable range. Lossless compression algorithms include Huffman coding and run-length encoding. For sparse sequences, since they contain a large number of zero values ​​or values ​​close to zero, a lossy compression algorithm can be used to remove this redundant information. Redundancy removal compression algorithms include compression dictionaries and Rank & Select operations.

[0032] In this embodiment, data is divided into finite value domain type data and infinite value domain type data according to the size range of the value domain. Ticket status and transaction type usually have finite and predefined value domains. In bitmap compression, we can regard any data item with a finite and known value domain as a label or event type, and use bitmaps to represent the existence or non-existence of these items, so as to perform compression. The first compression strategy: combine bitmap compression with lossless compression. You can first perform bitmap compression on the data with a finite value domain, then perform lossless compression on the remaining data, and finally merge the two parts of the compression results. The second compression strategy: combine de-redundancy compression with bitmap compression. Similarly, first perform bitmap compression on the data with a finite value domain, then perform lossy compression on the remaining data, and finally merge them.

[0033] In step S103, the compressed data is transferred to the streaming processing framework, and the compressed data is decompressed and divided into multiple data streams according to the data type. A basic window is set based on the situation of each data stream, and the continuous inflow fluctuations of each data stream are monitored to expand the basic window. The data is processed through the basic window, and multiple basic windows are managed at the same time.

[0034] In this embodiment, a stream processing framework (such as Apache Kafka and Apache Flink) can respond to data immediately, reducing data lag and making data more timely. Stream processing frameworks typically utilize efficient algorithms and distributed computing technologies to process large-scale data streams, achieving high throughput and low-latency data processing. This enables the system to cope with rapidly generated data streams and meet the needs of real-time analysis and decision-making. Different types of data may require different processing logic and resources. Separating them into different data streams can more efficiently utilize resources and improve processing efficiency.

[0035] In some embodiments of the present application, a basic window is set based on the situation of each data flow, and the continuous inflow fluctuation of each data flow is monitored to expand the basic window, including: The size of the base window is the median of the standard interval of base window sizes; ; in, is the standard interval of basic window size, is the weight of the data flow rate, is the data flow rate, is the weight of the data block size, is the data block size, is the data fluctuation value, is a preset constant, is the first time interval, It represents the first time interval obtained by mapping the influence amount determined by the data flow rate, data block size, and data fluctuation value. For real-time requirements, is the second time interval, A second time interval obtained by mapping the real-time requirement; The continuous inflow fluctuation of the data stream is the data fluctuation value change rate within a period of time. When the data fluctuation value change rate exceeds the data fluctuation value change rate threshold, an expansion coefficient is determined based on the difference between the data fluctuation value change rate and the data fluctuation value change rate threshold, and the basic window is expanded by the expansion coefficient.

[0036] In this embodiment, the data flow rate represents the amount of data flowing per unit time, such as the number of data items per second, minute, or hour. The data block size represents the size of a unit data point or data block, such as the number of bytes or records. The data fluctuation value represents the combined change in data block size and data flow rate over a period of time. Different types of data have different requirements for real-time data processing. The data fluctuation value is used to correct the combined impact of data flow rate and data block size.

[0037] In this embodiment, the base window is a time window, and its size is the length of time. An expansion factor is determined based on the difference between the data fluctuation value change rate and the data fluctuation value change rate threshold. Different differences correspond to different expansion factors. The expanded base window = expansion factor × base window.

[0038] In some embodiments of the present application, processing data through a basic window includes: Perform data aggregation, data filtering, and data conversion on the basic window.

[0039] In this embodiment, data aggregation: calculates the sum, average, maximum, minimum, etc. of the data in the window. Data filtering: filters the data in the window according to specific conditions. Data transformation: performs transformation or mapping operations on the data in the window.

[0040] Step S104: The stream processing framework outputs data, analyzes normal data, abnormal data, and verification data in the data, and combines the normal data, abnormal data, and verification data to determine multi-directional evaluation indicators, and optimizes the application of the AFC reader / writer through the multi-directional evaluation indicators.

[0041] In this embodiment, normal data can reflect the stability of reader performance, smooth ticketing transactions, system security, etc., abnormal data can reflect reader failures, ticketing transaction anomalies, etc., and verification data is directly related to the success or failure of AFC reader verification and is used to assist in evaluation.

[0042] In some embodiments of the present application, normal data, abnormal data, and verification data are combined to determine multi-directional evaluation indicators, including: Multi-directional evaluation indicators include early warning evaluation indicators and non-early warning evaluation indicators; Normal data, abnormal data and verification data are input into the Markov chain model to obtain the warning direction evaluation index; Normal data, abnormal data and verification data are input into the evaluation model to obtain non-warning evaluation indicators.

[0043] In this implementation, each fault and alarm type is first classified based on historical data, and its Markov state is defined. The Markov chain transition probability from the current data to the fault or alarm state is calculated to generate early warnings. Non-alert evaluation metrics are used to assess the overall performance or status of the system, helping operators and maintenance personnel understand the overall performance of the reader and guide the development of optimization strategies.

[0044] It should be noted that the evaluation model can be any pre-trained machine learning model that can achieve the above functions.

[0045] By applying the above technical solution, data generated by the AFC reader is collected and converted into a data time series. Frequent and sparse sequence portions are marked on the data time series. Data compression indicators are defined based on the attributes of the data time series, and whether data compression is required is determined based on the data compression indicators. When data compression is required, data compression is performed using a first compression strategy for the frequent sequence portion and a second compression strategy for the sparse sequence portion, thereby compressing the data time series. The compressed data is transmitted to a streaming processing framework and decompressed. The compressed data is divided into multiple data streams according to data type. A basic window is set based on the situation of each data stream. The basic window is expanded by monitoring the continuous inflow fluctuations of each data stream. Data is processed using the basic window, and multiple basic windows are managed simultaneously. The streaming processing framework outputs the data, analyzes the normal data, abnormal data, and verification data in the data, and combines the normal data, abnormal data, and verification data to determine multi-directional evaluation indicators. The application of the AFC reader is optimized using the multi-directional evaluation indicators. This application identifies frequent and sparse sequences, determines the need for data compression based on data compression metrics, and comprehensively determines the need for data compression by combining the two types of data sequences. Different compression methods are used for different types of data sequences, improving the adaptability and efficiency of data transmission and processing. Data is transmitted to a streaming processing framework, and the window is dynamically adjusted to ensure real-time data processing and improve data processing reliability. The application of AFC readers is optimized through multi-directional evaluation metrics, improving the flexibility of subsequent operational management of AFC readers and ensuring their safe and stable operation.

[0046] Through the above description of the embodiments, those skilled in the art will clearly understand that the present invention can be implemented via hardware or via software combined with a necessary general-purpose hardware platform. Based on this understanding, the technical solution of the present invention can be embodied in the form of a software product. This software product can be stored on a non-volatile storage medium (such as a CD-ROM, USB flash drive, or external hard drive) and includes instructions for enabling a computer device (such as a personal computer, server, or network device) to execute the methods described in various implementation scenarios of the present invention.

[0047] Correspondingly, the present application also provides a data processing system for an AFC reader, such as Figure 2 As shown, including: The first module is used to collect data generated by the AFC reader and convert the data into a data time series. The frequent sequence part and the sparse sequence part are marked on the data time series. The data compression index is defined based on the attributes of the data time series. The data compression index is used to determine whether data compression is needed. The second module is used for, when the data time series needs data compression, performing data compression using a first compression strategy on the frequent sequence part and performing data compression using a second compression strategy on the sparse sequence part, thereby compressing the data time series; The third module transfers the compressed data to the stream processing framework, decompresses the compressed data, and divides it into multiple data streams according to data type. A basic window is set based on the status of each data stream. The basic window is expanded by monitoring the continuous inflow fluctuations of each data stream. Data is processed within the basic window, and multiple basic windows are managed simultaneously. The fourth module is used to process the data output by the streaming framework, analyze the normal data, abnormal data, and verification data, and combine the normal data, abnormal data, and verification data to determine multi-directional evaluation indicators. The multi-directional evaluation indicators are used to optimize the application of the AFC reader. Among them, the first compression strategy is a combination of a bitmap compression algorithm and a lossless compression algorithm, and the second compression strategy is a combination of a bitmap compression algorithm and a de-redundancy compression algorithm. The data flow conditions include data flow rate, data block size, data fluctuation value and real-time requirements. The size of a basic window is set according to the data flow rate, data block size, data fluctuation value and real-time requirements.

[0048] Those skilled in the art will appreciate that the modules in the system of the implementation scenario can be distributed in the system of the implementation scenario according to the implementation scenario description, or can be modified accordingly and located in one or more systems different from the implementation scenario. The modules of the above implementation scenario can be combined into one module or further divided into multiple submodules.

[0049] The above description is only a preferred specific embodiment of the present invention, but the scope of protection of the present invention is not limited thereto. Any technician familiar with the technical field, within the technical scope disclosed by the present invention, who makes equivalent replacements or changes based on the technical solution and inventive concept of the present invention, should be covered by the scope of protection of the present invention.

Claims

1. A data processing method applied to an AFC reader / writer, characterized in that: include: Collect the data generated by the AFC reader and convert it into a data time series. Mark the frequent sequence part and the sparse sequence part on the data time series. Define the data compression index based on the attributes of the data time series and determine whether data compression is needed based on the data compression index. When the data time series needs data compression, the data compression of the first compression strategy is performed on the frequent sequence part, and the data compression of the second compression strategy is performed on the sparse sequence part, so as to compress the data time series; The compressed data is transferred to the stream processing framework, and the compressed data is decompressed and divided into multiple data streams according to the data type. A basic window is set based on the situation of each data stream, and the continuous inflow fluctuation of each data stream is monitored to expand the basic window. The data is processed through the basic window, and multiple basic windows are managed at the same time. The stream processing framework outputs data, analyzes the normal data, abnormal data, and verification data in the data, and combines the normal data, abnormal data, and verification data to determine multi-directional evaluation indicators. The application of AFC readers is optimized through multi-directional evaluation indicators. Among them, the first compression strategy is a combination of a bitmap compression algorithm and a lossless compression algorithm, and the second compression strategy is a combination of a bitmap compression algorithm and a de-redundancy compression algorithm. The data flow conditions include data flow rate, data block size, data fluctuation value and real-time requirements. The size of a basic window is set according to the data flow rate, data block size, data fluctuation value and real-time requirements.

2. The data processing method applied to the AFC reader / writer according to claim 1, characterized in that: Mark the frequent sequence parts and sparse sequence parts in the data time series, including: Obtain the application scenario and usage time node of the AFC reader / writer, determine the working period and the non-working period according to the application scenario of the AFC reader / writer, and record the usage time node as a working usage time node and a non-working usage time node according to the position of the usage time node. The working usage time node is the usage time node located in the working period, and the non-working usage time node is the usage time node located in the non-working period; Calculate the distances between adjacent working time nodes within a preset range at both ends of the working period, and convert all working time nodes within the range from the peripheral working time nodes whose distances exceed the distance threshold to the end points of the working period into non-working time nodes, and redefine the working period and non-working period based on the non-working time nodes, wherein the peripheral working time nodes are the working time nodes that are closer to the end points of the working period among the two adjacent working time nodes; The re-determined working period and non-working period are represented in the data time series according to the timestamps, and the frequent sequence parts are marked in the working period and the sparse sequence parts are marked in the non-working period.

3. The data processing method applied to the AFC reader / writer according to claim 2, characterized in that: And mark the frequent sequence part in the working period and mark the sparse sequence part in the non-working period, including: The frequent sequence part includes a first frequent sequence part and a second frequent sequence part, and the sparse sequence part includes a first sparse sequence part and a second sparse sequence part; Define the data time series corresponding to a single working time node where the AFC reader / writer successfully verifies as the standard series, split the data time series of the working period into multiple subsequences according to the period, calculate the support of the standard series in each subsequence, mark the subsequences whose support exceeds the support threshold as the first frequent series part, and mark the subsequences whose support does not exceed the support threshold as the second frequent series part; The data time series of the non-working period is split into multiple subsequences according to the time period, the sparsity of each subsequence is calculated, the subsequences whose sparsity exceeds the sparsity threshold are marked as the first sparse sequence part, and the subsequences whose sparsity does not exceed the sparsity threshold are marked as the second sparse sequence part.

4. The data processing method applied to the AFC reader / writer according to claim 3, characterized in that: Data compression metrics are defined by the attributes of the data time series, including: The attributes of the data time series include the support, data volume, and data change rate of the first frequent sequence part and the second frequent sequence part, and the sparsity, data volume, and data change rate of the first sparse sequence part and the second sparse sequence part; Perform weighted summation on the support, data volume, and data change rate of the first frequent sequence part and the second frequent sequence part, respectively, to obtain the composite index of the first frequent sequence part and the second frequent sequence part; perform weighted summation on the sparsity, data volume, and data change rate of the first sparse sequence part and the second sparse sequence part, respectively, to obtain the composite index of the first sparse sequence part and the second sparse sequence part; determine the data compression index of the overall data time series according to the composite index of the first frequent sequence part and the second frequent sequence part and the first sparse sequence part and the second sparse sequence part; ; in, is the data compression index, , , , are the weights corresponding to the first frequent sequence part, the second frequent sequence part, the first sparse sequence part, and the second sparse sequence part, respectively. , , , are the composite indices corresponding to the first frequent sequence part, the second frequent sequence part, the first sparse sequence part, and the second sparse sequence part, respectively. , are the conversion coefficients of frequent sequences and sparse sequences respectively.

5. The data processing method applied to the AFC reader / writer according to claim 1, characterized in that: The first compression strategy is used to compress the data of the frequent sequence part, and the second compression strategy is used to compress the data of the sparse sequence part, including: Determine the value range of each type of data in the frequent sequence part and the sparse sequence part, and divide the data into finite value range type data and infinite value range type data according to the size range of the value range. Use a bitmap compression algorithm to compress the finite value range type data, use a lossless compression algorithm to compress the infinite value range type data in the frequent sequence part, and use a de-redundancy compression algorithm to compress the infinite value range type data in the sparse sequence part. Data compression is performed on the finite value domain type data and the infinite value domain type data of the frequent sequence part by using the first compression strategy; The finite value domain type data and the infinite value domain type data of the sparse sequence part are compressed by the second compression strategy.

6. The data processing method applied to the AFC reader / writer according to claim 1, characterized in that: A basic window is set based on the situation of each data flow, and the basic window is expanded by monitoring the continuous inflow fluctuations of each data flow, including: The size of the base window is the median of the standard interval of the base window size; ; in, is the standard interval of the basic window size, is the weight of the data flow rate, is the data flow rate, is the weight of the data block size, is the data block size, is the data fluctuation value, is the preset constant, is the first time interval, It represents the first time interval obtained by mapping the influence amount determined by the data flow rate, data block size and data fluctuation value. For real-time requirements, is the second time interval, A second time interval mapped from the real-time requirement; The continuous inflow fluctuation of the data stream is the data fluctuation value change rate within a period of time. When the data fluctuation value change rate exceeds the data fluctuation value change rate threshold, an expansion coefficient is determined according to the difference between the data fluctuation value change rate and the data fluctuation value change rate threshold, and the basic window is expanded by the expansion coefficient.

7. The data processing method applied to the AFC reader / writer according to claim 1, characterized in that: The data is processed through the basic window, including: Aggregate, filter and convert data in the basic window.

8. The data processing method applied to the AFC reader / writer according to claim 1, characterized in that: And combine normal data, abnormal data and verification data to determine multi-directional evaluation indicators, including: The multi-directional evaluation indicators include early warning evaluation indicators and non-early warning evaluation indicators; Normal data, abnormal data and verification data are input into the Markov chain model to obtain the evaluation index of the warning direction; Normal data, abnormal data and verification data are input into the evaluation model to obtain non-warning evaluation indicators.

9. A data processing system applied to an AFC reader / writer, characterized in that: include: The first module is used to collect the data generated by the AFC reader and convert the data into a data time series, mark the frequent sequence part and the sparse sequence part on the data time series, define the data compression index according to the attributes of the data time series, and determine whether data compression is needed according to the data compression index; The second module is used for, when the data time series needs data compression, performing data compression of the first compression strategy on the frequent sequence part and performing data compression of the second compression strategy on the sparse sequence part, thereby compressing the data time series; The third module is used to transfer the compressed data to the stream processing framework, decompress the compressed data, and divide it into multiple data streams according to the data type. A basic window is set based on the situation of each data stream, and the continuous inflow fluctuation of each data stream is monitored to expand the basic window. The data is processed through the basic window, and multiple basic windows are managed at the same time. The fourth module is used to process the output data of the streaming framework, analyze the normal data, abnormal data and verification data in the data, and combine the normal data, abnormal data and verification data to determine the multi-directional evaluation indicators, and optimize the application of the AFC reader through the multi-directional evaluation indicators; Among them, the first compression strategy is a combination of a bitmap compression algorithm and a lossless compression algorithm, and the second compression strategy is a combination of a bitmap compression algorithm and a de-redundancy compression algorithm. The data flow conditions include data flow rate, data block size, data fluctuation value and real-time requirements. The size of a basic window is set according to the data flow rate, data block size, data fluctuation value and real-time requirements.

Citation Information

Patent Citations

  • Tag communication apparatus, tag communication apparatus control method, and tag communication apparatus control program

    CN102194139A

  • Compression method and device of twin data and computer readable storage medium

    CN113452378A

  • Storage space optimization method and system for database files

    CN114564457A

  • Digital media distribution cryptography using media ticket smart cards

    US20050195975A1

  • Compression and search process on a data set based on multiple strategies

    US20240119027A1