# Patent

## Title
System and method for organizing, compressing and structuring data for data mining readiness

## Abstract

A system and method to take data, which is in the form of an n-dimensional array of binary data where the binary data is comprised of bits that are identified by a bit position within the n-dimensional array, and create one file for each bit position of the binary data while maintaining the bit position identification and to store the bit with the corresponding bit position identification from the binary data within the created filed. Once this bit-sequential format of the data is achieved, the formatted data is structured into a tree format that is data-mining-ready. The formatted data is structured by dividing each of the files containing the binary data into quadrants according to the bit position identification and recording the count of 1-bits for each quadrant on a first level. Then, recursively dividing each of the quadrants into further quadrants and recording the count of 1-bits for each quadrant until all quadrants comprise a pure-1 quadrant or a pure-0 quadrant to form a basic tree structure.

## Background
CLAIM TO PRIORITY
The present application claims priority to U.S. Provisional Patent Application No. 60/234,050, filed Sep. 20, 2000, and entitled “System and Method for Imagery Organization, Compression, and Data Mining” and to U.S. Provisional Patent Application No. 60/237,778, filed Oct. 4, 2000, and entitled “System and Method for Imagery Organization, Compression, and Data Mining.” Both of the identified United States provisional patent applications are hereby incorporated by reference.


GOVERNMENT RIGHTS
The present invention was made with government support under Grant No. DAAH04-96-1-0329, awarded by the U.S. Army Research Office and Grant No. OSR-9553368, awarded by the National Science Foundation HER/EPSCoR. The U.S. Government retains certain rights to the present invention.


FIELD OF THE INVENTION
The present invention is related to the organization of large datasets existing in n-dimensional arrays and, more particularly, to the organization of the datasets into a bit-sequential format that facilitates the establishment of a lossless, data-mining-ready data structure.
BACKGROUND OF THE INVENTION
Data mining is the use of automated data analysis techniques to uncover previously undetected relationships among data items. The best known examples of data mining applications are in database marketing, wherein an analysis of the customer database, using techniques such as interactive querying, segmentation, and predictive modeling to select potential customers in a more precisely targeted way, in financial investment, wherein predictive modeling techniques are used to create trading models, select investments, and optimize portfolios, and in production manufacturing, wherein production processes are controlled and scheduled to maximize profit.
Data mining has been appropriate for these areas because, while significant amounts of data are present for analysis, the datasets are of a small enough nature that analysis can be performed quickly and efficiently using standard data mining techniques such as association rule mining (ARM), classification, and cluster analysis. This has not been the case with other data collection areas. For instance, such areas as bioinformatics, where analysis of microarray expression data for DNA is required, as nanotechnology where data fusion must be performed, as VLSI design, where circuits containing millions of transistors must be tested for accuracy, as spatial data, where data representative of detailed images can comprise millions of bits, and others present such extremely large datasets that mining implicit relationships among the data can be prohibitively time consuming with traditional methods.
The initial problem in establishing data mining techniques for these extremely large datasets is organizing the large amounts of data into an efficiently usable form that facilitates quick computer retrieval, interpretation, and sorting of the entire dataset or subset thereof. The organizational format of the data should take recognition of the fact that different bits of data can have different degrees of contribution to value, i.e., in some applications high-order bits along may provide the necessary information for data mining making the retention of all data unnecessary. The organizational format should also take recognition of the need to facilitate the representation of a precision hierarchy, i.e., a band may be well represented by a single bit or may require eight bits to be appropriately represented. As well, the organizational format need also take recognition of the need to facilitate the creation of an efficient, lossless data structure that is data-mining-ready, i.e., a data structure suited for data mining techniques.
SUMMARY OF THE INVENTION
The needs described above are in large part met by the system and method of the present invention. The data to be organized is preferably in the form of an n-dimensional array of binary data where the binary data is comprise of bits that are identified by a bit position within the n-dimensional array. The present invention, preferably implemented by a computer program executed on a high speed or parallel cluster of high speed computers, operates to create one file for each bit position of each attribute of the data while maintaining the bit position identification and to store the data with the corresponding bit position identification from the binary data within the created filed.
Once this bit-sequential format of the data is achieved, the formatted data can be structured into a tree format that is data-mining-ready. The formatted data is structured by dividing each of the files containing the binary data into quadrants according to the bit position identification and recording the count of 1-bits for each quadrant on a first level. Then, recursively dividing each of the quadrants into further quadrants and recording the count of 1-bits for each quadrant until all quadrants comprise a pure-1 quadrant or a pure-0 quadrant to form a basic tree structure. This structure is similar to other quadrant tree structures but for individual bit positions within values rather than the values themselves.
The basic tree structure may then be operated on with algebraic techniques and masking to produce other tree structures including value trees and tuple trees for use with various data mining techniques. The system and method of the present invention is especially suited to data mining of large datasets such as spatial datasets, bioinformatic datasets, nanotechnology datasets, and datasets representing integrated circuits.



BRIEF DESCRIPTION OF THE DRAWINGS
FIG. 1 is an illustrative example of a scene described by only two data bands having only two rows and two columns (both decimal and binary representations are shown).
FIG. 2 displays the BSQ, BIL, BIP and bSQ formats for the data of FIG. 1.
FIG. 3 depicts an 8-by-8 image and its corresponding PC-tree as developed by the present invention.
FIG. 4 is a flowchart depicting the transformation of basic PC-trees to value PC-trees (for 3-bit values) to tuple PC-trees.
FIG. 5 depicts an 8-by-8 image and its corresponding PM-tree.
FIG. 6 depicts a hierarchical quadrant id scheme.
FIG. 7 presents the first operand to a PC-tree ANDing operation.
FIG. 8 presents the second operation to the PC-tree ANDing operation.
FIG. 9 is the output matching pure-1 sequence of the ANDing operation.
FIG. 10 is the result of ANDing the operands of FIG. 7 and FIG. 8.
FIG. 11 is a listing of the pseudo code for performing the ANDing operation.
FIG. 12 is an example depiction of the value concept hierarchy of spatial data.
FIG. 13 is an example of a tuple count data cube using 1-bit values.
FIG. 14 is a listing of the pseudo code for an association rule mining technique, P-ARM, utilizing the bSQ and PC-tree technology of the present invention.
FIG. 15 provides a comparison graph of the P-ARM technique using PC-tree and Apriori for different support thresholds.
FIG. 16 provides a comparison of scalability between the P-ARM technique and the Apriori technique.
FIG. 17 provides a comparison graph of the P-ARM technique using PC-tree and FP-Growth for different support thresholds.
FIG. 18 provides a comparison of scalability between the P-ARM technique and the FP-Growth technique.
FIG. 19 is the pseudo-code listing for building a PV-tree.
FIG. 20 is the pseudo-code listing for the ANDing operation with PV-trees.
FIG. 21 is a graph depicting PC-tree ANDing time.
FIG. 22 is a cost comparison for the initial and iteration steps with respect to dataset size for ID3 and the PC-tree technique.
FIG. 23 depicts accumulative time with respect to iteration for the ID3 and PC-tree techniques.
FIG. 24 depicts the classification cost with respect to dataset size for the ID3 and PC-tree techniques.
FIG. 25 provides a block diagram of a scheme to implement simulation and equivalence checking of integrated circuits through use of PC-trees.



DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
The present invention is directed to a system and method for organizing large datasets existing in n-dimensional arrays into a data-mining-ready format comprising a bit-Sequential, or bSQ, format wherein a separate file for each bit position of each band is created, and to a system and method for structuring each bSQ file comprising Peano Count trees, or PC-trees, wherein quadrant-wise aggregate information, e.g., counts, for each bSQ file is recorded enabling various types of data mining to be performed very efficiently on an entire dataset or on a specific subset of data. The formatting, structuring, and various other operations of the present invention are preferably performed by clusters of high-speed computers.
Application areas for bSQ and PC-tree technology include but are not limited to precision agriculture, hazard detection and analysis (floods, fires, flora infestation, etc.), natural resource location and management, land management and planning, bioinformatics (genomics, transcripteomics, proteomics, metabileomics), nanotechnology, virtual artifact archiving, and VLSI design testing.
The present invention, including the bSQ format and PC-tree structures, will be described hereinbelow with reference to a particular type of dataset, a spatial dataset. However, it should be noted that the bSQ format and PC-tree structure can be applied to virtually any other type of dataset without departing from the spirit or scope of the invention.
I. Bit-sequential Format of Spatial Data
With regard to the bit-sequential format of the present invention, a space is presumed to be represented by a 2-dimensional array of pixel locations. With each pixel is associated various attributes or data bands, such as visible reflectance intensities (blue, green, red), infrared reflectance intensities (e.g., near IR or NIR, middle IR or MIR1 and MIR2, and thermal IR or TIR), and other value bands (e.g., yield quantities, quality measures, soil attributes and radar reflectance intensities). The raster-ordered pixel coordinates constitute the key attribute of the spatial dataset and the other bands are the non-key attributes. These spatial datasets are not usually organized in the relational format; instead, they are organized or can be easily reorganized into Band SeQuential or BSQ format (each attribute or band is stored as a separate file).
There are vast amounts of spatial data on which data mining can be performed to obtain useful information. However, this spatial data is collected in different ways and organized in different formats. The various prior art formats include BSQ, as mentioned above, BEL and BIP. The Band SeQuential (BSQ) format is similar to the Relational format. In BSQ each band is stored as a separate file. Each individual band uses the same raster order so that the primary key attribute values are calculable and need not be included. Landsat satellite Thematic Mapper (TM) scenes are in BSQ format. The Band Interleaved by Line (BIL) format stores the data in line-major order; the image scan line constitutes the organizing base. That is, BIL organizes all the bands in one file and interleaves them by row (the first row of all bands is followed by the second row of all bands, and so on). SPOT data, which comes from French satellite sensors, are in the Band Interleaved by Pixel (BIP) format, based on a pixel-consecutive scheme where the banded data is stored in pixel-major order. That is, BIP organizes all bands in one file and interleaves them by pixel. Standard TIFF images are in BIP format.
However, with the bit-sequential, bSQ, formatting of the present invention, eight separate files are created for each band. The eight separate files are based on the concept that reflectance values typically range from 0 to 255, represented by eight bits, thus there is one file created for each bit position. Comparison of the bSQ format against the prior art formats described above may be made with reference to FIGS. 1 and 2, wherein FIG. 1 provides an illustrative example of a scene described by only two data bands, each having four pixels, two rows, and two columns (both decimal and binary representations are shown), and FIG. 2 displays the BSQ, BIL, BIP and bSQ formats for the data. Within the bSQ format, file B11 includes the first bit position from each of the four pixels (represented in binary) in the first band, file B12 includes the second bit position from each of the four pixels in the first band, and so on.
There are several reasons to use the bSQ format. First, different bits have different degrees of contribution to the value. In some applications, not all bits are needed because high order bits may provide enough information. Second, the bSQ format facilitates the representation of a precision hierarchy. Third, and most importantly, bSQ format facilitates the creation of an efficient, rich data structure, the PC-tree (described in detail below), and accommodates technique pruning based on a one-bit-at-a-time approach.
II. Peano Count Trees (PC-trees)
The present invention utilizes the established bSQ bit files to create a Peano Count tree, or PC-tree, structure. The PC-tree is a quadrant-based tree. The root of the PC-tree contains the 1-bit count of the entire bit-band. The next level of the tree contains the 1-bit counts of the four quadrants in raster order. At the next level, each quadrant is partitioned into sub-quadrants and their 1-bit counts in raster order constitute the children of the quadrant node. This construction is continued recursively down each tree path until the sub-quadrant is pure, i.e., entirely 1-bits or entirely 0-bits, which may or may not be at the leaf level (1-by-1 sub-quadrant).
To illustrate the PC-tree structure, reference is made to FIG. 3 where an 8-row-by-8-column image and its corresponding PC-tree is depicted. In this example, 55 is the count of 1's in the entire image, the numbers at the next level, 16, 8, 15, and 16, are the 1-bit counts for the four major quadrants. Since the first and last quadrants are made up of entirely 1-bits, sub-trees are not needed for these two quadrants (likewise for any pure 0 quadrants). This pattern is continued recursively using the Peano or Z-ordering of the four sub-quadrants at each new level. A) The process terminates at the “leaf” level (level-0) where each quadrant is a 1-row-1-column quadrant. If all sub-trees were expanded, including those for quadrants that are pure 1-bits, then the leaf sequence is just the Peano space-filling curve for the original raster image. Note that the fan-out of the PC-tree need not necessarily be 4. It can be any power of 4 (effectively skipping levels in the tree). Also, the fan-out at any one level need not coincide with the fan-out at another level. The fan-out pattern can be chosen to produce maximum compression for each bSQ file.
It should be noted that, for measurements that can be expected to exhibit reasonable spatial continuity, Hilbert ordering will produce even better compression than Peano. However, Hilbert ordering is a much less intuitive and a more complex ordering. By using Hilbert ordering instead of Peano, certain desirable mapping properties are lost. For that reason, Peano ordering is the preferred ordering. It should further be noted that the same general construction can be used for spatial data of more than 2-dimensions without departing from the spirit or scope of the invention. For instance, with 3-dimensional data, each level is partitioned into octants and so on.
Referring once again to 2-dimensional spatial data, it is clear that for each band (assuming 8-bit data values), 8 basic PC-trees may be created, one for each bit position. For band Bi, the basic PC-trees may be labeled as Pi,1, Pi,2, . . . , Pi,8, thus, Pi,j is a lossless representation of the jth bits of the values from the ith band. In addition, Pi,j provides the 1-bit count for every quadrant of every dimension. These PC-tree's can be generated quite quickly and provide a “data mining ready”, lossless format for storing spatial data.
The 8 basic PC-trees defined above can be combined using simple logical operations (AND, NOT, OR, COMPLEMENT) to produce PC-trees for the original values in a band (at any level of precision, 1-bit precision, 2-bit precision, etc., see the “value concept hierarchy” described below with reference to FIG. 12). Pb,v is used to denote the Peano Count Tree, or the “value PC-tree”, for band b, and value v, where v can be expressed in 1-bit, 2-bit, . . . , or 8-bit precision. For example, using the full 8-bit precision (all 8-bits) for values, Pb,11010011 can be constructed from the basic PC-trees by ANDing the basic PC-trees (for each 1-bit) and their complements (for each 0 bit): 



  
    
      
        
          
            PC
            
              b
              ,
              11010011
            
          
          =
          
            
              PC
              b1
            
            ⁢
            
               
            
            ⁢
            AND
            ⁢
            
               
            
            ⁢
            
              PC
              b2
            
            ⁢
            
               
            
            ⁢
            AND
            ⁢
            
               
            
            ⁢
            
              PC
              b3
            
          
        
        ,
        
          AND
          ⁢
          
             
          
          ⁢
          
            PC
            b4
          
          ⁢
          
             
          
          ⁢
          AND
          ⁢
          
             
          
          ⁢
          
            PC
            b5
          
        
        ,
        
          AND
          ⁢
          
             
          
          ⁢
          
            PC
            b6
          
        
        ,
        
          AND
          ⁢
          
             
          
          ⁢
          
            PC
            b7
          
          ⁢
          
             
          
          ⁢
          AND
          ⁢
          
             
          
          ⁢
          
            PC
            b8
          
        
      
    
    
      
        Eq
        .
        
           
        
        ⁢
        
          (
          1
          )
        
      
    
  




where ′ indicates the bit-complement (which is simply the count complement in each quadrant). The AND operation is simply the pixel-wise AND of the bits.

From value PC-trees, tuple PC-trees may be constructed. The tuple PC-tree for tuple (v1,v2, . . . ,vn), denoted PC(v1,v2, . . . ,vn), is: 



  
    
      
        
          PC
          
            (
            
              v1
              ,
              v2
              ,
              
                 
              
              ⁢
              ...
              ⁢
              
                 
              
              ,
              vn
            
            )
          
        
        =
        
          
            PC
            
              1
              ,
              v1
            
          
          ⁢
          
             
          
          ⁢
          AND
          ⁢
          
             
          
          ⁢
          
            PC
            
              2
              ,
              v2
            
          
          ⁢
          
             
          
          ⁢
          AND
          ⁢
          
             
          
          ⁢
          ...
          ⁢
          
             
          
          ⁢
          AND
          ⁢
          
             
          
          ⁢
          
            
              PC
              
                n
                ,
                vn
              
            
            .
          
        
      
    
    
      
        Eq
        .
        
           
        
        ⁢
        
          (
          2
          )
        
      
    
  




where n is the total number of bands. See FIG. 4 for a flowchart depicting the transformation of basic PC-trees to value PC-trees to Tuple PC-trees.

To show the advantage of utilizing PC-trees and Equation (1) above, it has been found that the process of converting the BSQ data for a TM satellite image (approximately 60 million pixels) to its basic PC-trees can be done in just a few seconds using a high performance PC computer via a one-time process. In doing so, the basic PC-trees are preferably stored in a “breadth-first” data structure, which specifies the pure-1 quadrants only. Using this data structure, each AND can be completed in a few milliseconds and the result counts can be computed easily once the AND and COMPLEMENT program has completed.
For efficient implementation, a variation of each basic PC-tree is constructed, its PM-tree (Pure Mask tree). In the PM-tree, a 3-value logic is used, in which 11 represents a quadrant of pure 1-bits (pure1 quadrant), 00 represents a quadrant of pure 0-bits (pure0 quadrant), and 01 represents a mixed quadrant. To simplify the exposition, 1 is used instead of 11 for pure1, 0 for pure0, and m for mixed. Starting with a bit-band, Bij, the PM-tree is first constructed and then 1-bits are counted from the bottom up to produce the PC-trees when necessary. For many situations, however, the PMT has all the information needed. Experience has shown that the PM-trees can be stored in a very compact form. Therefore, it is preferable to store only the basic PM-trees and then construct any needed data structure from those PM-trees. The PM-tree for the example of FIG. 3 may be found in FIG. 5.
The PM-tree is particularly useful for the ANDing operation between two PC-trees. The PM-tree specifies the location of the pure1 quadrants of the operands, so that the pure1 result quadrants can be easily identified by the coincidence of pure-1 quadrants in both operands and pure0 result quadrants occur wherever a pure-0 quadrant occurs on at least one of the operands.
For even more efficient implementation, other variations of basic PC-trees are constructed, called Peano Truth trees or PT-trees. PT-trees have 2-value logic at tree node, instead of a count as in PC-trees or 3-value logic as in PM-trees. In a PT-tree, the node value is 1 if the condition is true of that quadrant and 0 if it is false. For example, the Pure1 Peano Truth tree has a 1 bit at a tree node if the quadrant corresponding to that node is all 1's (pure1). There are Peano Truth trees for conditions; Pure1 (called the P1-tree), Pure0 (called the PZ-tree), “Not all Zeros” (PNZ-tree), and “Not all 1's” (called the PN1-tree). These are all lossless formats for the original data with minimum size. There are also “vector” forms of each Peano tree. The idea behind these vector forms is that each node of the tree contains a node-id or quadrant-id, e.g., Nodeij and a 4-bit vector containing the truth values of its children nodes. Using this format, the subtree pointers can be eliminated in favor of a tabular representation. Also, since the AND operations on bit vectors is the absolute fasted operation on in any computer's instruction set, the Ptree AND can be executed very rapidly on vector PT-trees. Finally, vector PT-trees can be distributed among the nodes of a parallel cluster of computers by simply sending to computer-ij, only those rows of the table with node-id ending in ij. Then each computer can compute only those quadrant counts for quadrants whose quadrant-id ends in ij and report that count to a control computer for summing. Any number of computers can be used. The more computers that are used in the AND computation, the faster it is accomplished. The scale-up is linear, since all computers are performing a similar computation in parallel.
To explain further, a detailed example of the ANDing operation is provided below.
ANDing Example
The ANDing operation is used to calculate the root counts of value PC-trees and tuple PC-trees. Preferably, only the basic PC-trees are stored and the value and tuple PC-trees are generated on an as-needed basis. In this operation, it is presumed that the basic PC-trees are coded in a compact, depth-first ordering of the path to each pure-1 quadrant. A hierarchical quadrant id (qid) scheme is then used. At each level a subquadrant id number (0 means upper left, 1 means upper right, 2 means lower left, 3 means lower right) is appended, see FIG. 6 for quadrant id. Using the PC-tree of FIG. 7 as the first operand of the AND, it can be seen that the sequence of pure-1 qids (left-to-right depth-first order) is 0, 100, 101, 102, 12, 132, 20, 21, 220, 221, 223, 23, 3. Using the PC-tree of FIG. 8 as the second operand of the AND, it can be seen that the sequence of pure-1 qids is 0, 20, 21, 22, 231. Since a quadrant will be pure 1's in the result only if it is pure-1's in both operands (or all operands, in the case there are more than 2), the AND is done by the following: scan the operands; output matching pure-1 sequence, see FIG. 9. The result of the AND operation is shown in FIG. 10. The pseudo-code for the ANDing operation is provided in FIG. 11.
It should be noted that other algebraic operations, i.e., pixel-by-pixel logical operations, may easily be performed on PC-trees as needed including OR, NOT, and XOR. The NOT operation is a straightforward translation of each count to its quadrant-complement (e.g., a 5 count for a quadrant of 16 pixels has a complement of 11). The OR operation is identical to the AND operation except that the role of the 1-bits and the 0-bits are reversed.
III. Tuple Count Data Cube (TC-Cube)
For most spatial data mining procedures the root counts of the tuple PC-trees, as described above and determined by Equation (3) below, are precisely the needed input numbers, since they are the occurrence frequencies of the tuples over the space in question.

PC(v1, v2, . . . ,vn)=PC1,v1 AND PC2,v2 AND . . . AND PCn,vn,  Eq. (3)

These root counts can be organized into a data cube that is preferably called a Tuple Count cube, or TC-cube of the spatial dataset. The TC-cube cell located at (v1,v2, . . . ,vn), contains the root count of P(v1,v2, . . . ,vn). For example, assuming just 3 bands, the (v1,v2,v3)th cell of the TC-cube contains the root count of P(v1,v2,v3)=P1,v1 AND P2,v2 AND P3,v3. The cube can be contracted or expanded by going up one level or down one level in the value concept hierarchy to half or double in each dimension. With bSQ format, the value concept hierarchy of spatial data can be easily represented. For example, refer to FIG. 12 where, for band n, 1 bit up to 8 bits can be used to represent reflectances. FIG. 13 provides an example of a TC-cube using 1-bit values. Note that the total count in the TC-cube is the total number of pixels (e.g., 64 in FIG. 13).

IV. PC-Tree Implementation

The operations to format data into bSQ format and create PC-trees are preferably performed by a parallel cluster of high-speed computers. An example of how PC-trees may be implemented using a such a parallel cluster of computers, e.g., 16 or any other appropriate number, to obtain a root count of a PC-tree assuming a dataset R(K1, . . . ,Km, A1, . . . ,An) where Ki's are structure attributes (e.g., K1=X coord, K2=Y-coord. in a 2-D image) and Ai's are feature attribute which quantifies a feature of a structure point (e.g., pixel), is provided below.
First, it is assumed that all feature attribute values are one byte (8 bits), although any other number of bits may be used without departing from the spirit or scope of the invention. Next, for clarity of exposition it is assumed that R(X,Y,A1, . . . ,An) and x=x1x2 . . . xp, y=y1y2 . . . yp as bit strings. Then the quadrant identifier (qid) of the pixel (x,y) is x1y1.x2y2 . . . xpyp (e.g., if (x,y)=(100111, 001010), qid=10.00.01.10.11.10). Two vector PC-trees are preferably used, the Peano Not-Zero, PNZV, form which shows a 1-bit at a pixel quadrant iff the quadrant is not pure zeros, and the Peano Pure-1, P1V, form which shows a 1-bit iff the quadrant is pure ones.
Striping (distributing to nodes) data tuples as they arrive to the system is preferably performed as follows: 1. Broadcast tuple to all nodes (eg, on Ethernet, broadcast cost=unicast cost); and 2. Node-jk compares each qid segment, except the leaf level, to jk. For every match, xiyi=jk, Node-jk ORs each bit of (a1, . . . ,an) as a bit string into PNZV[ . . . xiyi] and ANDs each bit of (a1, . . . ,an) into P1V[ . . . xiyi] at position, x(i+1)y(i+1).
Then, to obtain a root count of a PC-tree, a root count request is broadcast to all nodes. For example, a request in the format of (Ptree, RootNode, Masktree) is broadcast where:
A. “Ptree” identifies the dataset (R(X,Y,A1, . . . ,An) and the Ptree:

    
    
        BasicPtree Pbp
        RectanglePtree P(,,[v1,vu], . . . ,[w1,wu],[xu,x1]) which includes IntervalPtree P(,,[v1,vu]) which includes ValuePtree P(,,v)=P(,,[v,v])) MultiValuePtree P(,,vi, . . . ,vj)=P(,,[vi,vi], . . . ,[vj,vj]) which includes TuplePtree P(v1, . . . ,vn).
    
    


B. RootNode is the root of a subtree (subquad) given as a qid [ab..cd].
C. MaskTree has one's only at selected positions (to mask out particular pixels, for special purposes. It will be ignored below)
For ease of exposition, it is assumed that the Ptree requested is a tuple Ptree with a feature attribute bit-precision of q-bits. The Ptree can be fully specified by a request: (q,(101 . . . 0,001 . . . 0, . . . , 110 . . . 1)) with a bit string of length q for each band, A1, . . . , An). Each 1-bit request the basic Ptree and each 0-bit requests the complement of the basic Ptree. E.g., for q=2 and P(10,11, . . . ,01)=P(2,3, . . . ,1) send (q,(10,11, . . . , 01)).
Then, each Nodeij (a computer may be acting as several nodes, starting an independent execution thread for each node that it represents) performs as follows:
For each qid in its directory ending in ij, [..ij]=[ab..cd..hk.ij], compute P1V=P1V(11)&PNZV(12) & P1V(21)&P1V(22) & . . . & PNZV(n1)&P1Vn2) PNZV=PNZV(11)&P1V(12) & PNZV(21)&PNZV(22) & . . . & P1V(n1)&PNZVn2)
Next, compose a “ChildVector” (CV[..ij]): initially 11..1, AND in PNZV (zeros out positions corresponding to pure0 quads), XOR in P1V (flips Pure1's from 1 to 0, leaving only Mixed quads at 1).
Next, calculate COLTNT[..ij]=(4^level)*OneCount(P1V). Add [..ij.qr]-Children counts to COUNT[..ij] as they arrive. When all children have replied (there are OneCount(CV[..ij]) of them) Unicast COUNT[ab..cd..hk.ij] to ParentNode, Node(hk) by setting up a unicast socket to parent. This continues until node(cd) gets its answer. Node(cd) then forwards to NodeC.
The method by which requests are sent to the nodes of the cluster and replies are accumulated into the final count will vary depending on the type and size of the datasets and the type and number of computers available as nodes in the cluster. The options include 1) broadcast request, 2) serial multicast request, 3) parallel unicast reply, 4) serial unicast reply.
V. Data Mining Techniques Utilizing bSQ and PC-tree Technology
Various data mining techniques wherein the bSQ and PC-tree technology of the present invention are utilized are described below. However, it should be noted that numerous other types of data mining techniques may employ the bSQ and PC-tree technology without departing from the spirit or scope of the invention. Any data mining technique based on counts of occurrences of feature values, benefits from this technique.
The three categories of data mining techniques are Association Rule Mining (ARM), Classification and Clustering.
V. A. Association Rule Mining
The task of association rule mining (ARM) is to find interesting relationships from the data in the form of rules. The initial application of association rule mining was on market basket data. An association rule is a relationship of the form X=>Y, where X and Y are sets of items. X is called antecedent and Y is called the consequence. There are two primary measures, support and confidence, used in assessing the quality of the rules. The goal of association rule mining is to find all the rules with support and confidence exceeding user specified thresholds. The first step in a basic ARM technique (e.g., Apriori and DHP) is to find all frequent itemsets whose supports are above the minimal threshold. The second step is to derive high confidence rules supported by those frequent itemsets. The first step is the key issue in terms of efficiency.
The formal definition of association rules is introduced in “Mining Association Rules in Large Database” by R. agrawal, T. Imielinski, A Swami (SIGMOD 1993), which is hereby incorporated by reference. Let I={i1, i2, . . . , im} be a set of literals, called items. Let D be a set of transactions, where each transaction T is a set of items (called “itemset”) such that T⊂I. A transaction T contains X, a set of some items in I, if X⊂T. An association rule is an implication of the form X=>Y, where X⊂I, Y⊂I, and X∩Y=Ø. The rule X=>Y holds in the transaction set D with confidence c if c % of transactions in D that contain X also contain Y. The rule X=>Y has support s in the transaction set D if s % of transactions in D contain X∪Y.
Given a set of transactions D, the problem of mining association rules is to generate all association rules that have certain user-specified minimum support (called minsup) and confidence (called minconf).
The discovery of association rules is usually performed in two steps. The first step is to find all itemsets whose support is greater than the user-specified minimum support. Itemsets with minimum support are called frequent itemsets. The second step is to generate the desired rules using the frequent itemsets generated in the first step. The overall performance is mainly determined by the first step. Once the frequent itemsets have been generated, it is straightforward to derive the rules.
Basic association rule mining techniques are proposed for dealing with Boolean attributes, such as Market Basket data. To perform association rule mining on spatial, remotely sensed image, or RSI data, data partition is required since RSI data are quantitative data. There are various kinds of partition approaches, including Equi-length partition, Equi-depth partition and user customized partition.
As mentioned above, frequent itemset generation is the key step in association rule mining. Usually a step-wise procedure is used to generate frequent itemsets. To determine if a candidate itemset is frequent, the support is calculated then compared to the threshold. In Apriori, a well known data mining technique, and most other ARM techniques, the entire transaction database needs to be scanned to calculate the support for each candidate itemset. When the transaction set is large, (e.g., a large image with 40,000,000 pixels), this cost will be extremely high.
Utilizing the bSQ and PC-tree technology of the present invention, a new data mining technique, preferably called P-ARM, can be used to solve this problem. The main idea is that A) support of each candidate itemset can be obtained directly from ANDing Ptrees (as the root count of the result). There is no need to scan the transaction database, which is the main cost for standard ARM methods.
The P-ARM technique is provided in FIG. 14. The p-gen function in P-ARM differs from the Apriori-gen function in Apriori in the way pruning is done. Since any itemsets consisting of two or more intervals from the same band will have zero support (no value can be in both intervals simultaneously), the kind of joining done in Aprior is unnecessary. The AND_rootcount function is used to calculate itemset counts directly by ANDing the appropriate basic-Ptrees. For example, in the itemset {B1[0,64), B2[64,127)}, where B1 and B2 are two bands, the support count is the root count of P1, 00 AND P2, 01.
The P-ARM technique is applicable equally to any kind of data partition. Since whether partitioning is equi-length, equi-depth or user-defined, it can be characterized as follows. For each band, choose partition-points, v0=0, v1, . . . , vn+1=256, then the partitions are, {[vi, vi+1): i=0 . . . n} and are identified as values, {vi: i=0 . . . n}. The items to be used in the data mining techniques are then pairs, (bi, vj).
To show the usefulness of the P-ARM technique, which utilizes the bSQ and PC-tree technology of the present invention, the P-ARM technique is compared to the classical frequent itemsets generation technique, Apriori, and a recently proposed efficient technique, FP-growth, in which no candidate generation step is needed. The FP-Growth technique is described in “Mining Frequent Patterns without Candidate Generation” by J. Han, J. Pei, and Y. Yin (SIGMOD 2000), which is hereby incorporated by reference. The comparisons are made based on experiments performed on a 900-MHz PC with 256 megabytes main memory, running Windows 2000. The P-ARM technique was generalized to find all the frequent itemsets, not limited to those of-interest (e.g., containing Yield), for the fairness. The images used were actual aerial TIFF images with a synchronized yield band. Thus, each dataset has 4 bands {Blue, Green, Red, Yield}. Different image sizes are used up to 1320×1320 pixels (the total number of transactions will be ̃1,700,000). Only the basic PC-trees are stored for each dataset.
The Apriori technique for the TIFF-Yield datasets was implemented using equi-length partitioning. P-ARM is more scalable than Apriori in two ways. First, P-ARM is more scalable for lower support thresholds. The reason is, for low support thresholds, the number of candidate itemsets will be extremely large. Thus, candidate itemset generation performance degrades markedly. FIG. 15 gives the results of the comparison of the P-ARM technique using PC-tree and Apriori for different support thresholds.
Secondly, the P-ARM technique is more scalable to large image datasets. The reason is, in the Apriori technique the entire database must be scanned each time a support is to be calculated. This is a very high cost for large databases. However, in P-ARM, since the count is calculated directly from the root count of a basic-PC-tree AND program, when the dataset size is doubled, only one more level is added to each basic-PC-tree. The cost is relatively small compared to the Apriori technique as shown in FIG. 16.
FP-growth is a very efficient technique for association rule mining, which uses a data structure called frequent pattern tree (FP-tree) to store compressed information about frequent patterns. The FP-growth object code was used and converted the image to the required file format. For a dataset of 100K bytes, FP-growth runs very fast. But the FP-growth technique is run on the TIFF image of size 1320×1320 pixels, the performance falls off. For large sized datasets and low support thresholds, it takes longer for FP-growth to run than P-ARM. FIG. 17 shows the experimental result of running the P-ARM and the FP-growth techniques on a 1320×1320 pixel TIFF dataset. In these experiments, 2-bit precision has been used.
Both P-ARM and FP-growth run faster than Apriori. For large image datasets, the P-ARM technique runs faster than the FP-tree technique when the support threshold is low. Also, the relative performance of P-ARM (relative to FP-growth) increases as the size of the data set increases, see FIG. 18.
Partitioning and Pruning with P-ARM
Pruning techniques, such as bit-based pruning and band-based pruning, are important to the efficiency of association rule mining. Partitioning techniques, such as equi-length partitioning, equi-depth partitioning, and customized partitioning can be used in addition or as an alternative to pruning, to reduce the complexity of spatial data. Specifically, when dealing with quantitative data, such as reflectance values (which are typically 8-bit data values), it is common to partition the data before performing association rule mining. As mentioned earlier, there are several ways to partition the data, including equi-length partitioning, equi-depth partitioning and customized partitioning. Equi-length partition is a simple but very useful method. By truncating some of the right-most bits of the values (low order or least significant bits) the size of the itemset can be dramatically reduced without losing too much information (the low order bits show only subtle differences). For example, the right-most 6-bits can be truncated, resulting in the set of values {00, 01, 10, 11} (in decimal, {0, 1, 2, 3}). Each of these values represents a partition of the original 8-bit value space (i.e., 00 represents the values in [0,64), 01 represents the values in [64,128), etc.).
Further pruning can be done by understanding the kinds of rules that are of interest to the user and focusing on those only. For instance, for an agricultural producer using precision techniques, there is little interest in rules of the type, Red>48→Green<134. A scientist might be interested in color relationships (both antecedent and consequent from color bands), but the producer is interested only in relationships in color antecedent and consequents from, for example, a yield band (i.e., when do observed color combinations predict high yield or foretell low yield). Therefore, for precision agriculture applications and other similar type applications, it makes sense to restrict to those rules that have consequent from the yield band. The restrictions in the type of itemsets allowed for antecedent and consequent based on interest will be referred to as of interest, as distinct from the notion of rules that are “interesting”. Of-interest rules can be interesting or not interesting, depending on such measures as support and confidence, etc. In some cases, it would be better to allow users to partition the value space into uneven partitions. User knowledge can be applied in partitioning. E.g., band Bi can be partitioned into {[0,32), [32,64) [64,96), [96,256)}, if it is known that there will be only a few values between 96 to 255. Applying user's domain knowledge increases accuracy and data mining efficiency. This type of partitioning will be referred to as user-defined partitioning. Equi-depth partitioning (each partition has approximately the same number of pixels) can be done by setting the endpoints so that there are approximately the same number of values in each partition.
Whether partitioning is equi-length, equi-depth or user-defined, it can be characterized as follows. For each band, choose partition-points, v0=0, v1, . . . , vn+1=256, then the partitions are, {[vi, vi+1): i=0 . . . n} and are identified as values, {vi: i=0 . . . n}. The items to be used in the data mining techniques are then pairs, (bi, vj). The details of association rule mining for remotely sensed images (RSI) with the P-ARM technique wherein partitioning and pruning is used is provided below.
P-ARM Details for RSI Data Utilizing Partitioning and Pruning
Let I be the set of all items and T be the set of all transactions. I={(b,v)|b=band, v=value (1-bit or 2-bit or . . . 8-bit) }, T={pixels}.
Admissible Itemsets (Asets) are itemsets of the form, Int1×Int2× . . . ×Intn=Πi=1 . . . n Inti, where Inti is an interval of values in Bandi (some of which may be the full value range). Modeled on the Apriori technique [2], all itemsets which are frequent and of-interest (e.g., if B1=Yield), the user may wish to restrict attention to those Asets for which Int1 is not all of B1—so either high-yield or low-yield are found first. For 1-bit data values, this means either yield <128 or Yield ≧128 (other threshold values can be selected using the user-defined partitioning concept described above). Then, the user may want to restrict interest to those rules for which the rule consequent is Int1.
For a frequent Aset, B=Πi=1 . . . n Inti, rules are created by partitioning {1 . . . n} into two disjoint sets, Â={i1 . . . im} and ={j1 . . . jq}, q+m=n, and then forming the rule, A→C where A=Πk∈Â Intk and C=Πk∈ Intk. As noted above, users may be interested only in rules where q=1 and, therefore, the consequents come from a specified band (e.g., B1=Yield). Then, there is just one rule of interest for each frequent set found and it need only be checked as to whether it is high-confidence or not.
For the restricted interest case described above, in which q=1 and C=Int1 (e.g., the Yield band), support{A→C}=support{p|p is a pixel such that p(i) is in all Inti, i=1 . . . n}. The confidence of a rule, A→C is its support divided by the support of A. In the restricted interest case, with B1=Yield, B2=blue, B3=green, B4=red, it is necessary to calculate support (A→C)=support(Int1×Int2×Int3×Int4) and support(A)=support(Int2×Int3×Int4). If support(B) minsup (the specified minimum support threshold) and supp(B)/supp(A) minconf (the specified minimum confidence threshold), then A→B is a strong rule. A k-band Aset (kAset) is an Aset in which k of the Inti intervals are non-full (i.e., in k of the bands the intervals are not the fully unrestricted intervals of all values).
Finding all frequent 1Asets is performed first. Then, the candidate 2Asets are those whose every 1Aset subset is frequent, etc. The candidate kAsets are those whose every (k−1) Aset subset is frequent. Next, a pruning technique based on the value concept hierarchy is looked for. Once all 1-bit frequent kAsets are found, the fact that a 2-bit kAset cannot be frequent if its enclosing 1-bit kAset is infrequent can be used. A 1-bit Aset encloses a 2-bit Aset if when the endpoints of the 2-bit Aset are shifted right 1-bit position, it is a subset of the 1-bit Aset, (e.g., [1,1] encloses [10,11], [10,10] and [11,11]).
The P-ARM technique assumes a fixed value precision, for example, 3-bit precision in all bands. The p-gen function differs from the Apriori-gen function in the way pruning is done. In this example, band-based pruning is used. Since any itemsets consisting of two or more intervals from the same band will have zero support (no value can be in both intervals simultaneously), the kind of joining done in [1] is not necessary. The AND_rootcount function is used to calculate Aset counts directly by ANDing the appropriate basic P-trees instead of scanning the transaction databases. For example, in the Asets, {B1[0,64), B2[64,127)}, the count is the root count of P1,00 AND P2,01.
To obtain the rules at other precision levels, the P-ARM technique can be applied again. There is a special bit-based pruning technique which can be applied in this case. This bit-based pruning is essentially a matter of noting, e.g., if Aset [1,1]2 (the interval [1,1] in band 2) is not frequent, then the Asets [10,10]2 and [11,11]2 which are covered by [1,1]2 cannot possibly be frequent either.
P-ARM Example Utilizing Partitioning and Pruning
The following data in relational format will be used to illustrate the method. The data contains four bands with 4-bit precision in the data values.












FIELD
CLASS
REMOTELY SENSED


COORDS
LABEL
REFLECTANCES











X Y
YIELD
Blue
Green
Red














0, 0
3
7
8
11


0, 1
3
3
8
15


0, 2
7
3
4
11


0, 3
7
2
5
11


1, 0
3
7
8
11


1, 1
3
3
8
11


1, 2
7
3
4
11


1, 3
7
2
5
11


2, 0
2
11
8
15


2, 1
2
11
8
15


2, 2
10
10
4
11


2, 3
15
10
4
11


3, 0
2
11
8
15


3, 1
10
11
8
15


3, 2
15
10
4
11


3, 3
15
10
4
11


0, 0
0011
0111
1000
1011


0, 1
0011
0011
1000
1011


0, 2
0111
0011
0100
1011


0, 3
0111
0010
0101
1011


1, 0
0011
0111
1000
1011


1, 1
0011
0011
1000
1011


1, 2
0111
0011
0100
1011


1, 3
0111
0010
0101
1011


2, 0
0010
1011
1000
1111


2, 1
0010
1011
1000
1111


2, 2
1010
1010
0100
1011


2, 3
1111
1010
0100
1011


3, 0
0010
1011
1000
1111


3, 1
1010
1011
1000
1111


3, 2
1111
1010
0100
1011


3, 3
1111
1010
0101
1011









The data is first converted to bSQ format. We display the bSQ bit-band values in their spatial positions, rather than in columnar files. The Band, bit-bands are:
















B11
B12
B13
B14









0000
0011
1111
1111



0000
0011
1111
1111



0011
0001
1111
0001



0111
0011
1111
0011










The Band-1 basic Ptrees are as follows (tree pointers are omitted). The Band 2,3 and 4 Ptrees are similar.














P1,1
P1,2
P1,3
P1,4







5
7
16
11



0 0 1 4
0 4 0 3

4 4 0 3


0001
0111

0111









The value Ptrees are created as needed. The creation process for P1, 0011 is shown as an example.
















P1,0011 =
P1,1′ AND
P1,2′ AND
P1,3 AND
P1,4


4
11
9
16
11


4 0 0 0
4 4 3 0
4 0 4 1

4 4 0 3



1110
1000

0111


since,








0  1  20  21  22
(pure-1 paths of P1,1′ )


0  2     31
(pure-1 paths of P1,2′ )


0 1        31 32 33
(pure-1 paths of P1,4  note that P1,3 is entirely pure-1)


0
(pure-1 paths of P1,0011 0 is the only pure-1 path in all operands)









The other value Ptrees are calculated in this same way.



















P1,0000
P1,0100
P1,1000
P1,1100
P1,0010
P1,0110
P1,1010
P1,1110


0
0
0
0
3
0
2
0






0 0 3 0

0 0 1 1






1110

0001 1000


P1,0001
P1,0101
P1,1001
P1,1101
P1,0011
P1,0111
P1,1011
P1,1111


0
0
0
0
4
4
0
3






4 0 0 0
0 4 0 0

0 0 03









0111


P2,0000
P2,0100
P2,1000
P2,1100
P2,0010
P2,0110
P2,1010
P2,1110


0
0
0
0
2
0
4
0






0 2 0 0

0 0 0 4






0101


P2,0001
P2,0101
P2,1001
P2,1101
P2,0011
P2,0111
P2,1011
P2,1111


0
0
0
0
4
2
4
0






2 2 0 0
2 0 0 0
0 0 4 0






0101 1010
1010


P3,0000
P3,0100
P3,1000
P3,1100
P3,0010
P3,0110
P3,1010
P3,1110


0
6
8
0
0
0
0
0



0 2 0 4
4 0 4 0



1010


P3,0001
P3,0101
P3,1001
P3,1101
P3,0011
P3,0111
P3,1011
P3,1111


0
2
0
0
0
0
0
0



0 2 0 0



0101


P4,0000
P4,0100
P4,1000
P4,1100
P4,0010
P4,0110
P4,1010
P4,1110


0
0
0
0
0
0
0
0


P4,0001
P4,0101
P4,1001
P4,1101
P4,0011
P4,0111
P4,1011
P4,1111


0
0
0
0
0
0
11
5








3 4 0 4
1 0 4 0








1011
0100









Assume the minimum support is 60% (requiring a count of 10) and the minimum confidence is 60%. First, we find all 1Asets for 1-bit values from B1. There are two possibilities for Int1, [1,1] and [0,0].












Since,  P1,1 support([1,1]1) = 5 (infrequent) and support([0,0]1)=11 


(frequent).








5



0 0 1 4


0001









Similarly, there are two possibilities for Int2 with support([1,1]2)=8 (infrequent) and support([0,0]2)=8 (infrequent), two possibilities for Int3 with support([1,1]3)=8 (infrequent) and support([0,0]3)=8 (infrequent), and two possibilities for Int3 with support([1,1]4)=16 (frequent) and support([0,0]4)=0 (infrequent).

    The set of 1-bit frequent 1Asets, 1L1, is {[0,0]1, [1,1]4 }
    The set of 1-bit candidate 2Asets, 1C2, is {[0,0]1×[1,1]4} (support=root-count P1,0 & P4,1=11) and therefore, 1L2={[0,0]1×[1,1]4 }
    The set of 1-bit candidate 3Asets, 1C3 is empty.


Only those frequent sets which involve Yield (B1) as candidates for forming rules are considered and we use B1 as the consequent of those rules (assuming this is the user's choice). The rule which can be formed with B1 as the consequent is: [1,1]4→[0,0]1 (rule support=11). The supports of the antecedent is, support([1,1]4)=16, giving confidence([1,1]4→[0,0]1)= 11/16. Thus, this is a strong rule.
The frequent 1-bit 1Asets were [0,0]1 and [1,1]4 and the other 1-bit 1Asets are infrequent. This means all their enclosed 2-bit subintervals are infrequent. The interval [00,01]1 is identical to [0,0]1 in terms of the full 8-bit values that are included, and [00,10]1 is a superset of [0,0]1, so both are frequent.
Others in band-1 to consider are: [00,00], [01,01], [01,10] and [01,11]. [00,00] is infrequent (using P1,00, count=7). [01,01] is infrequent (using P1,01, count=4). For [01,10] we use P1,01 OR P1,10. If it is frequent, then [01,11] is frequent, otherwise, for [01,11] we use P1,01 OR P1,10 OR P1,11. The OR operation is very similar to the AND operation except that the role of 0 and 1 interchange. A result quadrant is pure-0 if both operand quadrants are pure-0. If either operand quadrant is pure-1, the result is pure-1. The root count of P1,01 OR P1,10 is 6 and therefore [01,11] is infrequent. The root count of P1,01 OR P1,10 OR P1,11 is 9 and therefore [01,11] is infrequent.
The only new frequent 2-bit band1 1Aset is [00,10]1, which does not form the support set of a rule. Thus, the P-ARM technique terminates.
Deriving High Confidence Rules for Spatial Data Using Tuple Count Cube
The traditional task of association rule mining is to find all rules with high support and high confidence. In some applications, such as mining spatial datasets for natural resources, the task is to find high confidence rules even though their supports may be low. In still other applications, such as the identification of agricultural pest infestations, the task is to find high confidence rules preferably while the support is still very low. The basic Apriori technique cannot be used to solve this problem efficiently, i.e., setting the minimal support to a very low value, so that high confidence rules with almost no support limit can be derived is impractical as it leads to a huge number of frequent itemsets. However, the PC-tree and TC-cube described earlier can be used to derive high confidence rules without such a problem.
Described hereinbelow is a TC-cube based method for mining non-redundant, low-support, high-confidence rules. Such rules will be called confident rules. The main interest is in rules with low support, which are important for many application areas such as natural resource searches, agriculture pest infestations identification, etc. However, a small positive support threshold is set in order to eliminate rules that result from noise and outliers. A high threshold for confidence is set in order to find only the most confident rules.
To eliminate redundant rules resulting from over-fitting, an technique similar to the one introduced in “Growing Decision Trees on Support-less Association Rules” by Ke Wang, Senquiang Zhou, and Yu He (KDD 2000, Boston, Mass.), which is hereby incorporated by reference, is used. In the “Growing Decision Trees . . . ” article, rules are ranked based on confidence, support, rule-size, and data-value ordering, respectively. Rules are compared with their generalizations for redundancy before they are included in the set of confident rules. Herein, a similar rank definition is used, except that support level and data-value ordering is not used. Since support level is expected to be very low in many spatial applications, and since a minimum support is set only to eliminate rules resulting from noise, it is not used in rule ranking. Rules are declared redundant only if they are outranked by a generalization. It is chosen not to eliminate a rule which is outranked only by virtue the specific data values involved.
A rule r, ranks higher than rule r′, if confidence[r]>confidence[r′], or if confidence[r]=confidence[r′] and the number of attributes in the antecedent of r is less than the number in the antecedent of r′.
A rule r, generalizes a rule r′, if they have the same consequent and the antecedent of r is properly contained in the antecedent of r′. The technique for mining confident rules from spatial data is as follows.












Build the set of confident rules, C (initially empty) as follows.


Start with 1-bit values, 2 bands;


then 1-bit values and 3 bands; . . .


then 2-bit values and 2 bands;


then 2-bit values and 3 bands; . . .


. . .


At each stage defined above, do the following:


Find all confident rules (support at least minimum_support and


confidence at least minimum_confidence), by rolling-up the TC-cube


along each potential consequent set using summation. Comparing these


sums with the support theshold to isolate rule support sets with the


minimum support. Compare the normalized TC-cube values (divide by the


rolled-up sum) with the minimum confidence level to isolate the


confident rules. Place any new confident rule in C, but only if


the rank is higher than any of its generalizations already in C.









The following example contains 3 bands of 3-bit spatial data in bSQ format.
Band-1:















B11
B12
B13









11 11 00 01
00 00 11 00
11 11 00 00



11 01 00 01
00 00 11 00
11 11 00 00



11 00 00 11
00 00 11 01
11 11 00 00



11 00 01 11
00 00 11 10
11 11 00 00



11 11 00 00
11 11 00 00
00 11 00 00



11 11 00 00
11 11 00 00
10 11 00 00



11 11 00 00
10 01 00 11
00 00 00 00



11 11 00 00
10 11 00 11
00 01 00 00










Therefore, the mask trees (PM-trees) for these band-1 bSQ files are:















PM11
PM12
PM13









mm10
0mmm
10m0



1m10 0mm1
101m 11mm 0001
m10m



1101 0101 0001
0110 1010 0111
0010 0001










Band-2: (with the mask trees for band-2 bSQ files)


















B21
B22
B23







00 00 00 11
00 11 00 00
11 11 11 11



00 00 00 11
00 11 00 00
11 11 11 11



00 00 11 00
11 00 00 00
11 11 11 11



00 00 11 00
11 00 00 00
11 11 11 11



11 11 00 00
11 11 11 11
11 11 00 11



11 11 00 00
11 11 11 11
11 11 00 10



11 11 00 00
10 01 11 11
11 11 00 11



11 11 00 00
10 11 11 11
11 11 00 11







PM21
PM22
PM23







0m10
m011
111m



0110
0110
0m01










Band-3: (with the mask trees for band-3 bSQ files)


















B31
B32
B33







11 11 00 00
00 00 00 00
00 00 11 11



11 11 00 00
00 00 00 00
00 00 11 11



11 11 00 00
00 00 11 00
10 11 11 11



11 11 00 00
00 00 11 00
10 11 11 11



00 00 11 01
00 00 00 00
11 11 11 11



00 00 11 11
00 00 00 00
11 11 11 11



00 00 00 11
11 00 00 00
11 11 11 11



00 00 00 11
11 00 00 00
11 11 11 11







PM31
PM32
PM33







100m
00m0
m111



1m01
0010
00m1



0111

1010










Assume minimum confidence threshold of 80% and minimum support threshold of 10%. Start with 1-bit values and 2 bands, B1 and B2. The required PM-trees and their corresponding PC-trees are:


















PM11{circumflex over ( )}21
PC11{circumflex over ( )}21
PM11‘{circumflex over ( )}21’
PC11‘{circumflex over ( )}21’








19

25



0m10
0 3 16 0
mm01
5 4 0 16



0mm0
0210
0m01 1000
0104 4000



0101 0001
0101 0001
0010
0010







PM11{circumflex over ( )}21′
PC11{circumflex over ( )}21′
PM11′{circumflex over ( )}21
PC11′{circumflex over ( )}21








15

5



mm00
11 4 0 0
0m00
0 5 0 0



1m10 0001
4340 0004
0mm0
0230



1101
1101
1010 1110
1010 1110










The TC-cube values (root counts from the PC-trees): 




The rolled-up sums and confidence thresholds are: 




All sums are at least 10% support (6.4). There is one confident rule:
















C:



B1={0} => B2={0} with confidence = 83.3%










Continue with 1-bit values and the 2 bands, B1 and B3, we can get the following TC-cube with rolled-up sums and confidence thresholds: 




There are no new confident rules. Similarly, the 1-bit TC-cube for band B2 and B3 can be constructed below. 




All sums are at least 10% of 64 (6.4), thus, all rules will have enough support. There are two confident rule, B2={1}=>B3={0} with confidence=100% and B3={1}=>B2={0} with confidence=100%. Thus,

















C:




B1={0} => B2={0}
c = 83.3%



B2={1} => B3={0}
c = 100%



B3={1} => B2={0}
c = 100%










Next, consider 1-bit values and bands, B1, B2, and B3. The counts, sums and confidence thresholds are: 




Support sets, B1={0}^B2={1} and B2={1}^B3={1} lack support. The new confident rules are:
















B1={1}{circumflex over ( )}B2={1} => B3={0}, confidence = 100%



B1={1}{circumflex over ( )}B3={0} => B2={1}, confidence = 82.6%



B1={1}{circumflex over ( )}B3={1} => B2={0}, confidence = 100%



B1={0}{circumflex over ( )}B3={1} => B2={0}, confidence = 100%










B1={1}^B2={1}=>B3={0} in not included because it is generalized by B2={1}=>B3={0}, which is already in C and has higher rank. Also, B1={1}^B3={1}=>B2={0} is not included because it is generalized by B3={1}=>B2={0}, which is already in C and has higher rank. B1={0}^B3={1}=>B2={0} is not included because it is generalized by B3={1}=>B2={0}, which has higher rank also. Thus,

















C:




B1={0} => B2={0}
c = 83.3%



B2={1} => B3={0}
c = 100%



B3={1} => B2={0}
c = 100%



B1={1}{circumflex over ( )}B3={0} => B2={1}
c = 82.6%










Next, 2-bit data values are considered and one proceeds in the same way. Depending upon the goal of the data mining task (e.g., mine for classes of rules, individual rules, . . . ) the rules already in C can be used to obviate the need to consider 2-bit refinements of the rules in C. This simplifies the 2-bit stage markedly.
In utilizing TC-cubes, the TC-cube values are preferably built from basic PC-trees on-the-fly as needed. Once the TC-cube is built, the mining task can be performed with different parameters (i.e., different support and confidence thresholds) without rebuilding the cube. Using the roll-up cube operation, one can obtain the TC-cube for n bit from the TC-cube for n+1 bit. This is a good feature of bit value concept hierarchy.
The functionalities of deriving high confidence rules utilizing TC-cubes has been enhanced in two ways over other manners of deriving rules. Firstly, the antecedent attribute is not specified. Compared to other approaches for deriving high confidence rules, the TC-cube is more general. Secondly, redundant rules based on the rule rank are removed.
An important feature of the utilization of TC-cubes is the scalability. This has two meanings. First, the TC-cube technique is scalable with respect to the data set size. The reason is that the size of TC-cube is independent of the data set size, but only based on the number of bands and number of bits. In addition, the mining cost only depends on the TC-cube size. For example, for an image with size 8192×8192 with three bands, the TC-cube using 2 bits is as simple as that of the example provided above. By comparison, in the Apriori technique, the larger the data set, the higher the cost of the mining process. Therefore, the larger the data set, the more benefit in using the present invention.
The other aspect of scalability is that the TC-cube technique is scalable with respect to the support threshold. The example above focuses on mining high confidence rules with very small support. As the support threshold is decreased to very low value, the cost of using the Aprioi technique will be increased dramatically, resulting in a huge number of frequent itemsets (combination exploration). However, in the TC-cube technique, the process is not based on the frequent itemsets generation, so it works well for low support threshold.
As mentioned earlier, there is an additional cost to build the TC-cube. The key issue of this cost is the PC-tree ANDing. Parallel ANDing of PC-trees is preferably implemented, which is efficient on a cluster of computers.
For the example above, an array of 16 dual 266 MHz processor systems with a 400 MHz dual processor as the control node was used. The 2048*2048 image was partitioned among all the nodes. Each node contains data for 512×512 pixels. These data are stored at different nodes as another variation of PC-tree, called Peano Vector Tree (PV-Tree). Here is how PV-tree is constructed. First, a Peano Count Tree is built using fan-out 64 for each level. Then the tree is saved as bit vectors. For each internal node (except the root), two 64 bit bit-vectors are used, one is for pure1 and other is for pure0. At the leaf level, only one vector (for pure1) is used. The pseudo-code of FIG. 19 describes this implementation in detail.
From a single TM scene, there will be 56 (7×8) Peano Vector Trees—all saved in a single node. Using 16 nodes a scene of size 2048×2048 can be covered.
When it is necessary to perform the ANDing operation on the entire scene, the local ANDing result of two Peano Vector Trees is calculated and the result sent to the control node, giving the final result. The pseudo-code of FIG. 20 describes the local ANDing operation.
Message Passing Interface (MPI) is used on the cluster to implement the logical operations on Peano Vector Trees. This program uses the Single Program Multiple Data (SPMD) paradigm. The graph of FIG. 21 shows the result of ANDing time experiments that have been observed (to perform AND operation on two Peano Vector Trees) for a TM scene. The AND time varies from 6.72 ms to 52.12 ms. With this high speed ANDing, the TC-cube can be built very quickly. For example, for a 2-bit 3-band TC-cube, the total AND time is about 1 second.
IV. B. Classification
Classification is another useful approach to mining information from spatial data. In classification, a training (learning) set is identified for the construction of a classifier. Each record in the training set has several attributes. There is one attribute, called the goal or class label attribute, which indicates the class to which each record belongs. A test set is used to test the accuracy of the classifier once it has been developed from the learning dataset. The classifier, once certified, is used to predict the class label of a new, unknown class tuple. Different models have been proposed for classification, such as decision tree induction, neural network, Bayesian, fuzzy set, nearest neighbor, and so on. Among these models, decision tree induction is widely used for classification, such as ID3 (and its variants such as C4.5, CART, Interval Classifier, SPRINT and BOAT.)
A classification task typically involves three phases, a learning phase, a testing phase, and an application phase. In the learning phase, training data are analyzed by a classification technique. Each tuple in a training dataset is a training sample randomly selected from the sample population. A class label attribute is identified whose values are used to label the classes. The learning model or classifier resulting from this learning phase may be in the form of classification rules, or a decision tree, or a mathematical formulae. Since the class label of each training sample is provided, this approach is known as supervised learning. In unsupervised learning (clustering), the class labels are not known in advance.
In the testing phase test data are used to assess the accuracy of classifier. Each tuple of the test dataset is randomly selected from the sample population, usually with the additional condition that no sample should be in both the learning set and the test set. If the classifier passes the test phase, it is used for the classification of new data tuples. This is the application phase. The new tuples do not have a class attribute label. The classifier predicts the class label for these new data samples. An example of simple spatial data classification by decision tree induction is provided below.
In this example the data is a remotely sensed image (e.g., satellite image or aerial photo) of an agricultural field taken during the previous growing season and the crop yield levels for that field, measured at the end of that same growing season. These data are sampled to make up the learning and test datasets. The new data samples are remotely sensed image values taken during a “current” growing season prior to harvest. The goal is to classify the previous year's data using yield as the class label attribute and then to use the resulting classifier to predict yield levels for the current year (e.g., to determine where additional nitrogen should be applied to raise yield levels). The decision tree is expressed as a conjunctive rule. NIR stands for “Near Infrared”. The training dataset is as follows:












Training set:









FIELD
REMOTELY SENSED



COORD
 REFLECTANCE LEVELS
YIELD













X
Y
Blue
Green
Red
NIR
LEVELS
















0
0
0000 1001
1010 1111
0000 0110
1111 0101
medium


3
1
0000 1011
1011 0100
0000 0101
1111 0111
medium


2
2
0000 1011
1011 0101
0000 0100
1111 0111
high


1
1
0000 0111
1011 0111
0000 0011
1111 1000
high


0
4
0000 0111
1011 1011
0000 0001
1111 1001
high


7
6
0000 1000
1011 1111
0000 0000
1111 1011
high







↓


Classification Technique (classify by yield level)


|


Classification (classify with respect to YIELD level


IF  NIR > 1111 0111 and Red < 0000 0110  THEN YIELD = high


Test Data:









FIELD
REMOTELY SENSED



COORD
 REFLECTANCE LEVELS
YIELD













X
Y
Blue
Green
Red
NIR
LEVELS
















1
0
0001 1101
1010 1110
0000 0111
1111 0100
medium


0
1
0000 1111
1011 0101
0000 0110
1111 0110
medium


0
2
0001 1111
1011 0111
0000 0101
1111 0110
medium


7
3
0001 1111
1011 0110
0000 0010
1111 1000
high


4
4
0001 1111
1111 1010
0000 0010
1111 1000
high


6
6
0001 1111
1011 1110
0000 0001
1111 1010
high







↓


Classifier


IF  NIR > 1111 0111 and Red < 0000 0110  THEN YIELD = high


↓


prediction accuracy percentage = 100%


New Data:









FIELD
REMOTELY SENSED



COORD
 REFLECTANCE LEVELS
YIELD













X
Y
Blue
Green
Red
NIR
LEVELS
















8
6
0001 1100
1011 1110
0000 0001
1111 1110
?







↓


Classifier


IF  NIR > 1111 0111 and Red < 0000 0110  THEN YIELD = high


↓


YIELD = high









In the overall classification effort, as in most data mining approaches, there is a data preparation stage in which the data is prepared for classification. Data preparation can involve cleaning (noise reduction by applying smoothing techniques and missing value management techniques). The PC-tree data structure facilitates a proximity-based data smoothing method which can reduce the data classification time considerably. The smoothing method is called bottom-up purity shifting. By replacing 3 counts with 4 and 1 counts with 0 at level-1 (and making resultant changes on up the tree), the data is smoothed and the PC-tree is compactified. A more drastic smoothing can be effected by deciding at any level, which set of counts to replace with pure1 and which set of counts to replace with pure0.
Another important pre-classification step is relevance analysis (selecting only a subset of the feature attributes, so as to improve technique efficiency). This step can involve removal of irrelevant attributes, removal of redundant attributes, etc. A very effective way to determine relevance is to rollup the TC-cube to the class label attribute and each other potential decision attribute in turn. If any of these rollups produce counts that are roughly uniformly distributed, then that attribute is not going to be effective in classifying the class label attribute. The rollup can be computed from the basic PC-trees without necessitating the creation of the TC-cube. This can be done by ANDing the class label attribute PC-trees with the PC-trees of the potential decision attribute. Since a rough estimate of uniformity in the root counts is all that is needed, ever better estimates can be discovered ANDing only down to a fixed depth of the PC-trees (which can be done very quickly). For instance, ANDing only depth=1 counts provides the roughest of distribution information, ANDing at depth=2 provides better distribution information, and so forth.
A Decision Tree is a flowchart-like structure in which each inode denotes a test on an attribute, each branch represents an outcome of the test and the leaf nodes represent classes or class distributions. Unknown samples can be classified by testing attributes against the tree. Paths traced from root to leaf holds the class prediction for that sample. The basic technique for inducing a decision tree from the learning or training sample set is as follows:

    
    
        Initially the decision tree is a single node representing the entire training set.
        If all samples are in the same class, this node becomes a leaf and is labeled with that class label.
        Otherwise, an entropy-based measure, “information gain”, is used as a heuristic for selecting the attribute which best separates the samples into individual classes (the “decision” attribute).
        A branch is created for each value of the test attribute and samples are partitioned accordingly.
        The technique advances recursively to form the decision tree for the sub-sample set at each partition. Once an attribute has been used, it is not considered in descendent nodes.
        The technique stops when all samples for a given node belong to the same class or when there are no remaining attributes.
    
    


The attribute selected at each decision tree level is the one with the highest information gain. The information gain of an attribute is computed as follows. Let S be the set of data samples in the learning dataset and let s be its cardinality. Let the class label attribute have m values or classes, Ci, i=1 . . . m. Let si be number of samples from S in class, Ci. The expected information needed to classify a given sample is computed as follows.
 I(s1 . . . sm)=−Σi=1 . . . m pi*log2 pi pi=si/s
(the probability that a sample belongs to Ci).
Let attribute A, have v distinct values, {a1 . . . av}. A could be used to classify S into {S1 . . . Sv}, where Sj is the set of samples having value, aj. Let sij be the number of samples of class Ci, in a subset, Sj. The entropy or expected information based on the partition into subsets by A is

E(A)=Σj=1 . . . v Σi=1 . . . m(sij/s)*I(s1j . . . Smj)

The information gained by using A as a decision attribute is: gain(A)=I(s1 . . . sm)−E(A) Branches are created for each value of the selected attribute and samples are partitioned accordingly. The following learning relation contains 4 bands of 4-bit data values (expressed in decimal and binary) (BSQ format would consist of the 4 projections of this relation, R[YIELD], R[Blue], R[Green], R[Red]).













FIELD
CLASS
REMOTELY SENSED


COORDS
LABEL
REFLECTANCES











X Y
YIELD
Blue
Green
Red














0, 0
3
7
8
11


0, 1
3
3
8
15


0, 2
7
3
4
11


0, 3
7
2
5
11


1, 0
3
7
8
11


1, 1
3
3
8
11


1, 2
7
3
4
11


1, 3
7
2
5
11


2, 0
2
11
8
15


2, 1
2
11
8
15


2, 2
10
10
4
11


2, 3
15
10
4
11


3, 0
2
11
8
15


3, 1
10
11
8
15


3, 2
15
10
4
11


3, 3
15
10
4
11


0, 0
0011
0111
1000
1011


0, 1
0011
0011
1000
1111


0, 2
0111
0011
0100
1011


0, 3
0111
0010
0101
1011


1, 0
0011
0111
1000
1011


1, 1
0011
0011
1000
1011


1, 2
0111
0011
0100
1011


1, 3
0111
0010
0101
1011


2, 0
0010
1011
1000
1111


2, 1
0010
1011
1000
1111


2, 2
1010
1010
0100
1011


2, 3
1111
1010
0100
1011


3, 0
0010
1011
1000
1111


3, 1
1010
1011
1000
1111


3, 2
1111
1010
0100
1011


3, 3
1111
1010
0100
1011









This learning dataset is converted to bSQ format. We display the bSQ bit-bands values in their spatial positions, rather than displaying them in 1-column files. The Band-1 bit-bands are:
















B11
B12
B13
B14









0000
0011
1111
1111



0000
0011
1111
1111



0011
0001
1111
0001



0111
0011
1111
0011










Thus, the Band-1 basic PC-trees are as follows (tree pointers are omitted).

















PC1,1
PC1,2
PC1,3
PC1,4









5
7
16
11



0 0 1 4
0 4 0 3

4 4 0 3



0001
0111

0111










The PC-trees for 4-bit values are given. The creation process for only, PC1, 0011, is shown as an example.
















PC1,0011 =
PC1,1′ AND
PC1,2′ AND
PC1,3  AND
PC1,4  since,


4
11
9
16
11


4 0 0 0
4 4 3 0
4 0 4 1

4 4 0 3



1110
1000

0111








0  1  20  21  22
(pure1 paths of PC1,1′ )


0  2     31
(pure1 paths of PC1,2′ )


0 1        31 32 33
(pure1 paths of PC1,4 , (PC1,3 has no pure1 paths) )


0
(pure1 paths of PC1,0011).














PC1,0000 
PC1,0100 
PC1,1000 
PC1,1100 
PC1,0010 
PC1,0110 
PC1,1010 
PC1,1110 


0
0
0
0
3
0
2
0






0 0 3 0

0 0 1 1






1110

0001 1000


PC1,0001 
PC1,0101 
PC1,1001 
PC1,1101 
PC1,0011 
PC1,0111 
PC1,1011 
PC1,1111 


0
0
0
0
4
4
0
3






4 0 0 0
0 4 0 0

0 0 0 3









0111










B21
B22
B23
B24


0000
1000
1111
1110


0000
1000
1111
1110


1111
0000
1111
1100


1111
0000
1111
1100














PC2,0000 
PC2,0100 
PC2,1000 
PC2,1100 
PC2,0010 
PC2,0110 
PC2,1010 
PC2,1110 


0
0
0
0
2
0
4
0






0 2 0 0

0 0 0 4






0101


PC2,0001 
PC2,0101 
PC2,1001 
PC2,1101 
PC2,0011 
PC2,0111 
PC2,1011 
PC2,1111 


0
0
0
0
4
2
4
0






2 2 0 0
2 0 0 0
0 0 4 0






0101 1010
1010










B31
B32
B33
B34


1100
0011
0000
0001


1100
0011
0000
0001


1100
0011
0000
0000


1100
0011
0000
0000














PC3,0000  
PC3,0100 
PC3,1000 
PC3,1100 
PC3,0010 
PC3,0110 
PC3,1010 
PC3,1110 


0
6
8
0
0
0
0
0



0 2 0 4
4 0 4 0



1010


PC3,0001 
PC3,0101 
PC3,1001 
PC3,1101 
PC3,0011 
PC3,0111 
PC3,1011 
PC3,1111 


0
2
0
0
0
0
0
0



0 2 0 0



0101










B41
B42
B43
B44


1111
0100
1111
1111


1111
0000
1111
1111


1111
1100
1111
1111


1111
1100
1111
1111














PC4,0000 
PC4,0100 
PC4,1000 
PC4,1100 
PC4,0010 
PC4,0110 
PC4,1010 
PC4,1110 


0
0
0
0
0
0
0
0


PC4,0001 
PC4,0101 
PC4,1001 
PC4,1101 
PC4,0011 
PC4,0111 
PC4,1011 
PC4,1111 


0
0
0
0
0
0
11
5








3 4 0 4
1 0 4 0








1011
0100









The basic technique for inducing a decision tree from this learning set is as follows.

    1. The tree starts as a single node representing the set of training samples, S:
    2. If all samples are in same class (same B1-value), S becomes a leaf with that class label. No.
    3. Otherwise, use entropy-based measure, information gain, as the heuristic for selecting the attribute which best separates the samples into individual classes (the test or decision attribute).


Start with A=B2 to classify S into {A1 . . . Av}, where Aj={t|t(B2)=aj} and aj ranges over those B2-values, v′, such that the root count of PC2,v′ is non-zero. The symbol, sij, counts the number of samples of class, Ci, in subset, Aj, that is, the root count of PC1,v AND PC2,v′, where v ranges over those B1-values such that the root count of PC1,v is non-zero. Thus, the sij are as follows (i=row and j=column).
















0
0
0
0
3


0
2
2
0
0


2
2
0
0
0


0
0
0
1
1


0
0
0
3
0









(the probability that a sample belongs to Ci).

Let attribute A, have v distinct values, {a1 . . . av}. A could be used to classify S into {S1 . . . Sv}, where Sj is the set of samples having value, aj. Let sij be the number of samples of class, Ci, in a subset, Sj.

The expected information needed to classify the sample is I(s1 . . . sm)=−Σi=1 . . . m pi*log2 pi pi=si/s

(m=5 si=3,4,4,2,3 pi=s1/s= 3/16, 1⁄4, 1⁄4, 1⁄8, 3/16, respectively). Thus, 



  
    
      
        I
        =
        
        ⁢
        
          -
          
            (
            
              
                
                  3
                  /
                  16
                
                *
                
                  
                    log
                    2
                  
                  ⁡
                  
                    (
                    
                      3
                      /
                      16
                    
                    )
                  
                
              
              +
              
                
                  4
                  /
                  16
                
                *
                
                  
                    log
                    2
                  
                  ⁡
                  
                    (
                    
                      4
                      /
                      16
                    
                    )
                  
                
              
              +
              
                
                  4
                  /
                  16
                
                *
                
                  
                    log
                    2
                  
                  ⁡
                  
                    (
                    
                      4
                      /
                      16
                    
                    )
                  
                
              
              +
            
          
        
      
    
  
  
    
      
        
        ⁢
        
          
            
              2
              /
              16
            
            *
            
              
                log
                2
              
              ⁡
              
                (
                
                  2
                  /
                  16
                
                )
              
            
          
          +
          
            
              3
              /
              16
            
            *
            
              
                log
                2
              
              ⁡
              
                (
                
                  3
                  /
                  16
                
                )
              
            
          
        
        )
      
    
  
  
    
      
        =
        
        ⁢
        
          
            -
            
              (
              
                
                  
                    
                      -
                      .453
                    
                  
                  
                    
                      -
                      .5
                    
                  
                  
                    
                      -
                      .5
                    
                  
                  
                    
                      -
                      .375
                    
                  
                  
                    
                      -
                      .453
                    
                  
                
              
              )
            
          
          =
          2.281
        
      
    
  




The entropy based on the partition into subsets by B2 is E(A)=Σj=1 . . . v Σi=1 . . . m (sij/s)*I(sij . . . smj), where

I(s1j . . . Smj)=−Σi=1 . . . m pij*log2 pij pij=sij/|Aj|.

The computations leading to the gain for B2 are finished in detail.



























Thus, B2 is selected as the first level decision attribute.

    4. Branches are created for each value of B2 and samples are partitioned accordingly (if a partition is empty, generate a leaf and label it with the most common class, C2, labeled with 0011).














B2=0010 → Sample_Set_1


B2=0011 → Sample_Set_2


B2=0111 → Sample_Set_3


B2=1010 → Sample_Set_4


B2=1011 → Sample_Set_5





Sample_Set_1












X-Y
B1
B3
B4







0,3
0111
0101
1011



1,3
0111
0101
1011











Sample_Set_2












X-Y
B1
B3
B4







0,1
0011
1000
1111



0,2
0111
0100
1011



1,1
0011
1000
1011



1,2
0111
0100
1011











Sample_Set_3












X-Y
B1
B3
B4







0,0
0011
1000
1011



1,0
0011
1000
1011











Sample_Set_4












X-Y
B1
B3
B4







2,2
1010
0100
1011



2,3
1111
0100
1011



3,2
1111
0100
1011



3,3
1111
0100
1011











Sample_Set_5












X-Y
B1
B3
B4







2,0
0010
1000
1111



2,1
0010
1000
1111



3,0
0010
1000
1111



3,1
1010
1000
1111










    5. The technique advances recursively to form a decision tree for the samples at each partition. Once an attribute is the decision attribute at a node, it is not considered further.
    6. The technique stops when:
    
        a. all samples for a given node belong to the same class or
        b. no remaining attributes (label leaf with majority class among the samples).
    
    


All samples belong to the same class for Sample_Set—1 and Sample_Set—3. Thus, the decision tree is:















B2=0010 → B1=0111



B2=0011 → Sample_Set_2



B2=0111 → B1=0011



B2=1010 → Sample_Set_4



B2=1011 → Sample_Set_5










Advancing the technique recursively, it is unnecessary to rescan the learning set to form these Sub-sample sets, since the PC-trees for those samples have been computed.
For Sample_set—2, we compute all PC2,001 ^P1,v ^P3,w to calculate Gain(B3); and we compute PC2,001 ^P1,v ^P4,w to calculate Gain(B4). The results are: 




Thus, B3 is the decision attribute at this level in the decision tree.

For Sample_Set—4 (label-B2=1010), the PC-trees

















PC1010,1010,,
PC1111,1010,,
PC,1010,0110,
PC,1010,,1011









1
3
4
4



0 0 0 1
0 0 0 3
0 0 0 4
0 0 0 4



1000
0111










tell that there is only one B3 and one B4 value in the Sample_Set. Therefore, it can be determined that there will be no gain by using either B3 or B4 at this level in the tree. That conclusion can be reached without producing and scanning the Sample_Set—4.

The same conclusion can be reached regarding Sample_Set—5 (label-B2=1011) simply by examining
















PC0010,1011,,
PC1010,1011,,
PC,1011,1000,
PC,1010,,1111









3
1
4
4



0 0 3 0
0 0 1 0
0 0 4 0
0 0 4 0



1110
0001










Here, an additional stopping condition at is used at step 3, namely,

Any attribute, which has one single value in each candidate decision attribute over the entire sample, need not be considered, since the information gain will be zero. If all candidate decision attributes are of this type, the technique stops for this subsample.

Thus, the majority class label is used for Sample_Sets 4 and 5:

    
    
        B2=0010→B1=0111
        B2=0011→Sample_Set—2
        B2=0111→B1=0011
        B2=1010→B1=1111
        B2=1011→B1=0010
    
    


The best test attribute for Sample_Set—2 (of B3 or B4), is found in the same way. The result is that B3 maximizes the information gain. Therefore, the decision tree becomes,















B2=0010 → B1=0111



B2=0011 → {B3=0100 → Sample_Set_2.1











 B3=1000 → Sample_Set_2.2









B2=0111 → B1=0011



B2=1010 → B1=1111



B2=1011 → B1=0010






















Sample_Set_2.1

Sample_Set_2.2















X-Y
B1
B3
B4

X-Y
B1
B3
B4





0,2
0111
0100
1011

0,1
0011
1000
1111


1,2
0111
0100
1011

1,1
0011
1000
1011









In both cases, there is one class label in the set. Therefore, the technique terminates with the decision tree:
















B2=0010 → B1=0111



B2=0011 → {B3=0100 → B1=0111











 B3=1000 → B1=0011









B2=0111 → B1=0011



B2=1010 → B1=1111



B2=1011 → B1=0010










Often prediction accuracy is used as a basis of comparison for the different classification methods. However, with regard to this example, ID3 is used with new data structures which are intended to improve the speed of the technique and not the predictive accuracy. Therefore, the important performance issue herein is computation speed relative to ID3.
In the example above, an entire spatial relation (a remotely sensed image (RSI) and the associated yield attribute) constitutes the training set. The spatial relation representing the same location but for a different year, is used as the test set. The learning set and test set are chosen in this way because it is important to test whether the classifier resulting from the leaning data of one year, actually tests out well using data from another year, since the predictions will be made on RSI data taken during yet a third year, the current growing year. (I.e., to predict low yield areas where additional inputs can be applied, such as water and nitrogen, with high likelihood of increasing the yield).
Let:


    A=class or goal attribute (e.g., Yield).
    T=the cost of testing if all the samples are in the same class initially (step-1 of the technique).
    S=the cost to scan the sample set.
    P=the cost to perform ANDing of two tuple PC-trees.
    G=the cost to do the gain calculation.
    C=the cost to create the sample subset.


First, reviewing the initial test, the following can be observed. In ID3, to test if all the samples are in the same class, one scan on the entire sample set is needed. While using PC-trees, only the root counts of the k PC-trees of attribute A need to be checked to determine if they are pure1 quadrants. Here, k is the number of bits used to represent the number of values of attribute A. These AND operations can be performed in parallel, thus, TID3=S, TPCT=P.
It is assumed that it takes 10-30 ms to read a block from a disk. For a TM scene of 8192*8192, the time to read the scene is 1.28-3.84 second, while for a Digital Photography (DP) image of 1024*1024, the time is 20-60 ms. If PC-trees are used, the time to perform the AND for a TM scene is about 100 ms and for a DP is about 10 ms. Thus, it can be said that P<S, so TPCT<TID3, as shown in FIG. 22.
The next sequential step is the iteration step. To get the average cost of one iteration, C, it must be determined if all the samples are in the same class. If they are not, the selection calculation is done to choose a decision attribute. Then the sample set is partitioned.
In ID3, one scan is needed to test whether there is a single class label and to generate Sij. Suppose there are k candidate attributes for the current selection. Then, CID3=C+k*(S+G).
Using PC-trees, the creation of sub-sample sets is not necessary. If B is a candidate for the current decision attribute either kB basic PC-trees, the PC-tree of the class label defining the sub-sample set need only be ANDed with each of the kB basic PC-trees. If the PC-tree of the current sample set is P2, 0100 ^P3, 0001, for example, and the current attribute is B1 (with, for example, 2 bit values), then P2, 0100 ^P3, 0001 ^P1, 00, P2, 0100 ^P3, 0001 ^P1, 01, P2, 0100 ^P3, 0001 ^P1, 10 and P2, 0100 ^P3, 0001 ^P1, 11 identifies the partition of the current sample set. To generate Sij, only PC-tree ANDings are required. As for the gain calculation, the cost is the same as in ID3 technique. Thus, CPCT=k*(P+G).
In FIG. 22, P and S are compared. Now it is necessary to compare CPCT and CID3 Since TPCT<TID3 and CPCT<CID3, it is concluded that the entire cost COSTPCT<COSTID3. FIGS. 23 and 24 give the numbers for comparing learning time with respect to the number of iterations and dataset size using ID3 and PC-tree techniques. FIG. 23 gives the accumulative time with respect to iteration, while FIG. 24 gives classification cost with respect to the dataset size.
Described above is a new approach to decision tree induction which is especially useful for the classification on spatial data. The data organization, bit Sequential organization (bSQ) and a lossless, data-mining ready data structure, and the Peano Count tree (PC-tree) of the present invention are utilized to represent the information needed for classification in an efficient and ready-to-use form. The rich and efficient PC-tree storage structure and fast PC-tree algebra, facilitate the development of a very fast decision tree induction classifier. The PC-tree decision tree induction classifier is shown to improve classifier development time significantly. For the very large datasets available today, this is a very important issue. The particular advantages of the PC-tree approach include:

    
    
        1. PC-trees contain 1-count for every quadrant of every dimension (they are data-mining ready).
        2. The PC-tree for any sub-quadrant at any level is simple to extract (it need not be rebuilt).
        3. The PC-tree is a run-length compression of the bit-band with significant compression ratios for most images.
        4. Basic PC-trees can be combined to produce any needed data structure, including the original data (lossless).
        5. Incremental ANDing of PC-trees produces immediate and incrementally improving upper/lower bounds for counts.
    
    


PC-trees can be used to smooth the data using bottom-up quadrant purification (bottom-up replacement of mixed counts with their closest pure counts).
Other PC-tree-based classification techniques already developed are a K-Nearest Neighbor (KNN) method and a Bayesian Method (BAY). The Bayesian Method involves applying Baye's law to the prior probabilities in exactly the same was as the classical Bayes method. However, all probabilities are computed directly from the counts provided immediately by the PC-tree or its variants and no naive assumption need be made regarding the conditional probabilities. Therefore, BAY is both faster and more accurate than the classical Naïve Bayesian classification.
In a K-nearest neighbor (KNN) classification method, the k-nearest neighbors (under some distance metric), of the sample to be classified, are found by scanning the entire data set. Then the predominant class in that neighbor-set is assigned to the sample. KNN methods are desirable methods since no residual “classifier” needs to be built ahead of time (during the training phase). Therefore KNN methods work well for data streams or in other settings where new training data is continually arriving. The problem with classical KNN methods is that they are slower. Since there is not pre-computed “classifier” ready for use, at least one complete data set scan is required. PC-tree KNN requires no data set scan. From the basic PC-trees, ever larger rectangle-PC-trees are constructed centered on the sample to be classified (one OR operation applied to all tuple-PC-trees each of whose attribute values is a distance of 1, then 2, then 3, etc, from the sample). PC-tree KNN is therefore very fast. It has also been shown to be more accurate than existing KNN methods. The reason is very simple. Existing methods build the K-neighborhood by using ever increasing diameters under a Minkowski metric (d(x,y)=(Σ(wi*|xi−yi|q)1/q, where wi's are weights—usually all 1's). Minkowski metrics include almost all possible metrics depending on the choice of q (including the walking metric (q=1), the Euclidean metric (q=2) and any weighted variations of these metrics). PC-tree-KNN is equivalent, with respect to the resulting neighbor set, to a metric method also. However this metric, which would properly be called a “rotated walking metric” is not one of the Minkowski metrics, in fact, the distance it generates is the limit of the distances generated by the Minkowski metrics as q advances toward infinity. In practice one must choose a particular value for q, and the larger the value of q, the closer the neighbor-set is to the PC-tree KNN neighbor-set. However, no matter how large q is chosen to be, there will always be some difference. Our studies have shown that the accuracy of Minkowski-q KNN methods increases as q increases and the limiting accuracy is achieved by our PC-tree KNN method. Intuitively, the reason for the superiority of the (q→infinity)-Minkowski (or rotated walking metric) its neighborhoods have better clustering for discrete values than the others.
IV. C. Cluster Analysis
Data mining in general is the search for hidden patterns that may exist in large databases. Spatial data mining in particular is the discovery of interesting relationships and characteristics that may exist implicitly in spatial databases. In the past 30 years, cluster analysis has been widely applied to many areas. Spatial data is a promising area for clustering. However, due to the large size of spatial data, such as satellite images, the existing methods are not very suitable. Below is described a new method to perform clustering on spatial data utilizing bSQ and PC-trees of the present invention, however, before presenting the new method, a discussion of prior art methods of clustering is provided.
Prior Art Clustering Methods
Given a database of n objects and k, the number of clusters to form, a partitioning technique organizes the objects into k partitions (k n), where each partition represents a cluster. The clusters are formed to optimize an objective partitioning criterion, often called a similarity function, such as distance, so that the objects within a cluster are “similar”, whereas the objects of different clusters are “dissimilar” in terms of the database attributes.
K-means: The k-means technique proceeds as follows. First, it randomly selects k of the objects, which initially each represent a cluster mean or center. For each of the remaining objects, an object is assigned to the cluster to which it is the most similar, based on the distance between the object and the cluster mean. It then computes the mew mean for each cluster. This process iterates until the criterion function converges.
The k-means method, however, can be applied only when the mean of a cluster is defined. And it is sensitive to noisy data and outliers since a small number of such data can substantially influence the mean value.
K-Medoids: The basic strategy of k-medoids clustering techniques is to find k cluster in n objects by first arbitrarily finding a representative object (the medoid) for each cluster. Each remaining object is clustered with the medoid to which it is the most similar. The strategy then iteratively replaces one of the medoids by one of the non-medoids as long as the quality of the resulting clustering is improved.
PAM (Partitioning Around Medoids): PAM attempts to determine k partitions for n objects. After an initial random selection of k-medoids, the technique repeatedly tries to make a better choice of medoids. All of the possible pairs of objects are analyzed, where one object in each pair is considered a medoid, and the other is not. Experimental results show that PAM works satisfactorily for small data sets. But it is not efficient in dealing with medium and large data sets.
CLARA and CLARANS: Instead of finding representative objects for the entire data set, CLARA draws a sample of the data set, applies PAM on the sample, and finds the medoids of the sample. However, a good clustering based on samples will not necessarily represent a good clustering of the whole data set if the sample is biased. As such, CLARANS was proposed which does not confine itself to any sample at any given time. It draws a sample with some randomness in each step of the search.
Clustering Using PC-trees
From the above, it is clear that the PAM method cannot be used directly for spatial data. Rather, samples like CLARA and CLARANS must be drawn from the original data. As such, with respect to clustering using PC-trees, first is introduced the idea of dense units. Then, the PC-trees are used to generalize the dense units. Finally, the PAM method is adapted on the dense units.
Let S=B1×B1× . . . ×Bd be a d-dimensional numerical space and B1, B2, . . . Bd are the dimensions of S. Each pixel of the spatial image data is considered as a d-dimensional points v={v1, v2, . . . , vd}. If every dimension is partitioned into several intervals, then the data space S can be partitioned into non-overlapping rectangular units. Each unit u is the intersection of one interval from each attribute. It has the form {u1, u2, . . . , ud} where ui=[1i, hi) is a right-open interval in the partitioning of Ai. It can be said that a point v={v1, v2 . . . , vd} is contained in a unit u={u1, u2, . . . , ud} if 1i vi<hi for all ui. The selectivity of a unit is defined to be the fraction of total data points contained in the unit. A unit u is called dense if selectivity(u) is greater than the density threshold r. A cluster is a maximal set of connected dense units.
From original data, all the tuple PC-trees can be generated. Those tuple PC-trees whose root counts are larger than half of the max(RC(Pv)) are defined as dense units. Finally, the PAM method is used to partition all the tuple PC-trees into k clusters. Here is the example:
The following relation contains 4 bands of 4-bit data values (expressed in decimal and binary) (BSQ format would consist of the 4 projections of this relation, R[YIELD], R[Blue], R[Green], R[Red]).












FIELD
CLASS
REMOTELY SENSED


COORDS
LABEL
REFLECTANCES











X Y
YIELD
Blue
Green
Red














0, 0
3
7
8
11


0, 1
3
3
8
15


0, 2
7
3
4
11


0, 3
7
2
5
11


1, 0
3
7
8
11


1, 1
3
3
8
11


1, 2
7
3
4
11


1, 3
7
2
5
11


2, 0
2
11
8
15


2, 1
2
11
8
15


2, 2
10
10
4
11


2, 3
15
10
4
11


3, 0
2
11
8
15


3, 1
10
11
8
15


3, 2
15
10
4
11


3, 3
15
10
4
11


0, 0
0011
0111
1000
1011


0, 1
0011
0011
1000
1111


0, 2
0111
0011
0100
1011


0, 3
0111
0010
0101
1011


1, 0
0011
0111
1000
1011


1, 1
0011
0011
1000
1011


1, 2
0111
0011
0100
1011


1, 3
0111
0010
0101
1011


2, 0
0010
1011
1000
1111


2, 1
0010
1011
1000
1111


2, 2
1010
1010
0100
1011


2, 3
1111
1010
0100
1011


3, 0
0010
1011
1000
1111


3, 1
1010
1011
1000
1111


3, 2
1111
1010
0100
1011


3, 3
1111
1010
0100
101









This dataset is converted to bSQ format. We display the bSQ bit-bands values in their spatial positions, rather than displaying them in 1-column files. The Band-1 bit-bands are:

















B11
B12
B13
B14









0000
0011
1111
1111



0000
0011
1111
1111



0011
0001
1111
0001



0111
0011
1111
0011










Thus, the Band-1 Basic PC-trees are as follows (tree pointers are omitted).

















PC1,1
PC1,2
PC1,3
PC1,4









5
7
16
11



0 0 1 4
0 4 0 3

4 4 0 3



0001
0111

0111










The PC-trees for 4-bit values (Value PC-trees) are given. The creation process for only, PC1, 00111, is shown as an example.

















PC1,0011 =
PC1,1′ AND
PC1,2′ AND
PC1,3  AND
PC1,4  since,


4
11
9
16
11


4 0 0 0
4 4 3 0

4 0 4 1
4 4 0 3



1110
1000

0111








0  1  20  21  22
(pure1 paths of PC1,1′ )


0  2       31
(pure1 paths of PC1,2′ )







0 1         31 32 33  (pure1 paths of PC1,4 , (PC1,3 has no pure1 paths) )








0
(pure1 paths of PC1,0011 ) .














PC1,0000 
PC1,0100 
PC1,1000 
PC1,1100 
PC1,0010 
PC1,0110 
PC1,1010 
PC1,1110 


0
0
0
0
3
0
2
0






0 0 3 0

0 0 1 1






1110

0001  1000


PC1,0001 
PC1,0101 
PC1,1001 
PC1,1101 
PC1,0011 
PC1,0111 
PC1,1011 
PC1,1111 


0
0
0
0
4
4
0
3






4 0 0 0
0 4 0 0

0 0 0 3









0111










B21
B22
B23
B24


0000
1000
1111
1110


0000
1000
1111
1110


1111
0000
1111
1100


1111
0000
1111
1100














PC2,0000 
PC2,0100 
PC2,1000 
PC2,1100 
PC2,0010 
PC2,0110 
PC2,1010 
PC2,1110 


0
0
0
0
2
0
4
0






0 2 0 0

0 0 0 4






0101


PC2,0001 
PC2,0101 
PC2,1001 
PC2,1101 
PC2,0011 
PC2,0111 
PC2,1011 
PC2,1111 


0
0
0
0
4
2
4
0






2 2 0 0
2 0 0 0
0 0 4 0






0101  1010
1010










B31
B32
B33
B34


1100
0011
0000
0001


1100
0011
0000
0001


1100
0011
0000
0000


1100
0011
0000
0000














PC3,0000  
PC3,0100 
PC3,1000 
PC3,1100 
PC3,0010 
PC3,0110 
PC3,1010 
PC3,1110 


0
6
8
0
0
0
0
0



0 2 0 4
4 0 4 0



1010


PC3,0001 
PC3,0101 
PC3,1001 
PC3,1101 
PC3,0011 
PC3,0111 
PC3,1011 
PC3,1111 


0
2
0
0
0
0
0
0



0 2 0 0



0101










B41
B42
B43
B44


1111
0100
1111
1111


1111
0000
1111
1111


1111
1100
1111
1111


1111
1100
1111
1111














PC4,0000 
PC4,0100 
PC4,1000 
PC4,1100 
PC4,0010 
PC4,0110 
PC4,1010 
PC4,1110 


0
0
0
0
0
0
0
0


PC4,0001 
PC4,0101 
PC4,1001 
PC4,1101 
PC4,0011 
PC4,0111 
PC4,1011 
PC4,1111 


0
0
0
0
0
0
11
5








3 4 0 4
1 0 4 0








1011
0100









From the Value PC-trees, we can generate all the Tuple PC-trees. Here, we give all the non-zero trees:
















P-0010,1011,1000,1111 3 0 0 3 0 1110



P-1010,1010,0100,1011 1 0 0 0 1 1000



P-1010,1011,1000,1111 1 0 0 1 0 0001



P-0011,0011,1000,1011 1 1 0 0 0 0001



P-0011,0011,1000,1111 1 1 0 0 0 0100



P-0011,0111,1000,1011 2 2 0 0 0 1010



P-0111,0010,0101,1011 2 0 2 0 0 0101



P-0111,0011,0100,1011 2 0 2 0 0 1010



P-1111,1010,0100,1011 3 0 0 0 3 0111










Then the dense units:
















P-0010,1011,1000,1111 3 0 0 3 0 1110



P-0011,0111,1000,1011 2 2 0 0 0 1010



P-0111,0010,0101,1011 2 0 2 0 0 0101



P-0111,0011,0100,1011 2 0 2 0 0 1010



P-1111,1010,0100,1011 3 0 0 0 3 0111










Now, use PAM method to partition the tuple PC-trees into k clusters (k=4):

















cluster1:
P-0010,1011,1000,1111 3 0 0 3 0 1110



cluster2:
P-0011,0111,1000,1011 2 2 0 0 0 1010



cluster3:
P-0111,0010,0101,1011 2 0 2 0 0 0101




P-0111,0011,0100,1011 2 0 2 0 0 1010



cluster4:
P-1111,1010,0100,1011 3 0 0 0 3 0111










If this is compared to the result of decision tree partitioning, it can be said that the results show the same characteristics as the classification (cluster1 all in C1, cluster2 all in C2, cluster3 in C3 and C4, cluster 4 all in C5). 




Thus, while the PAM technique cannot be used directly it can be seen that when CLARA and CLARANS are used to first draw samples from the original data, the PAM technique can be adapted. The PAM technique that is used need only deal with the tuple PC-trees, and the number of PC-trees are much smaller than the dataset CLARA and CLARANS need to deal with. To show the advantage in performance, it should be noted that the ANDing of the PC-trees can be done in parallel.
A PC-tree-based K-means clustering method has been developed (very similar in approach to the PC-tree K-nearest neighbor classification method). This method does not require a data set scan after the PC-trees are created. Templates for K-means sets are created directly from the PC-trees for any set of K-means. The new clusters counts and means can be calculated from the basic PC-trees directly without need of a dataset scan by creating a template tree for each cluster. The algorithm ends when the templates do not change after reclustering. Thus, the entire clustering process can be done without the need for even one data set scan. This is a revolutionary advance over existing K-means methods.
VI. Applications of bSQ and PC-tree Technology
The above description has described various data mining techniques utilizing bSQ and PC-tree technology with specific reference to spatial datasets. However, as mentioned above, the bSQ and PC-tree technology is suited to placing virtually any type of data that is organized into n-arrays into a state of data mining readiness. Examples of other data collection areas to which the technology of the present invention may be applied are provided below.
VI.A. Data Mining of Microarray Data Using Association Rule Mining
Advances made in parallel, high-throughput technologies in the area of molecular biology has led to exponential growth in genomic data. The emphasis during the last many years was on sequencing the genome of organisms. The current emphasis lies in extracting meaningful information from the huge DNA sequence and expression data. The techniques currently employed to do analysis of microarray expression data is clustering and classification. These techniques present their own limitation as to the amount of useful information that can be derived. However, the bSQ and PC-tree technology of the present invention enables association rule mining to be performed on microarray data. With the technology of the present invention, the PC-tree is used to measure gene expression levels and does so by treating the microarray data as spatial data. Specifically, each spot on the microarray is presented as a pixel with corresponding red and green ratios. The microarray data is reorganized into an 8-bit bSQ file, wherein each attribute or band is stored as a separate file. Each bit is then converted in a quadrant base tree structure PC-tree from which a data cube is constructed and meaningful rules are readily obtained.
DNA microarrays are becoming an important tool for monitoring and analyzing gene expression profiles of thousands of genes simultaneously. Due to their small size, high densities and compatibility with fluorescent labeling, microarray technology provides an economic, robust, fully automated approach toward examining and measuring temporal and spatial global gene expression changes. Although fundamental differences exist between the two microarray technologies—cDNA microarrays and Oligonucleotiede arrays, their strength lies in the massive parallel analysis of thousands of genes simultaneously. The microarray data yields valuable information about gene functions, inter-gene dependencies and underlying biological processes. Such information may help discover gene regulation pathways, metabolic pathways, relation of genes with their environments, etc.
The microarray data format is very similar to the market basket format (association rule mining was originally proposed for market basket data to study consumer purchasing patterns in retail stores). The data mining model for market research dataset can be treated as a relation R(Tid, i1, . . . , in) where Tid is the transaction identifier and i1, . . . , in denote the feature attributes—all the items available for purchase from the store. Transactions constitute the rows in the data-table whereas itemsets form the columns. The values for the itemsets for different transactions are in binary representation; 1 if the item is purchased, 0 if not purchased. The microarray data can be represented as a relation R(Gid, T1, . . . , Tn) where Gid is the gene identification for each gene and T1, . . . , Tn are the various kinds of treatments to which the genes were exposed. The genes constitute the rows in the data table whereas treatments are the columns. The values are in the form of normalized Red/Green color ratios representing the abundance of transcript for each spot on the microarray. This table can be called a “gene table”.
Currently, the data mining techniques of clustering and classification are being applied to the gene table. In clustering and classification techniques, the dataset is divided into clusters/classes by grouping on the rows (genes). However, utilizing the technology of the present invention the microarray dataset can be formatted in to a “treatment table”, which is obtained by flipping the gene table. The relation R of a treatment table can be represented as R(Tid, G1, . . . , Gn) where Tid represents the treatment ids and G1, . . . , Gn are the gene identifiers. The treatment table provides a convenient means to treat genes as spatial data. The goal then is to mine for rules among the genes by associating the columns (genes) in the treatment table. The treatment table can be viewed as a 2-dimensional array of gene expression values and, as such, can be organized into the bSQ format of the present invention.
The Red/Green ratios for each gene, which represents the gene expression level, can be represented as a byte. The bSQ format breaks each of the Red/Green values into separate files by partitioning the eight bits of each byte used to store the gene expression value. Each bSQ file can then be organized into the PC-tree structure of the present invention. As described above, the PC-trees are basically quadrant-wise, Peano-order-run-length-compressed, representations of each bSQ file and a data-mining-ready structure for spatial data mining. The root of the PC-tree contains the 1 bit count of the entire bit presenting the microarray spot. The next level of the tree contains the 1-bit counts of the four quadrants in raster order. At the next level, each quadrant is partitioned into sub-quadrants and their 1-bit counts in raster order constitute the children of the quadrant node. This construction is continued recursively down each tree path until the sub-quadrant is pure (entirely 1-bits or entirely 0-bits), which may or may not be at the leaf level, i.e., the 1-by-1 sub-quadrant. It is a lossless and compressed data structure representation of a 1-bit file from which the bit can be completely reconstructed and which also contains the 1-bit count for each and every quadrant in the original microarray data. The concept here is to recursively divide the entire data into quadrants and record the count of 1-bits for each quadrant, thus, forming a quadrant count tree. As explained earlier, a variation of the PC-tree, the peano mask tree (PM-tree), can be used for efficient implementation of PC-tree operations.
As such, eight basic PC-trees are created and can be combined using simple logical operations (AND, NOT, OR, COMPLEMENT) to recover the original data or produce PC-trees at any level of precision for any value or combination of values. For example, a PC-tree (called a value PC-tree) can be constructed for all occurrences of the value 11010011 by ANDing the basic PC-trees (for each 1-bit) and their complements (for each 0-bit): PCb, 11010011=PCb1 AND PCb2 AND PCb3′ AND PCb4 AND PCb5′ AND PCb6′ AND PCb7 AND PCb8 where ′ indicates the bit-complement. The power of this representation is that by simple AND operations all combinations and permutations of the data can be constructed and further that the resulting representation has the hierarchical count information embedded to facilitate data mining.
Once the PC-trees are established they can be successfully used to derive rules of interest from the microarray data. These rules can provide valuable information to a biologist as to the gene regulatory pathways and identify important relationships between the different gene expression patterns hitherto unknown. The biologist may be interested in some specific kind of rules. These rules can be called as “rules of interest”. In gene regulatory pathways, a biologist may be interested in identifying genes that govern the expression of other sets of genes. These relationships can be represented as follows: {G1, . . . , Gn)→Gm where G1, . . . , Gn represents the antecedent and Gm represents the consequent of the rule. The intuitive meaning of this rule is that for a given confidence level the expression of G1, . . . , Gn genes will result in the expression of Gm of the gene. The P-ARM technique and the p-gen technique described earlier can be used for mining association rules on microarray data.
VI.B. PC-tree Based Simulation and Verification of Digital Circuits
The PC-trees of the present invention can further be used as the core data structure to store design data and to simulate operation of digital circuits, e.g., VLSI. The complexity of integrated circuits is ever increasing with the P6 (Pentium III family) architecture having 5-10 million transistors, the Willamette (Pentium4) having up to 38 million transistors, and even full custom ASICs having over a million transistors. The requirements of most integrated circuits do not allow for error in their design or manufacture. As such, the operational validity of the circuit must be simulated and verified, often at great expense through current simulation systems such as Verilog.
In validating an integrated circuit, various challenges must be faced, e.g., does the circuit perform correctly when tested for functionality X, does a subset of the chip perform correctly when tested for functionality X, does a subset of the circuit “communicate” correctly with the rest of the circuit when tested for functionality X, does the circuit satisfy all the above criteria for all known functions, does the circuit perform correctly for erroneous, i.e., don't care, inputs, etc. The PC-trees of the present invention can be utilized to address these challenges through logic/RTL simulation of circuits and through equivalence checking.
In simulation of an integrated circuit, the circuit is stimulated, i.e., input vectors are applied to the circuit, the values are propagated through the circuit and the output values are observed. In equivalence checking, two circuits are stimulated, one of them being the known correct circuit and the other, the under test circuit. The output of the two circuits are then checked to see if their output matches when both are given the same input vector.
Utilizing the function tables of the various types of circuits, examples of the function tables for a half adder circuit and for a full adder circuit are provided in the tables below, PC-trees can be established. Upon encoding of the function table of a circuit into a PC-tree the structural attributes are the inputs while the feature attributes are the outputs and/or intermediate states. The advantage of simulation using PC-trees over other methods is that all outputs are taken into account instead of treating each output as a single Boolean function. With circuit simulation, stimulating an input corresponds to checking all of the basic PC-trees (each corresponds to an output bit) at the one location for the correct bit. With equivalence checking, a simple XOR of each pair of basic PC-trees, one from each circuit under comparison, is performed. If the root-count is zero, the circuits are equivalent. If the root-count is nonzero, the circuits are in-equivalent with the root-count providing a quantitative measure of that inequivalence.










Function Table -- Half Adder Circuit












Bit1
Bit2
Sum
Carry







0
0
0
0



0
1
1
0



1
0
1
0



1
1
0
1




















Function Table -- Full Adder Circuit











input1
input2
Carry Forward
Sum
Carry





0
0
0
0
0


0
0
1
1
0


0
1
0
1
0


0
1
1
0
1


1
0
0
1
0


1
0
1
0
1


1
1
0
0
1


1
1
1
1
1









Referring to FIG. 25, the implementation scheme for simulation and equivalence checking with PC-trees is shown and includes: 1. logic to generate the stimulus (input bit vectors) to a given digital circuit, i.e., input vector generator 100; 2. the digital circuit itself, an example of which is shown in block 102, the circuit is then preferably coded, see block 104, and netlisted in Verilog, see block 106; 3. a simulation system to simulate the bit vectors “through” the digital circuit and generate outputs, such as a Verilog simulator 108; and 4. a PC-tree generation system 110 that combines the input bit vector with the result of the simulation to produce the PC-tree 112.
Utilizing PC-trees in combination with Verilog simulation rather than Verilog simulation on its own provides logic/RTL simulation of digital circuits with an increase of at least two orders of magnitude improvement in performance. Further, formal verification for equivalence of any two circuits with the benefit of PC-trees shows an improvement of at least an order of magnitude in performance.
VI.C. PC-tree Based Nano-technology Applications
The PC-trees of the present invention can further be used as the core data structure for the manufacture of a 3-D display devise based on Alien Technology's (Morgan Hill, Calif.) Fluidic Self Assembly technology for building single layer display devices on a flexible transparent substrate. By layering thousands of such sheets into a transparent cube with a nano-scale computer at each 3-D pixel position, a 3-dimensional array of parallel computing devices can serve as distribute PC-tree nodes on a massive scale. Each computer could be sent requests through a wireless communication system and could activate color LEDs based on the results of local PC-tree AND operations. Such a 3-D display device would be far superior to existing holographic 3-D displays in that it would be implemented on a 3-dimensional physical substrate. Viewers would be free to circulate around the display for viewing from any angle—something that is impossible with holographic displays. Also, the display should be much sharper and more dependable that the holographic technology can provide.
In a battlespace, nano-sensor (also being considered by Alien and others) could be dispersed throughout the battle field. Each nano-sensor would act as a detection platform for one bit position of one feature attribute band. The devise would turn on (set a specific memory olcation to 1) when a low-threshold is sensed and turn off when (and if) a high-threshold is exceeded. In this manner, each sensor would be acting as the processing and storage node for a small quadrant of the space. Sensor would only need to communicate in one direction with a control node to provide needed counts.
Many other nano-technology applications of PC-tree technology are possible. These are but a few examples.
The present invention may be embodied in other specific forms without departing from the spirit of the essential attributes thereof; therefore, the illustrated embodiments should be considered in all respects as illustrative and not restrictive, reference being made to the appended claims rather than to the foregoing description to indicate the scope of the invention.

## Claims

1. A computer implemented method of structuring data in a data-mining-ready format of a basic tree structure, wherein said data has been previously organized in a bit-Sequential (bSQ) format that comprises a plurality of binary files identified by a bit position, said method comprising the steps of:
(a) dividing each of said plurality of binary files into first quadrants; 
(b) recording the count of 1-bits for each first quadrant on a first level; 
(c) dividing each of said first quadrants into new quadrants; 
(d) recording the count of 1-bits for each of said new quadrants on a new level; and 
(e) repeating steps (c) and (d) until all of said new quadrants comprise a pure-1 quadrant or a pure-0 quadrant to form said basic tree structure for data mining.

2. The method of claim 1, wherein said basic tree structure has a complement that provides the 0-bit counts for each of said first quadrants and said new quadrants.

3. The method of claim 1, further comprising the step of masking said basic tree structure.

4. The method of claim 3, wherein said step of masking comprises using a 3-value logic to represent said pure-1 quadrants, said pure-0 quadrants, and a non-pure quadrant.

5. The method of claim 1, further comprising constructing a value tree structure from said basic tree structure.

6. The method of claim 5, further comprising constructing a tuple tree structure from said value tree structure.

7. The method of claim 1, wherein said data comprises two-dimensional spatial data.

8. The method of claim 7, wherein said basic tree structure comprises a lossless format of said two-dimensional spatial data.

9. The method of claim 1, wherein said data comprises bioinformatics data.

10. The method of claim 9, wherein said bioinformatics data comprises microarray data.

11. The method of claim 1, wherein said data comprises nanotechnology data.

12. The method of claim 1, wherein said data comprises data representing an integrated circuit.

13. A system for structuring data in a data-mining-ready format of a basic tree structure, wherein said data has been previously organized in a bit-Sequential (bSQ) format that comprises a plurality of binary files identified by a bit position, said system comprising:
a computer system and a set of computer readable instructions, wherein said set of instructions include directing said computer system to: 
(a) divide each of said plurality of binary files into first quadrants; 
(b) record the count of 1-bits for each first quadrant on a first level, 
(c) divide each of said first quadrants into new quadrants, 
(d) record the count of 1-bits for each of said new quadrants on a new level; and 
(e) repeat items (c) through (d) until all of said new quadrants comprise a pure-1 or pure-0 quadrant to form said basic tree structure for data mining.

14. The system of claim 13, wherein said set of instructions further include directing said computer system to determine a complement of said basic tree structure that provides the 0-bit counts for each of said first quadrants and said new quadrants.

15. The system of claim 13, wherein said set of instructions further include directing said computer system to mask said basic tree structure.

16. The system of claim 15, wherein the masking of said basic tree structure comprises using a 3-value logic to represent said pure-1 quadrants, said pure-0 quadrants, and a non-pure quadrant.

17. The system of claim 13, wherein said set of instructions further include directing said computer system to construct a value tree structure from said basic tree structure.

18. The system of claim 17, wherein said set of instructions further include directing said computer system to construct a tuple tree structure from said basic tree structure.

19. The system of claim 13, wherein said data comprises two-dimensional spatial data.

20. The system of claim 19, wherein said basic tree structure comprises a lossless format of said two-dimensional spatial data.

21. The system of claim 19, wherein said data comprises bioinformatics data.

22. The system of claim 21, wherein said data comprises microarray data.

23. The system of claim 13, wherein said data comprises nanotechnology data.

24. The system of claim 23, wherein said data comprises data representing an integrated circuit.

25. A system for formatting data for data-mining-readiness, wherein said data is in the form of an n-dimensional array of binary data, said binary data comprising a plurality of bits that are identified by a bit position within the n-dimensional array, the system comprising:
a computer system and a set of computer readable instructions, wherein said set of instructions include directing said computer system to: 
create one file for each bit position of said binary data wherein the bit position identification is maintained; and 
store the bit with the corresponding bit position identification from said binary data within the created file to present said binary data in a data-mining readiness format.

26. The system of claim 25, wherein said data comprises two-dimensional spatial data.

27. The system of claim 25, wherein said data comprises bioinformatics data.

28. The system of claim 27, wherein said bioinformatics data comprises microarray data.

29. The system of claim 25, wherein said data comprises nanotechnology data.

30. The system of claim 25, wherein said data comprises data representing an integrated circuit.

31. A computer implemented method of formatting data for data-mining-readiness, wherein said data is in the form of an n-dimensional array of binary data, said binary data comprising a plurality of bits that are identified by a bit position within the n-dimensional array, said method comprising the steps of
creating one file for each bit position of said binary data while maintaining the bit position identification; and 
storing the bit with the corresponding bit position identification from said binary data within the created file to present said binary data in a data-mining-readiness format.

32. The method of claim 31, wherein said data comprises two-dimensional spatial data.

33. The method of claim 31, wherein said data comprises bioinformatics data.

34. The method of claim 33, wherein said bioinformatics data comprises microarray data.

35. The method of claim 31, wherein said data comprises nanotechnology data.

36. The method of claim 1, wherein said data comprises data representing an integrated circuit.