Abstract
Three-way rules can be extracted from three-way object-oriented concepts, which describe the necessary attributes of object sets based on the formal context as well as the necessary attributes not possessed by them based on the complement formal context. Thus, acquiring these three-way object-oriented concepts is important but difficult because of computing’s high time complexity. This study proposes a novel algorithm, called , which can be used to directly and quickly acquire all three-way object-oriented concepts from a given formal context . Moreover, it has a time complexity of . We theoretically and experimentally proved the completeness of the generated concepts. Moreover, the results of comparative experiments showed that it outperforms the QM algorithm on a variety of datasets.
    1. Introduction
The theory of formal concept analysis (FCA), proposed by Rudolf Wille in 1982 [,], describes entities or abstract concepts in a formal manner and establishes their corresponding hierarchical structures. Regarding the core data structures and tools for formal concept analysis in the context of data analysis and processing, the concept lattice has been widely used in many fields. Many studies have extensively explored the diversity of knowledge representation and reasoning based on the theory of the concept lattice []. Examples include knowledge exploration [,,], concept learning [,,,,], data extraction [], and path planning [].
Significant progress has been made in research on the formal concept lattice and its extended structure in recent years. Rough set (RS) theory is a useful mathematical tool that was proposed by Pawlak []. Given that FCA and the RS are highly complementary, it is useful to combine them for knowledge discovery. Duntsch and Gediga [] defined model-style operators based on a binary relation. Inspired by this, Yao [,] proposed the object-oriented concept lattice based on necessary and possible operators. A number of studies on the subject have been published following the proposal of the three-way decision []. Three-way concept analysis is the product of combining the three-way decision with FCA [,]. The three-way concept lattice is the minimal closure system that contains both the concept lattice and complementary concept lattice []; thus, it can describe more information. Wei et al. [] extended the three-way concept lattice to the three-way object-oriented concept lattice. They described the necessary attributes of object sets based on the formal context as well as the necessary attributes not possessed by them based on the complement formal context. Thus, the three-way object-oriented concept contains both positive and negative parts. However, in contrast to the three-way concept, these two parts can be used to simultaneously describe the attributes that are necessarily possessed and not possessed by the object sets. Moreover, three-way rules can be extracted from these concepts [,,].
In addition, most applications based on FCA require first acquiring a concept lattice or its extended structure. Obtaining all the relevant concepts is important but difficult because of their high time complexity. Many studies have been devoted to acquiring object-oriented concept lattices and three-way concept lattices. Wang et al. [] proposed a method to construct object-oriented concept lattices based on approximation operators. Ma et al. [] put forward an approach to acquire all object-oriented concepts based on layered extent sets. She et al. [] presented a theoretical study on object-oriented concept lattices and property-oriented concept lattices in multi-scale formal contexts. Shao et al. [] proposed the zoom algorithm, which is composed of the zoom-in and zoom-out algorithms. It can be used to transform object-oriented concept lattices with different combinations of attribute granularity. Qian et al. [,,] proposed a method for generating three-way object-oriented concepts. It first generates the apposition of a given formal context and its complementary context, and then applies an algorithm of constructing the object-oriented concepts to obtain all three-way object-oriented concepts based on the isomorphic relationship between the object-oriented concept lattice and the three-way object-oriented concept lattice. Long et al. [] and Hu et al. [] developed a method to update attribute-induced and object-induced three-way concepts, respectively. Hao et al. [] proposed a method to incrementally construct the three-way concept lattice.
However, to the best of our knowledge, little effort has been dedicated in research for three-way object-oriented concept acquisition. Inspired by past work in the field [,,,], this study develops an algorithm that can completely and directly acquire all three-way object-oriented concepts from a given formal context . We call it the  algorithm. It is a structured algorithm with a time complexity of . It not only avoids traversing the power set of the attribute set V but also uses bitwise operations on hash values instead of union operations on object sets to enhance the efficiency of acquisition. The results of comparative experiments demonstrated that it can be used to acquire all three-way object-oriented concepts more quickly than the prevalent algorithm in the field on various datasets. Our work can serve as a basic algorithm for three-way rule acquisition from three-way object-oriented concepts.
The remainder of this paper is organized as follows: Section 2 reviews some basic notions that are relevant to three-way object-oriented concept lattices. To clearly and accurately illustrate concept acquisition process of the  algorithm, we provide its theoretical foundation in Section 3. Section 4 presents the pseudo-code of the  algorithm and analyses its time complexity, while Section 5 provides its experimental verification. Finally, Section 6 summarizes our contributions and future research in the area.
2. Preliminaries
In this section, we briefly review some basic notions and relevant properties of three-way object-oriented concepts in order to clearly describe the acquisition process of these concepts in next section.
Definition 1  
(Formal context [,]). A formal context  consists of two sets U and V and a relation R between U and V. The elements of set U are called objects, while those of set V are called attributes of the context. For  and  can be written as , which means that object x has attribute y, or that attribute y belongs to object x.
For a formal context , let .  is then the complement context of . For  and , if , this can be written as . This means that object x does not possess attribute y, or that attribute y does not belong to object x.
For any  and any  on a formal context , Wille and Ganter also defined two operators, f and g [,]: 
      
        
      
      
      
      
    
      
        
      
      
      
      
    
The f and g operators are also called positive operators, while the two corresponding operators,  and , on the complement context  are called negative operators in three-way concept analysis []. The  and  operators are defined as follows: 
      
        
      
      
      
      
    
      
        
      
      
      
      
    
Example 1.  
  
    
        
       
    
  
  
  
    
        
       
    
  
  
Table 1 shows a formal context , while Table 2 shows the complement context .  is the object set, and  is the attribute set. Each row represents an object and each column represents an attribute.
       
    
    Table 1.
    The formal context .
  
       
    
    Table 2.
    The complement context .
  
Usually, □ is called the necessity operator and ⋄ the possibility operator. For a formal context ,  and ,  is the set consisting of all necessary attributes of X, while  is the object set that possesses at least one attribute in Y. They are defined as follows [,]: 
      
        
      
      
      
      
    
      
        
      
      
      
      
    
Furthermore, □ and ⋄ have the following properties [,]: 
      
        
      
      
      
      
    
      
        
      
      
      
      
    
      
        
      
      
      
      
    
      
        
      
      
      
      
    
      
        
      
      
      
      
    
For the complement context , operators □ and ⋄ are called negative approximation operators as a pair. To refer to them explicitly, they are denoted by  and , respectively.  and  have the same properties as □ and ⋄; thus, we do not list them here again. By combining the operators □, ⋄, , and , a pair of object-induced three-way object-oriented operators (OEO operators), “⊳:”  and “⊲:” , can be defined as follows [,]:
      
        
      
      
      
      
    
      
        
      
      
      
      
    
      where  and . If and only if  and , the pair  is called an object-induced three-way object-oriented concept, i.e., an OEO-concept [,]. X and  are called the extent and the intent of the OEO-concept , respectively. The set of all OEO-concepts of  is denoted by . For any  and ,
      
        
      
      
      
      
    
The relation ≤ defined above is a partial-order relation on  [,]. For any ,
      
        
      
      
      
      
    
      
        
      
      
      
      
    
Thus,  forms a complete lattice, which is called the three-way object-oriented concept lattice.
3. Theoretical Foundation
In this section, we describe the theoretical principles of the  algorithm to acquire all three-way object-oriented concepts, i.e., OEO-concepts, from a given formal context . The related definitions and propositions are as follows.
Definition 2  
(Single-attribute concept). For a formal context , a pair , with ,  and , is called a single-attribute concept. Similarly, for the complement context , a pair , with ,  and , is also called a single-attribute concept.
For the formal context , the set of all single-attribute concepts is denoted by . Similarly, for the complement context , the set of all single-attribute concepts is denoted by . Single-attribute concepts are directly obtained by mapping individual attributes to objects, with the operators g and , i.e., Equations (2) and (4), in the formal context and the complement context, respectively. Therefore, these single-attribute concepts are not formal concepts. However, we can obtain OEO-concepts through single-attribute concepts. This procedure is defined by using the following  function:
Definition 3  
(Function ). Given a formal context , the λ function is a mapping  to . The definition is as follows:
      
        
      
      
      
      
    
      
        
      
      
      
      
    
      
        
      
      
      
      
     where .
In order to prove that  is an OEO-concept, Propositions 1 and 2 are presented separately.
Proposition 1.  
For a formal context  and its complement context , if , then ,  is an OEO-concept.
Proof.  
According to the definition of the OEO-concept [,], we need to only prove that ,  = .
First, we can obtain . It follows from the property (Equation (7)) that . Further, we can deduce from the property in Equation (10) that . Second, we know from the property in Equation (9) that  and . Consequently, we obtain . This implies . Thus, we can conclude that .
Similarly, . Hence, based on the definition of the OEO concept,  is an OEO-concept.    □
For any given object set , an OEO-concept can be obtained based on Proposition 1. It can subsequently be used in the proof of Proposition 2.
Proposition 2.  
For a formal context  and its complement context , any ,  is an OEO-concept.
Proof.  
Based on the function  (Definition 3), let  = . We need to prove that  satisfies such conditions that  and . According to Proposition 1, it is an OEO-concept.
        
- (1)
 - First, we prove that . According to Definition 3, we can obtain , where . Therefore, Y satisfies the definition of in the formal context , i.e., Equation (5). Thus, .
 - (2)
 - Second, we prove that . We know that , where . Thus, satisfies the definition of in the complement context . Hence, .
 - (3)
 - Finally, we prove . Based on (1), (2), and the property in Equation (9), we obtain . Assuming that , we have and . As , this means that and . Thus, we obtain . This leads to a contradiction with the assumption. Thus, we obtain .
 
Based on (1), (2) and (3), the proposition has been proven.    □
According to Proposition 2, we can obtain OEO-concepts with the function  for a formal context . Furthermore, these OEO-concepts that are derived by the function  can be used to obtain the other remaining OEO-concepts by using the steps below. For convenience of expression, we provide the following definitions:
Definition 4  
(Basic OEO-concept). For a formal context , the concept derived from , where  and , is called a basic OEO-concept. The set of all basic OEO-concepts is denoted by .
Definition 5  
(k-granularity OEO-concept). Given an OEO-concept c of a formal context , if the cardinality of the extent of c is equal to k, i.e.,  = k, then the concept c is called a k-granularity OEO-concept, and it is denoted by .
For a formal context , the set of all k-granularity OEO-concepts is denoted by , while the set of all k-granularity basic OEO-concepts is denoted by . Moreover, all OEO-concepts can be categorized into  by their k-granularity. Thus, we can get the following equation:
      
        
      
      
      
      
    
Proposition 3.  
Any 1-granularity OEO-concept  can be obtained from the basic OEO-concepts, i.e., .
Proof.  
For a 1-granularity OEO-concept , we can obtain .  and . Thus,  and  are single-attribute concepts based on Definition 2. Furthermore, according to Definition 4, we can obtain  = , which is a basic OEO-concept. Thus, any 1-granularity OEO-concept can be obtained from basic OEO-concepts, i.e., .    □
Now, we can obtain  by Proposition 1, i.e., , and can obtain  based on Proposition 3. In order to obtain the remaining OEO-concepts, i.e., , it is necessary to perform merge operations on the generated OEO-concepts.
Definition 6  
(Concept merging). For a formal context , if  and  are OEO-concepts, then the merge operation of  and  is defined as follows:
      
        
      
      
      
      
     where , , and ,
For any two OEO-concepts  and , a new pair can be obtained by using . However, the new pair derived from the merge operation may be not an OEO-concept. Thus, we introduced the definitions of the candidate k-granularity OEO-concept.
Definition 7  
(Candidate k-granularity OEO-concept). For a formal context (U, V, R),  and  are any two OEO-concepts, and the pair obtained by  is called the candidate OEO-concept. If , the pair can be called the candidate k-granularity OEO-concept and is denoted by .
For a formal context (U, V, R), the set of all candidate k-granularity concepts is denoted by , i.e.,
      
        
      
      
      
      
    
For any , regardless of whether c is an OEO-concept or not, its extent part, i.e., , must be the extent of a certain OEO-concept based on the definition of the supremum of two OEO-concepts (Equation (16)) and merge operation (Definition 6). Does the set of all candidate k-granularity concepts  include all extents of all k-granularity OEO-concepts , i.e., ? We answer this question by following proposition.
Proposition 4.  
For a formal context (U, V, R),  and  are OEO-concepts. If  is an immediate sub-concept of , i.e., , then there must exist an OEO-concept  such that  and .
Proof.  
Assume that  and . Because , there must at least exist an object .
        
- (1)
 - If , we obtain . Thus, let . Based on Proposition 1, let = ; thus, it is an OEO-concept. According to the properties of □ and ⋄ (Equation (9)), . Thus, . Furthermore, according to the properties of OEO-concept lattices and the definition of supremum (Equation (16)), we obtain = . Hence, .
 - (2)
 - If , we get . Thus, . We thus let . Similarly, we can get and .
 
Based on (1) and (2), the proposition has been proven.    □
According to Proposition 4, if , we can get  and . However, if ,  owing to the definition of  (Equation (22)). However, if , we can obtain a further conclusion based on Proposition 4. We state it as the following proposition:
Proposition 5.  
For a formal context (U, V, R),  and  are OEO-concepts, such that  and . If  or , then .
Proof.  
If  and , we can get  based on the properties of operator g. On the contrary, because a is a necessary attribute, we get . Thus, it can be concluded that . Furthermore, according to Definitions 2 and 4, we get  and .
The same conclusion can be obtained for the case where . We omit its proof.    □
Based on Propositions 4 and 5, it can be concluded that . Therefore, we can group the candidate k-granularity OEO-concepts  and the k-granularity basic OEO-concepts  with the same extent. And, then, the corresponding intents of these extents are confirmed as follows:
Definition 8  
(Equivalence class of extent). Given a formal context (U, V, R), if  and the set  meets the condition
      
        
      
      
      
      
     then the set  is called the equivalence class of the extent of c.
The equivalence class of the extent of c is used to obtain the intents of a new OEO-concept through the union operations of the intents of all concepts in the equivalence class. The process is defined as the function .
Definition 9  
(Function ). Given a formal context (U, V, R), the φ function is a mapping  to . The definition is as follows:
      
        
      
      
      
      
     where .
As  has been already generated by  (Definition 3),  needs to only map each concept  to an OEO-concept in . Now, Proposition 6 is provided to prove that  is an OEO-concept.
Proposition 6.  
For a formal context (U, V, R), if , then  is an OEO-concept.
Proof.  
If we want to prove that  is an OEO-concept, it needs to satisfy  and  based on the definition of OEO-concepts.
        
- (1)
 - First, we prove that .
- , if ; then, by the definition of the necessary operator, . Given the arbitrariness of b, it follows that .
 - Assume that but , i.e., ; then, let = . is then an OEO-concept based on Proposition 1. Because , . If , then we get . This implies that . Therefore, given the arbitrariness of b, we conclude that .In the case , let . Because and is the extent of an OEO-concept, is an OEO-concept and . According to Proposition 4, there must exist an OEO-concept such that . This means that . Given the arbitrariness of b, we get as well.
 - According to above 1. and 2., we get .
 
 - (2)
 - Second, it can similarly be proved that .
 - (3)
 - Third, . Moreover, is an OEO-concept. Therefore, . Thus, .
 
From the above proofs, the proposition has been proven.    □
For the formal context , all OEO-concepts can be categorized into , ,  by their k-granularity. Thus, we can obtain  from the basic OEO-concepts, and we can then apply function  to iteratively obtain the others based on the k-granularity. Consequently, all OEO-concepts of the formal context  can be obtained. Proposition 7 proves that the OEO-concepts generated by this method are complete.
Proposition 7.  
All OEO-concepts of the formal context  can be obtained by iteratively applying function φ based on the basic OEO-concepts.
Proof.  
We use mathematical induction to prove the proposition. For convenience, all OEO-concepts are categorized into ,  by their k-granularity.
        
- (1)
 - Inductive Foundation: Based on Propositions 1 and 3, and can be obtained from basic OEO-concepts.
 - (2)
 - Inductive Hypothesis: Assume that the k-granularities of all OEO-concepts with granularity less than k are known, i.e., , and are already known.
 - (3)
 - Inductive Step: Based on the inductive hypothesis and the partial-order relationship among OEO-concepts, all of the sub-concepts of each k + 1 granularity OEO-concept are known. The candidate set for k + 1 granularity OEO-concepts, , can be obtained by Definition 7. Furthermore, according to Propositions 4 and 5, and Definition 8, the equivalence class of the extent of each k + 1 granularity OEO-concept can be obtained. Thus, all k + 1 granularity OEO-concepts can be obtained by using the function based on Proposition 6. Finally, can be obtained.
 - (4)
 - Conclusion: can all be obtained.
 
   □
Based on Proposition 7, we designed a structural algorithm to construct all OEO-concepts from a formal context. The details are provided in the next section.
4. Algorithm Description and Time Complexity
The main idea underlying the 3WOC algorithm is as follows: First,  is obtained by Proposition 1, and then the set of single-attribute concepts (Definition 2) is built from the formal context  and its complementary context . Second, the set of all basic OEO-concepts, i.e., , is obtained from function  (Definition 3), and  is obtained based on Propostion 3. Third, the candidate k-granularity OEO-concepts  (k = 2 when beginning) are obtained according to Propositions 4 and 5. The function  is then used to obtain all new k-granularity OEO-concepts in  based on Proposition 6. By iteratively repeating this procedure, all concepts in ,  can be constructed. Finally, all OEO-concepts of the formal context , i.e., , are constructed based on Proposition 7.
4.1. Algorithm Description
The pseudo-code description of our proposed  algorithm is as follows:
Algorithm 1 is a structured algorithm. Lines 2 to 5 are used to generate the basic OEO-concepts, i.e.,  (Definition 4). By Proposition 3,  was constructed. Lines 6 to 16 are then used to iteratively construct . Lines 7 to 16 implement the function  (Definition 9). Finally, all OEO-concepts are constructed and collected (line 17). The computational process of the 3WOC algorithm involves a large number of search and union operations, i.e., the functions find() and M(). The hash key is not only used to improve the efficiency of searching for a concept in L but also to improve the efficiency of union operations by directly performing bitwise operations with their hash values in place of the union operations on the set. The hash function , which maps the extent of an OEO-concept to a unique value, is defined as follows:
Definition 10  
(Function h). Given a formal context , we can provide a linear order on the object set U, i.e., . Then, each object , , has its ordered position i in U. The function h is a mapping from an object set to a natural number, i.e., :
      
        
      
      
      
      
     where X = , .
| Algorithm 1: 3WOC | 
![]()  | 
Due to the correspondence relationship between the hash value and the extent of a concept, the time complexity of  in line 12 is . Furthermore, we can obtain the extent that is composed of objects from the hash value by using the function :
Definition 11  
(Function ). Function : 
      
        
      
      
      
      
     where AND is the bitwise AND operation on the binary representation of two natural numbers.
For a given formal context , each  corresponds to a hash key  based on the above functions, h and . Let  represent all hash values from , i.e., . Thus,  = . We can consider  and  as two algebraic systems, where OR is the bitwise OR operation on the binary representation of two natural numbers. They are isomorphic. Moreover, the proof is given in Proposition 8.
Proposition 8.  
The algebraic systems  and  are isomorphic.
Proof.  
- (1)
 - is the non-empty set of natural numbers ranging from 0 to . Thus, = .
 - (2)
 - For any , there is an such that . Thus, the function h is an injection. Furthermore, for any , if , then . Thus, the function h is a surjection. Consequently, the function h is a bijection.
 - (3)
 - For any , there exists such that . Thus, the function is an injection. For any , if , then there must be at least one bit that is different between the binary representations of a and b, i.e., . Thus, the function is a surjection. Consequently, the function is a bijection.
 
Based on the above, (1), (2), (3), the proposition has been proven.    □
According to Proposition 8, we can directly perform the bitwise OR operations with their hash values in place of union operations on object sets in the  algorithm. However, the time complexity of function h, which converts the extent of concepts into a natural number, is .
4.2. Time Complexity
The time complexity of Algorithm 1 is analyzed as follows: According to Equations (2) and (4), executing Steps 2–3 takes  to obtain all single-attribute concepts (Definition 2) from the formal context  and its complement context . According to Definition 3 and Proposition 8, the time complexity of function  is , and it is  in the worst case. Thus, Steps 4–5 take at most  to obtain all basic OEO concepts,  (Definition 4). Steps 6–16 take at most . Based on Equation (20), letting , we can obtain the total time complexity of Algorithm 1 as . As  is significantly larger than , the time complexity of Algorithm 1 is .
Example 2 illustrates the process of constructing OEO-concepts for the 3WOC algorithm. The details are as follows:
Example 2.  
  
    
        
       
    
  
  
  
    
        
       
    
  
  
  
    
        
       
    
  
  
  
    
        
       
    
  
  
  
    
      
      
    
  
  
The formal context  is shown in Table 1 while the complement context is shown in Table 2. The object set is  = 1, 2, 3, 4, 5 and the attribute set is  = a, b, c, d, e. For the sake of clarity, the extents of the concepts considered in this example are still represented in the form of object sets. Additionally, the hash key of the extent of each concept is also provided.
By using g and  (Equations (2) and (4)), we can obtain sets of single-attribute concepts  and  (Definition 2), as shown in Table 3. The hash key can be obtained by using the above function h (Definition 10) on the extent of each concept. For instance, the object set {1,2,4,5} is the extent of the single-attribute concept . Thus, its hash key is .
       
    
    Table 3.
    .
  
Then,  (Definition 4) is generated from  and , as shown in Table 4.
       
    
    Table 4.
    .
  
According to line 1 in Algorithm 1,  is . Based on Proposition 3, all 1-granularity OEO-concepts have been constructed. In this example,  = . In order to obtain all 2-granularity OEO-concepts except for , we need to perform , such that  and . Thus, key: 1 OR key: 4 = key: 5 =  based on Proposition 8. Thus we get : . When the loop (lines 7 to 16 in Algorithm 1) is completed, we obtain  as a new OEO-concept according to Proposition 6, i.e., . Consequently,  is added to . The updated  is shown in Table 5.
       
    
    Table 5.
     ∪  ∪ .
  
We now construct , i.e., .  and ,  are computed. This yields the following candidate OEO-concepts: , , , , , , and . Similarly, we can obtain  and  as new OEO-concepts according to Proposition 6, and we add them to . , , and  are 4-granularity candidate OEO-concepts now. We can obtain  when k = 4. Finally, all OEO-concepts are obtained as shown in Table 6.
       
    
    Table 6.
    .
  
Furthermore, the three-way object-oriented concept lattice  can be built based on the partial relationship between the concepts (Equation (14)). The lattice is shown in Figure 1, in which the concepts marked with a box are basic OEO-concepts.
      
    
    Figure 1.
       derived from Table 1.
  
For any two formal contexts,  and , V is the set of condition attributes, T is the set of decision attributes, and . They form a formal decision context . We can obtain two three-way object-oriented concept lattices,  and , using Algorithm 1. Assume that the formal decision context  is OEO-consistence. Then, for any  and , if , and  are not ∅, we can obtain a positive three-way rule  and a negative three-way rule  []. Thus, Algorithm 1 can serve as a basic algorithm for three-way rule acquisition from OEO-concepts.
5. Experimental Evaluation
In this section, we evaluate the completeness and performance of our proposed  algorithm. We compared it with Qian’s method—the generation of three-way object-oriented concepts []—for which we used Ma’s algorithm to acquire object-oriented concepts []. We call it the QM algorithm for the sake of convenience. All algorithms were implemented in Python 3.8, and all experiments were run on an otherwise idle Windows system.
The data consisted of artificial datasets and real-world datasets. For a formal context , there are three factors, the number of objects , the number of attributes , and the dense of non-zero entries, which can influence the number of OEO-concepts . Thus, we used different arguments of these three factors to randomly generate a series of datasets. It is not necessary to separately illustrate them, and we represent the characteristics of each dataset by a naming rule whereby a randomly generated data table with m objects, n attributes, and average non-zero entries of  is called Data_OmAnDd. , , and , , , , , . Furthermore, any group of datasets can be simply expressed. For instance, the datasets Data_OmA5Dd, in which  and , can be simply denoted by Data_A5. The real-world datasets came from the UCI Machine Learning Repository (https://archive.ics.uci.edu/datasets/, accessed on 17 February 2025), including Balloons, Lenses, COVID-19 surveillance. All of the datasets were prepared as formal contexts without noisy and incomplete data in our experiments.
5.1. Completeness Experiment
To verify the completeness of OEO-concepts generated by our Algorithm 1, we compared them with the concepts generated by the QM algorithm. We executed the experiments on several datasets, including the formal context listed in Table 1, the UCI dataset (Balloons, Lenses, and COVID-19 surveillance), and random datasets (Data_A5, Data_A10). The extent and intent of each of the OEO-concepts derived from the above datasets were separately checked. We confirmed that the OEO-concepts generated by Algorithm 1 were complete.
The number of concepts derived from the UCI datasets is shown in Table 7, while those derived from the random datasets are shown in Figure 2 and Figure 3. Furthermore, the concepts obtained by Algorithm 1 from Table 1 are listed in Table 6.
       
    
    Table 7.
    Number of concepts, run times and memory usage on the UCI datasets.
  
      
    
    Figure 2.
      Number of concepts in Data_A5.
  
      
    
    Figure 3.
      Number of concepts in Data_A10.
  
5.2. Performance Evaluation
To evaluate the efficiency of Algorithm 1, we measured its run time and memory usage when constructing three-way object-oriented concepts from scratch in comparison with those of the QM algorithm. We used both the UCI datasets and randomly generated datasets for these experiments.
Table 7 lists the run times and memory usage of both algorithms on the UCI datasets (Balloons, Lenses, COVID-19 surveillance). It shows that Algorithm 1 was significantly more efficient than the QM algorithm on each dataset. However, Algorithm 1 used more memory than the QM algorithm on each dataset. This is because Algorithm 1 not only stored the hash key of each OEO-concept but also was implemented with the dictionary and list data structure in Python 3.8, whereas the QM algorithm was implemented with the list data structure in Python 3.8. On the other hand, Table 7 shows that Algorithm 1 used the same size of memory on both datasets, Balloons and COVID-19 surveillance, due to the memory preallocation mechanism of Python 3.8.
The QM algorithm requires computing the power set of attribute sets and obtaining the corresponding extent of object-oriented concepts based on the size of the power set. The more attributes there are, the greater the number of power sets of attributes that needs to be calculated. By contrast, Algorithm 1 derives OEO-concepts directly from single-attribute concepts. By iteratively merging these concepts, all OEO-concepts are obtained while avoiding the exhaustive calculation of the power sets of the attribute sets. Furthermore, it uses bitwise operations with the hash values, in place of union operations on extents of concepts, to improve its efficiency.
Figure 4 and Figure 5 show the run times of Algorithm 1 on datasets Data_A5 and Data_A10, respectively. These results reflect the inherent property of the proposed algorithm for constructing formal concepts: its time complexity increased exponentially with the number of objects and attributes, and the density of the datasets. Figure 6 and Figure 7 show the run times of the QM algorithm on Data_A5 and Data_A10, respectively. It is clear that Algorithm 1 delivered better performance than the QM algorithm on each dataset.
      
    
    Figure 4.
      Run time of 3WOC on Data_A5.
  
      
    
    Figure 5.
      Run time of 3WOC on Data_A10.
  
      
    
    Figure 6.
      Run time of QM on Data_A5.
  
      
    
    Figure 7.
      Run time of QM on Data_A10.
  
In addition, a comparison between Figure 2 and Figure 4 shows that the run time of Algorithm 1 exhibited a similar trend of change with the number of concepts. This phenomenon is also shown in Figure 3 and Figure 5. Given that the time complexity of Algorithm 1 (in Section 4.2) is , its run time was mainly influenced by the number of OEO-concepts.
6. Conclusions
In this study, we proposed an algorithm for quickly and completely acquiring all OEO-concepts from a formal context . We also theoretically and experimentally proved that the OEO-concepts generated by our proposed algorithm are complete. Its time complexity is . Moreover, it not only avoids traversing the power set of the attribute set V but also uses use the bitwise operations on hash values in place of union operations on object sets to improve the efficiency of acquisition. Furthermore, it delivered better performance than the QM algorithm on various datasets in comparative experiments. Our work in this paper can serve as a basic algorithm for the three-way rule acquisition from OEO-concepts.
There remains considerable room for further research in the area, including ways to quickly and simultaneously acquire three-way object-oriented concepts and their lattice structures, as well as techniques to design parallel construction algorithms, and so on.
Author Contributions
Conceptualization, Z.Z. and Y.B.; methodology, Z.Z. and Y.B.; software, Y.J.; validation, Y.J.; formal analysis, Z.Z.; investigation, Y.B.; resources, X.Z.; data curation, Y.J.; writing—original draft preparation, Y.J.; writing—review and editing, Z.Z. and X.Z.; visualization, Y.J.; supervision, X.Z.; project administration, Z.Z. and X.Z.; funding acquisition, X.Z. All authors have read and agreed to the published version of the manuscript.
Funding
This study was supported in part by the Fundamental Research Funds for the Central Universities (NJ2023024) and the Key Laboratory of Civil Aviation Aircraft Health Monitoring and Intelligent Maintenance.
Institutional Review Board Statement
Not applicable.
Informed Consent Statement
Not applicable.
Data Availability Statement
The raw data supporting the conclusions of this article can be made available by the authors upon request.
Acknowledgments
The authors would like to thank the reviewers for their valuable comments and helpful suggestions, which significantly improved the manuscript.
Conflicts of Interest
The authors declare no conflicts of interest.
References
- Wille, R. Restructuring Lattice Theory; Rival, I., Ed.; Ordered Sets: Reidel, Dordrecht, 1982; pp. 445–470. [Google Scholar]
 - Ganter, B.; Wille, R. Formal Concept Analysis: Mathematical Foundations; Springer: Berlin/Heidelberg, Germany, 1999. [Google Scholar]
 - Li, J.H.; Wei, L.; Zhang, Z.; Zhai, Y.H.; Zhang, T.; Zhi, H.L.; Mi, Y.L. Concept lattice theory and method and their research prospect. Pattern Recorgniton Artif. Intell. 2020, 33, 619–642. [Google Scholar]
 - Cui, H.; Deng, A.S.; Chang, C.M.; Diao, H.Y.; Zou, L. Granule description of object (attribute)-oriented linguistic concept lattice based on dominance relation. Int. J. Comput. Intell. Syst. 2021, 14, 701–714. [Google Scholar] [CrossRef]
 - Zhi, H.L.; Li, J.H. Granule description based knowledge discovery from incomplete formal contexts via necessary attribute analysis. Inf. Sci. 2019, 485, 347–361. [Google Scholar] [CrossRef]
 - Liaw, T.M.; Lin, S.C. A general theory of concept lattice with tractable implication exploration. Theor. Comput. Sci. 2020, 837, 84–114. [Google Scholar] [CrossRef]
 - Li, J.H.; Mei, C.L.; Xu, W.H.; Qian, Y.H. Concept learning via granular computing: A cognitive viewpoint. Inf. Sci. 2015, 298, 447–467. [Google Scholar] [CrossRef]
 - Li, J.H.; Huang, C.C.; Qi, J.J.; Qian, Y.H.; Liu, W.Q. Three-way cognitive concept learning via multi-granularity. Inf. Sci. 2017, 378, 244–263. [Google Scholar] [CrossRef]
 - Mi, Y.L.; Shi, Y.; Li, J.H.; Liu, W.; Yan, M. Fuzzy-based concept learning method: Exploiting data with fuzzy conceptual clustering. IEEE Trans. Cybern. 2022, 52, 582–593. [Google Scholar] [CrossRef]
 - Guo, D.D.; Xu, W.H.; Qian, Y.H.; Ding, W.P. M-FCCL: Memory-based concept-cognitive learning for dynamic fuzzy data classification and knowledge fusion. Inf. Fusion 2023, 100, 101962. [Google Scholar] [CrossRef]
 - Guo, D.D.; Xu, W.H.; Qian, Y.H.; Ding, W.P. Fuzzy-granular concept-cognitive learning via three-way decision: Performance evaluation on dynamic knowledge discovery. IEEE Trans. Fuzzy Syst. 2024, 32, 1409–1423. [Google Scholar] [CrossRef]
 - Zhang, Z.; Du, J.; Wang, L. Formal concept analysis approach for data extraction from a limited deep web database. J. Intell. Inf. Syst. 2013, 41, 211–234. [Google Scholar] [CrossRef]
 - Zhang, Z.; Xu, X.L.; Yue, F.B.; Ba, Y.J. Robot path planning based on concept lattice. Int. J. Approx. Reason. 2023, 153, 87–103. [Google Scholar] [CrossRef]
 - Pawlak, Z. Rough sets. Int. J. Comput. Inf. Sci. 1982, 11, 341–356. [Google Scholar] [CrossRef]
 - Gediga, G.; Duntsch, I. Modal-style operators in qualitative data analysis. In Proceedings of the 2002 IEEE International Conference on Data Mining, Maebashi City, Japan, 9–12 December 2002; pp. 155–162. [Google Scholar]
 - Yao, Y.Y. A comparative study of formal concept analysis and rough set theory in data analysis. In Proceedings of the 4th International Conference on Rough Sets and Current Trends in Computing, Lecture Notes in Artificial Intelligence, Uppsala, Sweden, 1–5 June 2004; Springer: Berlin/Heidelberg, Germany, 2004; Volume 3066, pp. 59–68. [Google Scholar]
 - Yao, Y.Y. Concept lattices in rough set theory. In Proceedings of the 4th Annual Conference of the North American Fuzzy Information Processing Society, Banff, AB, Canada, 27–30 June 2004; pp. 796–801. [Google Scholar]
 - Yao, Y.Y. An outline of a theory of three-way decisions. In Proceedings of the 2012 International Conference on Rough Sets and Current Trends in Computing (LNCS 7413), Chengdu, China, 17–20 August 2012; pp. 1–17. [Google Scholar] [CrossRef]
 - Qi, J.J.; Wei, L.; Yao, Y.Y. Three-way formal concept analysis. In Proceedings of the 9th International Conference, RSKT 2014, Shanghai, China, 24–26 October 2014; pp. 732–741. [Google Scholar] [CrossRef]
 - Qi, J.J.; Qian, T.; Wei, L. The connections between three-way and classical concept lattices. Knowl.-Based Syst. 2016, 91, 143–151. [Google Scholar] [CrossRef]
 - Zhai, Y.H.; Qi, J.J.; Li, D.Y.; Zhang, C.; Xu, W.H. The structure theorem of three-way concept lattice. Int. J. Approx. Reason. 2022, 146, 157–173. [Google Scholar] [CrossRef]
 - Wei, L.; Qian, T. The three-way object oriented concept lattice and the three-way property oriented concept lattice. In Proceedings of the 2015 International Conference on Machine Learning and Cybernetics, Guangzhou, China, 12–15 July 2015; pp. 854–859. [Google Scholar] [CrossRef]
 - Wei, L.; Liu, L.; Qi, J.J.; Qian, T. Rules acquisition of formal decision contexts based on three-way concept lattices. Inf. Sci. 2020, 516, 529–544. [Google Scholar] [CrossRef]
 - Zhao, J.; Wan, R.X.; Miao, D.Q.; Zhang, B.Y. Rule acquisition of three-way semi-concept lattices in formal decision context. Caai Trans. Intell. Technol. 2024, 9, 333–347. [Google Scholar] [CrossRef]
 - Zhang, C.L.; Li, J.J.; Lin, Y.D. Three-way rules acquisition based on object (attribute)-oriented concept lattices. J. Nanjing Univ. Nat. Sci. 2021, 57, 599–610. [Google Scholar] [CrossRef]
 - Wang, S.N.; Wei, L.; Li, Q. Construct new lattices based on rough set theory. In Proceedings of the 2nd International Conference on Information Science and Engineering, Hangzhou, China, 4–6 December 2010; pp. 5013–5016. [Google Scholar] [CrossRef]
 - Ma, J.M.; Cai, M.J.; Zou, C.J. Concept acquisition approach of object-oriented concept lattices. Int. J. Mach. Learn. Cybern. 2017, 8, 123–134. [Google Scholar] [CrossRef]
 - She, Y.H.; He, X.L.; Qian, T.; Wang, Q.Q.; Zeng, W.L. A theoretical study on object-oriented and property-oriented multi-scale formal concept analysis. Int. J. Mach. Learn. Cybern. 2019, 10, 3263–3271. [Google Scholar] [CrossRef]
 - Shao, M.W.; Lu, M.M.; Li, K.W.; Wang, C.Z. The construction of attribute (object)-oriented multi-granularity concept lattices. Int. J. Mach. Learn. Cybern. 2020, 11, 1017–1032. [Google Scholar] [CrossRef]
 - Qian, T. The Constructions of Classical Concept Lattices and Three-Way Concept Lattices and Knowledge Acquisition; Northwest University: Lanzhou, China, 2016. (In Chinese) [Google Scholar]
 - Qian, T.; Wei, L.; Qi, J.J. Constructing three-way concept lattices based on apposition and subposition of formal contexts. Knowl.-Based Syst. 2017, 116, 39–48. [Google Scholar] [CrossRef]
 - Qian, T.; Wei, L.; Qi, J.J. A theoretical study on the object (property) oriented concept lattices based on three-way decisions. Soft Comput. 2019, 23, 9477–9489. [Google Scholar] [CrossRef]
 - Long, B.H.; Xu, W.H.; Zhang, X.Y.; Yang, L. The dynamic update method of attribute-induced three-way granular concept in formal contexts. Int. J. Approx. Reason. 2020, 126, 228–248. [Google Scholar] [CrossRef]
 - Hu, Q.; Qin, K.; Yang, L. The updating methods of object-induced three-way concept in dynamic formal contexts. Appl. Intell. 2023, 53, 1826–1841. [Google Scholar] [CrossRef]
 - Hao, F.; Yang, Y.X.; Min, G.Y.; Loia, V. Incremental construction of three-way concept lattice for knowledge discovery in social networks. Inf. Sci. 2021, 578, 257–280. [Google Scholar] [CrossRef]
 
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.  | 
© 2025 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (https://creativecommons.org/licenses/by/4.0/).
