Abstract

When some attributes of a formal context can be decomposed into some subattributes a model of layered concept lattice to improve the efficiency of building concept lattice with complex structure attribute data is studied, the relationship between concept lattice and layered concept is discussed. Two algorithms are proposed: one is the roll-up building algorithm in which the upper concepts are built by the lower concept and the other is the drill-down algorithm in which the lower concepts are built by the upper concept. The examples and experiments show that the layered concept lattice model can be used to model complex structure attribute data, and the roll-up building algorithm and the drill-down algorithm are effective. The layered concept lattice model expands the scope of the research and application of concept lattice, the roll-up building algorithm, and drill-down algorithm of layered concept lattice to improve the efficiency for building concept lattice.

1. Introduction

Humans usually describe and recognize objective things from different levels and different granularity. There is a process of deepening the attribute characteristics of objective things, and hence the knowledge concepts at different levels or at different granularity are obtained [1, 2]. Granular computing is a kind of useful mathematical method for processing complex structure data, and the idea of granular computing fits perfectly with the hierarchical and granular thinking mode of “from coarse to fine, from whole to part” in the process of human cognition [35]. The idea of granular computing originated from professor Zadeh [6]. Since Lin summarized relevant studies and introduced the term granular computing in 1998 [7], the thinking and methods of granular computing have appeared in many fields, such as rough set, fuzzy set, evidence theory, cluster analysis, machine learning, data mining, and knowledge discovery. In recent years, research studies on granular computing have been extensive and many meaningful results have been obtained. For example, Yao studied the basic problems and methods of granular computing [3], Lin studied the granular structure and representation [7], Pedrycz studied the granular computing methodology, mathematical framework, and information granulation algorithm [8], and Zhang and Zhang studied the quotient space [9].

Concept lattice is the key data structure of formal context analysis, and it is also a kind of basic data structure suitable for knowledge representation and knowledge discovery [10]. There have been many studies on basic theory of concept lattice [11] and algorithms to accelerate the construction of concept lattice [1214], and concept lattice has been widely applied in many fields including data mining [15], knowledge discovery [16], information retrieval, and information extraction [17, 18]. Theory and application research of concept lattice are inseparable from the structure analysis of concept lattice and the model extension of concept lattice. The existing concept lattice models and their extension models are established on the relation between objects and attributes, they handle only the simple type of data, and there is no model that has been able to handle data with complex structures. For example, by using a fuzzy set on the basic language set [19], Wolff represented attribute values with fuzzy language variable values in a formal context, classified objects according to the scale, and then built concept lattice based on the scale [20]. Burusco and Fuentes discussed the concept lattice structure based on L-fuzzy concept set and proposed a method to build concept lattice in this case [21]. Considering that Burusco and Fuentes’ models cannot handle continuous membership values and have high computational complexity, Qiang et al. proposed a fuzzy conceptual lattice model that can handle continuous membership values, and based on this model, they discussed the extraction of fuzzy rules and the clustering of fuzzy concepts [22]. Ali and Samir introduced the real interval formal context, established the real interval concept lattice, and built the classifier on the real interval concept lattice for data classification [23]. Qu et al. aimed to establish the relationship between formal concept analysis and rough set theory, obtained derivative formal context that can be induced by the notion of nominal scale and plain scaling and the technique of plain scaling in an information system, and proved that some core notions in rough theory such as partition, upper and lower approximation, independence, dependence, and reduction can be reinterpreted in derivative formal context. They pointed out that the rough set model can be extended by using plain scaling, but they have not further studied the concept lattice structure in the derivative formal context [24].

Due to the complexity of research objects, complex structural data are widely used in practical applications. For example, in the field of network intelligent information processing, it is necessary to analyze the correlation among characters, time, action, environment, and other elements through text, image, audio, video, etc. These elements are usually expressed in different types of data [25]. In particular, under big data environment, the remarkable feature of data is the diversity of types and the complexity of structures. An application often deals with both structured data and semistructured, unstructured data such as text, images, audio, video, video, and Web. In order to apply formal concept analysis to study knowledge representation and knowledge discovery in big data environment, the first thing to do is to extend the existing concept lattice model. In the process of extending the concept lattice model in big data environment, the attribute values used to describe the characteristics of unstructured data, such as text, images, audio, video, and Web, include word values, text values, vector values, and their composite values, in addition to the usual number value and character value [26, 27]. On formal context analysis on complex structural data, Zhi proposed a generalized concept lattice model for heterogeneous data analysis by discussing the partial order composition on heterogeneous datasets [28, 29]. However, Zhi’s concept lattice model for heterogeneous data is only considered at the same level and at the same granularity, which does not reflect the idea of hierarchy and granularity of human thinking. Therefore, to describe human thinking process from a mathematical perspective or to apply the concept lattice theory to describe the human thinking process, we need to build the concept lattice model at different levels and different granularity.

In order to satisfy the need for describing in detail the knowledge concept on unstructured dataset, the thinking of granular computing is applied to the formal concept analysis of data with complex structure. The layered structure of attribute data is fully considered, and a layered concept lattice model with layered and three-dimensional structure is built in the complex structure data environment. The relation between concept lattice of original formal context and layered concept lattice of layered formal context is discussed. The roll-up building algorithm in which the upper concept is built by the lower concept and the drill-down algorithm in which the lower concept is built by the upper concept are proposed. The examples and experiments show that the roll-up and the drill-down algorithms are effective.

2. Preliminary

In this section, we summarize some basic notions and conclusions on concept lattices. For more details of these notions and conclusions, we refer the reader to Ganter and Wille’s works “Formal Concept Analysis” [10].

Definition 1. A formal context is a triplet , where is a binary relation between and . The elements in and are called objects and attributes, respectively. or indicates the object has the attribute .

Definition 2. Let be a formal context. For a set of objects, we define a set of attributes common to all objects in asCorrespondingly, for a set of attributes, we define the set of objects that have all attributes in asIn brief, we also denote as .

Proposition 1 (see [10]). For and ,(1)(2)(3)(4), (5), (6) and are concepts

Definition 3. Let be a formal context. For and , if and , then a pair is called a formal concept of formal context , and and are called the extent and the intent of , respectively. The set of all concepts of formal context is denoted as .

Definition 4. Let and be two formal concepts of a given formal context . is called a subconcept of if (or equivalently ), which can be denoted by .
Obviously, the subconcept relation is a partial order on . Since is a partial order, we can adopt the definition of neighboring nodes of order theory here. Let and be two concepts of a given formal context . We say is a lower neighbor (or a child) of and is an upper neighbor (or a parent) of , if and there is no other concept with , , and .

Theorem 1 (see [10]). The set of all formal concepts of context together with partial order makes a complete lattice, which is called a concept lattice of and is denoted as ; the upper and lower bound operations are

3. Layered Concept Lattice Model and Its Roll-Up Algorithm to Build the Upper Concept Lattice

According to the analysis in the introduction, when we discuss the concept lattice theory and application of complex data structure, the problem of data attribute stratification is often encountered. For example, on the basis of the discussing new energy vehicles at coarse-grained, we often need to discuss the problem of new energy vehicles at a finer granularity to meet the needs of practical application: hybrid vehicles and pure electric vehicles. In terms of the concept lattice, when the new energy attribute is decomposed into lower hybrid power and pure electric power attributes, we need to analyze the formal concept in the layered formal context.

In this section, we give the definition of layered formal context and layered concept lattice, discuss their properties, and propose a roll-up building algorithm of layered concept lattice in a normal layered formal context.

3.1. Layered Concept Lattice Model and Roll-Up Algorithm Theory

Definition 5. Let be a formal context. If every attribute in can be represented as a subset, which means thatthen is called a layered formal context and is called a layered attribute. In a layered formal context , the lower attributes corresponding to the layered attribute are denoted asIf , then , which is actually not a layered attribute.
By using the formal context , we can introduce a new layered formal context , where , and the relation between objects and attributes is defined by . For the convenience of expression, we also call the upper formal context, the lower formal context, the upper concept lattice, and the lower concept lattice accordingly.
A layered formal context is normal if for every layered attribute iff there is a unique iff there is a unique lower attribute such that .
In this paper, we only discuss the normal layered formal context. The following conclusion is obvious.

Proposition 2. Suppose that is a layered formal context. Then,is a partition of .

Example 1. Table 1 shows a simplified layered formal context , where “off-road vehicle,” “midrange vehicle,” “new energy power vehicle” which is a layer attribute, “hybrid power,” and “pure electric power.”
The formal context induced by is shown in Table 2.
When a formal concept contains layered attributes, the upper concept lattice is closely related to the lower concept lattice . Hence, we can start with the lower concept lattice by rolling up the lower attributes of some lower concepts to an upper attribute and then building a upper concept; this is easier than building the concept lattice directly from the formal context .

Theorem 2. Suppose that is a layered formal context, is the corresponding lower formal context of , and and are upper concept lattice and lower concept lattice, respectively. If contain the same layered attribute and are the nearest subconcepts of a node concept, then(1) can be rolled up as a new concept , where and .(2)The lower concepts are all updated into , respectively.

Proof. It is worth pointing out before proving that a concept in may contain both nonlayered attributes and lower attributes in the form of . In the following, we prove the theorem by four steps.(1)Prove equation .Let . Then, for each , we have . If , then obviously . If , then because are concepts and for each , we have that . So, . This means that . Hence,Suppose that . If , then . Hence, are the layered attributes of concepts , so . Thus, for each , there exists such that , so , and . This shows that for each . This means that . If , then is not a layered attribute and . Since are concepts, we have for each . Hence, . Thus, .(2)Prove equation .At first, we prove . Let us assume ; then, for every , we have . Hence by , we know that there are some such that , so , and let be the subscript of biggest concept in these concepts, where the biggest concept means that the concept contains as many object elements as possible and as fewer attribute elements as possible. Thus, from being the biggest concept, we obtain thatThis means that . Therefore,Secondly, we prove . Let ; then, there are some such that , and let be the subscript of biggest concept in these concepts. Hence, , and for each , . This shows that , and then . Therefore,From (1) and (2) we know that is a concept.(3)Prove that the concepts , which are not rolled up, are updated new concepts .At first, we prove equation .
Let ; then, for every , we have . If , then certainly . If , then from that is a concept and for every , we have . Hence, . This shows that .
Conversely, let . If , namely, is a layered attribute, then by being a concept, we obtain thatHence, by , we know . If , then and . Since is a concept, we have for every ; hence, . Therefore,Secondly, we prove the following equation:Let ; then, for every . Since is a concept, we know . Hence, by , we haveConversely, let . Then, since is a concept, we have . If is not a layered attribute, then the relation between and does not change before and after rolling up. If is a layered attribute and its form is , then by , we have for each . Therefore,(4)Prove that the partial order among is the same .By the structure of , for , we haveIf two concepts and are in with order , then the following also holds:

3.2. The Description and Analysis of Roll-Up Algorithm

In order to simplify the presentation below, we introduce the following two terms: parallel lower subconcepts and linear lower subconcepts. Let be the lower subconcepts under node concept . If there is no partial order relation between each other, then is called parallel lower subconcepts. If there is linear partial order relation among them, then is called linear lower subconcepts.

Because this paper only discusses the normal layered formal context and in a normal layered formal context an object will not have two lower attributes of one layer attribute, a concept will not contain more than two lower attributes except the empty concept (object set is empty set). Hence, every concept in the linear lower subconcepts only contains the same lower attribute, and different attributes among different subconcepts are nonlayer attributes. On the basis of this analysis, we can present a roll-up building algorithm of building a concept lattice based on attribute fusion. The process of rolling up from to involves the fusion of attributes, and the partial order in the concept lattice is defined according to the negative inclusion of the attribute subset. Thus, the rolling up is carried out from top to bottom, that is, start with the concept of having fewer attributes. The method of rolling up is to roll up the lower concept of node concept in the lower concept lattice in a linear or parallel lower subconcepts, insert the new concept obtained from rolling up into the bottom of node , and update the node concept and its related node concept accordingly (given in Algorithm 1).

Input: a lower concept lattice of layered formal context induced by formal context .
Output: an upper concept lattice.
Step 1. For , select all lower concepts containing layered attribute and form lower concept set to be rolled up.
Step 2. The concepts in are sorted in ascending order according to the number of lower attributes contained within it. When the number of lower attributes is the same, the concepts containing fewer nonlower attributes are ranked ahead.
Step 3. From top to bottom, roll up the lower concepts in . For the linear lower subconcepts under node concept in , the rolling-up method is as follows: combine the linear lower concepts containing into a new concept , where , , and insert to node below. If node concept contains subconcepts with nonlower attributes, then node is updated to be the common upper bound of and other concepts (excluding lower attributes in ) under node .
Step 4. For the parallel lower subconcepts and lower subconcepts under node concept in , the rolling-up method is as follows: combine the parallel lower concepts containing into a new concept , where , , and insert to node below. If node concept contains subconcepts with nonlower attributes, then node is updated to be the common upper bound of and other concepts (excluding lower attributes in ) under node .
Step 5. If the node concept has both the parallel lower subconcepts and the linear lower subconcepts, then linear lower subconcepts are fused firstly; the method of fusion is to replace the linear lower subconcepts with the minimum concept in these linear lower subconcepts and then roll up the parallel lower subconcepts by Step 4 secondly.
Step 6. Update the subconcept , which is not rolled up from Step 3 to Step 5 but it contains the lower attribute of , to a new concept .
Step 7. Repeat from Step 3 to Step 6 until the concept in does not contain the lower attribute of (namely, is an empty set).
Step 8. Repeat from Step 1 to Step 7 until does not contain any layered attribute. Algorithm is completed.

The time complexity of Algorithm 1 is related to the number of layered attributes and the number of lower attributes in the layered context. In the following, we assume that the number of layered attributes in is , the number of node in is , and the maximum number of lower attributes of all layered attributes is . The computing number at Step 1 is , and its time complexity is . The time complexity at Step 2 is ; it is equal to the time complexity of concept sorting. At Step 3, in the worst case, the number of linear lower subconcepts under a node in is , and the number of computing in rolling up is , but the total number of computing of all nodes in rolling up is not more than . Hence, the time complexity at Step 3 is . The time complexity of Step 4 and Step 5 is the same as that of Step 3, which is also . The computing number at Step 6 does not exceed , so the time complexity at Step 6 is . The time complexity analysis at Step 7 has been included from Step 3 to Step 6. Therefore, the time complexity of Algorithm 1 is .

The following example illustrates the application of the roll-up building algorithm in building concept lattice.

Example 2. Consider the layered formal context as shown in example 1; the induced formal context by is shown in Figure 1.

Steps 1 and 2. The concepts containing lower attributes in are arranged in ascending order according to the number of attributes of concepts, .

Step 3. There are no linear lower subconcepts in this example.

Step 4. The concept of parallel lower concepts , below node concept is rolled up into a new concept and inserted below node . The upper bound node of the new node concept and the node concepts , which do not contain lower attributes are also .
The parallel lower concept , below node concept is rolled up into a new concept .

Step 5. After Step 4 is completed, there is no lower concept to be rolled up. There is only one layered attribute in this example, and the algorithm ends.
Figure 2 shows the concept lattice obtained after the rolling up.

4. Drill-Down Algorithm to Build the Lower Concept Lattice

In this section, a drill-down algorithm to build lower layered concept lattice based on the upper concept lattice is presented.

4.1. Drill-Down Algorithm Theory

Definition 6. Let be a layered formal context and . Then, is called an attribute concept.

Proposition 3. is the largest concept containing attribute .

Proof. Obviously, is a concept containing attribute . If is another concept containing attribute , then by and Proposition 1, we have . Hence, .

Theorem 3. Let be a layered formal context and be the lower formal context. Suppose that is a layered attribute; then,is the lower attribute corresponding to , and are attribute concepts corresponding to the lower attributes . is a concept and for every , there is no child of with ; then, for every , ,(1)If , then is updated to (2)If , then a new concept is added as a child of

Proof. (1) is a special case of (2), so we only prove (2).
Firstly, we prove that if , then are concepts ; hence, we need to prove two equations:Since is a concept, we know . By Proposition 1, we have thatConversely, let . Then, for each , we have . In the following, we discuss it in two cases:(i): if , then there is such that . By Proposition 2 is a partition of , we know that for every , and have no relation . This contradicts for each . Thus, .(ii): if , then obviously , and hence . Because is a concept containing attribute , there exists such that and have no relation . The set of all elements of that has no relation with is denoted as . If is an empty set, then for any and , and have no relation . This contradicts for each . Hence, there is such that and have no relation . This also contradicts for each . Therefore, if , then .This proves thatSince is a concept, we have . By Proposition 1 we obtainConversely, letFrom , we know . By , we have . From , we know for each . Hence, for every . This shows that , and hence . Therefore,This proves thatNext, we prove that the partial order among concepts is the same as the partial order among .
At first, for by the construction of , we haveSecondly, if in , then we also have

4.2. The Description and Analysis of Drill-Down Algorithm

According to Theorem 3, started with the upper concept lattice , inserted some new concepts, modified some concepts and deleted some concepts, we can obtained lower concept lattice . In the following, we propose a drill-down algorithm to build lower concept lattice based on attribute decomposition (given in Algorithm 2).

Input: a concept lattice of formal context containing layered attributes.
Output: the lower concept lattice .
Step 1. For each lower attribute of a layered attribute , : , build all attribute concepts: .
Step 2. The concept containing layered attribute is updated to some new concepts , which contain lower attributes , , respectively, where is not an empty set. The concepts that do not contain the layered attribute remain the same.
Step 3. If some concepts with lower attributes obtained from Step 2 can be combined, then these concepts are combined and a concept and is inserted above them.
Step 4. The node concepts that are connected to and are also not updated in are connected to the updated node concepts.
Step 5. For each layered attribute , repeat from Step 1 to Step 4 above.
Step 6. End of the algorithm.

The time complexity of Algorithm 2 is analyzed below. In the following, we assume that the number of layered attributes in is , the number of node concepts in is , and the maximum number of lower attributes is . The Bordat algorithm building concept lattice of formal context is improved by Chen in [12], and the time complexity of the improved algorithm is less than . Then, in the worst case, the time complexity of Step 1 is . The time complexity of Step 2 is . The time complexity of Step 3 is . Therefore, the time complexity of algorithm 2 is .

The following example illustrates the application of the drill-down building algorithm in building the concept lattice.

Example 3. A layered formal context is shown in Table 3, and the concept lattice of is shown in Figure 3. The lower formal context induced by K is shown in Table 4.
The concept lattice of is shown in Figure 4.

Step 1. Layered attribute has three lower attributes, and the corresponding lower attribute concepts are , , .

Step 2. There are four concepts in that contain the layered attribute . According to Step 2 in Algorithm 2, is updated into three new concepts , , ; is updated into two new concepts , ; is updated into a new concept .

Step 3. Two lower attribute concepts , can be combined into a new concept and inserted above , .

Step 4. There is only one layered attribute, and the algorithm ends.
The purpose of the roll-up building algorithm is to build the upper concept lattice on the basis of lower concept lattice , and the drill-down building algorithm is to build the lower concept lattice on the basis of the upper concept lattice . From the point of view of granular computing, roll-up building algorithm helps us recognize concepts from fine-grained to coarse-grained, while drill-down building algorithm help us recognize concepts from coarse-grained to fine-grained. Therefore, from the human cognitive thinking process, roll-up and drill-own building algorithms are reversed, and then there is a question to be discussed: whether there is reducibility between these two reverse algorithms.
Now, we consider example 3.

Example 4. In the layered formal context of example 3, by using the drill-down algorithm, we obtain the lower concept lattice as shown in Figure 4. Now, we run the roll-up building algorithm on .

Steps 1 and 2. The concepts containing lower attributes in are arranged in ascending order according to the number of attributes contained in the concepts as follows: .

Step 3. The linear lower subconcepts , below node concept are rolled up into a new concept , and the node concept is replaced by , which are the parent concept (upper bound node) of the new concept and the concept that does not contain lower attributes.

Step 4. The parallel lower subconcepts , below node concept are rolled up into a new concept . There are no other concepts below that do not contain lower attributes , , and then is updated into .

Step 5. The lower attributes , , in the minimum node concept (empty concept) are integrated, and then we obtain the minimum concept .

Step 6. There is only one layered attribute, and the algorithm ends.
After is rolled up, the concept lattice is exactly the same as shown in Figure 3. This also shows that the rolling-up and drilling-down algorithms for layered concept lattice have the reducibility.

5. Experimentation

The previous example has shown that the roll-up building algorithm and the drill-down building algorithm proposed in this paper are effective. To further show the utility of Algorithms 1 and 2, we implement two algorithms by using MTLAB program language. The computing environment is a PC (Pentium Win7 × 64, Intel (R) 3.4 GHz, RAM 4 GB). The validity verification about the roll-up building algorithm is mainly to investigate the improvement on time consumption by comparing building the concept lattice from the lower concept lattice with building the concept lattice directly from the formal context .

In the experiment, the number of objects is set to 15000, and the total number of attributes is set to 60 (including lower attributes). The number of lower attributes of each layered attribute is set to 5, the number of layered attributes is 2, 4, 6, 8, and 10, respectively, and the total number of lower attributes correspondingly is 10, 20, 30, 40, and 50, respectively, so the number of upper attributes in the lower form context is 52, 44, 36, 28, and 20, respectively. The test data with medium strength filling ratio 20% are randomly generated. If a layered attribute has no filling value, then its corresponding lower attribute values are all 0. If a layered attribute has filling value, then select randomly a lower attribute to be assigned a value of 1. The improved Bordat algorithm proposed in [12] was adopted for building context lattice directly. The comparison on time consumption building directly the concept lattice from the dataset with building the concept lattice by using roll-up building algorithm is shown in Figure 5, and the time saved by using the roll-up building algorithm to build the concept lattice is shown in Figure 6.

It can be seen from Figures 5 and 6 that using the roll-up building algorithm to build concept lattice on the basis of takes less time than building directly the concept lattice from the formal context . When the number of layered attributes is relatively small, the effect of time saving by using roll-up building algorithm is very obvious, and as the number of layered attributes increases, the time saving decreases.

The validity verification about the drill-down building algorithm is mainly to investigate the improvement on time consumption by comparing building the lower concept lattice from the upper concept lattice with building the concept lattice directly from the formal context .

In the experiment, the number of objects is set to 15000, and the total number of attributes is set to 60 (including lower attributes). The number of nonlayered attributes is set to 10, the number of layered attributes is set to 2, 4, 6, 8, and 10, respectively, and the number of lower attributes of each layered attribute is set to 5, so the total number of attributes in the lower formal context is 20, 30, 40, 50, and 60, respectively. The experimental environment and dataset are the same as the roll-up building algorithm experiment. The comparison on time consumption building directly the concept lattice from the dataset with building the concept lattice by using drill-down building algorithm is shown in Figure 7, and the time saved by using the drill-down building algorithm to build the concept lattice is shown in Figure 8.

It can be seen from Figures 7 and 8 that using the drill-down building algorithm to build concept lattice on the basis of takes less time than building directly the concept lattice from the formal context . When the number of layered attributes is relatively small, the effect of time saving by using drill-down building algorithm is very obvious, and as the number of layered attributes increases, the time saving decreases.

6. Conclusion

This paper applies the idea of granular computing to build concept lattice in a formal context with complex structure attribute data. When some attributes in a formal context are made up of some subattributes, a layered concept lattice model is established, and the relation between the upper concept lattice based on the original formal context and the lower concept lattice based on the lower formal context is discussed. A roll-up building algorithm that builds the upper concept lattice from the lower concept lattice and a drill-down building algorithm that builds the lower concept lattice from the upper concept lattice are proposed; the time complexity of two algorithms is analyzed. The application of the algorithm and the reducibility of the roll-up building algorithm and the drill-down building algorithm are illustrated by some practical examples. Practical examples and experiments show that the layered concept lattice model can be used to model complex structural data, and the roll-up building algorithm and the drill-down building algorithm proposed in this paper are effective. In future work, we will discuss in detail the reducibility between the roll-up building algorithm and the drill-down building algorithm, the roll-up building algorithm and the drill-down building algorithm for the layered concept lattice in a not-normal layered context. This paper does not discuss the relationship between layered attributes from a quantitative point of view. It also may be another possible research direction to use the analytic hierarchy process to discuss the layered concepts in layered formal context from a quantitative point of view.

Data Availability

The data used to support the findings of this study are randomly available according to the method described in the article.

Conflicts of Interest

The authors declare that there are no conflicts of interest regarding the publication of this article.

Acknowledgments

This study was supported in part by the Key Science Research Project of Hunan Province Education Department (no. 19A463), the Natural Science Foundation of Hunan Province (no. 2018JJ2371 and no. 2020JJ2251), and the Science and Technology Development Project of Chenzhou (no. zdyf201807).