Classification of ordinal time series with missing information

The framework addresses the challenge of classifying ordinal time series with missing labels by using an ordered quartet loss and correlation-based search, enhancing classification accuracy and reducing errors in ordinal time series classification.

JP7536901B2Active Publication Date: 2024-08-20NEC CORP
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
JP2022578604
Authority / Receiving Office
JP · JP
Patent Type
Patents
Current Assignee / Owner
Priority Date
2021-08-23
Filing Date
2021-08-24
Publication Date
2024-08-20
Estimated Expiration
2041-08-24

AI Technical Summary

Technical Problem

Existing methods for classifying ordinal time series with missing information are ineffective, as they fail to accurately classify new time series segments when labels are absent from the training data, leading to biased predictions.

Method used

A framework that includes a temporal encoder using an ordered quartet loss function to preserve label order in feature space, combined with a correlation-based search method to classify time series segments even when labels are missing, and a majority voting mechanism to refine predictions over time windows.

Benefits of technology

The framework effectively classifies ordinal time series with missing labels by maintaining label order in feature space and using correlation-based methods, improving classification accuracy and reducing false positives and negatives.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 0007536901000023
    Figure 0007536901000023
  • Figure 0007536901000024
    Figure 0007536901000024
  • Figure 0007536901000026
    Figure 0007536901000026
Patent Text Reader

Abstract

The method classifies missing labels. The method uses a neural network model trained on training data to calculate rank-based statistics of features of time series segments to select two candidate labels from the training data to which the segment most likely belongs. In response to the presence of two candidate labels in the training data, the method classifies the segment using a k-NN-based classification method applied to the training data. In response to the presence of only one candidate label in the training data, the method classifies the segment using hypothesis testing. In response to the absence of a candidate label in the training data, the method classifies the segment into a class with a higher value of the rank-based statistics from among multiple classes with different values ​​of the rank-based statistics. The method modifies predictions from the corresponding classifying steps using a majority vote over a time window.
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] This application claims priority to U.S. Patent Application No. 17 / 408,852, filed August 23, 2021, and U.S. Provisional Patent Application No. 63 / 075,859, filed September 9, 2020, the disclosures of both of which are incorporated herein in their entireties.

[0002] The present invention relates to information processing, and more particularly to classification of ordered time series with missing information. [Background technology]

[0003] An ordered time series is data collected over time from one or more sources, whose labels (also called classes) form an ordered relationship. For example, the progression of a power plant's operating states, such as shutdown, bootstrap, partial load, full load, etc., form an ordered set of labels. Similarly, the labels assigned to air quality index measurements over time (e.g., good, calm, unstable, harmful, very harmful, hazardous) are ordered. Unlike regression problems, which aim to infer a target value from a continuous space given known historical information, ordered classification works in a discrete and non-uniform label space (i.e., there is a limited set of labels and a non-linear function that defines the distance between them). Given a historical set of time series associated with labels, as well as a set of possible labels with an ordered relationship between them, we need to accurately classify a new time series segment into one of the existing labels, regardless of whether the target label appeared in the historical data or not. Summary of the Invention

[0004] According to an aspect of the present invention, a computer-implemented method for classification of time series of missing labels is provided. The method includes extracting features of the input time series segment to be classified in the inference stage. The method further includes calculating, by a hardware processor, rank-based statistics of the features to select two candidate labels from the training data to which the input time series segment most likely belongs, using a neural network model trained on the training data. The method also includes classifying the input time series segment using a k-NN based classification method applied to the training data in response to the presence of the two candidate labels in the training data. The method further includes classifying the input time series segment by hypothesis testing in response to the presence of only one of the two candidate labels in the training data. The method further includes classifying the input time series segment from a plurality of classes having different values ​​of the rank-based statistic into a class having a higher value of the rank-based statistic in response to the absence of either of the two candidate labels in the training data. The method also includes modifying the prediction by the corresponding one of the classifying steps by majority voting using a time window.

[0005] According to another aspect of the present invention, a computer program product for classification of time series of missing labels is provided. The computer program product includes a non-transitory computer-readable storage medium having program instructions implemented thereon. The program instructions are executable by the computer to cause the computer to execute the method. The method includes a step of extracting, by a hardware processor, features of the input time series segment to be classified during the inference stage. Further, the method includes a step of calculating, by the hardware processor, rank-based statistics of the features to select, by means of a neural network model trained on the training data, two candidate labels from the training data to which the input time series segment is most likely to belong. The method also includes a step of classifying, by the hardware processor, the input time series segment using a k-NN based classification method applied to the training data in response to the presence of the two candidate labels in the training data. Further, the method includes a step of classifying the input time series segment by hypothesis testing in response to the presence of only one of the two candidate labels in the training data. Further, the method includes a step of classifying the input time series segment from a plurality of classes having different values ​​of the rank-based statistics into a class having a higher value of the rank-based statistics in response to the absence of any of the two candidate labels in the training data. The method also includes modifying the prediction from the corresponding one of the classifying steps by majority voting using a time window.

[0006] According to yet another aspect of the present invention, a computer processing system for classification of time series of missing labels is provided. The computer processing system includes a memory device for storing program code. The computer processing system further includes a hardware processor operatively connected to the memory device for storing program code for extracting features of the input time series segment to be classified during the inference stage. The hardware processor further executes the program code to calculate rank-based statistics of the features to select two candidate labels from the training data to which the input time series segment is most likely to belong using a neural network model trained on the training data. The hardware processor also executes the program code to classify the input time series segment using a k-NN based classification method applied to the training data in response to the presence of the two candidate labels in the training data. The hardware processor further executes the program code to classify the input time series segment by hypothesis testing in response to the presence of only one of the two candidate labels in the training data. The hardware processor further executes the program code to classify the input time series segment from a plurality of classes having different values ​​of the rank-based statistics into a class having a higher value of the rank-based statistics in response to the absence of any of the two candidate labels in the training data. The hardware processor also executes program code to modify the prediction according to a corresponding one of the classifying steps by majority voting using a time window.

[0007] These and other features and advantages will become apparent from the following detailed description of exemplary embodiments, which is to be read in conjunction with the accompanying drawings.

[0008] In the present disclosure, preferred embodiments are described in detail with reference to the following drawings, as described below. [Brief description of the drawings]

[0009] [Figure 1]FIG. 1 is a block diagram illustrating an exemplary computing device, according to one embodiment of the present invention.

[0010] [Diagram 2] FIG. 2 is a block diagram illustrating an exemplary regular time series classification architecture, according to one embodiment of the present invention.

[0011] [Diagram 3] FIG. 3 is a flow diagram illustrating an exemplary method for classification of ordered time series with missing information, according to one embodiment of the present invention.

[0012] [Figure 4] FIG. 4 is a block diagram illustrating an exemplary environment, according to one embodiment of the present invention.

[0013] [Diagram 5] FIG. 5 is a block diagram illustrating an exemplary distance calculation of samples, according to one embodiment of the present invention. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0014] Embodiments of the present invention are directed to classification of ordered time series with missing information.

[0015] Embodiments of the present invention propose a framework for classification of ordered time series. The framework relies on a temporal encoder that converts raw time series data segments into low-dimensional representations (also called embeddings or features). In addition to the temporal encoder, we propose two other inventions: an ordered optimization module and an ordered search-based classification module.

[0016] Ordinal Optimization Module. In an embodiment of the present invention, we propose to learn time series representations using a novel ordinal quadruplet loss optimization. At the same time, the loss computes a representation of the input time series that discriminates between different labels while preserving the order between the labels. This means that for any label A, its distance to other labels (known a priori) is correlated with the distance between the representation of A's time series segment and the representation of the time series segment of the other labels.

[0017] A sequential search-based classification module that allows for imputation of missing training labels. In general, knn-based search is used for classification of metric learning problems. A time series segment is classified according to the label of the majority of its k nearest neighbors according to their embedding (or representation) distance to them. However, if a label is missing from the training data, the method breaks down as samples belonging to the missing class will be misclassified as one of the non-missing classes. To avoid this, we propose a correlation-based search, a novel search mechanism that computes a search vector for all labels (missing and non-missing) and for each test sample to be classified. The sample is assigned the label to which the search vector is most similar.

[0018] Thus, the two inventive features contribute to solving the problem as follows: (1) A formulation of the loss function for learning the best features for time-series data. The loss relies on existing triplet loss and log-ratio loss formulations, but provides a novel solution for recovering order from the label space and using it to constrain the learned feature space. (2) How to classify time series from labels (or classes) that were not used to train the encoder that generates the features.

[0019] 1 is a block diagram illustrating an exemplary computing device 100, in accordance with one embodiment of the present invention, configured to perform classification of ordered time series with missing information.

[0020] Computing device 100 may be embodied as any type of calculator or computing device capable of performing the functions described herein, including, but not limited to, a computer, a server, a rack-based server, a blade server, a workstation, a desktop computer, a laptop computer, a notebook computer, a tablet computer, a mobile computing device, a wearable computing device, a network appliance, a web appliance, a distributed computing system, a processor-based system, and / or a consumer electronics device. Additionally or alternatively, computing device 100 may be embodied as one or more computing sleds, memory sleds, or other racks, sleds, computing chassis, or other components of a physically separate computing device. As shown in FIG. 1, computing device 100 illustratively includes a processor 110, an input / output subsystem 120, a memory 130, a data storage device 140, and a communication subsystem 150, and / or other components and devices typically found in a server or similar computing device. Of course, computing device 100 may include other or additional components, such as those typically found in a server computer (e.g., various input / output devices), in other embodiments. Further, in some embodiments, one or more of the illustrated components may be incorporated in or form part of another component. For example, memory 130, or portions thereof, may be incorporated in processor 110 in some embodiments.

[0021] Processor 110 may be embodied as any type of processor capable of performing the functions described herein, including a single processor, multiple processors, a central processing unit (CPU), a graphics processing unit (GPU), a single or multi-core processor, a digital signal processor, a microcontroller, or other processor or processing / control circuitry.

[0022] Memory 130 may be embodied as any type of volatile or non-volatile memory or data storage device capable of performing the functions described herein. During operation, memory 130 may store various data and software used during operation of computing device 100, such as an operating system, applications, programs, libraries, and drivers. Memory 130 is communicatively coupled to processor 110 via I / O subsystem 120 and may be embodied as circuits and / or components that facilitate input / output operations with processor 110, memory 130, and other components of computing device 100. For example, I / O subsystem 120 may be embodied as or otherwise include a memory controller hub, an input / output control hub, a platform controller hub, integrated control circuits, firmware devices, communication links (e.g., point-to-point links, bus links, wires, cables, light guides, printed circuit board traces, etc.), and / or other components and subsystems that facilitate input / output operations. In some embodiments, I / O subsystem 120 may form part of a system on a chip (SOC) and be integrated with processor 110, memory 130, and other components of computing device 100 on a single integrated circuit chip.

[0023] Data storage 140 may be embodied as any type of device configured for short-term or long-term storage of data, such as, for example, memory devices and circuits, memory cards, hard disk drives, solid-state drives, or other data storage devices. Data storage 140 may store program code for multi-user beam alignment and class optimization of exhaustive search algorithms in a multi-path environment. Communications subsystem 150 of computing device 100 may be embodied as any network interface controller or other communications circuitry, device, or collection thereof that enables communications between computing device 100 and other remote devices over a network. Communications subsystem 150 may be configured to perform such communications using any one or more communications technologies (e.g., wired or wireless communications) and associated protocols (e.g., Ethernet, InfiniBand, Bluetooth, Wi-Fi, WiMAX, etc.).

[0024] As shown, computing device 100 may include one or more peripheral devices 160. Peripheral devices 160 may include any number of additional input / output devices, interface devices, and / or other peripheral devices. In some embodiments, peripheral devices 160 may include, for example, a display, a touch screen, graphics circuitry, a keyboard, a mouse, a speaker system, a microphone, a network interface, and / or other input / output devices, interface devices, and / or peripheral devices.

[0025] Of course, computing device 100 may include other elements (not shown) or omit certain elements, as would be readily apparent to one of ordinary skill in the art. For example, computing device 100 may include a variety of other input and / or output devices, depending on the particular implementation, as would be readily apparent to one of ordinary skill in the art. For example, a variety of wireless and / or wired input and / or output devices may be used. Furthermore, additional processors, controllers, memory, etc. may be used in various configurations, as would be readily apparent to one of ordinary skill in the art. These and other variations of processing system 100 will be readily apparent to one of ordinary skill in the art from the teachings of the present principles provided herein.

[0026] As used herein, the term "hardware processor subsystem" or "hardware processor" may refer to a processor, memory, software, or combination thereof that cooperate to perform one or more specific tasks. In useful embodiments, the hardware processor subsystem may include one or more data processing elements (e.g., logic circuits, processing circuits, instruction execution units, etc.). The one or more data processing elements may include a central processing unit, a graphics processing unit, and / or individual processors or computing element-based controllers (e.g., logic gates, etc.). The hardware processor subsystem may include one or more on-board memories (e.g., caches, dedicated memory arrays, read-only memories, etc.). In any embodiment, the hardware processor subsystem may include one or more memories that may be on-board or off-board, or may be dedicated for use with the hardware processor subsystem (e.g., ROM, RAM, Basic Input / Output System (BIOS), etc.).

[0027] In some embodiments, the hardware processor subsystem may include and execute one or more software elements, which may include an operating system and / or one or more applications and / or specific code for achieving a particular result.

[0028] In other embodiments, the hardware processor subsystem may include dedicated circuitry to perform one or more electronic processing functions to achieve a specified result. Such circuitry may include one or more application specific integrated circuits (ASICs), FPGAs, and / or PLAs.

[0029] These and other variations of the hardware processor subsystem are also contemplated by embodiments of the present invention.

[0030] FIG. 2 is a block diagram illustrating an exemplary normal time series classification architecture 200, according to one embodiment of the present invention.

[0031] The input time series data is split into (possibly overlapping) segments. A segment represents all readings from all sensors in a short consecutive time period. A time encoder 220 computes an embedding for each time series segment 210 using a deep neural network. It optimizes the network weights by minimizing a new ordered quartet loss function 280. When classifying a new segment, the segment is passed through the encoder 220 to compute features 230, which are then compared to features of past segments used in training. A missing class detection module 240 computes the class (or label) 250 of the new segment even if the true class 290 of the segment is missing from the training data. Finally, if the labels are known not to change frequently, a time series correction 260 can be performed to correct the predicted class 270 over recent consecutive windows of test data.

[0032] This framework can be incorporated into any complex system that generates time-series data, regardless of the number of sensors and frequency of data generation.

[0033] The time encoder 220, according to one embodiment of the present invention, will now be further described.

[0034] A temporal encoder based on LSTM is used to compute features for time series segments. The input of the encoder is a slice of the time series (i.e., all values ​​recorded during a finite continuous period from all sensors in the system). The encoder computes a vector for each input time series segment in a low-dimensional Euclidean space (also called a feature, embedding or representation) by minimizing an ordered quartet loss function.

[0035] We now describe ordered quartet loss 280, according to an embodiment of the present invention.

[0036] To build a learning framework that is robust to missing labels from the training data, the following aspects must be considered during optimization: (a) (Similarity) Similar (i.e., having the same label) time series segments should have features that are close to each other. (b) (Discrimination) Time series segments that are not similar (i.e., have different labels) should have features that are separate from each other. (c) (Order) Segments of different classes should have features whose order in feature space matches the order of the segment labels.

[0037] In the following, we propose an ordered quartet loss that satisfies all three of the above properties.

[0038] Given four time series segments a, s, i and j, where a and s are parts of the same class (or same label) and i and j are parts of different classes, different from each other and different from the class of a, the ordered quartet loss then consists of three different losses.

number

number

[0039] LT is the same class (f a and f s ) to minimize the distance between the features of the segments of different classes (f a and f i or f j ) represents the triplet loss that maximizes the distance between the features of the segments. The two triplet losses maintain the similarity and discriminative properties mentioned above.

[0040] LR stands for log-ratio loss, which makes the ratio of feature distances of any three segments of different classes similar to the ratio of label distances of the same segment. In the formulation of log-ratio loss, D y represents the label distance function defined by the user, and y i is used to denote the true label of segment i.

[0041] Missing class detection according to one embodiment of the present invention will now be described.

[0042] A correlation-based search is proposed to classify time series for which no label is present in the training data (missing labels). The method of the invention may include the following steps. (a) Label distance calculation. For each label (missing and non-missing), From the label distance to each non-missing label Compute the label search vector (this step can be done once before training since the label distances are known in advance and do not change). (b) For each input time series segment to be classified, From the Euclidean distance of each non-missing label to the feature center Compute the test search vector: The feature centroid of a label is defined as the average of the features of all time series segments with that label. (c) Compare the test search vector with all label search vectors (using existing rank correlation methods) and select the two labels that are most correlated with the search vector. The labels associated with these vectors are the candidate labels. There are three possibilities: (i) Both candidate labels are present in the training data. In this case, a knn-based classification is performed in which the k closest training samples are computed from the test data and the class of the majority of them is considered as the class of the test data. (ii) Both candidate labels are missing from the training data: in this case, the label whose search vector is most correlated with the test search vector is selected. (iii) One label is present in the training data and the other label is missing from the training data: in this case, hypothesis testing, described below, is performed. (d) Hypothesis testing is performed when one of the two candidate labels is missing. A statistical method is used to test whether the test sample is an outlier of the non-missing class. If it is not an outlier, it is classified as the non-missing class. If it is an outlier, it is classified as the missing class. To test whether the test sample is an outlier of the non-missing class, the distribution of distances from all training data of the non-missing class to the center of the class (defined above) is calculated, and a quantile threshold is defined for the class. If the distance from the test data to the center is greater than the quantile threshold, the test data is an outlier.

[0043] Next, modification of a time series according to one embodiment of the present invention will be described.

[0044] If we make predictions about how time series labels will change, we can further improve classification accuracy. Specifically, if we assume that the labels do not change over a continuous window of time, we can use all predictions for all data in the window to calculate a unique prediction. We then go back to all predictions in the window and revise them according to the revised prediction. A simple way to calculate a unique prediction at the end of the window is majority voting, which selects the most predicted class over the entire window.

[0045] FIG. 3 is a flow diagram illustrating an exemplary method 300 for ordinal time series classification with missing information, according to one embodiment of the present invention.

[0046] In block 305, the time series segments are encoded by a temporal encoder.

[0047] In block 310, a neural network model is trained based on the ordered quartet loss.

[0048] In block 315, features of the input time series segment are extracted.

[0049] In block 320, a rank-based statistic is calculated to select the two candidates to which the segment is most likely to belong.

[0050] In block 325, determine if both candidates are not missing classes (labels). If not, proceed to block 350. If yes, proceed to block 330.

[0051] In block 330, determine if both candidates are missing classes (labels). If so, proceed to block 345. If not, proceed to block 335.

[0052] In block 335, the segments are classified using hypothesis testing.

[0053] In block 340, the prediction is revised using majority voting within the time window.

[0054] In block 345, the segment is classified into the class with the higher rank-based statistic.

[0055] At block 350, the segments are classified using the k-NN method.

[0056] FIG. 4 is a block diagram illustrating an exemplary environment 400, according to one embodiment of the present invention.

[0057] The environment 400 incorporates anomaly detection 420 and includes a number of workplace machines (hereafter "machines") 410 on a work floor. The machines 410 can be processor-based machines with safety features, such as guarded saws. The machines 410 can be robots for making or assembling various products. Time series data from the machines 410 is evaluated in accordance with the present invention to label the data, including a label indicating impending failure, if applicable. In such a case, in one embodiment, a replacement machine can be deployed in place of the impending failure machine to avoid factory downtime. In another embodiment, the workload of the impending failure machine can be reduced to avoid the failure, and the workload can be balanced and distributed to other machines with additional workload capacity. Control of the failure avoidance measures can be performed in the anomaly detection block 420. The anomaly detection block 420 stores various failure scenarios for comparison with current events (through the time series data) and failure recovery and / or avoidance routines for the failure scenarios. The anomaly detection block 420 can communicate with each machine 410 via wired or wireless communication, respectively. These and other techniques may be employed to avoid factory downtime.

[0058] Various aspects of the invention will now be further described according to embodiments of the invention.

[0059] We propose a framework for classification of ordinal time series that is robust to missing labels from the training data. First, we introduce a novel ordinal quartet loss to preserve the ordering of distances in the same feature space as the label space. Second, we propose a correlation-based search method to classify time series whose labels are not present in the training data (missing labels).

[0060] We now describe the problem statement and goal according to an embodiment of the present invention.

[0061] Consider the problem of classification of multivariate time series with three or more classes. A common approach to classification is to learn a low-dimensional representation of the time series segments by applying a temporal encoder that optimizes a metric loss function (e.g., triplet loss). The encoder projects the time series into a feature (or embedding) space, where similar data are clustered together and dissimilar segments are far apart. To classify new data, we extract its representation and predict its class using k-Nearest Neighbors (k-NN) from the embeddings of the training data.

[0062] Unlike traditional time series classification problems, two additional assumptions are imposed: (Ordering) there is a perfect ordering relationship between classes, and (Missing information) some classes may not have samples in the training data. To understand the challenge, we focus on three classes: Δ, O, and +. Suppose that during training, data corresponding to O is not available, and we learn to identify features based on the two classes Δ and +. This leads to biased predictions, such as only being able to predict Δ or +, even if the true label of the test sample is O.

[0063] When the complete set of labels and their order are known, a simple solution is to place the center of the missing class in the feature space f(·) at the midpoint between the centers of the neighboring classes.

number

number

number

[0064] Therefore, we seek to learn a feature space that preserves information about label order by making the distance between features proportional to the distance between their associated labels. Such regularization implicitly bounds the distance in feature space from a missing class to its neighbors, providing a search range for performing post-training inference.

[0065] The method of the present invention will now be further described according to an embodiment of the present invention.

[0066] Here, we propose an innovative framework for time series order classification that enables high-accuracy imputation of missing labels. The framework includes two parts (Figure 2). First, we propose a novel loss to preserve the order of distances between classes in a feature space similar to the label space. Second, we provide an order-search-based classification module to predict missing classes.

[0067] Here we describe an ordered quartet loss that preserves the order of distances.

[0068] To build an encoder that is robust to missing information, we need to learn features that: (1) have small mutual distances, i.e., samples from the same class have nearby features; (2) have large mutual distances, i.e., samples from different classes have features that are far from each other; and (3) maintain order relationships, i.e., the distances between features of samples from different classes are preserved in the same order as the distances in the label space.

[0069] While the first two requirements can be achieved using triplet loss, the third requirement can be achieved by applying log-ratio loss. However, compared to traditional triplet loss, log-ratio loss does not consider positive samples with the same label as the anchor, which inhibits the model from reducing the distance between classes in feature space. To address this issue, we propose an additional term in the loss based on triplet loss and present the ordered quartet loss.

[0070]

number

number

number

number

number

[0071] The order relationship is

number

[0072] Next, a classification module based on order search according to one embodiment of the present invention will be described.

[0073] Selection of the most similar class. When dealing with missing information, it is not enough to make a decision based only on the smallest distance. Since our loss preserves the ranking of the distances between classes in the feature space, we propose to use rank-based statistics such as Spearman's p, Kendall's T, Goodman and Kruskal's Y and Somers' D to find the most similar class to the test sample. Since the decision is based on the domain of classes, there is a chance that the test sample will be classified as one of the missing classes. However, when a sample corresponds to a missing class, selecting the class that is most correlated with the domain as the prediction does not always work as intended. Consider Figure 5 (right). For a particular D y For , the missing class O has the same order.

number

number

[0074] Note S: Domain of all classes, N: the set of non-missing classes represented in the training data, D y (i,j): A function that defines the ordering relationship between classes i and j. x tr are samples from the training set,

number

[0075] distance matrix

number

[0076] Sample x te To test the

number

[0077]

number

number

[0078]

number

[0079] If neither of the selected classes is in N, i.e., both are missing classes, then select the class with the highest correlation.

[0080] FIG. 5 is a block diagram with test samples on the left side 501 and training data and classes of domain classes on the right side 502.

[0081] With reference to Fig. 5, the left side 501 shows that for a test sample x, for every class presented in the training data, the distance to the corresponding cluster center in the feature space is calculated. Further in Fig. 5, the right side 502 shows that for every class in the domain (row), the distance Dy(.,.) to every class presented in the training data (not in the feature space) is calculated. The numbers in the heatmap 503 correspond to the rank of the distance, not the distance itself. The rank-based similarity statistics between the left side 501 and the right side 502 are used to define classes for the test sample.

[0082] s 1 ∈N or s 2 If ∈N, i.e., one class is the missing class, we propose to use the hypothesis test described below.

[0083] Hypothesis testing. Test sample x te Consider the case where the two most similar classes (based on the results in the previous section) are y n (not missing from the training data class) and y m (missing class), where the missing label y m Given that there is no explicit information about the cluster centers of x in the feature space f(.), we can determine which classes x teWe propose to view the problem as outlier detection.

number

number

[0084] Next, a reduction in the number of false positives and false negatives by taking into account the nature of time series data according to an embodiment of the present invention will be described.

[0085] Due to the nature of hypothesis testing, the probability of a type 1 error is bounded by α. This means that, on average, we will specify α% of the wrong classes and yield α% of false positives. However, as is common in time series problems, we can assume that there are windows during which the values ​​of the time series do not change. For example, if a sensor is monitoring a person's behavior, we can assume that the person maintains the same state (e.g., sitting or running) for a certain period of time. Using this information, we can determine the probability of a non-missing class y assigned to a missing one. n Reduce the number of false positives by recovering the missing class y assigned to the non-missing mIt is possible to reduce false negatives by recovering the predicted values. One way to do that is to use majority rule: given a set of predicted values, we assign to all labels in a window the one that is most common in this window. The drawback of such an approach is the extra parameter, the window size, which is usually assigned from prior knowledge about the system or can be inferred using offline algorithms for change point detection (). However, experiments have shown that even small windows can significantly improve the results.

[0086] The present invention may be a system, method and / or computer program product at any level of technical detail integration. A computer program product may include a computer readable storage medium (or media) having computer readable program instructions for causing a processor to perform aspects of the present invention.

[0087] A computer readable storage medium may be a tangible device capable of holding and storing instructions for use by an instruction execution device. A computer readable storage medium may be, for example, but not limited to, an electronic storage device, a magnetic storage device, an optical storage device, an electromagnetic storage device, a semiconductor storage device, or any suitable combination of the above. A non-exhaustive list of more specific examples of computer readable storage media includes portable computer diskettes, hard disks, random access memories (RAMs), read-only memories (ROMs), erasable programmable read-only memories (EPROMs or flash memories), static random access memories (SRAMs), portable compact disk read-only memories (CD-ROMs), digital versatile disks (DVDs), memory sticks, floppy disks, mechanically encoded devices such as punch cards, and any suitable combination of the above. A computer readable storage medium as used herein should not be interpreted as being a transitory signal in itself, such as an electric wave or other freely propagating electromagnetic wave, an electromagnetic wave propagating through a wave guide or other transmission medium (e.g., light pulses passing through a fiber optic cable), or an electric signal transmitted through a wire.

[0088] The computer readable program instructions described herein can be downloaded to each computing / processing device from a computer readable storage medium or to an external computer or storage device over a network, such as the Internet, a local area network, a wide area network, and / or a wireless network. The network can include wire transmission cables, optical transmission fibers, wireless transmissions, routers, firewalls, switches, gateway computers, and / or edge servers. A network adapter card or network interface in each computing / processing device receives the computer readable program instructions from the network and forwards the computer readable program instructions for recording on a computer readable storage medium in the respective computing / processing device.

[0089] The computer readable program instructions for carrying out the operations of the present invention may be either source code or object code written in any combination of one or more programming languages, including assembler instructions, instruction-set-architecture (ISA) instructions, machine instructions, machine-dependent instructions, microcode, firmware instructions, state-setting data, or conventional procedural programming languages, such as object-oriented programming languages ​​such as Smalltalk, C++, and the like, and the "C" programming language or similar programming languages. The program code may be entirely executed on the user's computer, partially executed on the user's computer as a stand-alone software package, partially executed on the user's computer and partially executed on a remote computer, or entirely executed on a remote computer or server. In the latter scenario, the remote computer may be connected to the user's computer via any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet Service Provider). In some embodiments, electronic circuitry including, for example, a programmable logic circuit, a field programmable gate array (FPGA), or a programmable logic array (PLA), can execute computer readable program instructions using state information of the computer readable program instructions to personalize the electronic circuitry to perform aspects of the invention.

[0090] Aspects of the present invention are described herein with reference to flowcharts and / or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the invention. It will be understood that each block of the flowcharts and / or block diagrams, and combinations of blocks in the flowcharts and / or block diagrams, can be implemented by computer readable program instructions.

[0091] These computer readable program instructions may be provided to a processor of a general purpose computer, special purpose computer, or other programmable data processing apparatus making machine, such that the instructions, executed by the processor of the computer or other programmable data processing apparatus, generate means for performing the functions / acts specified in one or more blocks of the flowcharts and / or block diagrams. These computer readable program instructions may be stored on a computer readable storage medium capable of directing a computer, programmable data processing apparatus, and / or other apparatus to function in a particular manner, such that a computer readable storage medium having instructions stored therein comprises a product containing instructions that implement aspects of the functions / acts specified in one or more blocks of the flowcharts and / or block diagrams.

[0092] The computer readable program instructions can be loaded into a computer, other programmable data processing device or other device to generate a computer-implemented process that causes the computer, other programmable device or other device to perform a series of operational steps such that the instructions, executed on the computer, other programmable device or other device, implements the functions / acts specified in one or more blocks of the flowcharts and / or block diagrams.

[0093] The flowcharts and block diagrams in the figures illustrate the architecture, functionality, and operation that can be implemented in systems, methods, and computer program products according to various embodiments of the present invention. In this regard, each block in the flowcharts or block diagrams represents a module, segment, or part of instructions, which comprises one or more executable instructions for implementing a specified logical function. In some alternative implementations, the functions described in the blocks may occur out of the order described in the figures. For example, two blocks shown in succession may in fact be executed substantially simultaneously, or may sometimes be executed in the reverse order, depending on the functionality involved in the blocks. It should also be noted that each block of the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, may be realized by a special-purpose hardware-based system that executes the specified functions or operations, or executes a combination of special-purpose hardware and computer instructions.

[0094] Reference herein to "one embodiment" or "one embodiment," as well as other variations, of the invention means that a particular feature, structure, characteristic, etc. described in connection with an embodiment is included in at least one embodiment of the invention. Thus, appearances of the phrases "in one embodiment" or "in an embodiment," as well as any other variations appearing in various places throughout this specification, are not necessarily all referring to the same embodiment.

[0095] For example, the use of any of "A / B," "A and / or B," and "at least one of A and B" should be understood to be intended to include the selection of only the first listed option (A), the selection of only the second listed option (B), or the selection of both options (A and B). By way of further example, in the case of "A, B, and / or C" and "at least one of A, B, and C," such language is intended to include the selection of only the first listed option (A), the selection of only the second listed option (B), the selection of only the third listed option (C), the selection of only the first and second listed options (A and B), the selection of only the first and third listed options (A and C), the selection of only the second and third listed options (B and C), or the selection of all three options (A, B, and C). The above examples may be expanded depending on the number of items listed, as would be readily apparent to one of ordinary skill in the art.

[0096] The foregoing should be understood in all respects as illustrative and exemplary, and not restrictive, and the scope of the invention disclosed herein should be determined not from the detailed description, but from the claims which are to be interpreted in accordance with the broadest possible interpretation permitted by the Patent Law. It should be understood that the embodiments shown and described herein are merely illustrative of the principles of the invention, and that various modifications may be made by those skilled in the art without departing from the scope and spirit of the invention. Various other feature combinations may be implemented by those skilled in the art without departing from the scope and spirit of the invention. Although aspects of the invention have been described above with the fine detail and particularity required by the Patent Law, the scope of the claims which are sought to be protected by Letters Patent are set forth in the appended claims.

Claims

1. 1. A computer-implemented method for classification of a time series of missing labels, comprising: Extracting features of the input time series segments to be classified during the inference phase (315); Calculating (320) rank-based statistics of the features using a neural network model trained on training data by a hardware processor to select two candidate labels to which the input time series segment is most likely to belong; classifying the input time series segment using a k-NN based classification method applied to the training data in response to the presence of the two candidate labels in the training data (350); classifying the input time series segment by hypothesis testing in response to the presence of only one of the two candidate labels in the training data (335); classifying the input time series segment from a plurality of classes having different values ​​of the rank-based statistic into a class having a higher value of the rank-based statistic corresponding to the absence of either of the two candidate labels in the training data (345); modifying the prediction according to the corresponding step of the classifying step by majority voting using a time window (340); 13. A computer-implemented method comprising:

2. 10. The computer-implemented method of claim 1, further comprising training a neural network model with the training data based on ordered quartet losses.

3. The computer-implemented method of claim 2 , wherein the ordered quartet loss has a similarity component over a feature space, a discrimination component, and a feature order component.

4. 3. The computer-implemented method of claim 2, wherein the ordered quartet losses comprise triplet losses and log ratio losses.

5. 2. The computer-implemented method of claim 1, further comprising: for each of the two candidate labels, computing a label lookup vector from each of the two candidate labels to each of the labels present in the training data.

6. 2. The computer-implemented method of claim 1, further comprising the step of computing, for each input time series segment classified in the inference stage, a test search vector from each of the two candidate labels to a feature center of each of the labels present in the training data in a feature space.

7. The computer-implemented method of claim 6 , wherein the feature centroid is calculated as an average value of features of input time series segments having the same label.

8. The computer-implemented method of claim 1 , wherein the hypothesis testing comprises determining outliers for non-missing classes using statistical techniques.

9. 9. The computer-implemented method of claim 8, wherein determining outliers comprises determining a distribution of distances from the training data in the current class to class centers of the evaluated classes with respect to a threshold distance.

10. 2. The computer-implemented method of claim 1, wherein the revising step comprises predicting a label within a time window using a majority voting scheme to select a class that is most predicted during the time window.

11. 2. The computer-implemented method of claim 1, further comprising replacing a workplace machine experiencing an impending failure with a spare workplace machine in response to said prediction to avoid system downtime.

12. 1. A computer program product for classification of a time series of missing labels, the computer program product comprising a non-transitory computer readable storage medium having program instructions embodied therein, the program instructions being executable by a computer; Extracting (315) features of the input time series segments to be classified during the inference stage by a hardware processor; Calculating (320) rank-based statistics of the features using a neural network model trained on training data by a hardware processor to select two candidate labels to which the input time series segment is most likely to belong; classifying (350) the input time series segment using a k-NN based classification method applied to the training data in response to the presence of the two candidate labels in the training data by a hardware processor; classifying the input time series segment by hypothesis testing in response to the presence of only one of the two candidate labels in the training data (335); classifying the input time series segment from a plurality of classes having different values ​​of the rank-based statistic into a class having a higher value of the rank-based statistic corresponding to the absence of either of the two candidate labels in the training data (345); modifying the prediction according to the corresponding step of the classifying step by majority voting using a time window (340); A computer program product for causing a computer to carry out a method comprising:

13. 13. The computer program product of claim 12, wherein the method further comprises training a neural network model with the training data based on ordered quartet losses.

14. 14. The computer program product of claim 13, wherein the ordered quartet loss has a similarity component with respect to a feature space, a discrimination component, and a feature order component.

15. 14. The computer program product of claim 13, wherein the ordered quartet losses comprise triplet losses and log ratio losses.

16. 13. The computer program product of claim 12, wherein the method further comprises: for each of the two candidate labels, computing a label lookup vector from each of the two candidate labels to each of the labels present in the training data.

17. 13. The computer program product of claim 12, wherein the method further comprises the step of computing, for each input time series segment classified in the inference stage, a test search vector from each of the two candidate labels for each feature center of the labels present in the training data in a feature space.

18. 20. The computer program product of claim 17, wherein the feature centroid is calculated as an average value of features of input time series segments having the same label.

19. The computer program product of claim 12 , wherein the hypothesis testing comprises determining outliers for non-missing classes using statistical techniques.

20. 1. A computer processing system for classification of a time series of missing labels, comprising: a memory device (140) for storing program code; Extracting features of the input time series segments to be classified during the inference phase; computing rank-based statistics of the features using a neural network model trained on training data to select two candidate labels to which the input time series segment is most likely to belong; classifying the input time series segment using a k-NN based classification method applied to the training data in response to the presence of the two candidate labels in the training data; classifying the input time series segment by hypothesis testing in response to the presence of only one of the two candidate labels in the training data; classifying the input time series segment from a plurality of classes having different values ​​of the rank-based statistic into a class having a higher value of the rank-based statistic corresponding to the absence of either of the two candidate labels in the training data; modifying the prediction according to the corresponding step of the classifying step by majority voting using a time window; a hardware processor (110) operatively connected to said memory device for storing said program code, said hardware processor (110) executing said program code having the program code A computer processing system comprising:

Citation Information

Patent Citations

  • Motion recognition

    JP2014509011A