1. Technical Field
The present disclosure relates to a data analysis method, a data analysis apparatus, and a recording medium having recorded a program.
2. Description of the Related Art
Networks are in widespread use today, and a variety of data is collected and stored using various devices. The variety of data may include access information used to access a web site, purchase history of customers, recording and viewing history of programs, or information related to ages and sexes of customers. Using the purchase history or the recording history, from among these pieces of information, recommendation service is performed by clustering users according to attributes, such as preference, and by offer a product to the users. Currently disclosed clustering methods are matrix decomposition methods including non-negative matrix factorization (NMF) and tri-NMF that is an extended version of NMF as described in the paper “Orthogonal Nonnegative Matrix Tri-factorizations for Clustering”. According to this paper, matrix decomposition is performed such that the product of three matrices approximates a matrix serving as input data, and clustering is performed using one of the three matrices.
In one general aspect, the techniques disclosed here feature a data analysis method that decomposes a fundamental matrix with N rows and M columns indicating relatedness with each of first N objects and each of second M objects into three matrices, and clusters at least the first objects or the second objects. The data analysis method includes
acquiring the fundamental matrix having each element storing a value indicating the relatedness,
setting K indicating a number of clusters of the first N objects and L indicating a number of clusters of the second M objects,
decomposing the fundamental matrix into three matrices which are a first matrix, a second matrix, and a third matrix such that a product of the first matrix, the second matrix, and the third matrix approximates the fundamental matrix, the first matrix having N rows and K columns, the second matrix having K rows and L columns with each element at least one of a particular row and a particular column thereof storing a value falling within a predetermined range, the third matrix having L rows and M columns, and
outputting at least one of clustering results of the first objects and the second objects by outputting at least one of the first matrix, the second matrix, and the third matrix.
The data analysis method, the data analysis apparatus, and the recording medium having recorded program, according to the disclosure, performs clustering that reflects a variety of information.
It should be noted that general or specific embodiments may be implemented as a system, a method, an integrated circuit, a computer program, a computer readable storage medium, such as a compact disk read-only memory (CD-ROM), or any selective combination thereof.
Additional benefits and advantages of the disclosed embodiments will become apparent from the specification and drawings. The benefits and/or advantages may be individually obtained by the various embodiments and features of the specification and drawings, which need not all be provided in order to obtain one or more of such benefits and/or advantages.
Underlying Knowledge Forming Basis of the Present Disclosure
The inventor has learned that the method described in the “description of the related art” section suffers from the following problem.
When the purchase history or the program recording history is collected, the data to be collected may include information, such as “a person has purchased a product” or “a person has recorded a program”, and information, such as “a product has not been purchased” or “a program has not been recorded”, is not directly collected. For convenience of explanation, the collected data is the program recording history in the following discussion. Since the information “the program has been recorded” is accumulated, the information “the program has not been recorded” is derived from performing an inverse operation of “the program has not been stored”=“the program has not been recorded”. More specifically, the information “the program has been recorded” may be interpreted to mean that “the program has been recorded because the user likes it”. However, the information “the program has not been recorded” may be interpreted in two different ways. Namely, the information “the program has not been recorded” may indicate that “the program has not been recorded because the user does not like it” or may indicate that “the program has not been recorded because the user does not know the presence of the program”. In the method disclosed in the paper “Orthogonal Nonnegative Matrix Tri-factorizations for Clustering”, the information “the program has not been recorded” open to two different interpretations is not accounted for, and clustering is performed in view of only the information based on the assumption that “the program has been recorded” =“the user likes that program”. In other words, the information that “the user does not like the program” is not accounted for.
The disclosure provides a data analysis method, a data analysis apparatus, and a non-transitory computer-readable recording medium.
The clustering operation that reflects a variety of information is performed by accounting for the information that “a user does not like a program”.
According to an aspect of the disclosure, there is provided a data analysis method that decomposes a fundamental matrix with N rows and M columns indicating relatedness with each of first N objects and each of second M objects into three matrices, and clusters at least the first objects or the second objects. The data analysis method includes acquiring the fundamental matrix having each element storing a value indicating the relatedness, setting K indicating a number of clusters of the first N objects and L indicating a number of clusters of the second M objects, decomposing the fundamental matrix into three matrices which are a first matrix, a second matrix, and a third matrix such that a product of the first matrix, the second matrix, and the third matrix approximates the fundamental matrix, the first matrix having N rows and K columns, the second matrix having K rows and L columns with each element at least one of a particular row and a particular column thereof storing a value falling within a predetermined range, the third matrix having L rows and M columns, and outputting at least one of clustering results of the first objects and the second objects by outputting at least one of the first matrix, the second matrix, and the third matrix.
In this method, the clustering operation that reflects a factor for which the user has not acquired an object is performed. The clustering operation thus reflects a variety of information.
Each element at the particular row and each element at the particular column may store a value falling within the predetermined range.
Since a value falling within the predetermined range is stored at each element at the particular row and the particular column of the second matrix, the clustering operation that reflects different pieces of information (a degree of recognition of an object and an acquisition frequency by a user) is thus performed.
The value falling within the predetermined range is a positive value being approximately zero.
Since the value falling within the predetermined range is a positive value being approximately zero, relatedness with the clusters is reduced to almost non-existence, and a value reflecting a variety of information is thus derived.
Sums of all rows of the first matrix, each sum being a sum of the values of the elements at each row, may be approximately equal to each other.
Since the sums of all rows of the first matrix are approximately equal to each other, the values at the columns of the first matrix are easily compared with each other.
Sums of all columns of the third matrix, each sum being a sum of the values of the elements at each column, may be approximately equal to each other.
Since the sums of all columns of the third matrix are approximately equal to each other, the values at the rows of the third matrix are easily compared with each other.
The decomposing may include iterating updating the first matrix, the second matrix, and the third matrix such that a difference between the product of the first matrix, the second matrix, and the third matrix and the fundamental matrix decreases.
Since the first matrix, the second matrix, and the third matrix are updated such that the difference between the product of the first matrix, the second matrix, and the third matrix and the fundamental matrix decreases, the matrix decomposition is smoothly performed.
The decomposing may include updating the first matrix, the second matrix, and the third matrix respectively into the first matrix with N rows and (K−1) columns, the second matrix with (K−1) rows and L columns, and the third matrix with L rows and M columns by deleting a k-th row of the second matrix, and a k-th column of the first matrix if a value at each element at the k-th row from among rows other than the particular row of the second matrix falls within the predetermined range.
The clustering operation is performed with a higher clustering precision at a higher process speed.
The decomposing may include updating the first matrix, the second matrix, and the third matrix respectively into the first matrix with N rows and K columns, the second matrix with K rows and (L−1) columns, and the third matrix with (L−1) rows and M columns by deleting an l-th column of the second matrix, and an l-th row of the third matrix if a value at each element at the l-th column from among columns other than the particular column of the second matrix falls within the predetermined range.
The clustering operation is performed with a higher clustering precision at a higher process speed.
The first object may be a user, and the relatedness with each element in the fundamental matrix may represent the presence or absence of each of the N users' interest in each of the second M objects. At least one of the acquiring, the setting, the decomposing and the outputting may be performed by a processor.
According another aspect of the disclosure, there is provided a data analysis apparatus that decomposes a fundamental matrix with N rows and M columns indicating relatedness with each of first N objects and each of second M objects into three matrices, and clusters at least the first objects or the second objects. The data analysis apparatus includes an acquirer that acquires the fundamental matrix having each element storing a value indicating the relatedness, a setter that sets K indicating a number of clusters of the N first objects and L indicating a number of clusters of the second M objects, a decomposer that decomposes the fundamental matrix into three matrices which are a first matrix, a second matrix, and a third matrix such that a product of the first matrix, the second matrix, and the third matrix approximates the fundamental matrix, the first matrix having N rows and K columns, the second matrix having K rows and L columns with each element at least one of a particular row and a particular column thereof storing a value falling within a predetermined range, the third matrix having L rows and M columns, and an outputter that outputs at least one of clustering results of the first objects and the second objects by outputting at least one of the first matrix, the second matrix, and the third matrix.
The data analysis apparatus performs the clustering operation that reflects a factor for which the user has not acquired an object. The clustering operation thus reflects a variety of information.
According to another aspect of the disclosure, there is provided a non-transitory computer-readable recording medium. The non-transitory computer-readable recording medium stores a program that causes a computer to perform the data analysis method.
The clustering operation that reflects a factor for which the user has not acquired an object is performed. The clustering operation thus reflects a variety of information.
It should be noted that general or specific embodiments may be implemented as a system, a method, an integrated circuit, a computer program, a non-transitory computer-readable recording medium, such as a compact-disk read-only memory (CD-ROM), or any selective combination thereof.
A data analysis method of a first embodiment is specifically described with reference to the drawings. Each of the embodiments described below represents a general or specific example of the disclosure. Numerical values, shapes, materials, elements, layout locations of the elements, connection configuration of the elements, steps and the order of the steps in the embodiments are described for exemplary purposes only, and are not intended to limit the disclosure. Elements not described in independent claims indicative of a generic concept, from among the elements of the embodiments, may be optional elements.
Configuration of Entire System
The data analysis system 1 decomposes a fundamental matrix with N rows and M columns indicating the presence or absence of each of N users' interest in each of M objects into three matrices to cluster the users. The objects may be those in which the users may be interested, and, for example, include a product that may be purchased by a user, or the user may rent, a television program or a radio program that may be viewed or recorded by the user. The presence or absence of the user's interest is determined as below. If a product is purchased, the user's interest is determined to be present while if the product is not purchased, the user's interest is determined to be absent. On the other hand, if the object is a program, viewing the program or recording the program indicates that the user's interest is present and not viewing the program or not recording the program indicates that the user's interest is absent.
The fundamental matrix of
The presence of the user's interest in the program is rated on a scale from 1 to 5 in the example of
The data analysis system 1 clusters the users or the objects by decomposing the fundamental matrix into three matrices.
Referring to
The network 500 may be a wired network, such as Ethernet (registered trademark), a wireless network, such as a wireless local area network (LAN), a public network, or a network including a combination thereof. The public network is a communication network a telecommunications carrier provides for public users. For example, the public network may be a public telephone network, or integrated services digital network (ISDN).
The input apparatus 200 receives a fundamental matrix with N rows and M columns. For example, the input apparatus 200 may be a personal computer, a smart phone, a feature phone, or a tablet terminal, each including an input unit 210, such as a keyboard, a touch panel, or a pointing device. Upon receiving the fundamental matrix with N rows and M columns, the input apparatus 200 transmits the fundamental matrix to the data analysis apparatus 400 via the network 500.
When the display apparatus 300 receives at least one of the fundamental matrix and the three matrices from the data analysis apparatus 400, the display apparatus 300 displays at least one of the matrices. The display apparatus 300 is a personal computer, a smart phone, a feature phone, or a tablet terminal, each including a display, such as a display unit 310. An analyzer may analyze the clustering results by viewing at least one matrix displayed on the display unit 310 in the display apparatus 300.
In the first embodiment, the input apparatus 200 is separate from the display apparatus 300. Alternatively, the input apparatus 200 and the display apparatus 300 may be integrated into a unitary apparatus.
Data Analysis Apparatus
The data analysis apparatus 400 decomposes the fundamental matrix with N rows and M columns into three matrices. The data analysis apparatus 400 may be a server, a personal computer, a smart phone, a feature phone, or a tablet terminal.
Referring to
The acquisition unit 410 acquires the fundamental matrix input from the input apparatus 200 via the network 500, and then outputs the fundamental matrix to the processor 420.
The processor 420 decomposes the fundamental matrix input via the acquisition unit 410 into three matrices, and includes a central processing unit (CPU), a random-access memory (RAM), a read-only memory (ROM), and the like. The processor 420 includes a memory 421, a setter 422, and a decomposer 423.
The memory 421 stores the fundamental matrix input via the acquisition unit 410, and may be a non-volatile memory or a volatile memory.
The setter 422 stores a configuration item for use in a decomposition process by the decomposer 423. The configuration items may be K and L, determining the size of each of the three matrices. The configuration items also include a convergence criteria used in the decomposition process. When the decomposer 423 performs the decomposition process, the setter 422 outputs the configuration item to the decomposer 423, thereby setting the configuration item.
The configuration item may be a set value input from the input apparatus 200 in place of the configuration item pre-stored on the setter 422. In such a case, the setter 422 stores the configuration item received from the input apparatus 200 via the acquisition unit 410.
The decomposer 423 decomposes the fundamental matrix into three matrices such that the product of the first matrix, the second matrix, and the third matrix approximates the fundamental matrix. The first matrix has N rows and K columns. The second matrix has K rows and L columns with each element at least one of a particular row and a particular column storing a value falling within a predetermined range. The third matrix has L rows and M columns.
Let the fundamental matrix have 20 (N) rows and 14 (M) columns with K=3 and L=3, and the first matrix with N rows and K columns has 20 rows and 3 columns, the second matrix with K rows and L columns has 3 rows and 3 columns, and the third matrix with L rows and M columns has 3 rows and 14 columns.
K represents the number of user clusters. L represents the number of object clusters. A column or a row of elements (clusters), not directly related to the user cluster (a first object cluster) and the object cluster (a second object cluster), is contained in a column or a row of the first matrix, the second matrix, and the third matrix.
Referring to
The value falling within the predetermined range is a positive value that is zero or approximately zero. Specifically, the value falls within a range of 0 or larger to 0.1 or lower. Preferably, the value falls within a range of 0 or larger to 0.01 or smaller. As long as the values at the elements at least at one of the particular row and the particular column of the second matrix fall within the predetermined range, the values do not necessarily have to be equal to each other. In the following discussion of the first embodiment, the values at K-th row and at L-th column of the second matrix are set to be zero. Alternatively, however, the value at each element of one of the K-th row and the L-th column of the second matrix falling within the predetermined range is also acceptable. The particular row may be a row other than the K-th row and the particular column may be a column other than the L-th column.
If the value at each element at the particular column of the second matrix falls within a predetermined value, a condition that the sums of the elements at the columns, each sum being a sum of the values at the elements at each column, are approximately the same value holds true in the third matrix. On the other hand, if the value at each element at the particular row of the second matrix falls within a predetermined range, a condition that the sums of the elements at the rows, each sum being a sum of the values at the elements at each row, are approximately the same value holds true in the first matrix. Approximately the same value does not necessarily have to be the same value, but may be a value falling within a slight permissible range. Approximately the same value may be any value as long as the degree of relatedness of a user, an object, and each cluster is easy to recognize. For example, approximately the same value may be “1” or “100”.
The first matrix, the second matrix, and the third matrix are specifically described below.
The decomposer 423 repeatedly updates the first matrix, the second matrix, and the third matrix such that a difference between the product of the first matrix, the second matrix, and the third matrix and the fundamental matrix decreases. If the convergence criteria stored on the setter 422 is satisfied, the updating is complete. The convergence criteria may be determined to be satisfied as described below. In a method, the convergence criteria is determined to be satisfied if a predetermined number of iterations (1000 times) is performed. In another method, the convergence criteria is determined to be satisfied if a difference between the product of the first matrix, the second matrix, and the third matrix and the fundamental matrix is equal to or below a predetermined value (such as 1e−6). In yet another method, the convergence criteria is determined to be satisfied if a difference between the products of the first matrix, the second matrix, and the third matrix and the fundamental matrix prior to and subsequent to a single updating is equal to or below a predetermined value (such as 1e−6). The methods described above may be used alone or in combination. The difference may be a value obtained by summing values as a result of subtraction operations of the elements of the matrices, or may be a sum of squares of values resulting from the subtraction operations of the elements.
Referring to
Data Analysis Method
The data analysis method of the embodiment is described below.
The input apparatus 200 receives a value indicative of the presence or absence of a user's interest at each element of the fundamental matrix. The input apparatus 200 also receives K, L, and the convergence criteria. Upon receiving these pieces of information, the input apparatus 200 outputs the fundamental matrix, K, L, and the convergence criteria to the data analysis apparatus 400. If the configuration item is set in the setter 422 in the data analysis apparatus 400, and is used in subsequent operations, the input apparatus 200 is free from the reception of the configuration item.
The acquisition unit 410 in the data analysis apparatus 400 acquires the fundamental matrix, L, K, and the convergence criteria input from the input apparatus 200 via the network (step S1). Subsequent to the acquisition, the acquisition unit 410 stores the fundamental matrix on the memory 421.
The setter 422 stores K, L, and the convergence criteria acquired by the acquisition unit 410 as the configuration items (steps S2 and S3).
The decomposer 423 in the data analysis apparatus 400 performs a decomposition process in accordance with the fundamental matrix and the configuration items.
The decomposer 423 generates the first matrix, the second matrix, and the third matrix in accordance with N, M, K, and L. The decomposer 423 substitutes random numbers for the elements of the first matrix, the second matrix, and the third matrix for initialization (step S11).
The decomposer 423 sets i to be zero (step S12).
The decomposer 423 determines whether i is a predetermined number of iterations as the convergence criteria. If i is less than the predetermined number of iterations, the decomposer 423 proceeds to step S14. If i is equal to or above the predetermined number of iterations, the decomposer 423 completes the decomposition process.
In step S14, the decomposer 423 updates the first matrix, the second matrix, and the third matrix.
During the updating, the decomposer 423 updates the initialized first matrix, second matrix, and third matrix in accordance with a predetermined matrix updating formula in order to determine the first matrix, the second matrix, and the third matrix such that the product thereof approximates the fundamental matrix. During the updating, the decomposer 423 updates the second matrix such that the values at the elements at the K-th row and the L-th column are zero.
An example of the matrix updating formula is described below.
In the following matrix updating formula (1), X represents the fundamental matrix, F represents the first matrix, S represents the second matrix, and GT represents the third matrix. In the following matrix updating formula (1), α, β, and γ are constants. S* represents the matrix S with the value at each element at least one of the particular row and the particular column being a value falling within a predetermined range (zero in the first embodiment).
The decomposer 423 updates the first matrix, the second matrix, and the third matrix such that the matrix updating forma (1) is minimized.
Examples of formulas representing the details of the matrix updating formula (1) are described below.
where Fw,k represents a value at an element at w-th row and k-th column of F (1≦w≦N, 1≦k≦K). Sk,l represents a value at an element at k-th row and l-th column of S (1≦k≦K, 1≦l≦L). Gt,l represents a value at an element at t-th row and l-th column of G (1≦t≦M, 1≦l≦L). FT represents a transposed matrix of F. GT represents a transposed matrix of G. ST represents a transposed matrix of S. XT represents a transposed matrix of X. AT represents a transposed matrix of A.
The decomposer 423 updates the first matrix, the second matrix, and the third matrix using formulas (2) through (4) to decrease the error.
The decomposer 423 calculates the error between the product of the updated first matrix, second matrix, and third matrix and the fundamental matrix (step S15).
The decomposer 423 determines whether the error determined in step S15 is equal to or below a predetermined value (step S16). If the error is equal to or below the predetermined value, the decomposer 423 completes the decomposition process. If the error is above the predetermined value, processing proceeds to step S17.
In step S17, the decomposer 423 adds 1 to i and then returns to step S13. The first matrix, the second matrix, and the third matrix are repeatedly updated until the error is equal to or below the predetermined value or until i reaches the predetermined number of iterations. At the end of the decomposition process, the first matrix, the second matrix, and the third matrix are determined in a manner such that the error between the product of the first matrix, the second matrix, and the third matrix and the fundamental matrix is approximately zero.
When the decomposition process ends, and processing proceeds to step S5 of
Examples of Matrices
Examples of the fundamental matrix used in a data analysis method and the first matrix, the second matrix, and the third matrix obtained through the data analysis method are described below.
The fundamental matrix of
In the example of
The first matrix of
The inventor has found that storing a value (falling within a predetermined range) having almost no relatedness with the user clusters UC1 and UC2 at the particular column of the second matrix generates a row indicating the degree of recognition of a program (object) (the third row in the third matrix of
The inventor has also found that storing a value (falling within a predetermined range) having almost no relatedness with the program clusters PC1 and PC2 at the particular row of the second matrix effectively generates a row indicating the frequency of program recordings (the third column in the first matrix of
Since the object is a program in the first embodiment, the frequency of program recordings appears at a row in the first matrix when a value falling within the predetermined range is stored at the particular row of the second matrix. If the object is a product, the frequency of purchasing by which a user purchases (rents) the product appears at a row in the first matrix. Since the frequency of purchasing and the frequency of program recordings indicate the degree of acquisition of the objects by the user, these frequencies may be collectively referred to as the frequency of acquisitions.
In the first embodiment, the users U1 through U20 respectively correspond to the rows in the first matrix, and the programs P1 through P14 respectively correspond to the columns in the third matrix. In the second matrix, the particular column corresponds to the degree of recognition, and the particular row corresponds to the frequency of program recordings. Conversely, if the users U1 through U20 respectively correspond to the columns in the third matrix, and the programs P1 through P14 respectively correspond to the rows in the first matrix, the particular row corresponds to the degree of recognition, and the particular column corresponds to the frequency of program recordings in the second matrix. More specifically, depending on the clustering target and the relatedness of the first matrix, the second matrix, and the third matrix, the elements corresponding to the degree of recognition and the frequency of program recordings may be a row or a column in the second matrix. If the clustering operation is performed in view of the degree of recognition or the frequency of program recordings (frequency of acquisitions) alone, a value falling with the predetermined range may be stored in each element of the particular row or the particular column of the second matrix with the relatedness accounted for.
Advantages
In accordance with the first embodiment, the first matrix, the second matrix, and the third matrix are decomposed such that the product of the first matrix, the second matrix, and the third matrix approximates the fundamental matrix. The first matrix has N rows and K columns, the second matrix has K rows and L columns with each element at least one of a particular row and a particular column thereof storing a value falling within a predetermined range, and the third matrix has L rows and M columns. The clustering operation is thus performed in view of a factor by which the user has not acquired the object (a program or a product). The clustering operation accounting for a variety of information is thus performed.
In accordance with the first embodiment, information, such as “dislike”, may be assumed from the user's recording history. Without the above data analysis method, the information such as “dislike” may need to be collected. More specifically, if the clustering operation reflecting a variety of information is performed, energy consumed to collect information is saved.
Since the value falling within the predetermined range is stored on each element at the particular row or the particular column in the second matrix, the clustering operation accounting for the degree of recognition of the object and the user's frequency of acquisitions is performed.
Since the value falling within the predetermined range is approximately zero, the relatedness with the user cluster or the program cluster is reduced to a minimum and the value characteristic of the degree of recognition and the frequency of acquisitions is obtained.
Since the sums of the elements at the rows in the first matrix have approximately the same value, the values at each column indicative of the frequency of acquisitions are calculated with reference to the same value. The values of the columns are thus easily compared with each other.
Since the sums of the elements at the columns in the third matrix have approximately the same value, the values at each row indicative of the degree of recognition are calculated with reference to the same value. The values of the rows are thus easily compared with each other.
Since the first matrix, the second matrix, and the third matrix are updated such that the difference between the product of the first matrix, the second matrix, and the third matrix and the fundamental matrix decreases, the matrix decomposition is smoothly performed.
If K and L having relatively larger values are set in the data analysis method of the first embodiment, a row similar to the particular row or a column similar to the particular column could be generated during the updating. In such a case, the precision level of the clustering operation may be lowered. If the row similar in property to the particular row or the column similar in property to the particular column is generated in the second matrix during the execution of the data analysis method, such a row or column is deleted in a second embodiment.
The flowchart of
If the row similar in property to the particular row or the column similar in property to the particular column is generated in the second matrix, the decomposer 423 deletes such a row or column in the deletion process in step S18.
The decomposer 423 calculates a difference between each value at the particular column (L-th column) and each value at each of the other columns in the second matrix (step S21).
The decomposer 423 determines whether a column (l-th column) having the absolute value of the difference between all elements is equal to or below a predetermined constant value is present (step S22). If the l-th column is present, the decomposer 423 proceeds to step S23. If the l-th column is not present, processing proceeds to step S24.
In step S23, the decomposer 423 deletes the l-th column in the second matrix and the l-th row in the third matrix, thereby updating the three matrices to the first matrix with N rows and K columns, the second matrix with K rows and (L−1) columns, and the third matrix with (L−1) rows and M columns.
In step S24, the decomposer 423 calculates a difference between the value at each element at the particular row (K-th row) with the value at each element at each of the other rows in the second matrix.
The decomposer 423 determines whether a row (k-th row) having the absolute value of the difference at each of all the elements being equal to or below a constant value is present (step S25). If the k-th row is present, the decomposer 423 proceeds to step S26. If the k-th row is not present, the decomposer 423 completes the deletion process.
In step S26, the decomposer 423 deletes the k-th row in the second matrix and the k-th column in the first matrix, thereby updating the three matrices into the first matrix with N rows and (K−1) columns, the second matrix with (K−1) rows and L columns, and the third matrix with L rows and M columns.
The predetermined constant value is a value equal to or below 0.1, for example. The operations in steps S21 through S23 and the operations in steps S24 through S26 may be reversed in order. The determinations in steps S22 and S25 are performed, based on the absolute value of the difference. If each element at the particular row or the particular column is close to zero, a determination may be made as to whether the sum of the elements at a given row or a given column is equal to or below a constant value.
Advantages
In accordance with the embodiments, if the value at each element at the k-th row other than the particular row in the second matrix falls within the predetermined range, the k-th row is deleted from the second matrix, and the k-th column is deleted from the first matrix. The three matrices are thus updated to the first matrix with N rows and (K−1) columns, the second matrix with (K−1) rows and L columns, and the third matrix with L rows and M columns. In this way, a segmentation process is sped up, and the precision level of the clustering operation is increased.
In accordance with the embodiments, if the value at each element at the l-th column other than the particular column in the second matrix falls within the predetermined range, the l-th column is deleted from the second matrix, and the l-th row is deleted from the third matrix. The three matrices are thus updated to the first matrix with N rows and K columns, the second matrix with K rows and (L−1) columns, and the third matrix with (L−1) rows and M columns. In this way, the segmentation process is sped up, and the precision level of the clustering operation is increased.
The first and second embodiments have been discussed as an example of the technique of the disclosure. The technique of the first and second embodiments is not limited to the technique disclosed above. Change, substitution, addition, or omission of elements may be performed on the embodiments. Elements described with reference to the embodiments may be combined into a new embodiment.
In the discussion that follows, elements identical to those in the embodiments may be designated with the same reference numerals and the discussion thereof may be omitted.
In the discussion of the embodiments, the fundamental matrix is input to the data analysis apparatus 400 via the network 500. Alternatively, the data analysis apparatus 400 may directly receive (or generate) the fundamental matrix.
Referring to
The elements in each of the embodiments may be implemented by using dedicated hardware or by executing a software program appropriate for the elements. Elements may be implemented by a program executing unit, such as a central processing unit (CPU) or a processor, which reads the software program recorded on a hard disk or a semiconductor memory, and executes the read software program. The software program implementing an image decoding apparatus of each embodiment may be described below.
The software program causes a computer to perform a data analysis method. The data analysis method decomposes a fundamental matrix with N rows and M columns indicating relatedness with each of first N objects and each of second M objects into three matrices, and clusters at least the first objects or the second objects. The data analysis method includes acquiring the fundamental matrix having each element storing a value indicating the relatedness, setting K indicating a number of clusters of the first N objects and L indicating a number of clusters of the second M objects, decomposing the fundamental matrix into three matrices which are a first matrix, a second matrix, and a third matrix such that a product of the first matrix, the second matrix, and the third matrix approximates the fundamental matrix, the first matrix having N rows and K columns, the second matrix having K rows and L columns with each element at least one of a particular row and a particular column thereof storing a value falling within a predetermined range, the third matrix having L rows and M columns, and outputting at least one of clustering results of the first objects and the second objects by outputting at least one of the first matrix, the second matrix, and the third matrix.
In each of the embodiments, a process to be performed by a particular processor may be performed by another processor. The order of executing multiple processes may be changed, or the multiple processes may be performed in parallel.
The data analysis method in one or more aspects of the disclosure has been discussed with reference to the embodiments. The disclosure is not limited to the embodiments. Without departing from the scope of the disclosure, an embodiment may be configured by making various changes and modifications apparent to those skilled in the art to the embodiments, or by combining elements of the embodiments. Such an embodiment also falls within one or more aspects of the disclosure.
The disclosure may be used for a data analysis method for clustering, a data analysis apparatus, and a computer program. More specifically, the disclosure finds applications in a variety of fields related to clustering, such as a recommendation system or sentence sorting applications.
Number | Date | Country | Kind |
---|---|---|---|
2015-115084 | Jun 2015 | JP | national |
2016-020209 | Feb 2016 | JP | national |