NHÂN TẠO
INTELLIGENCE
NỀN TẢNG CỦA ĐẠI LÝ tính toán
6.2 Independence6 Reasoning Dưới Uncertainty6.3.1 NetworksHomeIndexContents Xây dựng Niềm tin
6.3 Niềm tin Networks
Các khái niệm về độc lập có điều kiện có thể được sử dụng để cung cấp cho một đại diện súc tích của nhiều lĩnh vực. Ý tưởng là, đưa ra một biến ngẫu nhiên X, một tập hợp nhỏ các biến thể tồn tại mà trực tiếp ảnh hưởng giá trị của biến trong ý nghĩa rằng X là có điều kiện độc lập của các biến khác cho các giá trị cho các biến ảnh hưởng trực tiếp. Tập hợp các biến ảnh hưởng đến địa phương được gọi là chăn Markov. Địa phương này là những gì được khai thác trong một mạng lưới tín ngưỡng. Một mạng lưới tín ngưỡng là một mô hình đạo diễn sự phụ thuộc điều kiện trong một tập hợp của các biến ngẫu nhiên. Các tuyên bố chính xác của độc lập điều kiện trong một mạng niềm tin sẽ đưa vào tài khoản các directionality.
Để xác định một mạng niềm tin, bắt đầu với một tập hợp các biến ngẫu nhiên mà đại diện cho tất cả các tính năng của mô hình. Giả sử các biến này là {X1, ..., Xn}. . Tiếp theo, chọn một số thứ tự của các biến, X1, ..., Xn
Các quy tắc dây chuyền (Proposition 6.3) cho thấy làm thế nào để phân hủy một kết hợp thành xác suất có điều kiện:
P (X1 = v1∧X2 = v2∧ ··· ∧Xn = vn)
= Πi = 1N P (Xi = vi |. X1 = v1∧ ··· ∧Xi-1 = vi-1)
Hoặc, trong điều kiện của các biến ngẫu nhiên và phân phối xác suất,
P (X1, X2, ·· ·, Xn) = Πi = 1N P (Xi |. X1, ···, Xi-1)
Xác định cha mẹ của ngẫu nhiên Xi biến, cha mẹ bằng văn bản (Xi), là một tập tối thiểu của người tiền nhiệm của Xi trong tổng số đặt hàng như vậy mà các bậc tiền bối khác của Xi là điều kiện độc lập của cha mẹ cho Xi (Xi). Đó là, cha mẹ (Xi) ⊆ {X1, ..., Xi-1} như vậy mà
P (Xi | Xi-1 ... X1) = P. (Xi | bố mẹ (Xi))
Nếu có nhiều hơn một thiết lập tối thiểu tồn tại, bất kỳ thiết lập tối thiểu có thể được chọn để trở thành cha mẹ. Có thể có nhiều hơn một thiết lập tối thiểu chỉ khi một số người tiền nhiệm là chức năng xác định của người khác.
Chúng tôi có thể đặt các quy tắc dây chuyền và định nghĩa của cha mẹ với nhau, cho
P (X1, X2, ···, Xn) = Πi = 1N P. (Xi | bố mẹ (Xi))
Xác suất trên tất cả các biến, P (X1, X2, ···, Xn), được gọi là phân bố xác suất doanh. Một mạng lưới niềm tin định nghĩa một thừa số của phân phối xác suất doanh, nơi mà xác suất điều kiện hình thành các yếu tố đó được nhân với nhau.
Một mạng lưới tín ngưỡng, cũng được gọi là một mạng Bayesian, là một acyclic đạo diễn đồ thị (DAG), nơi các nút là các biến ngẫu nhiên. Có một vòng cung từ mỗi phần tử của cha mẹ (Xi) vào Xi. Liên kết với các mạng niềm tin là một tập hợp các phân bố xác suất có điều kiện -. Xác suất có điều kiện của mỗi biến cho cha mẹ của mình (trong đó bao gồm các xác suất trước của các biến không có cha mẹ)
Như vậy, một mạng lưới tín ngưỡng bao gồm
một DAG, nơi mỗi nút là dán nhãn của một biến ngẫu nhiên;
một tên miền cho mỗi biến ngẫu nhiên; và
một tập hợp các phân phối điều kiện xác suất cho P (X | bố mẹ (X)) cho mỗi biến X.
Một mạng lưới niềm tin là mạch hở bằng xây dựng. Cách quy tắc dây chuyền phân hủy các kết hợp cho việc đặt hàng. Một biến có thể chỉ có những người tiền nhiệm như cha mẹ. Phân tách khác nhau có thể dẫn đến các mạng niềm tin khác nhau.
Ví dụ 6.10: Giả sử chúng ta muốn sử dụng trợ lý chẩn đoán để chẩn đoán xem có một đám cháy tại một tòa nhà dựa trên thông tin cảm biến ồn ào và giải thích có thể là mâu thuẫn của những gì có thể xảy ra. Các nhân viên nhận được một báo cáo về việc tất cả mọi người đang rời khỏi tòa nhà. Giả sử các cảm biến báo cáo là ồn ào: Nó đôi khi báo cáo lại khi không có cuộc di cư (dương tính giả), và đôi khi nó không báo cáo khi tất cả mọi người đang rời (một âm tính giả). Giả sử báo cháy xảy ra có thể gây ra sự ra đi, nhưng điều này không phải là một mối quan hệ xác định. Hoặc giả mạo hoặc cháy nổ có thể ảnh hưởng đến báo động. Lửa cũng gây ra khói tăng từ tòa nhà.
Giả sử chúng ta sử dụng các biến sau, tất cả đều là Boolean, theo thứ tự sau
đây:. Giả mạo là đúng khi có can thiệp với các báo
động. Fire là đúng khi có một đám cháy
báo động là đúng khi các báo động âm thanh.
Smoke là đúng khi có khói.
Rời bỏ là đúng nếu có nhiều người rời khỏi tòa nhà cùng một lúc.
Báo cáo này là đúng nếu có một báo cáo được đưa ra bởi một người nào đó của những người rời khỏi. Báo cáo là sai nếu không có báo cáo của để lại.
Các báo cáo biến biểu thị các báo cáo cảm biến mà mọi người đang rời khỏi. Thông tin này là không đáng tin cậy vì người phát hành báo cáo này có thể được chơi một trò đùa thực tế, hoặc không có một người có thể đã được đưa ra như một báo cáo có thể đã được chú ý. Biến này được giới thiệu để cho phép điều trên dữ liệu cảm biến không đáng tin cậy. Các đại lý biết những gì các cảm biến báo cáo, nhưng nó chỉ có bằng chứng đáng tin cậy về những người rời khỏi tòa nhà. Là một phần của tên miền, giả định các điều kiện sau đây independencies:
Fire là điều kiện độc lập của sự giả mạo (cho không có các thông tin khác).
Alarm phụ thuộc vào cả hai cháy và giả mạo. Đó là, chúng tôi đang làm không có giả định độc lập về cách báo động phụ thuộc vào những người tiền nhiệm của nó được đặt biến này.
Khói chỉ phụ thuộc vào Fire và là điều kiện độc lập của sự giả mạo và báo động cho dù có là một Fire.
Chỉ để lại phụ thuộc vào báo động và không trực tiếp trên Cháy hoặc giả mạo hoặc không khói thuốc. Đó là, để lại là điều kiện độc lập của các biến khác được đưa ra báo động.
Báo cáo chỉ phụ thuộc trực tiếp vào Rời.
Các mạng niềm tin của Hình 6.1 thể hiện những phụ thuộc này.
Số liệu / ch06 / firenew.png
Hình 6.1: mạng Niềm tin cho báo cáo của để lại của Ví dụ 6.10
Mạng lưới này đại diện cho nhân tử
P (giả mạo, chữa cháy, báo động, khói, Rời, Báo cáo)
= P (giả mạo) × P (Fire) × P (Alarm | giả mạo, Fire)
× P (Khói | Fire) × P (Rời | Alarm) × P (Báo cáo |. Rời)
Chúng tôi cũng phải xác định các miền của mỗi biến. Giả sử rằng các biến Boolean; đó là, họ có tên miền {true, false}. Chúng tôi sử dụng các biến thể thấp hơn trường hợp của biến để đại diện cho các giá trị đích thực và sử dụng phủ định cho giá trị false. Vì vậy, ví dụ, giả mạo = true được viết như là giả mạo, và giả mạo = false được viết như ¬tampering.
Các ví dụ mà theo giả định xác suất có điều kiện sau đây:
P (giả mạo) = 0,02
P (lửa) = 0,01
P (báo động | lửa ∧tampering) = 0,5
P (báo động | ∧¬tampering lửa) = 0,99
P (báo động | ¬fire ∧tampering) = 0,85
P (báo động | ¬fire ∧¬tampering) = 0,0001
P (khói | lửa) = 0,9
P (khói | ¬fire) = 0,01
P (để lại | báo động) = 0,88
P (để lại | ¬alarm) = 0,001
P (báo cáo | rời) = 0,75
P (báo cáo | ¬leaving) = 0,01
con số / ch06 / power-bn.png
Đối mỗi wi dây, có một biến ngẫu nhiên, Wi, với miền {sống, chết}, biểu thị cho dù có là sức mạnh trong dây wi. Wi = sống có nghĩa là dây wi có quyền lực. Wi = phương tiện chết không có điện trong dây wi.
Outside_power với miền {sống, chết} biểu thị cho dù có là sức mạnh đi vào tòa nhà.
Đối với mỗi si chuyển đổi, biến Si_pos biểu thị vị trí của si. Nó có tên miền {lên, xuống}.
Đối với mỗi si chuyển đổi, biến Si_st biểu thị trạng thái của switch si. Nó có tên miền {ok, upside_down, ngắn, không liên tục, phá vỡ}. Si_st = phương tiện ok chuyển si đang làm việc bình thường. Si_st = upside_down có nghĩa là switch si được cài đặt lộn ngược. Si_st = phương tiện chuyển ngắn si là quá thiếu và hoạt động như một sợi dây. Si_st = phương tiện bị hỏng chuyển si là bị hỏng và không cho phép điện chảy.
Đối với mỗi ngắt mạch CBI, biến Cbi_st có tên miền {on, off}. Cbi_st = on nghĩa là quyền lực có thể chảy qua CBI và Cbi_st = off có nghĩa là sức mạnh không thể chảy qua CBI.
Đối với mỗi li ánh sáng, biến Li_st với miền {ok, không liên tục, phá vỡ} biểu thị trạng thái của ánh sáng. Li_st = ok nghĩa là ánh sáng li sẽ sáng nếu được hỗ trợ, Li_st = liên tục có nghĩa là ánh sáng li liên tục sáng nếu được hỗ trợ, và Li_st = gãy có nghĩa là ánh sáng li không hoạt động.
Hình 6.2: mạng Niềm tin cho miền điện của Hình 1.8
Ví dụ 6.11: Xét dây ví dụ về hình 1.8. Giả sử chúng ta quyết định có các biến cho dù đèn được thắp sáng, cho các vị trí chuyển đổi, cho dù đèn và công tắc có bị lỗi hay không, và cho dù có là sức mạnh trong các dây dẫn. Các biến được định nghĩa trong hình 6.2.
Hãy chọn một sắp đặt nơi những nguyên nhân của một biến là trước khi biến trong việc đặt hàng. Ví dụ, các biến liệu ánh sáng được thắp sáng ra sau khi các biến cho dù ánh sáng được làm việc và cho dù có là sức mạnh đi vào ánh sáng.
Cho dù l1 ánh sáng được thắp sáng chỉ phụ thuộc vào việc có quyền lực trong dây w0 và liệu l1 ánh sáng là làm việc đúng cách. Các biến khác, chẳng hạn như vị trí của công tắc s1, cho dù l2 ánh sáng được thắp sáng, hoặc những người là nữ hoàng của Canada, là không thích hợp. Vì vậy, cha mẹ của L1_lit là W0 và L1_st.
Hãy xem xét W0 biến, đại diện cho dù có quyền lực trong dây w0. Nếu chúng ta biết liệu có điện trong dây W1 và W2, và chúng tôi biết vị trí của công tắc s2 và liệu việc chuyển đổi đã được làm việc đúng cách, giá trị của các biến số khác (trừ L1_lit) sẽ không ảnh hưởng đến niềm tin của chúng tôi trong việc liệu có là sức mạnh trong dây w0. Vì vậy, cha mẹ của W0 nên S2_Pos, S2_st, W1, và W2.
Hình 6.2 cho thấy mạng lưới niềm tin kết quả sau khi độc lập của mỗi biến đã được xem xét. . Các mạng niềm tin cũng chứa các lĩnh vực của các biến, như được đưa ra trong hình, và xác suất có điều kiện của mỗi biến cho cha mẹ của nó
Đối với các biến W1, xác suất điều kiện sau đây phải được xác định:
P (W1 = sống | S1_pos = lên ∧ S1_st = ok ∧W3 = live)
P (W1 = sống | S1_pos = lên ∧S1_st = ok ∧W3 = chết)
P (W1 = sống | S1_pos = lên ∧S1_st = upside_down ∧W3 = sống)
...
P (W1 = sống | S1_pos = xuống ∧S1_st = vỡ ∧W3 = chết).
Có hai giá trị cho S1_pos, năm giá trị cho S1_ok, và hai giá trị cho W3, do đó, có 2 × 5 × 2 = 20 trường hợp khác nhau, nơi một giá trị cho W1 = sống phải được quy định. Theo như lý thuyết xác suất là có liên quan, xác suất cho W1 = sống cho những 20 trường hợp có thể được phân công tùy tiện. Tất nhiên, kiến thức về tên miền buộc những gì giá trị có ý nghĩa. Các giá trị của W1 = chết có thể được tính toán từ các giá trị cho W1 = sống cho mỗi trường hợp này.
Bởi vì các biến S1_st không có cha mẹ, nó đòi hỏi một sự phân bố trước, mà có thể được quy định như xác suất cho tất cả
đang được dịch, vui lòng đợi..