2.845

2023影响因子

(CJCR)

  • 中文核心
  • EI
  • 中国科技核心
  • Scopus
  • CSCD
  • 英国科学文摘

留言板

尊敬的读者、作者、审稿人, 关于本刊的投稿、审稿、编辑和出版的任何问题, 您可以本页添加留言。我们将尽快给您答复。谢谢您的支持!

姓名
邮箱
手机号码
标题
留言内容
验证码

基于数据特征融合的管网信息物理异常诊断方法

马大中 胡旭光 孙秋野 郑君 王睿

陈皓, 潘晓英, 孙家泽. 通过类搜索算法实现组合测试数据集的全局优化. 自动化学报, 2017, 43(9): 1625-1635. doi: 10.16383/j.aas.2017.e160214
引用本文: 马大中, 胡旭光, 孙秋野, 郑君, 王睿. 基于数据特征融合的管网信息物理异常诊断方法. 自动化学报, 2019, 45(1): 163-173. doi: 10.16383/j.aas.2018.c180383
Chen Hao, Pan Xiaoying, Sun Jiaze. Global Optimization for Combination Test Suite by Cluster Searching Algorithm. ACTA AUTOMATICA SINICA, 2017, 43(9): 1625-1635. doi: 10.16383/j.aas.2017.e160214
Citation: MA Da-Zhong, HU Xu-Guang, SUN Qiu-Ye, ZHENG Jun, WANG Rui. Cyber-physical Abnormity Diagnosis Method Using Data Feature Fusion for Pipeline Network. ACTA AUTOMATICA SINICA, 2019, 45(1): 163-173. doi: 10.16383/j.aas.2018.c180383

基于数据特征融合的管网信息物理异常诊断方法

doi: 10.16383/j.aas.2018.c180383
基金项目: 

国家自然科学基金重大项目 61627809

国家重点研发计划 2017YFF0108800

国家自然科学基金项目 61773109

中央高校基本科研业务费专项基金 N160404005

国家自然科学基金项目 61573094

详细信息
    作者简介:

    胡旭光  东北大学信息科学与工程学院博士研究生.主要研究方向为基于数据驱动的故障诊断, 信息物理系统的建模及优化控制.E-mail:1501004@stu.neu.edu.cn

    孙秋野  东北大学信息科学与工程学院教授.主要研究方向为网络控制技术, 分布式控制技术, 分布式优化分析及其在能源互联网, 微网, 配电网等领域相关应用.E-mail:sunqiuye@mail.neu.edu.cn

    郑君  东北大学信息科学与工程学院硕士研究生.主要研究方向为基于机器学习的综合能源系统故障检测与诊断.E-mail:ZJ623928036@163.com

    王睿  东北大学信息科学与工程学院博士研究生.2016年于东北大学获得电气工程及其自动化专业学士学位.主要研究方向为能源互联网中分布式电源的协同优化及其电磁时间尺度稳定性分析.E-mail:1610232@stu.neu.edu.cn

    通讯作者:

    马大中  东北大学信息科学与工程学院副教授.主要研究方向为故障诊断, 容错控制, 能源管理系统, 分布式发电系统、微网和能源互联网的优化与控制.本文通信作者.E-mail:madazhong@ise.neu.edu.cn

Cyber-physical Abnormity Diagnosis Method Using Data Feature Fusion for Pipeline Network

Funds: 

Major Program of National Natural Foundation of China 61627809

National Key Research and Development Program of China 2017YFF0108800

National Natural Science Foundation of China 61773109

Fundamental Research Funds for the Central Universities N160404005

National Natural Science Foundation of China 61573094

More Information
    Author Bio:

      Ph. D. candidate at the College of Information Science and Engineering, Northeastern University. His research interest covers fault diagnosis based on data-driven, modeling and optimal control of cyber-physical system

       Professor at the College of Information Science and Engineering, Northeastern University. His research interest covers network control technology, distributed control technology, distributed optimization analysis and various applications in energy internet, microgrid, power distribution network

      Master student at the College of Information Science and Engineering, Northeastern University. His research interest covers fault detection and diagnosis of integrated energy system based on machine learning

       Ph. D. candidate at the College of Information Science and Engineering, Northeastern University. He received his bachelor degree in electrical engineering and automation from Northeastern University in 2016. His research interest covers collaborative optimization of distributed generation and its stability analysis of electromagnetic timescale in energy internet

    Corresponding author: MA Da-Zhong   Associate professor at the College of Information Science and Engineering, Northeastern University. His research interest covers fault diagnosis, fault-tolerant control, energy management systems, and control and optimization of distributed generation systems, microgrids and energy internet. Corresponding author of this paper
  • 摘要: 随着管网物理空间和信息网络的深度融合,系统面临着物理和信息空间异常带来的运行风险.本文根据管网系统数据量大、耦合性强的特点,提出一种基于数据特征融合的信息物理异常诊断方法.首先通过站场信息数据构建信息增维矩阵并且通过矩阵预分析实现信息传输中断异常的判断.然后基于不同站场信息构建的信息增维协方差矩阵,通过矩阵特征值分布的变化情况对物理异常以及信息传输错误异常进行区分.在此基础上,为了对管网物理异常分类实现系统运行状态的有效分析,将管网信息增维协方差矩阵最大特征向量映射的二维图像作为输入,采用卷积神经网络进行研究,进而实现对物理异常的准确判断.最后通过某实际管网数据进行仿真分析,验证所提方法的有效性.
  • In order to test a software system completely, we should make the functional detection for all kinds of system element combinations. If a software system under test (SUT) has ${k}$ elements and each element has $v_i$ $(i=1, 2, \ldots, k)$ different values, then the number of whole test cases, which could covered all kinds of system element combinations for this SUT, is $\sum_{i=1}^k v_i$. For example, Table Ⅰ is a SUT with 3 testing elements, and the number of whole test cases for completely testing this SUT is $3^3=27$. Since $\sum_{i=1}^k v_i$ might be a huge number, the cost of entire operations for testing such SUT is likely to be tremendous. So, it is infeasible to make a complete testing for the SUT with large input space.

    表 Ⅰ  A SUT WITH THREE TEST PARAMETERS
    Table Ⅰ  A SUT WITH THREE TEST PARAMETERS
    Value $A$ $B$ $C$
    0 a0 b0 c0
    1 a1 b1 c1
    2 a2 b2 c2
    下载: 导出CSV 
    | 显示表格

    Fortunately, some researches show about 70$\, \%$ software bugs are caused by the combinations between two elements, meanwhile, the correlations among three elements generated about 90$\, \%$ software bugs [1]. That means, we can generate a smaller test case set, which just identifies the interactions among several system elements, such as pairwise or triple combinations, to capture most of bugs in a SUT [2], [3]. Therefore, the combinatorial testing could be a more effective technique for discovering interaction faults of SUT, whose key task is to generate a test suite as small as possible to cover all given system element combinations.

    In this study, we propose a novel test suite generation and global optimization approach. In the first step, the test suite generation problem has been transformed into a binary sequence optimization problem by a binary encoding mechanism. Based on it, a novel evolutionary algorithm, cluster searching algorithm (CSA), is presented to optimize the binary sequence in solution space so as to construct the optimal test suite. In Section 2, we analyze the related research works. Section 3 introduces the problem transformation. Section 4 shows the CSA. Section 5 provides the simulations. Section 6 gives the conclusion.

    Generally, a test case subset, which can satisfy all covering requirements, is known as a representative set. Assuming that the cost of generating and managing each test case is the same, a representative set with a minimum number of test cases is desirable and is called the optimal testing suite. The optimal combinatorial test suite generation problem is defined as, given a SUT and a set of combinatorial covering criterion, find a minimal representative set from the complete test case set. For example, Table Ⅱ is an optimal pairwise combinations representative set, which can cover all combinations between any two system elements of the SUT in Table Ⅰ. In general, this problem can be expressed as a set-covering problem [4], and it is a NP-complete problem also [5].

    表 Ⅱ  AN OPTIMAL TEST SUITE COVERING ALL PAIRWISE COMBINATIONS
    Table Ⅱ  AN OPTIMAL TEST SUITE COVERING ALL PAIRWISE COMBINATIONS
    Number $A$ $B$ $C $
    1 a0 b0 c0
    2 a0 b2 c2
    3 a0 b1 c1
    4 a1 b0 c2
    5 a1 b1 c0
    6 a1 b2 c1
    7 a2 b0 c1
    8 a2 b2 c0
    9 a2 b1 c2
    下载: 导出CSV 
    | 显示表格

    In traditional studies, people make use of some mathematical methods to construct the representative set, such as orthogonal array [6]. But, there are some unsolved problems existing in the orthogonal array generation method, such as we cannot generate a necessary orthogonal array for any kind of SUT. Another mathematical method is based on the matrix recursive construction process [7]. For some special instances, this method can give a wonderful result. But, it cannot be applied to all kinds of SUT either. Moreover, the theoretical researches of combinatorial testing are still unable to give an explicit optimal covering number for most problems. The major conclusions of such studies just can give some logical relations for the optimal covering number between different problems [8].

    In recent years, the evolutionary algorithm (EA) has developed into a powerful global optimization algorithm to solve many complex engineering optimization problems [9]$-$[12]. In combinatorial testing researches, the EA is usually coupled with one-test-at-a-time mechanism [13]. In such studies, an EA has been used to search a best test case $t_i$ in the test case complete set, which can cover the maximum combinations in uncovering combination set (CS), in one computation. Then, let $t_i$ join test suite (TS) and delete the covered combinations by $t_i$ in CS. After that, the above operations will repeat until all combinations in CS have been covered. Based on this iterative construction process, the one-test-at-a-time mechanism can solve most large-size SUT very well [14], [15]. However, to a small-size SUT, it does not show a desired performance. Firstly, it is likely to generate an approximate representative set. Secondly, it always takes a much longer time and more matrix transformations to generate whole representative set. These characteristics make one-test-at-a-time mechanism not suitable to solve small-size SUT. For example, if we use this mechanism to generate the TS for the SUT in Table Ⅰ, the test cases a0b0c0, a1b1c1 and a2b2c2 are likely to be preferentially selected from complete set to join TS one by one, because both of them contain 3 uncovered pairwise combinations in CS, which conform to the optimal condition for the test case selection. However, if it does, no matter what test case in the left 24 cases has been chosen to join TS in the next computation cycle, the generated representative set would be an approximate solution, because there is at least one pair-wise combination repetitive with the 9 covered pair-wise combinations, which have been generated by the above 3 test cases.

    Recently, efforts have been focused on the use of meta-heuristic algorithms as part of the computational approach for test suite generation. Generally, meta-heuristic algorithms start with a random set of test cases, such as using a simple one-test-at-a-time greedy procedure to construct it [16]. Then, the initial test case set undergoes a series of transformations in an attempt to improve itself. Each of them could be an independent meta-heuristic algorithm, such as teaching learning based optimization, global neighborhood algorithm, particle swarm optimization, and cuckoo search algorithm [17]. In this process, one best candidate is selected at each iteration until all the required interactions are covered. Such researches show a good performance for large-size constrained CA problems as well. But, these algorithms always contain several searching algorithms and try to balance them in the iteration computation process. So, these approaches often have a relatively heavy and complicated structure and are more suitable to solve large-size CA problems.

    By using one-test-at-a-time mechanism or meta-heuristic algorithms, it is possible to perform large combinatorial testing that was not possible before. But, for small-size CA problem, such approaches still imply a high cost and often get an approximate result. In the practical applications, a portion of software testing works belongs to the small-size problem. So, finding a simple method to improve the probability of generating the optimal test suite for small-size combinatorial testing is a worthy goal. In order to optimize the test suite more effectively, some researchers try to translate small-size CA problem into another kind of problem to solve it, such as satisfiability problem (SAT) [18] and integer program problem [19] etc. However, these researches also meet some difficult challenges. For example, even translating a small-size SUT into a SAT problem, we will get a very large clause set. Besides, the normal planning algorithm cannot deal with a big optimization problem efficiently. Above researches enlighten us that the combination test suite generation problem should be translated into a simple and concise data structure for global optimization, meanwhile, it is necessary to equip an effective global optimization algorithm to improve the solution quality.

    Fig. 1 is the flowchart of combinatorial test suite global optimization mechanism. As it shows, a one-to-one correspondence is created between a test case in its complete set and a gene of a binary code string. Based on this, we can create a mapping relation between a test case subset of complete set and a vertex in the binary code space. This means we can translate a combination test suite generation problem into a binary code based global optimization problem to solve. The binary string is a simpler and more compact data structure. Moreover, it is more suitable for global optimization computation. In this section, we will introduce the encoding and decoding procedure firstly.

    图 1  Combinatorial test data global optimization mechanism.
    Fig. 1  Combinatorial test data global optimization mechanism.

    Generally, we can use a covering array (CA) or a mixed level covering array (MCA) to describe a SUT [4]. The difference between CA and MCA is that each test parameter of CA has the same value range, but in MCA it can be different. Actually the CA can be looked upon as a special case of MCA, and the processing methods for them have no difference. To facilitate the computation process, we make this study for CA problem only. The following is the definition of covering array given by Cohen [20].

    Definition 1 (Covering array): Let $N$, $k$, $t$, and $v$ be positive integers. A covering array, $CA(N; t, k, v)$, is a $N\times k$ array on $v$ symbols, and every $N\times t$ sub-array contains all ordered subsets from $v$ symbols of size $t$ at least once. In such an array, $t$ is called strength, $k$ is called the degree, $v$ is called the order.

    By this definition, we can get that the number of test cases in the complete set of $CA(N;t, k, v)$ is $v^k$, and the number, of, whole, combinations, with covering strength $t$ is $v^tC_k^t$. For describing the problem transformation mechanism, the other definitions are given in the following.

    Definition 2: Let $\Phi$ be the complete test case set of $CA(N;t, k, v)$, then $|\Phi|=v^k$. Sort $\Phi$ in ascending order by the value of each test parameter. The id $j$ of test case $t_j$ is labeled from 0 to $|\Phi|-1$.

    By this definition, the complete test case set $\Phi$ will show an orderly structure. Furthermore, we can use the id $j$ to visit a definite test case $t_j$ in $\Phi$. For example, Table Ⅲ is the complete test case set of the SUT in Table Ⅰ.

    表 Ⅲ  AN ORDERLY COMPLETE TEST CASES SET
    Table Ⅲ  AN ORDERLY COMPLETE TEST CASES SET
    $A$ $B$ $C$ $t_j$ id $j$
    a0 b0 c0 $t_0$ 0
    a0 b0 c1 $t_1$ 1
    a0 b0 c2 $t_2$ 2
    a0 b1 c0 $t_3$ 3
    $\vdots $ $\vdots $ $\vdots $ $\vdots $ $\vdots $
    a2 b2 c2 $t_{26}$ 26
    下载: 导出CSV 
    | 显示表格

    Definition 3: The binary code sequence $I$ is a string of length $L$. Its genes $\alpha_j\{0, 1\}$, $j=0, 1, \ldots L-1$.

    As Fig. 1 shows, the binary code space is an $L$-dimensional hypercube. The vertex in this hypercube is a unique binary coding string.

    Definition 4: Let $\gamma_i$ be a test cases subset of $\Phi$ and $\Gamma=$ $\{\gamma_i|\gamma_i$ $\in$ $\Phi\}$. Then, $\Gamma$ is the complete set of $\Phi$'s subset, and for $\forall\gamma_i$ and $\forall\gamma_j$ $(\gamma_i, \gamma_j \in \Gamma$ and $i\neq j)$, $\gamma_i\neq\gamma_j$. Let $\lambda_i$ be a vertex in binary code space and $\Lambda=\{\lambda_0, \lambda_1, \ldots$ $\}$. Then, $\Gamma$ is the complete set of vertex in binary code space.

    Based on above definitions we can get 2 characteristic theorems of set $\Gamma$ and set $\Lambda$ firstly.

    Theorem 1: Let $L=|\Phi|$, then the element number of set $\Gamma$ is equal to set $\Lambda$'s. That is $|\Gamma|=|\Lambda|=2^L$.

    Proof: By Definition 3, we can get there are $2^L$ unique vertexes in the $L$-dimensional hypercube. By Definition 1, we know there are $|\Phi|=v^k$ distinct test cases in $\Phi$. Meanwhile, for a test case, there are also two statuses, it belong to the test case subset or not. That means the element number of $\Gamma$ is $|\Gamma|=2^{|\Phi|}$. So, if $L=|\Phi|$, we can get $|\Gamma|=$ $|\Lambda|$ $=$ $2^L$.

    Theorem 2: Make test case $t_j$ join the TS only when the gene $\alpha_j=1$ $(j=0, 1, \ldots, L-1)$. Then, both $\Gamma\rightarrow\Lambda$ and $\Lambda$ $\rightarrow$ $\Gamma$ are bijections.

    Proof: Firstly, we can prove both $\Gamma\rightarrow\Lambda$ and $\Lambda\rightarrow\Gamma$ are surjections based on above assumption. By Theorem 1 we know the set $\Gamma$ and set $\Lambda$ have same number of elements when $L=|\Phi|$. Besides, both the test case in $\Phi$ and the gene in a binary string have two statuses, which is yes or no and 1 or 0. Meanwhile, the $t_j$ has corresponded to one and only $\alpha_j$ by the same id $j$. So, under the given condition, each element in set $\Gamma$ would correspond to one and only object in set $\Lambda$, and each element in set $\Lambda$ is mapped by a unique object in set $\Gamma$, and vice versa. Based on this, we can get both $\Gamma\rightarrow\Lambda$ and $\Lambda\rightarrow\Gamma$ are surjections. On the other hand, by the Theorem 1, we can get all elements in set $\Gamma$ and set $\Lambda$ is a unique object. That means each element in set $\Gamma$ and set $\Lambda$ is different from others. Therefore, both $\Gamma\rightarrow\Lambda$ and $\Lambda\rightarrow\Gamma$ are injections. For $\Gamma\rightarrow\Lambda$ and $\Lambda$ $\rightarrow$ $\Gamma$ are both surjection and injection, we can get that both $\Gamma\rightarrow\Lambda$ and $\Lambda\rightarrow\Gamma$ are bijections.

    The bijection relationships between set $\Gamma$ and set $\Lambda$ show there is a one-to-one correspondence between the test case subset and the vertex in binary code space, which is a necessary condition for the problem transformation.

    The decoding mechanism is used to parse the binary code sequence so as to construct the corresponding combinatorial test case subset. To facilitate this process, we use a positive integer, whose value is set from 0 to $v-1$, to mark the symbol of each parameter of SUT. Then, we can use a mod-$v$ number to present the details of a test parameter.

    Definition 5: For a covering array $CA(N;t, k, v)$, a test case can be expressed as a $k$ figures integer sequence, and each figure is a positive mod-$v$ integer.

    Let $x_i$ $(x_i\in\{0, 1, \ldots, v-1\})$ express the value of $i$th parameter ($i\in\{0, 1, \ldots, k-1\}$) of test case $t_j$. Then, an equation can be created to show the details of test case $t_j$ after parsing the number id $j$. The formula is

    $ \begin{align} j=x_{k-1}\ast v^{k-1}+ \cdots + x_1\ast v^1+x_0\ast v^0 \end{align} $

    (1)

    For example, to the CA in Table Ⅰ, if the gene value of $\alpha_3$ in $I_i$ is 1, that means $j=3.$ Then, we can create an equation $3=0\times3^2+1\times3^1+0\times3^0$. Based on this equation, we can get an integer sequence, which is 010. After that, this integer sequence can be translated into a test case $t_3$ $=$ a0b1c0. Repeating this process for each valuable gene in $I_i$, whose value is 1, we can generate a whole test suite. This procedure is shown as follows.

    Algorithm 1 Decoding
    Input: positive integer $k$ and $v$, binary code of $I_i$
    Output:test suite TS
     1: for $j$ from 0 to $L-1$do
     2:  if $\alpha_j$ equal to 1 then
     3:    $dnum=j$;
     4:    for $m$ from 0 to $k-1$ do
     5:     $x = dnum$%$v; ~ dnum/=v$;
     6:     $t_j[m]=x$;
     7:    end for
     8:    put $t_j$ into TS;
     9:  end if
     10:end for
    下载: 导出CSV 
    | 显示表格

    In above procedure, TS = $t_j|j=0, 1, \ldots, L-1$, $t_j=$ $ x_{k-1}, $ $\ldots, $ $x_1, x_0$ where $x_i$ is a mod-$v$ integer value. Firstly, we set TS = $\phi$.

    In the proposed approach, the CA problem can be regarded as a sort of optimization problem. So, we can formulate $\lambda_i$'s fitness as

    $ \begin{align} \max f(\lambda_i), \quad \lambda_i\in\Lambda. \end{align} $

    (2)

    By Theorem 2, we know $\lambda_i\rightarrow\gamma_i$ is a one to one mapping. So, we can give the following definition

    Definition 6: the fitness of $\lambda_i$ and $\gamma_i$ is

    $ \begin{align} f(\lambda_i)=f(\gamma_i)=f_i. \end{align} $

    (3)

    Since we expect to use as few test cases as possible to cover whole combinations with strength-$t$, the fitness of $\lambda_i$ can be evaluated from two aspects. The first one is the covering degree for strength-$t$ combination in CS. The second one is the number of test cases in $\lambda_i$. In order to balance the two sides, we propose to use following formula to calculate $f_i$

    $ \begin{align} f_i =10\ast\frac{\omega}{|CS|}+1-\frac{|TS|}{|\Phi|} \end{align} $

    (4)

    where $\omega$ is the number of covered combinations in CS and $|CS|$ is the number of all strength-$t$ combinations. Obviously, $0<\omega\leq|CS|$ and $0<|TS|\leq|\Phi|$. Based on our experience, $10\ast\omega/|CS|$, which is between 0 and 10, is used to judge the coverage of combinations set. Meanwhile, $1$ $-$ $|TS|/|\Phi|$, which is between 0 and 1, is used to show the test suite size relationship.

    Besides, for handing constraints, a specific calculation mechanism is used to filter out all invalid genes from $\lambda_i$ before fitness evaluating.

    Definition 7: The constraint set $CO=\{co_i | i=1, 2, \ldots \}$. If the constraint $co_i$ is available, we can generate a corresponding binary string $I_i=\{\alpha_0\alpha_1 \cdots \alpha_{L-1}\}$, in which the $\alpha_j$ $=$ $0$ if its corresponding test case $t_j$ is infeasible to $co_i$; otherwise, $\alpha_j=1$. Based on ${I_1, I_2, \ldots}$, we can generate an invalid genes filtering string $I_{co}$

    $ \begin{align} I_{co} = I_1\wedge I_2\wedge \cdots \end{align} $

    (5)

    where $\wedge$ is the logic and operation.

    Using $I_{co}$ we can filter out all invalid genes in $\lambda_i$ easily by following formula

    $ \begin{align} \lambda_i =\lambda_i \wedge I_{co}. \end{align} $

    (6)

    After this calculation process, the fitness of $\lambda_i$ would be calculated by (4).

    Based on fitness function, the value of $\lambda_i$ and $\gamma_i$ can be evaluated. Moreover, both of them have the same fitness value. Then, if we sort the set $\Gamma$ and set $\Lambda$ based on its individuals fitness, we can see the corresponding individuals between two sets also have the same position in each fitness sequence. So, we can get Theorem 3.

    Theorem 3: The $\gamma_i$ and $\lambda_i$ have the same relative position in its fitness ordering sequence of set $\Gamma$ and set $\Lambda$.

    This theorem gives a sufficient condition for the problem transformation. Above all, we can get a conclusion that a combination test suite generation problem can be translated into a binary code based global optimization problem to solve.

    As we know, the solution of EA is much likely to be affected by the phenomena of premature convergence and searching stagnation. The adaptive mechanism is the most commonly used self-adjusting method in EA. Nevertheless, in a practical application, it is difficult to make a reliable and accurate self-adjusting strategy for EA. So, the adaptive mechanism just can make a limited impact on the performance improvement of EA. Recently, a new research trend is aimed at creating a hybrid algorithm model by merging various searching mechanisms and operators in order to improve the performance of optimization system [21], [22]. Meanwhile, a new problem has emerged. That is how to balance the diversity and the complexity in a hybrid evolution system and harmonize the specificity and the coordination among multiple operators. We find that an organization with sort of cluster form structure in a complicated and huge evolutionary group has shown a particularly important role in the occurrence and development process of such group. Inspired by this, we propose to create a certain cluster organization in the population, and use it to control and adjust the searching process of population. Fig. 2 is the model of cluster searching algorithm (CSA).

    图 2  Model of cluster searching algorithm.
    Fig. 2  Model of cluster searching algorithm.

    In CSA, the cluster $C$ is a connection relationship among individuals, which can be generated by a clustering process. Such structure makes the population searching procedure divided into two parts, which are the searching among group process and the searching inside group process. By the interactions among multiple clusters, the searching among group process is developed to explore the code space. In contrast with it, the searching inside group process is aimed at refining the individuals in each group. Such job-division mechanism is not only helpful keeping low coupling between the global and local searching computation in evolution system, but also provides an environment and foundation for merging various searching mechanisms and operators, and adjusting the interrelation between the global and local searching process. For describing CSA, we give some basic definitions firstly.

    Definition 8: A population Pop of CSA consists of an $n$-tuple of strings $I_i$ $(i=0, 1, \ldots, n-1)$ of length $L$, where the genes $\alpha_j\in\{0, 1\}$, $j=0, 1, \ldots, L-1$. $I_i$ is called an individual. The fitness of $I_i$ is $f_i >0$.

    Definition 9: The cluster $C$ is a virtual group organization and the $A_i^j$ is a member of group $C_i$, which maps an individual $I_k$ in $Pop$. We can express it as

    $ C=\{C_1, C_2, \ldots \}, \ \ C_i=\{A_i^1, A_i^2, \ldots \} \notag\\ \qquad\qquad\qquad\qquad\quad A_i^j=k, \ \ i, j, k=1, 2, \ldots $

    (7)

    $ \emptyset=\{C_i\cap C_j|i\neq j\}, \ \ \emptyset=\{A_i^r\cap A_j^s|i\neq j\}\notag\\ Pop=\cup C_i, \ \ i, j, r, s=1, 2, \ldots. $

    (8)

    Definition 10: In cluster $C$, the members of the same group have more similarity, and the members belonging to different groups have more diversity. That is

    $ \begin{align} & Distance(A_i^r, A_j^q) > Distance(A_i^r, A_i^s), \notag\\ & \qquad\qquad\qquad\qquad\qquad i\neq j, \ \ i, j, r, s, q=1, 2, \ldots. \end{align} $

    (9)

    Definition 11: The core member $A_i^c$ of $C_i$ is a member who has the best fitness in group $C_i$. That is

    $ \begin{align} f_{A_i^r}\leq f_{A_i^c}\quad \forall\, A_i^r \in C_i, \ \, i, r=1, 2, \ldots. \end{align} $

    (10)

    In the iteration process of CSA, the cluster, created in $k$th generation, is written as $C^k$, and the children, generated by the searching process of $C^k$, are $Ch^k$. The following are the main steps of CSA.

    1. $C^0 = initializing (Pop^0)$;

    2. While (the termination criteria are not reached) do

    3. $Ch^k = searching among group (Pop^{k-1}, C^{k-1})$;

    4. $C^k= clustering (Pop^{k-1}, Ch^k)$;

    5. $Ch^k = searching inside group (Pop^{k-1}, Ch^k, C^k)$;

    6. $C^0 = initializing (Pop^0)$;

    7. End while.

    In the first step, CSA initializes the population $Pop^0$ in binary code space randomly. After that each $I_i$ in $Pop^0$ is set to be a group $C_i$ $(i=1, 2, \ldots, |n|)$. And it is the only member $A_i^1$ and center member $A_i^c$ of $C_i$ also. Then, the cluster $C^0$ is created. The following is the iteration searching process of CSA.

    In the searching among group process, we choose an individual from different groups and use multi-point crossover operation $\oplus$ and mutation operation $\odot$ to explore the code space. This step will generate $n$ offspring individuals.The number of crossover point $\xi$ in $\oplus$ operation is randomly generated between $a$ and $b$. The default parameters $a$ and $b$ satisfy $1<a<b<L/2$. In $\odot$ operation, the gene mutation probability is $\rho\in(0, 0.05)$.

    Algorithm 2 Searching among group
    Input:   population $Pop^{k-1}$ and cluster $C^{k-1}$
    Output:$n$ offspring individuals in $Ch^k$
    1: Randomly select two different groups $C_i$ and $C_j$ ($i\neq j$) from current cluster $C^{k-1}$, then randomly select member $A_i^r$ and $A_j^s$ from $C_i$ and $C_j$ respectively.
    2: Perform $\oplus$ operation between $A_i^r$ and $A_j^s$ to generate binary string $ch_1$ and $ch_2$. Then, perform $\odot$ operation on $ch_1$ and $ch_2$, respectively. That is
    ${align}{matrix} c{{h}_{1}},c{{h}_{2}}=\odot (A_{i}^{r}\oplus A_{j}^{s}). & (11) \\ {matrix}{align}$
    3: The number of offspring individuals $p=p+2$. If $p<n$, return to step 1. Otherwise, exit.
    下载: 导出CSV 
    | 显示表格

    After the searching among group process, 2$n$ individuals will be dispersed in code space widely. Then, we use a clustering process to assign them into different groups so that they have a high degree of similarity within the group, and that the cluster is to be distinct. This process helps CSA to analyze the spatial distribution structure of population in code space. This clustering process also consists of two parts: a technique for calculating the distance between binary strings, and a grouping technique to minimize the distance between individuals in same group while maximizing the distance among groups.

    4.2.1   Distance Calculation by PAD

    Based on the bound researches of optimal test case number, such as symbol-fusing and the lower and upper bound [23], [8], we can see that the valuable genes, whose value is 1, just have occupied a small proportion in binary code. In order to emphasize the importance of these valuable genes in clustering process, we propose to use positive attribute distance (PAD) [24] instead of traditional hamming distance to calculate the individual distance.

    The PAD of two binary sequences is as follows

    $ \begin{align} PAD(I_i, I_j) = 0\leq \frac{2\Psi_{ij}}{\Psi_i+\Psi_j} \end{align} $

    (12)

    where $\Psi_i$ is the number of 1's in $i$th binary sequence, $\Psi_j$ is the number of 1's in $j$th binary sequences, and $\Psi_{ij}$ is the number of 1's common to both $i$th and $j$th binary sequences. Obviously, the result of PAD is in the interval between 0 and 1, where 1 expresses absolute similarity and 0 expresses absolute diversity.

    Furthermore, we use the average PAD of population as the indicator of population diversity $\gamma\in(0, 1)$. It can be calculated by following formula

    $ \begin{align} \gamma=\frac{2}{|n|(|n|-1)}\sum\limits_{i=2}^{|n|}\sum\limits_{j=1}^{i-1}PAD(I_i, I_j). \end{align} $

    (13)
    4.2.2   Clustering Based on PAD

    Algorithm 3 is the main steps of a hierarchical clustering process. In this process, we set two matrixes, IDM and GDM, to store the individual distance $idm_{ij}\in IDM$ and group distance $gdm_{ij}\in GDM$. That is

    $ idm_{ij}=\begin{cases} 0,&{\rm if} ~i\leq j, \ \, i, j=1, 2, \ldots \\ PAD(I_i, I_j),&{\rm else} \end{cases} $

    (14)

    $ gdm_{ij}= \begin{cases} 0,&{\rm if} \ i\leq j, \\ &\quad i, j, r, s=1, 2, \ldots \\ \frac{\sum\limits_{A_i^r\in C_i} \sum\limits_{A_j^s\in C_j}PAD(A_i^r, A_j^s)} {|C_i||C_j|},&{\rm else}. \end{cases} $

    (15)

    Meanwhile, the current population $Pop^{k-1}$ and its offspring individuals $Ch^k$ have been mixed together to join clustering process.

    Algorithm 3 Searching among group
    Input: population $Pop^{k-1}$ and offspring individuals $Ch^k$
    Output: new cluster $C^k$
    1: Set each $I_i$ in population to be a temporary group $C_i$. Initialize the IDM by (14). After that initialize the GDM by (15) based on IDM. Then, calculate the population diversity $\gamma$ by (13), and set the average group distance $\xi=\gamma$.
    2: Find the minimum group distance $gdm_{pq}$ in GDM and merge the group $C_p$ and $C_q$ into a new group $C_{pq}$. Then, update the GDM.
    3: Calculate new average group distance $\xi'$
    $ {align}{matrix} {\xi }'=\frac{2}{|C|(|C|-1)}\sum\limits_{i=2}^{|C|}{\sum\limits_{j=1}^{i-1}{g}}d{{m}_{ij}} & (16) \\ {matrix} {align}$
    where $|C|$ is the number of groups after step 2. If $\xi'<\xi$, go to step 4; otherwise, $\xi=\xi'$ and return step 2.
    4: Restore the group $C_p$, $C_q$ and GDM. After that, update the center member for each group and output $C$.
    下载: 导出CSV 
    | 显示表格

    The searching inside group process consists of two operations, SIG1 and SIG2, which are used to reduce the valuable genes in binary string while maintaining it can satisfy all covering requirements. In this process, a parameter $m$ is used to limit the execution times of SIG1 and SIG2 for each group. In this paper, the $m$ is adjusted by the following formula

    $ \begin{align} m = {\rm round}\left(\frac{m_2-m_1}{G-1}g+\frac{m_1G-m_2}{G-1}\right) \end{align} $

    (17)

    where $0\leq m1<m2$, $g=1, 2, \ldots, G$ is the generation number, G is its ceiling number and round($\cdot$) is the rounding operation. During the searching process, (17) makes $m$ increase from $m_1$ to $m_2$ gradually. Besides, parameter $\lambda$ $\in$ $(0, 1)$ is used to adjust the operation probability between SIG1 and SIG2.

    Algorithm 4 Searching inside group
    Input: $Pop^{k-1}$, $Ch^k$, $C^k$ and $\lambda$
    Output: $m|C|$ offspring individuals in $Ch^k$
    1: Run this operation for $C_i$, $i=1, 2, \ldots, |C|$, and set $t=0$.
    2: $UR(0, 1)$ is a uniformly distributed random number between 0 and 1. If $UR(0, 1)<\lambda$, goto step 2.1 to execute SIG1. Otherwise, goto step 2.2 to execute SIG2.
      2.1: SIG1: select two members $A_i^r$ and $A_i^s$ from $C_i$ randomly, and execute logic and operation $\wedge$ between them. After that, perform multi-point crossover operation $\oplus$ between the output string by $A_i^r\wedge A_i^s$ and the center members $A_i^c$. This process can be expressed as
    ${align}{matrix} c{{h}_{1}},c{{h}_{2}}=A_{i}^{c}\oplus (A_{i}^{r}\wedge A_{i}^{s}). & (18) \\ {matrix}{align}$
      After that, put the generating individuals $ch_1$ and $ch_2$ into $C_i$, $t=t+2$ and goto step 3.
      2.2: SIG2: Randomly select three members $A_i^r$, $A_i^s$ and $A_i^t$ from $C_i$. Then, perform logic and operation $\wedge$ among them and output a binary string $ch$
    ${align}{matrix} ch=A_{i}^{r}\wedge A_{i}^{s}\wedge A_{i}^{t}. & (19) \\ {matrix}{align}$
        If $ch$ can cover all strength-$t$ combinations in CS, goto step 2.2.1. Otherwise, goto step 2.2.2.
      2.2.1: Randomly select a valuable gene in $ch$, whose value is 1, and change it into 0. If the updated $ch$ still can cover all strength-$t$ combinations in CS, repeat this step. Otherwise, recover the value of last chosen gene to 1 and goto step 2.2.3.
      2.2.2: Randomly select a gene in $ch$, whose value is 0, and change its value into 1. Then repeat this step until $ch$ has covered all strength-$t$ combination in CS and goto step 2.2.3.
      2.2.3: Make the generating individuals $ch$ join $C_i$, set $t=t+1$ and goto step 3.
    3: If $t<m$, update the $A_i^c$ of $C_i$ and return to step 2. Otherwise, set $i=i+1$ and return to step 1.
    下载: 导出CSV 
    | 显示表格

    Fig. 3 shows the practical calculation process of searching inside group. In Fig. 3(a), two binary strings, $ch_1$ and $ch_2$, are generated by (18). In Fig. 3(b), a temporary individual $ch$ is generated by (19). Then, one gene of $ch$ is selected to change its value from 0 to 1, and a solution is gotten.

    图 3  Calculation cases of searching inside group process.
    Fig. 3  Calculation cases of searching inside group process.

    After the cluster searching process, the scale of current population increases to $2n+m|C|$. In order to satisfy the computation requirement for next generation, we need to select $n$ individuals from current population to form next population. In cluster selection process, $n$ individuals will be selected from each group respectively.

    Algorithm 5 Cluster selection
    Input: $Pop^{k-1}$, $Ch^k$, $C^k$
    Output: $Pop^k$
    1: For each $C_i$, sort its members in descending order by their fitness. After that, set $i=1$, $k=1$, $j=1$.
    2: Take member $A_i^k$ from $C_i$ to be a surviving individual $I_j$ and join next population. It can be expressed as
    ${matrix} {{I}_{j}}=A_{i}^{k},\quad j=1,2,\ldots ,n & {} \\ i=j \%|C|+1,\quad k=\text{round}\left( \frac{\mathit{j}}{|\mathit{C}|} \right)+1. & (20) \\ {matrix}$
    3: If $j<n$, $j=j+1$ and return to step 2; otherwise, exit.
    下载: 导出CSV 
    | 显示表格

    In this section, we implemented 3 algorithms, a real code genetic algorithm with one-test-at-a-time mechanism GA/OTAT, a binary code GA with global optimization approach GA/BCGO, and CSA, in C++. Meanwhile, 32 CA problems are chosen to test above 3 algorithms and TCA [16], whose source code is implemented in C++, and available online1, on a 2.1 GHz AMD Phenom PC with 2 GB memory.

    1https://github.com/leiatpku/TCA

    An individual $x_k, \ldots, x_2, x_1$ in GA/OTAT is a $k$-dimensional real vector. The gene value of each dimension is initialized between 0 and 1 randomly. In decoding process, the gene value of each dimension in an individual will be translated into an integer by the formula round $(x_i\cdot v)$. According to this integer, we can get the corresponding parameter symbol in the SUT. For example, in an individual, if the gene $x_1 =0.6$, we can get $1={\rm round} (0.6\cdot3)$. For the CA in Table Ⅰ, the integer 1 means $x_1\rightarrow a_1$. Besides, the population size $n$ of GA/OTAT is 100. The searching operations of GA/OTAT include algebraic crossover, non-uniform mutation and linear sort selection. The following is mainly the computation procedure of GA/OTAT.

    1. Initialize test suite TS $=\phi$;

    2. Initialize combination set CS;

    3. While(CS $\neq\phi$) do

    4.  Initialize population of GA/OTAT randomly;

    5. While(the termination criteria are not reached)do

    6.    search a best test case $t_i$;

    7.  End while;

    8.  Make $t_i$ join TS;

    9.  Delete the covered combinations in CS;

    10. End while;

    11. Output TS.

    Both GA/BCGO and CSA use (4) to verify the quality of test suite. Besides, based on our experience, we set population size $n=60$ in CSA. Furthermore, the GA/BCGO and CSA use the same maximum running iterations in the following trials and the CSA will costs more operation number than GA/BCGO in each searching iteration process. To be fair, we set a big population size for GA/BCGO, which is 100, to make its searching operations number is not less than CSA in each iteration process. Besides, GA/BCGO and CSA use same crossover and mutation operation. In multi-point crossover operation, the parameter $a$ and $b$, which are used to set the lower and upper limitation of crossover point, are set to $a={\rm round}(L/10)$ and $b$ $=$ ${\rm round}(L/4)$. The gene mutation probability is $\rho$ $=$ $0.01$. But, GA/BCGO uses the linear sort selection operation to generate next population. Besides, the parameter $m_1$ and $m_2$ of CSA, which are used to limit the computation times $m$ in searching inside process, are set to $m_1$ $=$ ${\rm round}(n/10)$ and $m_2 ={\rm round}(n/4)$. The parameter $\lambda$, which is used to control the execute probability of SIG1 and SIG2, is set to $\lambda=0.4$. The computation procedure of CSA and GA/BCGO is

    1. Encode the binary code space;

    2. Initialize population of CSA or GA/BCGO;

    3. While(the termination criteria are not reached)do

    4.  search the best genetic string $I_i$ in code space;

    5. End while;

    6. Decode $I_i$ and output TS.

    In the beginning of TCA, the initialization step is called to construct a CA set to cover all valid $t$-tuples, which works with a simple one-test-at-a-time greedy strategy. After that, TCA executes the search steps to adjust the CA set until the time budget is reached. During the search process, TCA switches between two modes, that is, the greedy mode and the random mode. With a probability $p=0.001$, TCA works in the random mode; otherwise (with a probability 1-p), TCA works in the greedy mode. In each run of testing, we will set a cutoff time to TCA in advance.

    We ran GA/OTAT, GA/BCGO, CSA and TCA for 32 CA problems over 30 independent trials. The experiment results of above 4 algorithms are shown in Table Ⅳ and Table Ⅴ with the experiment results of HHH [17] and integer program method [19] for part of testing problems.

    表 Ⅳ  EXPERIMENT STATISTICAL RESULTS OF 3 ALGORITHMS FOR 16 CA PROBLEMS WITH STRENGTH-2
    Table Ⅳ  EXPERIMENT STATISTICAL RESULTS OF 3 ALGORITHMS FOR 16 CA PROBLEMS WITH STRENGTH-2
    $v$ $k$ $|\Phi|$ $\mathit{N}$GA/OTAT GA/BCGO CSA TCA HHH Integer program
    $|TS|$Time (s) $|TS|$Time (s) $|TS|$Time (s) $|TS|$ $|TS|$ $|TS|$Time (s)
    BestAve. BestAve. BestAve. BestAve. BestAve. BestAve.
    2 5 32 6 7 7.7 5.97 6 6 0.27 6 6 0.36 6 6.5 - - 6 - 0.70
    6 64 - 7 8.1 6.54 6 6.2 0.68 6 6 1.10 6 6.7 - - 6 - 16.57
    7 128 - 7 8.4 10.89 6 9.4 1.43 6 6 1.99 6 7.3 - - 6 - 441.2
    8 256 - 8 10.7 12.71 6 11.3 3.91 6 6 4.70 6 7.0 - - - - -
    9 512 - 8 11.2 14.5 40 51.6 7.49 6 6 9.60 7 7.9 - - - - -
    10 1024 - 8 12.9 25.3 60 70.8 19.5 6 8.4 23.1 7 8.2 - - - - -
    11 2048 7 9 14.2 28.8 141 167 40.3 7 9.5 49.0 8 8.7 - - - - -
    12 4096 - 9 16.7 32.9 196 228 112.4 20 33.9 145 8 8.8 - - - - -
    3 4 81 9 9 10.6 8.8 9 9 1.29 9 9 1.70 9 9.6 9 9 9 - 0.08
    5 243 11 11 12.8 17.2 11 17.2 3.73 11 11 5.31 11 11.3 11 11.35 13 - *
    6 729 12 16 18.1 19.6 44 57.8 11.5 12 12 14.9 13 14.1 13 14.2 - - -
    7 2187 - 19 21.7 36.9 157 165 39.1 12 16.9 50.2 13 14.5 14 15 - - -
    8 6561 13 20 27.9 40.3 224 277 133 88 97.5 148 14 14.7 15 15.6 - - -
    4 5 1024 16 21 29.5 68.1 56 71.5 22.4 16 16.9 25.6 18 19.8 - - - - -
    6 4096 19 25 36.7 74.4 197 227 194 22 34.2 223 21 22.7 - - - - -
    7 16384 21 28 40.9 93 320 342 417 116 135 508 24 25.2 - - - - -
    下载: 导出CSV 
    | 显示表格
    表 Ⅴ  EXPERIMENT STATISTICAL RESULTS OF TEST CASE NUMBER FOR 16 CA PROBLEMS WITH STRENGTH-3
    Table Ⅴ  EXPERIMENT STATISTICAL RESULTS OF TEST CASE NUMBER FOR 16 CA PROBLEMS WITH STRENGTH-3
    $v$ $k$ $|\Phi|$ $\mathit{N}$GA/OTAT GA/BCGO CSA TCA HHH
    $|TS|$Time (s) $|TS|$Time (s) $|TS|$Time (s) $|TS|$ $|TS|$
    BestAve. BestAve. BestAve. BestAve. BestAve.
    25 32 10 11 13.6 11.1 10 11.2 0.41 10 10 0.42 10 10.6 - -
    6 64 - 13 14.2 17.6 10 12.6 1.29 10 10 1.34 10 10.7 - -
    7 128 - 14 15.6 24.4 12 15.1 2.09 10 10 2.15 10 11.2 - -
    8 256 - 17 19.8 31.8 15 19.6 5.22 10 10 5.62 11 12.0 - -
    9 512 - 19 21.9 41.0 17 23.9 9.85 10 10 11.0 11 11.9 - -
    10 1024 - 22 25.2 52.3 41 54.7 25.9 10 11.8 25.3 13 15.8 - -
    11 2048 12 24 27.7 69.9 80 92.8 56.8 12 19.4 55.5 14 15.5 - -
    12 4096 15 28 30.9 82.1 239 257 131 69 85.7 133 17 18.1 - -
    34 81 27 29 34.2 68.1 27 27 1.62 27 27 1.91 27 28.9 27 29.45
    5 243 - 30 36.1 71.3 27 34.2 3.93 27 27 5.53 29 31.6 39 41.25
    6 729 33 36 42.5 80.5 55 62.9 15.5 33 35.5 15.4 34 36.1 33 39
    7 2187 39 48 54.4 89.9 195 217 87.9 49 54.9 93.2 46 47.7 49 50.8
    8 6561 42 54 58.9 99.6 251 275 145 156 170 157 51 52.2 52 53.65
    45 1024 64 72 81 148 60 78.2 22.7 64 67.9 27.6 66 68.7 - -
    6 4096 88 93 105 198 229 249 212 194 216 231 94 96.6 - -
    7 16384 - 99 117 153 370 379 499 233 247 527 96 98.4 - -
    下载: 导出CSV 
    | 显示表格

    In first round of experiments, 16 CA problems with strength-2 have been tested. In the first 8 tests, we set $v$ $= 2$ and $k= 3, 4, 5, \ldots, 12$, respectively. The maximum running iterations of GA/OTAT, GA/BCGO and CSA are set to 200, 500 and 1000 when $k$ is less than or equal to 6, 9 and 12, respectively. In the next 5 tests, $v =3$ and $k=$ $4, $ $5, $ $\ldots, $ $8$, respectively. The maximum running iterations of 3 algorithms are set to 200, 500 and 1000 when $k$ is less than or equal to 4, 6 and 8, respectively. In the last 3 tests, $v=4$ and $k = 5$, $6$, $7$, respectively. The maximum running iterations of 3 algorithms are set to 1000 and 2000 when $k$ is less than or equal to 6 and 7, respectively. The experiment statistical results of above 16 tests are shown in Table Ⅳ. In second round of experiments, the covering criterion of above 16 CA problems is changed to strength-3. Meanwhile, the parameters of $v$, $k$ and maximum running iterations of above 16 CA problems have the same value as the first round experiments. Table Ⅴ is the experiment statistical results of these 16 CA problems. For a fair comparison, the cutoff time of TCA for each CA problem is set to an integer number, which is gotten by rounding up CSAs running time. HHH does not provide its running time and just shows the best and average number of $|TS|$ for $CA(N; t, 3^k)$ where $4\leq k\leq 8$ with strength-2 and strength-3. The integer program method just provides the results of 8 small-size CA problems with strength-2. The $\ast$ in Table Ⅳ indicates the best possible solution found at the point when the process was stopped after running for about 6.5 hours. Besides, the number $N$ is the known minimal number of $|TS|$ for 36 CA problems, which can be found in Colbourns website2.

    2http://www.public.asu.edu/~ccolbou/src/tabby/catable.html

    In Table Ⅳ, we can see the CSA has gotten 11 best solutions of 16 CA problems and GA/BCGO has gotten 6 best solutions, but GA/OTAT just gets an approximate solution for each 16 problems. In Table Ⅴ, the experiment results show a similar formation as Table Ⅳ. With a holistic view, GA/BCGO can get the optimal solution with a high probability when the problems scale $|\Phi|$ is less than 250. It is worth noting that CSA has improved the performance of global optimization mechanism immensely. It can find the optimal solution with a high probability when the problems scale $|\Phi|$ is less than 2000. Instead, GA/OTAT just can get the approximate solution even the $|\Phi|$ of CA problem is very small. However, when the $|\Phi|$ of CA problem is more than 4000, the solution qualities and average CPU times of GA/OTAT begin to transcend CSA distinctly. Moreover, even the $|\Phi|$ is more than 16 000, the solutions and average CPU times of GA/OTOA still keep an acceptable approximate result.

    Comparing the experiment results between GA/OTAT, TCA and HHH, we can see the meta-heuristic algorithms improve the average quality of $|TS|$ remarkably relative to the traditional one-test-at-a-time algorithm for its search step can adjust the generated CA set dynamically. However, the heuristic algorithms should cost lots of array transformation operations to adjust the CA set and combinations set in its greedy and random search processes, which make its running time increase clearly when the cover strength has been augmented. In [16], TCA sets its cutoff time up to 1000 second so as to get a good performance. For above experiments, we can see an extended cutoff time is very helpful for improving the stability of solutions in TCA. It is worth noting that the global optimization ability of TCA is usually limited, notwithstanding it can adjust the generated CA set constantly. So, for most of experiment trials, even the problems scale $|\Phi|$ is not very huge, TCA is likely to generate a high quality approximate solution. Under the same runtime, CSA shows a better average quality of $|TS|$ than TCA when the problems $|\Phi|$ is less than 2000. Meanwhile, the Integer Problems results shows that it is difficult for an integer program method to solve the problem which has more than about 100 integer variables. Instead, CSA shows a good performance when the $|\Phi|$ is less than 2000. That means the proposed approach can acquire more powerful global optimization ability through CSA than others. Moreover, the problem translation mechanism makes CSA less sensitive to strength-$t$ than TCA and HHH, which is a very helpful character for CSA to get a higher performance when the covering strength is augmented.

    On the other hand, comparing the experiment data between CSA and GA/BCGO in Table Ⅳ and Table Ⅴ, we also find the best solution of GA/BCGO is very close to CSA when the $|\Phi|$ is less than 250. But, with the increasing of $|\Phi|$, the solution qualities of GA/BCGO begin to decline clearly. We believe the traditional searching operations, such as crossover operation and mutation operation are great at rearranging genetic structure and finding new code pattern, but not so good at refining the existing genetic structure, especially when the gene sequence is too long. In CSA, the searching among group process could be used to prospect the potential gene code, and the searching inside group process could be used to reduce multiple gene patterns in different groups. Based on the collaboration between the searching inside group process and the searching among group process, CSA can improve the performance of proposed approach remarkably.

    Above all, we believe the proposed global mechanism is a more efficient calculation approach for small-size SUT with multiple covering strength.

    In this section, we will discuss how to adjust and control the coordination process between the searching among group process and the searching inside group process.

    In CSA, the parameter $m$ is used to control the computing number of searching inside group process in each group, which affects the proportion between global searching and local searching. For discussing the proper range and adjusting rule of $m$, the CA problem $(v=2, $ $k=10$ and with strength-2) is used to do a testing. In this experiment, the $m$ has been assigned 3 different values, which is $m=m_1$ ($m_1$ $=n/10$), $m=m_2$ ($m_2=n/4$), and $m$ is increased from $m_1$ to $m_2$ linearly by (17). Besides, the population size $n$ is 60 and the other parameters in CSA are same as the testing in above section.

    Fig. 4 is the statistical data of this experiment after 30 independent trials. The boxplot shows the dispersion of 30 experiment results of $|TS|$. We can see that too smaller $m$ is likely to affect the solution quality, and too bigger $m$ makes the distribution of solution much scattered. From the mean value curve of $\gamma$, which shows the changing trend of population diversity, we can find the bigger $m$ makes its curve fall rapidly in early stages of searching process and the smaller $m$ makes its curve fall slowly. The quick diversity loss in early searching stages is likely to make the probability of premature increasing. Conversely, too slow convergence will affect the solution accuracy. The formula (17) makes $m$ increase gradually during the searching process. This test shows it is a feasible balancing mechanism, which makes the population keep a higher diversity against premature convergence in early searching stage while making population accelerate convergence to improve the accuracy of solution in later searching stage.

    图 4  Experiment statistical data for $CA(6;2, 10, 2)$ with different parameter $m$.
    Fig. 4  Experiment statistical data for $CA(6;2, 10, 2)$ with different parameter $m$.

    The parameter $\lambda$ is another important controlling parameter, which is used to adjust the running probability between SIG1 and SIG2. For discussing the proper range of $\lambda$, the CA problem ($v=3$, $k=6$ and with strength-3) is used to do the test. In this experiment, the $\lambda$ has been set 3 different values 0, 0.4 and 1. The values of other parameter in CSA are same as in the above section.

    Fig. 5 is the statistical data of this experiment after 30 independent trials. Obviously, this parameter has a great influence on the gene sequence reducing process. If $\lambda=0$, only SIG2 operation would be executed in searching inside group process. The boxplot shows it makes the distribution of solution much scattered and the quality of solution more unstable. Oppositely, if $\lambda=1$, it would take only SIG1 operation to be executed in searching inside group process and makes the gene sequence unable to reduce effectively. The mean value curve of $\gamma$ has shown the same changing trends. When $\lambda=0$, this curve has fallen more rapidly. Meanwhile, when $\lambda=1$, the falling speed of $\gamma$ is too slow to ensure the quality of population convergence. Therefore, the efficiency of searching inside group process depends on the reasonable coordination between SIG1 and SIG2. Obviously, 0.4 is a feasible experience value for this parameter.

    图 5  Experiment statistical data for $CA(33;3, 6, 3)$ with different parameter $\lambda$.
    Fig. 5  Experiment statistical data for $CA(33;3, 6, 3)$ with different parameter $\lambda$.

    In this paper, we propose a cluster searching driven combinatorial test data global optimization and generation method. A program based on the proposed method that can be executed on compatible PC has been implemented. The experimental results show the proposed method can get a good performance for small-size CA problems. Within a reasonable time, the optimal test suite can be obtained with higher probability when the scale of complete test case set is less than 2000. But, the quality of its solution declines clearly when the count of test case is more than 4000. So, the proposed method is not ideal for solving the large-size CA problems. Furthermore, we have discussed 2 main control parameters of CSA and given a feasible adjusting approach for them. In future work, we will try to make this approach applicable to MCA problems.


  • 本文责任编委 曹向辉
  • 图  1  管网信息物理系统结构

    Fig.  1  CPS structure of pipeline network

    图  2  管网卷积神经网络模型

    Fig.  2  structure of pipeline network

    图  3  管网信息物理异常诊断流程图

    Fig.  3  Flowchart of pipeline network for cyber-physical abnormity diagnosis

    图  4  管道信息中断压力曲线

    Fig.  4  Pipeline cyber interrupt pressure

    图  5  管道信息错误压力曲线

    Fig.  5  Pipeline cyber error pressure

    图  6  管道压力最大特征值曲线

    Fig.  6  Max eigenvalue curves of pipeline pressure

    图  7  管网工况调整压力曲线

    Fig.  7  Pipeline network operation adjustment pressure

    图  8  管网压力最大特征值曲线

    Fig.  8  Max eigenvalue curves of pipeline network pressure

    图  9  卷积神经网络输出特征图

    Fig.  9  Output feature of CNN

    图  10  管道泄漏压力曲线

    Fig.  10  Pipeline leakage pressure

    图  11  管道压力最大特征值曲线

    Fig.  11  Max eigenvalue curves of pipeline network pressure

    图  12  卷积神经网络输出特征图

    Fig.  12  Output feature of CNN

    图  13  管道泄漏压力曲线

    Fig.  13  Pipeline leakage pressure

    图  14  管道压力最大特征值曲线

    Fig.  14  Max eigenvalue curve of pipeline network pressure

    图  15  卷积神经网络输出特征图

    Fig.  15  Output feature of CNN

    表  1  物理异常统计结果

    Table  1  The statistical result of physical abnormity

    待识别类型正确分类数错误分类数精度(%)
    工况调整2 69610496.3
    泄漏2 35514594.2
    下载: 导出CSV

    表  2  不同方法物理异常精度对比

    Table  2  Comparison of accuracy among different methods

    诊断方法灵敏度特异度准确率
    本文94.2 % 96.3 % 95.3 %
    文献[7]91.0 % 88.6 % 89.7 %
    BPNN92.4 % 91.8 % 92.1 %
    SVM93.0 % 92.6 % 92.8 %
    下载: 导出CSV

    表  3  不同方法物理异常计算时间对比

    Table  3  Comparison of computing time among different methods

    诊断方法训练时间测试时间
    本文438.7582 s $1.6701\times10^{-2}$ s
    文献[7]20.1538 s $2.1252\times10^{-6}$ s
    BPNN16.9072 s $8.6301\times10^{-7}$ s
    SVM1.4099 s $1.9650\times10^{-5}$ s
    下载: 导出CSV
  • [1] 王中杰, 谢璐璐.信息物理融合系统研究综述.自动化学报, 2011, 37(10):1157-1166 http://www.aas.net.cn/CN/abstract/abstract17604.shtml

    Wang Zhong-Jie, Xie Lu-Lu. Cyber-physical systems:a survey. Acta Automatica Sinica, 2011, 37(10):1157-1166 http://www.aas.net.cn/CN/abstract/abstract17604.shtml
    [2] 温景容, 武穆清, 宿景芳.信息物理融合系统.自动化学报, 2012, 38(4):507-517 http://www.aas.net.cn/CN/abstract/abstract17704.shtml

    Wen Jing-Rong, Wu Mu-Qing, Su Jing-Fang. Cyber-physical system. Acta Automatica Sinica, 2012, 38(4):507-517 http://www.aas.net.cn/CN/abstract/abstract17704.shtml
    [3] Park K J, Zheng R, Liu X. Cyber-physical systems:milestones and research challenges. Computer Communications, 2012, 36(1):1-7 http://d.old.wanfangdata.com.cn/Periodical/jsjyy2013z2001
    [4] 李健, 陈世利, 黄新敬, 曾周末, 靳世久.长输油气管道泄漏监测与准实时检测技术综述.仪器仪表学报, 2016, 37(8):1747-1760 doi: 10.3969/j.issn.0254-3087.2016.08.006

    Li Jian, Chen Shi-Li, Huang Xin-Jing, Zeng Zhou-Mo, Jin Shi-Jiu. Review of leakage monitoring and quasi real-time detection technologies for long gas & oil pipelines. Chinese Journal of Scientific Instrument, 2016, 37(8):1747-1760 doi: 10.3969/j.issn.0254-3087.2016.08.006
    [5] 刘金海, 冯健.基于模糊分类的流体管道泄漏故障智能检测方法研究.仪器仪表学报, 2011, 32(1):26-32 http://d.old.wanfangdata.com.cn/Periodical/yqyb201101005

    Liu Jin-Hai, Feng Jian. Research on leak fault intelligent detection method for fluid pipeline based on fuzzy classification. Chinese Journal of Scientific Instrument, 2011, 32(1):26-32 http://d.old.wanfangdata.com.cn/Periodical/yqyb201101005
    [6] 刘炜, 刘宏昭.基于结构相似度的管道泄漏检测定位法.中南大学学报(自然科学版), 2017, 48(1):134-140 http://d.old.wanfangdata.com.cn/Periodical/zngydxxb201701019

    Liu Wei, Liu Hong-Zhao. Pipeline leak detection and location method based on structural similarity criteria. Journal of Central South University (Science and Technology), 2017, 48(1):134-140 http://d.old.wanfangdata.com.cn/Periodical/zngydxxb201701019
    [7] 刘金海, 臧东, 汪刚.基于Markov特征的油气管道泄漏检测与定位方法.仪器仪表学报, 2017, 38(4):944-951 doi: 10.3969/j.issn.0254-3087.2017.04.020

    Liu Jin-Hai, Zang Dong, Wang Gang. Leakage detection and location method of oil and gas pipelines based on Markov features. Chinese Journal of Scientific Instrument, 2017, 38(4):944-951 doi: 10.3969/j.issn.0254-3087.2017.04.020
    [8] 阚哲, 郎宪明, 王晓蕾.基于信息物理系统架构分支管道泄漏定位.信息与控制, 2018, 47(1):22-28 http://d.old.wanfangdata.com.cn/Periodical/xxykz201801005

    Kan Zhe, Lang Xian-Ming, Wang Xiao-Lei. Leakage location of branch pipeline based on cyber-physical system architecture. Information and Control, 2018, 47(1):22-28 http://d.old.wanfangdata.com.cn/Periodical/xxykz201801005
    [9] 王伟凝, 王励, 赵明权, 蔡成加, 师婷婷, 徐向民.基于并行深度卷积神经网络的图像美感分类.自动化学报, 2016, 42(6):904-914 http://www.aas.net.cn/CN/abstract/abstract18881.shtml

    Wang Wei-Ning, Wang Li, Zhao Ming-Quan, Cai Cheng-Jia, Shi Ting-Ting, Xu Xiang-Min. Image aesthetic classification using parallel deep convolutional neural networks. Acta Automatica Sinica, 2016, 42(6):904-914 http://www.aas.net.cn/CN/abstract/abstract18881.shtml
    [10] 常亮, 邓小明, 周明全, 武仲科, 袁野, 杨硕, 等.图像理解中的卷积神经网络.自动化学报, 2016, 42(9):1300-1312 http://www.aas.net.cn/CN/abstract/abstract18919.shtml

    Chang Liang, Deng Xiao-Ming, Zhou Ming-Quan, Wu Zhong-Ke, Yuan Ye, Yang Shuo, et al. Convolutional neural networks in image understanding. Acta Automatica Sinica, 2016, 42(9):1300-1312 http://www.aas.net.cn/CN/abstract/abstract18919.shtml
    [11] 李勇, 林小竹, 蒋梦莹.基于跨连接LeNet-5网络的面部表情识别.自动化学报, 2018, 44(1):176-182 http://www.aas.net.cn/CN/abstract/abstract19213.shtml

    Li Yong, Lin Xiao-Zhu, Jiang Meng-Ying. Facial expression recognition with cross-connect LeNet-5 network. Acta Automatica Sinica, 2018, 44(1):176-182 http://www.aas.net.cn/CN/abstract/abstract19213.shtml
    [12] Kang J, Park Y J, Lee J, Wang S H, Eom D S. Novel leakage detection by ensemble CNN-SVM and graph-based localization in water distribution systems. IEEE Transactions on Industrial Electronics, 2018, 65(5):4279-4289 doi: 10.1109/TIE.2017.2764861
    [13] Feng J, Li F M, Lu S X, Liu J H, Ma D Z. Injurious or noninjurious defect identification from MFL images in pipeline inspection using convolutional neural network. IEEE Transactions on Instrumentation and Measurement, 2017, 66(7):1883-1892 doi: 10.1109/TIM.2017.2673024
    [14] Lu S X, Feng J, Zhang H G, Liu J H, Wu Z N. An estimation method of defect size from MFL image using visual transformation convolutional neural network. IEEE Transactions on Industrial Informatics, DOI: 10.1109/TⅡ.2018.2828811
    [15] 杨理践, 曹辉.基于深度学习的管道焊缝法兰组件识别方法.仪器仪表学报, 2018, 39(2):193-202 http://epub.cnki.net/grid2008/detail.aspx?filename=YQXB201802023&dbname=DKFX2018

    Yang Li-Jian, Cao Hui. Deep learning based weld and flange identification in pipeline. Chinese Journal of Scientific Instrument, 2018, 39(2):193-202 http://epub.cnki.net/grid2008/detail.aspx?filename=YQXB201802023&dbname=DKFX2018
    [16] 韩春宇, 黄春, 陈飞, 南兵.东临复线水击保护实例分析.油气储运, 2008, 27(2):53-55 http://d.old.wanfangdata.com.cn/Periodical/yqcy200802015

    Han Chun-Yu, Huang Chun, Chen Fei, Nan Bing. Surge protection case for Dongying-Linyi parallel oil pipeline. Oil & Gas Storage and Transportation, 2008, 27(2):53-55 http://d.old.wanfangdata.com.cn/Periodical/yqcy200802015
    [17] 邓忠华, 尤冬青, 郭晔, 李洪军, 李岳, 闻峰, 等.石兰原油管道通信系统中断运行保护.油气储运, 2017, 36(5):543-547 http://d.old.wanfangdata.com.cn/Periodical/yqcy201705011

    Deng Zhong-Hua, You Dong-Qing, Guo Ye, Li Hong-Jun, Li Yue, Wen Feng, et al. Interruption protection of communication system in Shikong-Lanzhou Crude Oil Pipeline. Oil & Gas Storage and Transportation, 2017, 36(5):543-547 http://d.old.wanfangdata.com.cn/Periodical/yqcy201705011
    [18] 何兆洋, 尚义, 何丽萍, 黎春, 殷素娜.漠大原油管道SCADA通讯中断原因及应对措施.油气储运, 2014, 33(5):501-504 http://d.old.wanfangdata.com.cn/Periodical/yqcy201405010

    He Zhao-Yang, Shang Yi, He Li-Ping, Li Chun, Yin Su-Na. Reasons and solutions of SCADA communication interruption in Mohe-Daqing Crude Oil Pipeline. Oil & Gas Storage and Transportation, 2014, 33(5):501-504 http://d.old.wanfangdata.com.cn/Periodical/yqcy201405010
    [19] Bai Z D, Silverstein J W. Spectral Analysis of Large Dimensional Random Matrices (Second Edition). New York: Springer-Verlag, 2010.
    [20] Lecun Y, Bottou L, Bengio Y, Haffner P. Gradient-based learning applied to document recognition. Proceedings of the IEEE, 1998, 86(11):2278-2324 doi: 10.1109/5.726791
    [21] 周飞燕, 金林鹏, 董军.卷积神经网络研究综述.计算机学报, 2017, 40(6):1229-1251 http://d.old.wanfangdata.com.cn/Periodical/jsjxb201706001

    Zhou Fei-Yan, Jin Lin-Peng, Dong Jun. Review of convolutional neural network. Chinese Journal of Computers, 2017, 40(6):1229-1251 http://d.old.wanfangdata.com.cn/Periodical/jsjxb201706001
  • 期刊类型引用(9)

    1. 邵雪卷,韩雨豪,周亮亮,孙来庆,陈志梅,张井岗. 参数带宽化的双摆桥式起重机线性自抗扰控制. 振动与冲击. 2025(04): 82-90 . 百度学术
    2. 宁佳慧,文新宇. 输入时滞系统的多频干扰预测补偿. 太原科技大学学报. 2024(05): 467-473 . 百度学术
    3. 林海. 基于模糊线性二次型的桥式起重机定位控制方法. 机械研究与应用. 2023(03): 31-33 . 百度学术
    4. 尤智腾,徐为民,许贤先,朱鑫磊,胡强. 基于视觉反馈的桥吊自适应滑模防摇控制. 控制工程. 2023(06): 1051-1061+1128 . 百度学术
    5. 王守瑞,靳伍银,芮执元,张霞. 基于快速非奇异终端滑模的三维天车负载摆动控制. 吉林大学学报(工学版). 2023(12): 3508-3517 . 百度学术
    6. 王子赟,李南江,王艳,纪志成. 基于凸空间收缩滤波的噪声不确定时滞系统状态估计. 控制理论与应用. 2022(12): 2331-2339 . 百度学术
    7. 曹海昕,郝运嵩,林静正,卢彪,方勇纯. 绳长时变情况下轮胎式集装箱起重机非线性防摆控制算法. 自动化学报. 2021(08): 1876-1884 . 本站查看
    8. 刘青松. 基于嵌套-伪预估器反馈的时滞控制系统输入时滞补偿. 自动化学报. 2021(10): 2464-2471 . 本站查看
    9. 邢东峰,陈光武,刘孝博. 基于STM32的姿态感知四轴飞行器的设计. 传感技术学报. 2019(11): 1603-1607 . 百度学术

    其他类型引用(7)

  • 加载中
  • 图(15) / 表(3)
    计量
    • 文章访问数:  2161
    • HTML全文浏览量:  558
    • PDF下载量:  901
    • 被引次数: 16
    出版历程
    • 收稿日期:  2018-05-31
    • 录用日期:  2018-09-12
    • 刊出日期:  2019-01-20

    目录

    /

    返回文章
    返回