WO2024249809A2 - Method, system, and computer program product for efficient content-based time series retrieval - Google Patents
Method, system, and computer program product for efficient content-based time series retrieval Download PDFInfo
- Publication number
- WO2024249809A2 WO2024249809A2 PCT/US2024/031934 US2024031934W WO2024249809A2 WO 2024249809 A2 WO2024249809 A2 WO 2024249809A2 US 2024031934 W US2024031934 W US 2024031934W WO 2024249809 A2 WO2024249809 A2 WO 2024249809A2
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- time series
- known time
- tensor
- feature vector
- processor
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Ceased
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06N—COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
- G06N3/00—Computing arrangements based on biological models
- G06N3/02—Neural networks
- G06N3/04—Architecture, e.g. interconnection topology
- G06N3/042—Knowledge-based neural networks; Logical representations of neural networks
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06N—COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
- G06N3/00—Computing arrangements based on biological models
- G06N3/02—Neural networks
- G06N3/04—Architecture, e.g. interconnection topology
- G06N3/045—Combinations of networks
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F17/00—Digital computing or data processing equipment or methods, specially adapted for specific functions
- G06F17/10—Complex mathematical operations
- G06F17/16—Matrix or vector computation, e.g. matrix-matrix or matrix-vector multiplication, matrix factorization
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06N—COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
- G06N20/00—Machine learning
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06N—COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
- G06N3/00—Computing arrangements based on biological models
- G06N3/02—Neural networks
- G06N3/04—Architecture, e.g. interconnection topology
- G06N3/044—Recurrent networks, e.g. Hopfield networks
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06N—COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
- G06N3/00—Computing arrangements based on biological models
- G06N3/02—Neural networks
- G06N3/04—Architecture, e.g. interconnection topology
- G06N3/048—Activation functions
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06N—COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
- G06N3/00—Computing arrangements based on biological models
- G06N3/02—Neural networks
- G06N3/08—Learning methods
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06N—COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
- G06N3/00—Computing arrangements based on biological models
- G06N3/02—Neural networks
- G06N3/08—Learning methods
- G06N3/084—Backpropagation, e.g. using gradient descent
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06N—COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
- G06N3/00—Computing arrangements based on biological models
- G06N3/02—Neural networks
- G06N3/08—Learning methods
- G06N3/09—Supervised learning
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q20/00—Payment architectures, schemes or protocols
- G06Q20/02—Payment architectures, schemes or protocols involving a neutral party, e.g. certification authority, notary or trusted third party [TTP]
- G06Q20/027—Payment architectures, schemes or protocols involving a neutral party, e.g. certification authority, notary or trusted third party [TTP] involving a payment switch or gateway
Definitions
- This disclosure relates generally to time series data and, in some nonlimiting embodiments or aspects, to methods, systems, and computer program products for efficient content-based time series retrieval.
- a Content-based Time Series Retrieval (CTSR) system is an information retrieval system for users to interact with time series emerged from multiple domains, such as finance, healthcare, manufacturing, and/or the like. For example, users seeking to learn more about the source of a time series can submit the time series as a query to the CTSR system and retrieve a list of relevant time series with associated metadata. By analyzing the retrieved metadata, users can gather more information about the source of the time series. Because CTSR systems may work with time series data from diverse domains, CTSR systems may use a high-capacity model to effectively measure the similarity between different time series. Further, users may require the model within the CTSR system to compute the similarity scores in an efficient manner as the users interact with the system in real-time.
- the tensor with a residual network, the tensor, wherein the residu; tensor, and provides, as output, a feature vector for that known time series; and providing, with the at least one processor, the feature vector for each known time series of the plurality of known time series.
- the method further includes: storing, with the at least one processor, in the at least one database, the feature vector for each known time series of the plurality of known time series.
- the method further includes: obtaining, with the at least one processor, an unknown time series; computing, with the at least one processor, a pairwise distance matrix between the unknown time series and each learned template of the plurality of learned templates to generate a further plurality of pairwise distance matrices; stacking, with the at least one processor, the further plurality of pairwise distance matrices together to generate a further tensor; processing, with the at least one processor, with the residual network, the further tensor, wherein the residual network receives, as input, the further tensor, and provides, as output, a feature vector for the unknown time series; for each known time series of the plurality of known time series stored in the database, determining, with the at least one processor, based on the stored feature vector for that known time series and the feature vector for the unknown time series, a distance between that known time series and the unknown time series; and providing, with the at least one processor, based on the distance between each known time series and the
- the residual network is trained using a loss function defined according to the following Equation:
- a plurality of known time series includes a plurality of known transaction time series associated with a plurality of merchants, and wherein each known time series is associated with metadata associated with a merchan series.
- the plurality of learned templates includes thirty-two learned templates, wherein the plurality of pairwise distance matrices includes thirty-two pairwise distance matrices, wherein the tensor includes an input dimension of thirty-two, and wherein the feature vector for each known time series of the plurality of known time series includes a size sixty-four vector.
- the residual network includes a two-dimensional residual network.
- a system including: at least one processor coupled to a memory and configured to: obtain, from at least one database, a plurality of known time series; for each known time series of the plurality of known time series: compute a pairwise distance matrix between that known time series and each learned template of a plurality of learned templates to generate a plurality of pairwise distance matrices; stack the plurality of pairwise distance matrices together to generate a tensor; and process, with the residual network, the tensor, wherein the residual network receives, as input, the tensor, and provides, as output, a feature vector for that known time series; and provide the feature vector for each known time series of the plurality of known time series.
- the at least one processor is further configured to: store, in the at least one database, the feature vector for each known time series of the plurality of known time series.
- the at least one processor is further configured to: obtain an unknown time series; compute a pairwise distance matrix between the unknown time series and each learned template of the plurality of learned templates to generate a further plurality of pairwise distance matrices; stack the further plurality of pairwise distance matrices together to generate a further tensor; s, with the residual network, the further tensor, wherein the residual network receives, as input, the further tensor, and provides, as output, a feature vector for the unknown time series; for each known time series of the plurality of known time series stored in the database, determine, based on the stored feature vector for that known time series and the feature vector for the unknown time series, a distance between that known time series and the unknown time series; and provide, based on the distance between each known time series and the unknown time series, at least one known time series determii me series.
- the plurality of known time series includes a plurality of known transaction time series associated with a plurality of merchants, and wherein each known time series is associated with metadata associated with a merchant associated with that known time series.
- the plurality of learned templates includes thirty-two learned templates, wherein the plurality of pairwise distance matrices includes thirty-two pairwise distance matrices, wherein the tensor includes an input dimension of thirty-two, and wherein the feature vector for each known time series of the plurality of known time series includes a size sixty-four vector.
- the residual network includes a two-dimensional residual network.
- a computer program product including a non-transitory computer readable medium including program instructions which, when executed by at least one processor, cause the at least one processor to: obtain, from at least one database, a plurality of known time series; for each known time series of the plurality of known time series: compute a pairwise distance matrix between that known time series and each learned template of a plurality of learned templates to generate a plurality of pairwise distance matrices; stack the plurality of pairwise distance matrices together to generate a tensor; and s, with the residual network, the tensor, wherein the residual network receives, as input, the tensor, and provides, as output, a feature vector for that known time series; and provide the feature vector for each known time series of the plurality of known time series.
- the program instructions when executed by the at le le at least one processor to: store, in the at least one database, the feature vector for each known time series of the plurality of known time series.
- the program instructions when executed by the at least one processor, further cause the at least one processor to: obtain an unknown time series; compute a pairwise distance matrix between the unknown time series and each learned template of the plurality of learned templates to generate a further plurality of pairwise distance matrices; stack the further plurality of pairwise distance matrices together to generate a further tensor; process, with the residual network, the further tensor, wherein the residual network receives, as input, the further tensor, and provides, as output, a feature vector for the unknown time series; for each known time series of the plurality of known time series stored in the database, determine, based on the stored feature vector for that known time series and the feature vector for the unknown time series, a distance between that known time series and the unknown time series; and provide, based on the distance between each known time series and the unknown time series, at least one known time series determined to be similar to the unknown time series.
- the plurality of known time series includes a plurality of known transaction time series associated with a plurality of merchants, and wherein each known time series is associated with metadata ated with a merchant associated with that known time series.
- the plurality of learned templates includes thirty-two learned templates, wherein the plurality of pairwise distance matrices includes thirty-two pairwise distance matrices, wherein the tensor includes an input dimension of thirty-two, and wherein the feature vector for each known time series of the plurality of known time series includes a size sixty-four vector, and wherein the residual n residual network.
- a method comprising: obtaining, with at least one processor, from at least one database, a plurality of known time series; for each known time series of the plurality of known time series: computing, with the at least one processor, a pairwise distance matrix between that known time series and each learned template of a plurality of learned templates to generate a plurality of pairwise distance matrices; stacking, with the at least one processor, the plurality of pairwise distance matrices together to generate a tensor; and processing, with the at least one processor, with a residual network, the tensor, wherein the residual network receives, as input, the tensor, and provides, as output, a feature vector for that known time series; and providing, with the at least one processor, the feature vector for each known time series of the plurality of known time series.
- Clause 2 The method of clause 1 , further comprising: storing, with the at least one processor, in the at least one database, the feature vector for each known time series of the plurality of known time series.
- Clause 3 The method of clause 1 or 2, further comprising: obtaining, with the at least on processor, an unknown time series; computing, with the at least one processor, a pairwise distance matrix between the unknown time series and each learned template of the plurality of learned templates to generate a further plurality of pairwise distance matrices; stacking, with the at least one processor, the further plurality of pairwise distance matrices together to generate a further tensor; processing, with the at least one processor, with the residual network, the further tensor, wherein the residual network receives, as input, the further tensor, and provides, as output, a feature vector for the unknown time series; for each known time series of the plurality of known time series stored in the database, determining, with least one processor, based on the stored feature vector for that known time series and the feature vector for the unknown time series, a distance between that known time series and the unknown time series; and providing, with the at least one processor, based on the distance between each known time series and the unknown time
- Clause 5 The method of any of clauses 1 -4, wherein the plurality of known time series includes a plurality of known transaction time series associated with a plurality of merchants, and wherein each known time series is associated with metadata associated with a merchant associated with that known time series.
- Clause 6 The method of any of clauses 1 -5, wherein the plurality of learned templates includes thirty-two learned templates, wherein the plurality of pairwise distance matrices includes thirty-two pairwise distance matrices, wherein the tensor includes an input dimension of thirty-two, and wherein the feature vector for each known time series of the plurality of known time series includes a size sixty-four vector.
- Clause 7 The method of any of clauses 1 -6, wherein the residual network includes a two-dimensional residual network.
- a system comprising: at least one processor coupled to a memory and configured to: obtain, from at least one database, a plurality of known time series; for each known time series of the plurality of known time series: compute a pairwise distance matrix between that known time series and each learned template of a plurality of learned templates to generate a plurality of pairwise distance matrices; stack the plurality of pairwise distance matrices together to generate a tensor; and process, with the residual network, the tensor, wherein the residual network receives, as input, the tensor, and provides, as output, a feature vector for that known time series; and provide the feature vector for each known time series of the plurality of known time series.
- Clause 9 The system of clause 8, wherein the at least one processor is further configured to: store, in the at least one database, the feature vector for each known time series of the plurality of known time series.
- Clause 10 The system of clause 8 or 9, wherein the at least one processor is further configured to: obtain an unknown time series; compute a pairwise distance matrix between the unknown time series and each learned template of the plurality of learned templates to gene distance matrices; stack the further plurality of pairwise distance matrices together to generate a further tensor; process, with the residual network, the further tensor, wherein the residual network receives, as input, the further tensor, and provides, as output, a feature vector for the unknown time series; for each known time series of the plurality of known time series stored in the database, determine, based on the stored feature vector for that known time series and the feature vector for the unknown time series, a distance between that known time series and the unknown time series; and provide, based on the distance between each known time series and the unknown
- Clause 12 The system of any of clauses 8-1 1 , wherein the plurality of known time series includes a plurality of known transaction time series associated with a plurality of merchants, and wherein each known time series is associated with metadata associated with a merchant associated with that known time series.
- Clause 13 The system of any of clauses 8-12, wherein the plurality of learned templates includes thirty-two learned templates, wherein the plurality of pairwise distance matrices includes thirty-two pairwise distance matrices, wherein the tensor includes an input dimension of thirty-two, and wherein the feature vector for each known time series of the plurality of known time series includes a size sixty-four vector.
- Clause 14 The system of any of clauses 8-13, wherein the residual network includes a two-dimensional residual network.
- Clause 15 A computer program product including a non-transitory computer readable medium including program instructions which, when executed by at least one processor, cause the at least one nrocessor to: obtain, from at least one database, a plurality of known time memorile plurality of known time series: compute a pairwise distance matrix between that known time series and each learned template of a plurality of learned templates to generate a plurality of pairwise distance matrices; stack the plurality of pairwise distance matrices together to generate a tensor; and process, with the residual network, the tensor, wherein the residual network receives, as input, the tensor, and provides, as output, a feature vector for that known time series; and provide the feature vector for each known time series of the plurality of known time series.
- Clause 16 The computer program product of clause 15, wherein the program instructions, when executed by the at least one processor, further cause the at least one processor to: store, in the at least one database, the feature vector for each known time series of the plurality of known time series.
- Clause 17 The computer program product of clause 15 or 16, wherein the program instructions, when executed by the at least one processor, further cause the at least one processor to: obtain an unknown time series; compute a pairwise distance matrix between the unknown time series and each learned template of the plurality of learned templates to generate a further plurality of pairwise distance matrices; stack the further plurality of pairwise distance matrices together to generate a further tensor; process, with the residual network, the further tensor, wherein the residual network receives, as input, the further tensor, and provides, as output, a feature vector for the unknown time series; for each known time series of the plurality of known time series stored in the database, determine, based on the stored feature vector for that known time series and the feature vector for the unknown time series, a distance between that known time series and the unknown time series; and provide, based on the distance between each known time series and the unknown time series, at least one known time series determined to be similar to the unknown time series.
- Clause 19 The c , j f clauses 15-18, wherein the plurality of known time series includes a plurality of known transaction time series associated with a plurality of merchants, and wherein each known time series is associated with metadata associated with a merchant associated with that known time series.
- Clause 20 The computer program product of any of clauses 15-19, wherein the plurality of learned templates includes thirty-two learned templates, wherein the plurality of pairwise distance matrices includes thirty-two pairwise distance matrices, wherein the tensor includes an input dimension of thirty-two, and wherein the feature vector for each known time series of the plurality of known time series includes a size sixty-four vector, and wherein the residual network includes a two-dimensional residual network.
- FIG. 1 is a schematic diagram of an electronic payment processing network, ing to some non-limiting embodiments or aspects
- FIG. 2 is a schematic diagram of example components of one or more devices of FIG. 1 , according to some non-limiting embodiments or aspects;
- FIGS. 3A and 3B are flow diagrams of a method for efficient content-based time series retrieval, according to some non-limiting embodiments or aspects;
- FIG. 4 illustrates an electronic oavment network use case for a Contentbased Time Series Retriex icludes transaction time series
- FIG. 5 illustrates a multiple domain use case for a CTSR and a database that includes time series from multiple domains
- FIG. 6 illustrates examples of feature extractor and distance functions
- FIG. 7 illustrates an algorithm for computing Dynamic Time Warping (DTW) distance
- FIG. 8 is a building block and network diagram of a Residual Network 2D (RN2D) model, according to some non-limiting embodiments or aspects;
- R2D Residual Network 2D
- FIG. 9 is a network diagram of a Residual Network 2D with Template Learning RN2Dw/T model according to some non-limiting embodiments or aspects;
- FIG. 10 is a table of performance measurements for experiments
- FIG. 1 1 is a critical difference (CD) diagram comparing performance of experiments
- FIG. 12 is graphs of results of performance measurements of experiments
- FIG. 13 illustrates a top eight retrieved time series for experiments
- FIG. 14 is a table of further performance measurements for experiments.
- FIG. 15 is a CD diagram comparing further performance of experiments.
- FIG. 16 is graphs of results of further performance measurements of experiments.
- FIG. 17 is a table of query times for experiments.
- Some non-limitino embodiments or asoects mav be described herein in connection with thresholds nold may refer to a value being greater than the threshold, more than the threshold, higher than the threshold, greater than or equal to the threshold, less than the threshold, fewer than the threshold, lower than the threshold, less than or equal to the threshold, equal to the threshold, etc.
- the terms “has,” “have,” “having,” or the like are intended to be open-ended terms. Further, the phrase “based on” is intended to mean “based at least partially on” unless explicitly stated otherwise.
- reference to an action being “based on” a condition may refer to the action being “in response to” the condition.
- the phrases “based on” and “in response to” may, in some non-limiting embodiments or aspects, refer to a condition for automatically triggering an action (e.g., a specific operation of an electronic device, such as a computing device, a processor, and/or the like).
- the term “communication” may refer to the reception, receipt, transmission, transfer, provision, and/or the like of data (e.g., information, signals, messages, instructions, commands, and/or the like).
- data e.g., information, signals, messages, instructions, commands, and/or the like.
- one unit e.g., a device, a system, a component of a device or system, combinations thereof, and/or the like
- the one unit is able to directly or indirectly receive information from and/or transmit information to the other his may refer to a direct or indirect connection (e.g., a direct communication connection, an indirect communication connection, and/or the like) that is wired and/or wireless in nature.
- two units may be in communication with each other even though the information transmitted may be modified, processed, relayed, and/or routed between the first and second unit.
- a first unit may be in communication with a second unit even though the first unit passively receives information and does not actively transmit information to the second unit.
- a first unit may ond unit if at least one intermediary unit processes information received from the first unit and communicates the processed information to the second unit.
- a message may refer to a network packet (e.g., a data packet and/or the like) that includes data. It will be appreciated that numerous other arrangements are possible.
- computing device may refer to one or more electronic devices configured to process data.
- a computing device may, in some examples, include the necessary components to receive, process, and output data, such as a processor, a display, a memory, an input device, a network interface, and/or the like.
- a computing device may be a mobile device.
- a mobile device may include a cellular phone (e.g., a smartphone or standard cellular phone), a portable computer, a wearable device (e.g., watches, glasses, lenses, clothing, and/or the like), a personal digital assistant (PDA), and/or other like devices.
- a computing device may also be a desktop computer or other form of non-mobile computer.
- server may refer to or include one or more computing devices that are operated by or facilitate communication and processing for multiple parties in a network environment, such as the Internet, although it will be appreciated that communication may be facilitated over one or more public or private network environments and that various other arrangements are possible.
- a network environment such as the Internet
- multiple computing devices e.g., servers, point-of-sale (POS) devices, mobile devices, etc.
- POS point-of-sale
- system may refer to one or more computing devices or combinations of computing devices (e.g., processors, servers, client devices, software applications, components of such, and/or the like).
- references to “a device,” “a server,” “a processor,” and/or the like, as used herein, may refer to a jsly-recited device, server, or processor that is recited as performing a previous step or function, a different device, server, or processor, and/or a combination of devices, servers, and/or processors.
- a first device, a first server, or a first processor that is recited as performing a first step or a first function may refer to the same or different device, server, or processor recited as performing a second step or a second function.
- real-time refers to oerformance of a task or tasks during another process or ed.
- a realtime inference may be an inference that is obtained from a model before a payment transaction is authorized, completed, and/or the like.
- Time series is a common data type analyzed for a variety of applications. For example, time series from different sensors on manufacturing machines may be examined by engineers for identifying ways to improve factories’ efficiency, various biometric time series may be studied by doctors for medical research, and multiple streams of time series from operating payment networks may be monitored for unusual activities. As a large volume of time series data are becoming available from various sources, an effective Content-based Time Series Retrieval (CTSR) system is needed to help users browse time series databases.
- CTR Content-based Time Series Retrieval
- FIG. 4 illustrates an electronic payment network use case for a CTSR and a database that includes transaction time series.
- a CTSR system is and how it can help users, consider the electronic payment network use case illustrated in FIG. 4.
- the payment processing company can obtain the time series signature about the merchant.
- an investigator from the company can leverage a CTSR system with time series signatures from various merchants to identify the correct business type of the merchant in question.
- the CTSR system may help the investigator to rectify the information promptly.
- the CTSR system solely comprises transaction time series.
- FIG. 5 illustrates a multiple domain use case for a CTSR and a database that includes time series from multiple domains.
- the time series could be a power consumption time series or data records ther sensors.
- the user may want to identify the possible source of the time series and recover the missing information.
- the user may query the CTSR system with the time series (which may or may not exist in the database of the CTSR system), and the system may return a ranked list of similar time series with associated metadata.
- Design goals when building a CTSR system may include: 1 ) to effectively capture various concepts in time series from different domains, and 2) to be efficient during inference, given the real-time interactions of users with the system.
- a reason for a difference in inference time between CTSR systems may be the difference in the role of the neural network model.
- FIG. 6 illustrates examples of feature extractor and distance functions. In faster methods, the neural network serves purely as a feature extractor, and distance is computed using the Euclidean distance function as shown in example (a) of FIG. 6. Therefore, each time series in the database may be projected to Euclidean space only once using the neural network before inference.
- the neural network model may only need to project the query time series to the same Euclidean space, and distance computation can be efficiently performed in this space.
- the existing Residual Network 2D (RN2D) model serves as both the feature extractor and distance function as shown in example (b) of FIG. 6.
- the RN2D model is invoked each time the distance is computed.
- the faster method only requires one invocation of the neural network model for the query.
- the RN2D model is invoked n times, which drastically increases the runtime.
- Non-limiting embodiments or aspects of the present disclosure provide methods, systems, and computer program products for content-based time series retrieval that obtain, from at least one database, a plurality of known time series; for each known time series of the plurality of known time series: compute a pairwise distance matrix between that known time series and each learned template of a plurality of learned templates to generate a plurality of pairwise distance matrices; stack the plurality of pairwise distance matrices together to generate a tensor; process, with the residual network, the tensor, wherein the residual network receives, as input, isor, and provides, as output, a feature vector for that known time series; and provide the feature vector for each known time series of the plurality of known time series.
- Non-limiting embodiments or aspects of the present disclosure thus provide methods, systems, and computer program products for content-based time series retrieval enabled to obtain an unknown time series; compute a pairwise distance matrix between the unknown time series and each learned template of the plurality of learned templates to generate a further nluralitv of oairwise distance matrices; stack the further plurality of pairw enerate a further tensor; process, with the residual network, the further tensor, wherein the residual network receives, as input, the further tensor, and provides, as output, a feature vector for the unknown time series; for each known time series of the plurality of known time series stored in the database, determine, based on the stored feature vector for that known time series and the feature vector for the unknown time series, a Euclidean distance between that known time series and the unknown time series; and identify, based on the Euclidean distance between each known time series and the unknown time series, at least one known time series determined to correspond to the unknown time series [0078] In this way
- a RN2Dw/T model may incorporate a template (landmark) learning mechanism into the input of the RN2D model (shown in example (b) of FIG. 6) and modify the model to output feature vectors instead of distance values.
- An RN2Dw/T model according to non-limiting embodiments or aspects may generate the feature vector of an input time series using the learned landmarks as the references.
- the RN2Dw/T model according to non-limiting embodiments or aspects may function solely as a feature extractor.
- Non-limiting embodiments or aspects of the RN2Dw/T model may achieve comparable effectiveness to the RN2D method while achieving an average query time of less than 0.04 seconds (see e.g., the table in FIG. 10). Accordingly, non-limiting embodiments or aspects of the present disclosure enable an effective and efficient CTSR system that can be a valuable tool for businesses in various industries.
- FIG. 1 shows an electronic payment processing k 100, according to non-limiting embodiments or aspects.
- the payment processing network may be used in conjunction with the systems and methods described herein. It will be appreciated that the particular arrangement of the electronic payment processing network 100 shown is for example purposes only, and that various arrangements are possible.
- Transaction processing system 101 e.g., a transaction handler
- issuer systems e.g., such as issuer system 1061
- acouirer systems e.g., such as acquirer system 108.
- transaction processing system 101 may be in communication with a plurality of issuer systems and/or acquirer systems. In some embodiments, transaction processing system 101 may also operate as an issuer system such that both transaction processing system 101 and issuer system 106 are a single system and/or controlled by a single entity.
- transaction processing system 101 may communicate with merchant system 104 directly through a public or private network connection. Additionally or alternatively, transaction processing system 101 may communicate with merchant system 104 through payment gateway 102 and/or acquirer system 108. In some non-limiting embodiments or aspects, an acquirer system 108 associated with merchant system 104 may operate as payment gateway 102 to facilitate the communication of transaction requests from merchant system 104 to transaction processing system 101. Merchant system 104 may communicate with payment gateway 102 through a public or private network connection. For example, a merchant system 104 that includes a physical POS device may communicate with payment gateway 102 through a public or private network to conduct card-present transactions. As another example, a merchant system 104 that includes a server (e.g., a web server) may communicate with payment gateway 102 through a public or private network, such as a public Internet connection, to conduct card-not-present transactions.
- a server e.g., a web server
- transaction processing system 101 after receiving a transaction request from merchant system 104 that identifies an account identifier of a payor (e.g., such as an account holder) associated with an issued consumer device 110, may generate an authorization request message to be communicated to the issuer system 106 that issued the consumer device 1 10 and/or account identifier. Issuer system 106 may then approve or decline the zation request and, based on the approval or denial, generate an authorization response message that is communicated to transaction processing system 101. Transaction processing system 101 may communicate an approval or denial to merchant system 104. When issuer system 106 approves the authorization request message, it may then clear and settle the payment transaction between the issuer system 106 and acquirer system 108.
- a payor e.g., such as an account holder
- svstems and devices shown in FIG. 1 are provided as an example. s and/or devices, fewer systems and/or devices, different systems and/or devices, and/or differently arranged systems and/or devices than those shown in FIG. 1. Furthermore, two or more systems or devices shown in FIG. 1 may be implemented within a single system or device, or a single system or device shown in FIG. 1 may be implemented as multiple, distributed systems or devices. Additionally or alternatively, a set of systems (e.g., one or more systems) or a set of devices (e.g., one or more devices) of system 100 may perform one or more functions described as being performed by another set of systems or another set of devices of system 100.
- Device 200 may correspond to transaction processing system 101 , payment gateway 102, merchant system 104, issuer system 106, acquirer system 108, and/or consumer device 1 10, as an example.
- such systems or devices may include at least one device 200 and/or at least one component of device 200.
- the number and arrangement of components shown are provided as an example.
- device 200 may include additional components, fewer components, different components, or differently arranged components than those shown.
- a set of components (e.g., one or more components) of device 200 may perform one or more functions described as being performed by another set of components of device 200.
- device 200 may include a bus 202, a processor 204, memory 206, a storage component 208, an input component 210, an output component 212, and a communication interface 214.
- Bus 202 may include a component that permits communication among the components of device 200.
- processor 204 may be implemented in hardware, firmware, or a combination of hardware and software.
- processor 204 elude a processor (e.g., a central processing unit (CPU), a graphics processing unit (GPU), an accelerated processing unit (APU), etc.), a microprocessor, a digital signal processor (DSP), and/or any processing component (e.g., a field-programmable gate array (FPGA), an application-specific integrated circuit (ASIC), etc.) that can be programmed to perform a function.
- Memory 206 may include random access memory (RAM), read only memory (ROM), and/or another type of dynamic or static storage device (e.g., flash memorv. macmetic memorv. ontical memory, etc.) that stores information and/or instructi
- storage component 208 may store information and/or software related to the operation and use of device 200.
- storage component 208 may include a hard disk (e.g., a magnetic disk, an optical disk, a magneto-optic disk, a solid-state disk, etc.) and/or another type of computer-readable medium.
- Input component 210 may include a component that permits device 200 to receive information, such as via user input (e.g., a touch screen display, a keyboard, a keypad, a mouse, a button, a switch, a microphone, etc.).
- input component 210 may include a sensor for sensing information (e.g., a global positioning system (GPS) component, an accelerometer, a gyroscope, an actuator, etc.).
- Output component 212 may include a component that provides output information from device 200 (e.g., a display, a speaker, one or more light-emitting diodes (LEDs), etc.).
- Communication interface 214 may include a transceiver-like component (e.g., a transceiver, a separate receiver and transmitter, etc.) that enables device 200 to communicate with other devices, such as via a wired connection, a wireless connection, or a combination of wired and wireless connections.
- Communication interface 214 may permit device 200 to receive information from another device and/or provide information to another device.
- communication interface 214 may include an Ethernet interface, an optical interface, a coaxial interface, an infrared interface, a radio frequency (RF) interface, a universal serial bus (USB) interface, a Wi-Fi® interface, a cellular network interface, and/or the like.
- RF radio frequency
- USB universal serial bus
- Device 200 may perform one or more processes described herein. Device 200 may perform these processes based on processor 204 executing software instructions stored by a computer-readable medium, such as memory 206 and/or storage component 208.
- a computer-readable medium may include any non-transitory memory device.
- a memory device includes memory space located inside of a single al storage device or memory space spread across multiple physical storage devices.
- Software instructions may be read into memory 206 and/or storage component 208 from another computer-readable medium or from another device via communication interface 214. When executed, software instructions stored in memory 206 and/or storage component 208 may cause processor 204 to perform one or more processes described herein.
- hardwired circuitry may be used in place of or in combination with software instructions to perform one or more processes described herei herein are not limited to any specific combination of hardware circuitry and software.
- the term “configured to,” as used herein, may refer to an arrangement of software, device(s), and/or hardware for performing and/or enabling one or more functions (e.g., actions, processes, steps of a process, and/or the like).
- a processor configured to may refer to a processor that executes software instructions (e.g., program code) that cause the processor to perform one or more functions.
- lowercase letters e.g., x
- boldface lowercase letters e.g., x
- uppercase letters e.g., X
- matrices e.g., X
- tensors e.g., X
- calligraphic letters e.g., X
- the scoring function can be either a predefined similarity/distance function or a trainable function that is optimized using the metadata associated with each time series in X.
- the time series retrieval problem may be formulated in two ways.
- the first is also known as the time series similarity search problem, where the goal is to find the top k time series that are most similar to a given query based on a fixed distance function. Because the distance function is fixed, the focus of this type of research is on efficiency, with speed up achieved through techniques such as lower bounding, early abandoning, and/or indexing. If this problem is compared with the above problem statement, it can be seen that a goal of techniques for addressing the time series similarity search problem is different from that for addressing the above problem statement.
- the second type of problem formulation is more aligned with that for sing the above problem statement, wherein an objective is to develop a model or scoring function to aid users in retrieving relevant time series from a database based on the query time series submitted.
- existing models for addressing this second type of problem formulation are designed to address multivariate time series, which if applied to the above problem statement, would simply reduce to a standard long short-term memory network.
- Euclidean distar stance are popular and straightforward tools for analyzing time series data. They are widely used in various tasks such as similarity search, classification, and anomaly detection, and both distance functions may be readily applied to the above problem.
- Another family of methods that can be applied to the above problem is neural networks, especially those capable of modeling sequential data. For example, long short-term memory networks, gated recurrent unit networks, transformers, and convolutional neural networks have shown effectiveness in tasks such as time series classification, forecasting, and anomaly detection.
- RN2Dw/T Residual Network 2D with Template learning
- the six existing baseline methods considered include Euclidean Distance (ED), Dynamic Time Warping (DTW), Long Short-Term Memory network (LSTM), Gated Recurrent Unit network (GRU), Transformer (TF), and Residual Network 1 D (RN1 D).
- ED Euclidean Distance
- DTW Dynamic Time Warping
- LSTM Long Short-Term Memory network
- GRU Gated Recurrent Unit network
- TF Transformer
- Residual Network 1 D RNN1 D
- the Euclidean distance may be computed between the query time series and the time series in the collection.
- the collection may then be sorted based on the distances. This may be the simplest approach for solving the CTSR problem.
- DTW is similar to the ED baseline, but uses the DTW distance instead.
- the DTW distance is considered as a simple yet effective baseline for time series classification problems.
- the LSTM is one of the most popular Recurrent Neural Networks (RNNs) used for modeling sequential data.
- LSTM models may be optimized using the Siamese k architecture (see e.g., example (a) of FIG. 4).
- the Siamese network takes two input time series, and each input is first processed with a 1 D convolutional layer to extract local features. The output is then fed into a bi-directional LSTM model to obtain the hidden representation. Next, the hidden representation of the last time step is passed through a linear layer to obtain the final representation of the input time series. The relevance score between the two inputs is computed using the Euclidean distances between the final renresentations.
- the GRU is anc idely used for modeling sequential data.
- a similar approach as for the LSTM model may be applied, wherein the LSTM cells in the RNN architecture are replaced with GRU cells.
- the TF is an alternative to the RNNs for sequence modeling.
- the transformer encoder proposed by Ashish Vaswani, Noam Shazeer, Niki Parmar, Jakob Uszkoreit, Llion Jones, Aidan N Gomez, Lukasz Kaiser, and lllia Polosukhin in the 2017 paper entitled “Attention is all you need. Advances in neural information processing systems” may be used.
- the RNNs used in the previous two methods i.e., LSTM and GRU
- transformer encoders resulting in a transformer-based Siamese network architecture instead of an RNN-based one.
- the RN1 D is a time series classification model inspired by the success of residual networks in computer vision.
- the RN1 D employs W convolutional layers instead of 2D convolutional layers. Extensive evaluations have demonstrated that the RN1 D design is among the strongest models for time series classification.
- the RN1 D model may also be optimized in a Siamese network (see e.g., example (a) of FIG. 4).
- Each of the ED and DTW methods require no training phase as there are no parameters to optimize for either method.
- the DTW method is the more effective method of the two for time series data, because the DTW method considers all alignments between the input time series.
- the computation of DTW distance can be abstracted into a two-stage process as shown in FIG. 7, which illustrates an algorithm for computing DTW distance.
- a fixed recursion function is applied to D (i.e..Dfi, j ] «— D[i, j ]+min(£)[i-1 , j ], D[i, j-1], D[i-1 , j-1]) for each element in D.
- the DTW method can be viewed as running a predefined function on the pair-wise distance matrix between the input time series.
- the remaining four baseline methods use the Siamese network distance learning framework (see e.g., example (a) in FIG. 4) and employ high capacity (e.g., high expressiveness, etc.) neural network models (i.e..
- LSTM, GRU, TF, and RN1 D to learn the hidden represe lese representations are used to compute the distance between two time series, and the models are learned using the optimization procedure described herein.
- the hidden representations of each time series in the database are extracted before deployment.
- the model may be applied only to the query time series to extract its hidden representation because the hidden representations of each time series in the database may already be extracted before query time. Then, the distances between the query and each item in the database may be computed using Euclidean distance.
- FIG. 8 is a building block and network diagram of a RN2D model, according to some non-limiting embodiments or aspects.
- a RN2D model takes advantage of the rich alignment information from the pair-wise distance matrix, similar to the DTW method. However, instead of using a fixed function, the RN2D model may use a high-capacity neural network as the function, making use of an expressive model like the four neural network baselines.
- RN2D The design of RN2D is motivated by the deep residual networks used in computer vision.
- non-limiting embodiments or aspects of a RN2D model may employ a bottleneck building block design as described by Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun in the 2016 paper entitled “Deep residual learning for image recognition” in Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition at pages 770-778, the entire disclosure of which is hereby incorporated by reference in its entirety.
- an input tensor Xin e ra in may first be projected to IR wX/1Xra n eck space using a 1 X 1 convolutional layer. Subsequently, the tensor is passed through a ReLU layer before transforming it further to R w/2X k /2x,1 neck space using a 3 x 3 convolutional layer with stride two. After another ReLU layer, the intermediate representation may be projected to > v/2 /1/2 ,1 0U t space , administratu, 1 x 1 convolutional layer, with the output of the 1 x 1 convolutional layer referred to as Xout.
- Xin with X ou t may not be directly added for the skip connection, and Xin may be processed with a 1 x 1 convolutional layer before adding it to Xout.
- the merged representation may be processed with an ReLU and exits the building block. The output will be in n ⁇ x ⁇ x ra out space given the input is ⁇ — —
- ci 1 1 u voi ciii i iCLvvui r ⁇ vi C7 o i y 11 of RN2D may also be similar to the network design as described by Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun in the 2016 paper entitled “Deep residual learning for image recognition” in Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition at pages 770-778, the entire disclosure of which is hereby incorporated by reference in its entirety.
- a pairwise distance matrix D e IR wxZ1 may be computed similar to the DTW method.
- the shape of D may be converted to w x h x 1 by adding an extra dimension.
- a 7 x 7 convolutional layer with step size of two may be used to project D to RW/2*/ 1 /2X64 S p ace .
- the intermediate representation may pass through eight building blocks with the 64 ⁇ 16 ⁇ 64 setting.
- a global average pooling layer may then be applied to reduce the spatial dimension, and the output of the global average pooling layer may include a size sixty-four vector.
- a linear layer may project the vector to a scalar number, which may include a relevance score between the two input time series.
- the plurality of learned templates includes thirty-two learned templates, wherein the plurality of pairwise distance matrices includes thirty-two pairwise distance matrices, wherein the tensor includes an input dimension of thirty-two, and wherein the feature vector for each known time series of the plurality of known time series includes a size sixty-four vector.
- the hidden representations of each time series in the database may not be extracted before deployment when using RN2D, unlike the methods using the Siamese network framework. If there are n time series in the database, RN2D may be run n times during query time to compute the distance between the query time series and each time series in the database. In contrast, the methods using the Siamese network framework only need to run the model once query time, making the RN2D method an order of magnitude slower. To address the efficiency issue of RN2D, non-limiting embodiments or aspects of the present disclosure provide a Residual Network 2D with RN2Dw/T. [0106] Referring now to FIG. 9, FIG. 9, FIG. 9, FIG. 9, FIG.
- FIG. 9 is a network diagram of an RN2Dw/T model according to some non-limiting embodiments or aspects.
- An RN2Dw/T model according to some non-limitino embodiments or asoects may address the efficiency issue of RN2D.
- An RN2Dw limiting embodiments or aspects may be designed to be as effective as the RN2D method while being an order of magnitude faster.
- an RN2Dw/T model may differ from an RN2D model in the following four ways: (1 ) the last linear layer of an RN2Dw/T model may output vectors instead of scalars as in an RN2D model; (2) an RN2Dw/T model may take a single time series as input while the RN2D model takes a pair of time series as input; (3) for an RN2Dw/T model, a plurality of pairwise distance matrices (e.g., 32 pairwise distance matrices, etc.) may be computed between the input time series and a plurality of templates (e.g., 32 templates, etc.), whereas only one pairwise distance matrix is computed between the two input time series for an RN2D model; and (4) an input dimension of the first 2D convolutional layer in an RN2Dw/T model may include a plurality of dimensions (e.g., 32 dimensions, etc
- the first two differences between the models may exist because the RN2Dw/T model aims to extract the feature vector of the input time series, while the RN2D model computes the relevant score between the two input time series.
- the third difference is also a reason why an RN2Dw/T model according to some non-limiting embodiments or aspects is much faster than the RN2D model.
- the pairwise distance matrix for each of the plurality of templates may be computed, resulting in a plurality of w x h matrices (e.g., 32 w x h matrices, etc.).
- the plurality of templates may be learned during the training phase and may include reference time series that help the model project the input time series to Euclidean using the 2D convolutional design.
- the plurality of w x h matrices may be stacked together to form a w xh x 32 tensor for the first 2D convolutional layer.
- the w xh x 32 tensor may be the output of the pairwise distance matrix computation step for the RN2Dw/T model.
- the fourth difference between the twn models mav be to accommodate the fact that the input tensor t( . le RN2Dw/T model may be w x h x 32, while the input tensor for the first convolutional layer in the RN2D model is w x h x 1 .
- the feature vector may be extracted using the RN2Dw/T model for each time series in the database before query time.
- the RN2Dw/T model enables a more efficient query mechanism, which is advantageous when designing a real-world CTSR system.
- a Bayesian personalized ranking loss as described by Steffen Rendle, Christoph Freudenthaler, Zeno Gantner, and Lars Schmidt-Thieme in the 2009 paper entitled “BPR: Bayesian personalized ranking from implicit feedback” in Proceedings of the Twenty-Fifth Conference on Uncertainty in Artificial Intelligence at pages 452-461 , the entire disclosure of which is hereby incorporated by reference in its entirety, may be used to train or optimize the RN2Dw/T model.
- a Bayesian personalized ranking loss is appropriate for a CTSR problem because it is a “Learning to Rank” problem.
- the AdamW optimizer as described by Ilya Loshchilov and Frank Hutter in the 2018 paper entitled “DecoupledWeight Decay Regularization” In International Conference on Learning .
- FIGS. 3A and 3B shown are flow diagrams for a method 300 for efficient content-based time series retrieval, according to some nonlimiting embodiments or aspects.
- the stens shown in FIGS. 3A and 3B are for example purposes only. It will be ap ferent, and/or a different order of steps may be used in some non-limiting embodiments or aspects.
- a step may be automatically performed in response to performance and/or completion of a prior step.
- method 300 includes obtaining, from at least one database, a plurality of known time series.
- transaction processing system 101 may obtain, from at least one database, a plurality of known time series.
- the plurality of known time series may be associated with or emerged from a plurality of different data domains.
- the plurality of known time series includes a plurality of known transaction time series associated with a plurality of merchants, and wherein each known time series is associated with metadata associated with a merchant associated with that known time series.
- a known time series may include a time series signature representative of a use of electronic payment processing network 100 by merchant system 104.
- a known (or unknown) time series may include transaction data associated with a plurality of transactions and/or a plurality of time points.
- a payment transaction may include transaction parameters and/or features associated with the payment transaction.
- Transacting parameters and/or features associated with a payment transaction may include transaction parameters of the transaction, features determined based thereon (e.g., using feature engineering, etc.), and/or the like, such as an account identifier (e.g., a PAN, etc.), a transaction amount, a transaction date and/or time, a type of products and/or services associated with the transaction, a conversion rate of currency, a type of currency, a merchant type, a merchant name, a merchant location, and/or the like.
- account identifier e.g., a PAN, etc.
- transaction amount e.g., a transaction date and/or time
- type of products and/or services associated with the transaction e.g., a conversion rate of currency, a type of currency, a merchant type, a merchant name, a merchant location, and/or the like.
- transaction parameters and/or ss of a transaction may include any data including any type of parameters associated with any type of transaction.
- method 300 includes, for each known time series of the plurality of known time series, computing a pairwise distance matrix between that known time series and each learned template of a plurality of learned templates to generate a plurality of pairwise distance matrices.
- transaction processing system 101 mav. for each known time series of the plurality of known time series, compi jtween that known time series and each learned template of a plurality of learned templates to generate a plurality of pairwise distance matrices.
- the pairwise distance matrix for each of the plurality of templates (e.g., 32 templates, etc.) may be computed, resulting in a plurality of w x h matrices (e.g., 32 w x h matrices, etc.).
- the plurality of templates (e.g., the 32 templates, etc.) may be learned during the training phase and may include reference time series that help the model project the input time series to Euclidean space using the 2D convolutional design.
- method 300 includes, for each known time series of the plurality of known time series, stacking the plurality of pairwise distance matrices together to generate a tensor.
- transaction processing system 101 may, for each known time series of the plurality of known time series, stack the plurality of pairwise distance matrices together to generate a tensor.
- transaction processing system 101 may stack the plurality of w x h matrices (e.g., the 32 w x h matrices, etc.) together to form a w x h x 32 tensor for the first 2D convolutional layer.
- the w x h x 32 tensor may be the output of the pairwise distance matrix computation step for the RN2Dw/T model.
- method 300 includes, for each known time series of the plurality of known time series, processing, with a residual network, the tensor.
- transaction processing system 101 may, for each known time series of the plurality of known time series, process, with a residual network, the tensor, wherein the residual network receives, as input, the tensor, and provides, as output, a feature vector for that known time series.
- the residual network may receive, as input, the tensor, and may provide, as output, a feature vector t known time series. In such an example, and referring again to FIG.
- the residual network may include a convolutional layer (e.g., a 7 x 7 convolutional layer with step size of two, etc.) used to project D to IR space (e.g., to project D to IRW/2X/ 1 /2X64 space, etc.) and a rectified linear unit (ReLU) layer, After the ReLU layer, an intermediate representation may pass through a plurality of building blocks (e.g., eight building blocks with the 64— >16— >64 settino.
- a convolutional layer e.g., a 7 x 7 convolutional layer with step size of two, etc.
- ReLU rectified linear unit
- a olobal average pooling layer may be applied to reduce jt of the global average pooling layer may be muti-dimensional (e.g., a size-sixty-four vector, etc.), and a last linear layer of the residual network may output vectors instead of scalars as in an RN2D model.
- method 300 includes providing and/or storing the feature vector for each known time series of the plurality of known time series.
- transaction processing system 101 may provide and/or store the feature vector for each known time series of the plurality of known time series.
- transaction processing system 101 may provide the feature vector for each known time series of the plurality of known time series.
- transaction processing system 101 may store, in the at least one database, the feature vector for each known time series of the plurality of known time series.
- method 300 includes obtaining an unknown time series.
- transaction processing system 101 may obtain an unknown time series.
- an unknown time series includes an unknown transaction time series associated with a merchant and/or including metadata associated with a merchant.
- an unknown time series may include a time series signature representative of a use of electronic payment processing network 100 by merchant system 104.
- an unknown (or known) time series may include transaction data associated with a plurality of transactions and/or a plurality of time points.
- a payment transaction may include transaction parameters and/or features associated with the payment transaction.
- Transacting parameters and/or features associated with a payment transaction may include may include transaction parameters of the transaction, features determined based thereon (e.g., using feature engineering, etc.), the like, such as an account identifier (e.g., a PAN, etc.), a transaction amount, a transaction date and/or time, a type of products and/or services associated with the transaction, a conversion rate of currency, a type of currency, a merchant type, a merchant name, a merchant location, and/or the like.
- account identifier e.g., a PAN, etc.
- transaction amount e.g., a transaction date and/or time
- type of products and/or services associated with the transaction e.g., a conversion rate of currency, a type of currency, a merchant type, a merchant name, a merchant location, and/or the like.
- transaction parameters and/or features of a transaction may include any data including any type of parameters associated with any type of transaction.
- [0122] As shown in Fl ) includes computing a pairwise distance matrix between the unknown time series and each learned template of the plurality of learned templates to generate a further plurality of pairwise distance matrices.
- transaction processing system 101 may compute a pairwise distance matrix between the unknown time series and each learned template of the plurality of learned templates to generate a further plurality of pairwise distance matrices.
- the further pairwise distance matrix for each of the plurality of templates may be computed, resulting in a further plurality of w x h matrices (e.g., 32 w x h matrices, etc.).
- method 300 includes stacking the further plurality of pairwise distance matrices together to generate a further tensor.
- transaction processing system 101 may stack the further plurality of pairwise distance matrices together to generate a further tensor.
- transaction processing system 101 may stack the further plurality of w x h matrices (e.g., the 32 w x h matrices, etc.) together to form a further w xh x 32 tensor for the first 2D convolutional layer.
- the further w xh x 32 tensor may be the output of the pairwise distance matrix computation step for the RN2Dw/T model.
- method 300 includes processing, with the residual network, the further tensor, wherein the residual network receives, as input, the further tensor, and provides, as output, a feature vector for the unknown time series.
- transaction processing system 101 may process, with the residual network, the further tensor.
- the residual network may receive, ut, the further tensor, and may provide, as output, a feature vector for an unknown time series. In such an example, and referring again to FIG.
- the residual network may include the convolutional layer (e.g., a 7 x 7 convolutional layer with step size of two, etc.) used to project D to IR space (e.g., to project D to ir v /2x/ 1 /2x64 S p a ce, etc.) and the ReLU layer.
- the convolutional layer e.g., a 7 x 7 convolutional layer with step size of two, etc.
- the ReLU layer e.g., a 7 x 7 convolutional layer with step size of two, etc.
- an intermediate representation may pass through the plurality of hiiildino hlnnks (P CI pinht building blocks with the 64 ⁇ 16 ⁇ 64 setting, etc.), > > . > ayer may be applied to reduce the spatial dimension.
- the output of the global average pooling layer may be muti-dimensional (e.g., a size-sixty-four vector, etc.), and the last linear layer of the residual network may output vectors instead of scalars as in an RN2D model.
- method 300 includes, for each known time series of the plurality of known time series stored in the database, determining, based on the stored feature vector for that known time series and the feature vector for the unknown time series, a distance between that known time series and the unknown time series.
- transaction processing system 101 may, for each known time series of the plurality of known time series stored in the database, determine, based on the stored feature vector for that known time series and the feature vector for the unknown time series, a distance between that known time series and the unknown time series.
- transaction processing system 101 may, for each known time series of the plurality of known time series stored in the database, determine, based on the stored feature vector for that known time series and the feature vector for the unknown time series, a Euclidean distance between that known time series and the unknown time series.
- method 300 includes identifying, based on the distance between each known time series and the unknown time series, at least one known time series determined to correspond to the unknown time series.
- transaction processing system 101 may identify, based on the distance between each known time series and the unknown time series, at least one known time series determined to correspond to the unknown time series.
- transaction processing system 101 may identify, based on the distance (e.g., the Euclidean distance, etc.) between each known time series and the unknown time series, a predetermined or desired number of known time series closest in distance to the unknown time series.
- transaction processing system 101 may f, based on the distance (e.g., the Euclidean distance, etc.) between each known time series and the unknown time series, one or more known time series within a threshold distance to the unknown time series.
- transaction processing system 101 may identify a type of the merchant (e.g., restaurant, grocery store, etc.) associated with the unknown time series based on the at least one known time series determined to correspond to the unknown time series, for example, if the merchant fails to provide accurate business tvne information.
- the CTSR benchmark dataset is created from the UCR Archive, which is a collection of 128 time series classification datasets from various domains such as motion, power demand, and traffic.
- the UCR Archive is widely used for benchmarking time series classification algorithms. To convert the UCR Archive to a CTSR benchmark dataset, the following steps are used.
- each time series is normalized to 512.
- the longer time series are shortened using the resample function from the SciPy library.
- the shorter time series are zeropadded to 512 time steps.
- a z-normalization is applied to all time series. Padded zeros are ignored during normalization.
- the z-normalization step is a standard procedure for preparing time series data.
- 10% of the time series is randomly selected as test queries, another 10% as validation queries, and used the remainino as trainino data.
- any query time series with fewer than two relevant time series are transferred to the training set. Following this data splitting procedure, 136,377 training time series, 17,005 test queries, and 17,005 validation queries are obtained.
- time series are sampled from the training set for each test/validation query. Given a query, all relevant time series are selected if the number of relevant time series for a query was less than 100. If the number of relevant time series exceeded 100, 100 relevant time series are randomly selected. The number of relevant time series in each sampled set is ensured to be less than or equal to 100 (i.e., 10% of 1 ,000). For the remaining time series, the remaining time series are randomly sampled from the irrelevant time series in the training set.
- FIG. 10 is a table of performance measurements for experiments.
- the reported query time is the average time taken to compute relevant scores between a query and the 136,377 time series in the training dataset.
- the average query time is computed by using 1 ,000 different time series from the test data as the query.
- the table of FIG. 10 allows for easy comparison of different methods based on different performance measures.
- the RN2D method significantly outperforms all other methods according to the t-test results.
- the former achieves higher performance in all three performance measurements, although the difference is not significant.
- each of the RN2Dw/T methods according to non-limiting embodiments or aspects and the RN2D method can be considered as the better performing methods for the CTSR dataset in terms of the three performance measurements.
- the eight tested methods can be grouped into two categories: slower methods (i.e., DTW and RN2D) with a query time of over 30 seconds, and faster methods (i.e., ED, LSTM, GRU, TF, RN1 D, and RN2Dw/T) where each query takes less than 100 milliseconds.
- slower methods i.e., DTW and RN2D
- faster methods i.e., ED, LSTM, GRU, TF, RN1 D, and RN2Dw/T
- the main difference between the faster and slower groups is that all fast methods compute the relevance score in Euclidean space, while the slower methods compute the scores in other spaces.
- the RN2Dw/T method according to non-limiting embodiments or aspects is the best method as it is effective in retrieving relevant time series and efficient in terms of query time.
- FIG. 1 1 is a critical difference (CD) diagram comparing performance of experiments.
- the CD diagram is constructed to compare the performance of the different methods and follows from many prior works in time series classification.
- the results show that almost all methods exhibit significant differences in performance with each other, except for the RN2Dw/T method according to non-limiting embodiments or aspects and the RN2D method, whose performances are not significantly different. This conclusion is consistent with the findings presented in the table of FIG. 10.
- FIG. 12 is graphs of results of oerformance measurements of experiments.
- the graphs present the r jrements using various values of k ranging from 5 to 15. This is done to ensure that the conclusions drawn from the table of FIG. 10 and the CD diagram of FIG. 1 1 are not limited to the particular choice of k.
- ED and DTWfrom are omitted from the graphs because their performance is much worse than the other methods.
- the RN2Dw/T method achieves the best performance across different values of k for all three performance measurements.
- the order of the remaining methods from best to worst is: RN2D, LSTM, GRU, RN1 D, and TF.
- FIG. 13 illustrates a top eight retrieved time series for experiments. Two queries with different levels of complexity are selected from the test dataset. The simpler query consists of a single cycle of a pattern, while the more complex query contains periodic signals. Periodic signals in complex queries typically require shiftinvariant distance measures to retrieve relevant items correctly.
- FIG. 13 demonstrates that the CTSR problem is challenging, as even irrelevant time series are visually similar to the query. The retrieved time series is shaded a lighter grey if it is relevant and black if it is irrelevant.
- the following observations may be made by examining the retrieved time series for different methods illustrated in FIG. 13.
- the ED method struggles with the more complex query because the ED method cannot align the query to relevant time series.
- the DTW method outperforms the ED method on the complex query, but the alignment freedom of the DTW method hurts the performance of the DTW method on the simple query.
- the four neural network baselines i.e., LSTM, GRU, TF, and RN1 D
- none of these baselines outperforms both the RN2Dw/T method according to non-limiting embodiments or aspects and the RN2D method, which reliably retrieve it items.
- FIG. 14 is a table of further performance measurements for experiments. For the table of FIG.
- FIG. 15 is a CD diagram comparing further performance of experiments. The CD diagram, which is similar to the CD diagram for the UCR archive experiment, confirms these findings and is consistent with the performance results presented in the table of FIG. 14.
- FIG. 16 is graphs of results of further performance measurements of experiments.
- the RN2Dw/T method according to non-limiting embodiments or aspects consistently outperforms the other methods across different values of k.
- FIG. 17 is a table of query times for experiments.
- the table of FIG. 17 shows the average query time measured for each method.
- the query time for each test query sured in milliseconds.
- Each of exact and approximate nearest neighbor search is used in the experiments.
- To perform approximated nearest neighbor search the nearest neighbor descent method is used for constructing k-neighborgraphs.
- the PyNNDescent library is used for implementing the method.
- the ouerv time is notably reduced by replacing exact nearest neighbor sec leighbor search method.
- non-limiting embodiments or aspects of the present disclosure may provide an effective and efficient CTSR model that outperforms alternative models, while still providing reasonable inference runtimes.
- non-limiting embodiments or aspects of the present disclosure may outperform existing methods for time series retrieval in terms of both effectiveness and efficiency.
- Non-limiting embodiments or aspects of the present disclosure may be used identify business types in electronic payment networks, and/or an efficiency of non-limiting embodiments or aspects of the present disclosure may be enhanced by incorporating low-bit representation techniques.
- a model may be implemented as a machine learning model.
- the learning may be supervised, unsupervised, reinforced, or a hybrid learning whereby multiple learning techniques are employed to generate the model.
- the training may be dynamic.
- the system may update the model using a set of events.
- the detectable properties from the events may be used to adjust the model.
- the model may be an equation, artificial neural network, recurrent neural network, convolutional neural network, decision tree, or other machine-readable artificial intelligence structure.
- the characteristics of the structure available for adjusting during training n jcted For example, if a neural network is the selected model, characteristics may include input elements, network layers, node density, node activation thresholds, weights between nodes, input or output value weights, or the like.
- the model is implemented as an equation (e.g., regression), the characteristics may include weights for the input parameters, thresholds, or limits for evaluating an output value, or criterion for selecting from a set of equations.
- retraining may be included to refine or update the model to reflect additional data or specific operational conditions.
- the retraining may be based on one or more signals detected by a device described herein or as part of a method described herein. Upon detection of the designated signals, the system may activate a training process to adjust the model as described.
Landscapes
- Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Mathematical Physics (AREA)
- General Physics & Mathematics (AREA)
- Data Mining & Analysis (AREA)
- Software Systems (AREA)
- Computing Systems (AREA)
- General Engineering & Computer Science (AREA)
- Artificial Intelligence (AREA)
- Evolutionary Computation (AREA)
- Biophysics (AREA)
- Molecular Biology (AREA)
- General Health & Medical Sciences (AREA)
- Computational Linguistics (AREA)
- Biomedical Technology (AREA)
- Life Sciences & Earth Sciences (AREA)
- Health & Medical Sciences (AREA)
- Mathematical Analysis (AREA)
- Computational Mathematics (AREA)
- Mathematical Optimization (AREA)
- Pure & Applied Mathematics (AREA)
- Algebra (AREA)
- Databases & Information Systems (AREA)
- Medical Informatics (AREA)
- Computer Vision & Pattern Recognition (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
Description
Claims
Priority Applications (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202480004422.8A CN120112902B (en) | 2023-06-01 | 2024-05-31 | Methods, systems, and computer program products for efficient content-based time series retrieval |
| US18/878,693 US20250173547A1 (en) | 2023-06-01 | 2024-05-31 | Method, System, and Computer Program Product for Efficient Content-Based Time Series Retrieval |
Applications Claiming Priority (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| US202363505570P | 2023-06-01 | 2023-06-01 | |
| US63/505,570 | 2023-06-01 |
Publications (3)
| Publication Number | Publication Date |
|---|---|
| WO2024249809A2 true WO2024249809A2 (en) | 2024-12-05 |
| WO2024249809A3 WO2024249809A3 (en) | 2025-01-30 |
| WO2024249809A9 WO2024249809A9 (en) | 2025-03-06 |
Family
ID=93658475
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| PCT/US2024/031934 Ceased WO2024249809A2 (en) | 2023-06-01 | 2024-05-31 | Method, system, and computer program product for efficient content-based time series retrieval |
Country Status (3)
| Country | Link |
|---|---|
| US (1) | US20250173547A1 (en) |
| CN (1) | CN120112902B (en) |
| WO (1) | WO2024249809A2 (en) |
Family Cites Families (14)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US10572836B2 (en) * | 2015-10-15 | 2020-02-25 | International Business Machines Corporation | Automatic time interval metadata determination for business intelligence and predictive analytics |
| US20170193372A1 (en) * | 2016-01-06 | 2017-07-06 | The Boeing Company | Health Management Using Distances for Segmented Time Series |
| CN109522902B (en) * | 2017-09-18 | 2023-07-07 | 微软技术许可有限责任公司 | Extraction of space-time feature representation |
| KR102081854B1 (en) * | 2019-08-01 | 2020-02-26 | 전자부품연구원 | Method and apparatus for sign language or gesture recognition using 3D EDM |
| CN112990264A (en) * | 2021-02-08 | 2021-06-18 | 浙江师范大学 | Multi-view clustering method based on consistent graph learning |
| EP4047525A1 (en) * | 2021-02-18 | 2022-08-24 | Visa International Service Association | Generating input data for a machine learning model |
| WO2023119486A1 (en) * | 2021-12-22 | 2023-06-29 | Jfeスチール株式会社 | Proper-vector registering device, equipment-abnormality monitoring system, and equipment abnormality monitoring method |
| CN114722950B (en) * | 2022-04-14 | 2023-11-07 | 武汉大学 | Multi-mode multi-variable time sequence automatic classification method and device |
| EP4266306B1 (en) * | 2022-04-22 | 2025-11-26 | SDL Limited | Processing a speech signal |
| US20230358848A1 (en) * | 2022-05-04 | 2023-11-09 | Georgia Tech Research Corporation | On-body sensor system and method for automatic interpretation of visual body signals |
| US20230367271A1 (en) * | 2022-05-13 | 2023-11-16 | Salesforce, Inc. | Systems and methods for time-series data processing in machine learning systems |
| CN115482481B (en) * | 2022-06-14 | 2026-02-10 | 中国科学院重庆绿色智能技术研究院 | Single-view 3D human skeleton key point detection method, device, equipment and medium |
| CN115146580B (en) * | 2022-07-14 | 2025-04-08 | 东南大学 | Integrated circuit path delay prediction method based on feature selection and deep learning |
| CN115834433B (en) * | 2023-02-17 | 2023-05-12 | 杭州沄涞科技有限公司 | Data processing method and system based on Internet of things technology |
-
2024
- 2024-05-31 US US18/878,693 patent/US20250173547A1/en active Pending
- 2024-05-31 WO PCT/US2024/031934 patent/WO2024249809A2/en not_active Ceased
- 2024-05-31 CN CN202480004422.8A patent/CN120112902B/en active Active
Also Published As
| Publication number | Publication date |
|---|---|
| US20250173547A1 (en) | 2025-05-29 |
| WO2024249809A9 (en) | 2025-03-06 |
| CN120112902B (en) | 2026-04-24 |
| WO2024249809A3 (en) | 2025-01-30 |
| CN120112902A (en) | 2025-06-06 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| Cen et al. | Controllable multi-interest framework for recommendation | |
| US11126660B1 (en) | High dimensional time series forecasting | |
| CN111428872B (en) | Systems, methods and program products for integrating knowledge from complex models into simple models | |
| Schelter | Amnesia-a selection of machine learning models that can forget user data very fast | |
| Sharabiani et al. | Efficient classification of long time series by 3-d dynamic time warping | |
| US11921821B2 (en) | System and method for labelling data for trigger identification | |
| US20230342426A1 (en) | System and method for training a machine learning model to label data for trigger identification | |
| US12417277B2 (en) | Training an artificial intelligence engine for real-time monitoring to eliminate false positives | |
| Vargas Muñoz et al. | A soft computing approach for learning to aggregate rankings | |
| Wu et al. | Application of global optimization methods for feature selection and machine learning | |
| US20250053922A1 (en) | Autonomous inventory system with intelligent cataloging method | |
| Yu et al. | Quantum graph learning: Frontiers and outlook | |
| US20240296187A1 (en) | Automated classification of datasets using semantic type indentification | |
| US20250356189A1 (en) | Accelerated model training from disparate and heterogeneous sources using a meta-database | |
| US11989777B2 (en) | Pairing and grouping user profiles accessed from pre-current systems | |
| Bhardwaj et al. | Human-in-the-loop rule discovery for micropost event detection | |
| CN119278456A (en) | Systems, methods, and computer program products for encoding feature interactions based on tabular data using machine learning | |
| Liu et al. | HyperDyn: Dynamic dimensional masking for efficient hyper-dimensional computing | |
| Luo et al. | Learning positional attention for sequential recommendation | |
| US20250173547A1 (en) | Method, System, and Computer Program Product for Efficient Content-Based Time Series Retrieval | |
| CN120693621A (en) | Systems, methods, and computer program products for efficient node embedding for use in predictive models | |
| Li et al. | Analysis and research of retail customer consumption behavior based on support vector machine | |
| Alguliyev et al. | Weighted clustering for anomaly detection in big data | |
| Yeh et al. | Multitask Learning for Time Series Data with 2D Convolution | |
| US11822564B1 (en) | Graphical user interface enabling interactive visualizations using a meta-database constructed from autonomously scanned disparate and heterogeneous sources |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| WWE | Wipo information: entry into national phase |
Ref document number: 18878693 Country of ref document: US |
|
| 121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 24816536 Country of ref document: EP Kind code of ref document: A2 |
|
| WWE | Wipo information: entry into national phase |
Ref document number: 202480004422.8 Country of ref document: CN |
|
| WWE | Wipo information: entry into national phase |
Ref document number: 11202501893S Country of ref document: SG |
|
| WWP | Wipo information: published in national office |
Ref document number: 11202501893S Country of ref document: SG |
|
| WWP | Wipo information: published in national office |
Ref document number: 18878693 Country of ref document: US |
|
| WWP | Wipo information: published in national office |
Ref document number: 202480004422.8 Country of ref document: CN |
|
| NENP | Non-entry into the national phase |
Ref country code: DE |






