i'm Ning, a master computer science student. now i'm doing my research project on traffic flow prediction based on Bayesian network. I worked on Genie to construct the road network which in DAG means that every node denotes sensor collection traffic information(speed, travel time, traffic flow.etc), and arcs denotes traffic flow direction. the construction of Bayesian network seen the diagram below:

I already have traffic dataset for one week. how can i learn the parameter from these data and my case is unlike other bayesian network, because they had different states associating to its node and the assigned probability.(e.g. disease symptoms, one symptom is caused by some external reason ), however how can i setup my state here?
secondly, because of considering the time factor, i plan to use previous time data for predicting the current time, in other words, in the diagram, both of X2 node is either cause node and effect node. how could i predict the performance in this case?
thank you very much in advance.

kind regards,
Ning